Game survival logic: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{csgo point|game_survival_logic}} {{DZupdate}} It fires outputs when events happen during Survival mode. ==Keyvalues== {{KV|Name (targetname)|string|The nam...")
 
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 1: Line 1:
{{csgo point|game_survival_logic}} {{DZupdate}}
{{this is a|e0|game=csgo|name=game_survival_logic}} {{DZupdate}}





Revision as of 09:18, 7 January 2024

game_survival_logic is an e0 available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

Warning.pngWarning:
  • The {{{game}}} parameter is inconsistent with the name defined by the {{csgo}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Counter-Strike: Global Offensive.
    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's one of many new entities added with the CS:GO Danger Zone Danger Zone update.


It fires outputs when events happen during Survival mode.

Keyvalues

Name (targetname) ([todo internal name (i)]) <string>
The name that other entities refer to this entity by.
Entity Scripts (vscripts) ([todo internal name (i)]) <scriptlist> (in all games since 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) ([todo internal name (i)]) <string> (in all games since 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

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.