Env fade (GoldSrc): Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{tabs|env_fade|goldsrc = 1|source = 1|main = source}} {{This is a|name=env_fade|e0|engine=1}} It controls screen fades to or from a solid color. Add Duration and Hold Time t...") |
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
||
Line 1: | Line 1: | ||
{{tabs|env_fade|goldsrc = 1|source = 1|main = source}} | {{tabs|env_fade|goldsrc = 1|source = 1|main = source}} | ||
{{ | {{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. | ||
==Key Values== | ==Key Values== |
Revision as of 21:04, 17 May 2024
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.