env_fade

From Valve Developer Community
Revision as of 15:51, 10 February 2024 by N0one (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

env_fade is an e0 available in all Template:1 games.Template:1 topicon

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{1}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

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.