game_survival_logic

From Valve Developer Community
Jump to: navigation, search

<Counter-Strike: Global Offensive> game_survival_logic is a point entity available in Counter-Strike: Global Offensive. It's one of many new entities added with the Danger Zone update.


It fires outputs when events happen during Survival mode.

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by.
Entity Scripts (vscripts) <scriptlist> (New with Left 4 Dead 2)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Script think function (thinkfunction) <string> (New with Left 4 Dead 2)
Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call. Try to avoid expensive operations in this function, as it may cause performance problems.

Outputs

Base:

OnUser1 to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnZoneRocketWarning
Fired when the warning sound plays that announcing incoming rockets.
OnZoneRocketStartLaunch
Fired when the barrage of rockets start launching (after the announce).
OnZoneEndGameStart
Fired when the end game starts and no more rockets will fire, but the zones start shrinking.