env_fade
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)
<targetname> - 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
- [
1
] : Fade From
Screen fades from the specified color instead of to it.
- [
2
] : Modulate
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 of0 255 0
would mute the red and blue channels and create a green nightvision-type effect.
- [
4
] : Activator Only
If enabled, the fade will only affect the player who activated it.