Info gamemode: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{DISPLAYTITLE:info_gamemode}}
{{l4d point|info_gamemode}}
{{l4d2 point|info_gamemode}}
== Entity description ==
== Entity description ==


Line 10: Line 13:
* {{I Targetname}}
* {{I Targetname}}


== Outputs - omit if none exist ==
== Outputs ==
* {{O Targetname}}
* {{O Targetname}}
* '''OnCoop'''
* '''OnCoop'''
Line 18: Line 21:
* '''OnSurvival'''
* '''OnSurvival'''
: Fired when the map spawns in survival games.
: Fired when the map spawns in survival games.
* {{l4d2}} '''OnScavenge'''
: Fired when the map spawns in scavenge mode.
* {{l4d2}} '''OnCoopPostIO'''
: Fired after all entity IO generated by OnCoop has finished.
* {{l4d2}} '''OnVersusPostIO'''
: Fired after all entity IO generated by OnVersus has finished
* {{l4d2}} '''OnSurvivalPostIO'''
: Fired after all entity IO generated by OnSurvival has finished
* {{l4d2}} '''OnScavengePostIO'''
: Fired after all entity IO generated by OnScavenge has finished
* {{l4d2}} '''OnScavengeMatchStart'''
: Fired on the first map load of a scavenge match. Doesn't fire on round restarts.
* {{l4d2}} '''OnNavAnalyze'''
: Fired when the map is loaded with -navanalyze on the command line.


== See also ==
== See also ==

Revision as of 08:20, 16 July 2010

Template:L4d point Template:L4d2 point

Entity description

When a map is loaded, this entity can fire outputs depending on the current game mode.

Keyvalues

Name (targetname) <string>[ Edit ]
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

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Inputs

Outputs

  • OnCoop
Fired when the map spawns in coop games.
  • OnVersus
Fired when the map spawns in versus games.
  • OnSurvival
Fired when the map spawns in survival games.
  • Left 4 Dead 2 OnScavenge
Fired when the map spawns in scavenge mode.
  • Left 4 Dead 2 OnCoopPostIO
Fired after all entity IO generated by OnCoop has finished.
  • Left 4 Dead 2 OnVersusPostIO
Fired after all entity IO generated by OnVersus has finished
  • Left 4 Dead 2 OnSurvivalPostIO
Fired after all entity IO generated by OnSurvival has finished
  • Left 4 Dead 2 OnScavengePostIO
Fired after all entity IO generated by OnScavenge has finished
  • Left 4 Dead 2 OnScavengeMatchStart
Fired on the first map load of a scavenge match. Doesn't fire on round restarts.
  • Left 4 Dead 2 OnNavAnalyze
Fired when the map is loaded with -navanalyze on the command line.

See also