env_fade
Class hierarchy |
---|
CFade |
effects.cpp
|
env_fade
is a point entity available in all GoldSrc games. It controls screen fades to or from a solid color. Add Duration and Hold Time together for the total time this entity will be in effect.
Key Values
Targetname:
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
- Duration (seconds)
(duration)
<string> - The time that it will take to fade the screen in or out.
- Hold Fade (seconds)
(holdtime)
<string> - The time to hold the faded in/out state.
- Fade Alpha
(renderamt)
<integer> - Alpha of the fade, where 0 = fully transparent and 255 = fully opaque.
- Fade Color (R G B)
(rendercolor)
<color255> - Fade color.
Flags
Fade From : [1]
- Screen fades from the specified color instead of to it.
Modulate : [2]
- Uses attenuation blending to achieve the fade. The normal fade does a straight weighted blend between the screen and the fading color. Modulate actually attenuates the RGB channels. For example, a color of
0 255 0
would mute the red and blue channels and create a green nightvision-type effect.
Activator Only : [4]
- If enabled, the fade will only affect the player who activated it.