env-faint

From Valve Developer Community
Jump to: navigation, search
List of SE1 entities
Open the full image to see the effect in action.


env-faint is a point entity available in SiN Episodes SiN Episodes. When triggered will apply an effect to the player's screen like if passing out, playing the player/blade_passout1.mp3 sound file while doing so. Used throughout the intro sequences of the game to simulate the player is dreaming and upon map transitions, with the soundtrack being written specifically to target when these events occur.

Keyvalues

IsActive ([todo internal name (i)]) <integer>
Is this entity currently active.
FadeTime ([todo internal name (i)]) <float>
How many seconds to fade in/out.
Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

BeginFaint
Start the screen fade.
EndFaint
End the screen fade.


Ouputs

OnBeginFaint
Fired when the faint has begun.
OnEndFaint
Fired when the faint is ending.