Env fade (GoldSrc): Difference between revisions
Jump to navigation
Jump to search

m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{TabsBar|main=gs|base=env_fade}} | |||
{{CD|CFade|goldsrc=1}} | |||
{{this is a|point entity|name=env_fade|engine=GoldSrc}} 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. | {{this is a|point entity|name=env_fade|engine=GoldSrc}} 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. | ||
Latest revision as of 05:50, 29 September 2024


![]() |
---|
CFade |
![]() |
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
- 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.