Info gamemode: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Reformat)
Line 1: Line 1:
{{DISPLAYTITLE:info_gamemode}}
{{l4d2 point|info_gamemode|sprite=1}} When a map is loaded, this entity can fire outputs depending on the current game mode. This allows the all game modes to be available in a single map instead of having separate maps for each game mode. {{clr}}
{{l4d series point|info_gamemode}}
== Entity description ==
[[Image:Info_gamemode.png|left]]
When a map is loaded, this entity can fire outputs depending on the current game mode. This allows the all game modes to be available in a single map instead of having separate maps for each game mode.


== Keyvalues ==
== Keyvalues ==
* {{KV Targetname}}
{{KV Targetname}}
* {{KV Angles}}
{{KV Angles}}


== Inputs ==
== Inputs ==
* {{I Targetname}}
{{I Targetname}}


== Outputs ==
== Outputs ==
* {{O Targetname}}
{{IO|OnCoop|Fired when the map spawns in coop games.}}
* '''OnCoop'''
{{IO|OnVersus|Fired when the map spawns in versus games.}}
: Fired when the map spawns in coop games.
{{IO|OnSurvival|Fired when the map spawns in survival games.}}
* '''OnVersus'''
{{IO|OnScavenge|Fired when the map spawns in scavenge mode.|since=L4D2}}
: Fired when the map spawns in versus games.
{{IO|OnCoopPostIO|Fired after all entity IO generated by <code>OnCoop</code> has finished.|since=L4D2}}
* '''OnSurvival'''
{{IO|OnVersusPostIO|Fired after all entity IO generated by <code>OnVersus</code> has finished|since=L4D2}}
: Fired when the map spawns in survival games.
{{IO|OnSurvivalPostIO|Fired after all entity IO generated by <code>OnSurvival</code> has finished|since=L4D2}}
* {{l4d2}} '''OnScavenge'''
{{IO|OnScavengePostIO|Fired after all entity IO generated by <code>OnScavenge</code> has finished|since=L4D2}}
: Fired when the map spawns in scavenge mode.
{{IO|OnScavengeMatchStart|Fired on the first map load of a scavenge match. Doesn't fire on round restarts.|since=L4D2}}
* {{l4d2}} '''OnCoopPostIO'''
{{IO|OnNavAnalyze|Fired when the map is loaded with -navanalyze on the command line.|since=L4D2}}
: Fired after all entity IO generated by OnCoop has finished.
{{O Targetname}}
* {{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 ==
Line 44: Line 30:
* [[L4D2 Level Design/Scavenge Maps]]
* [[L4D2 Level Design/Scavenge Maps]]
* [[Survival Gametype (L4D)]]
* [[Survival Gametype (L4D)]]
== External links ==

Revision as of 05:44, 12 August 2011

Template:L4d2 point When a map is loaded, this entity can fire outputs depending on the current game mode. This allows the all game modes to be available in a single map instead of having separate maps for each 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.
OnScavenge  (in all games since Left 4 Dead 2)
Fired when the map spawns in scavenge mode.
OnCoopPostIO  (in all games since Left 4 Dead 2)
Fired after all entity IO generated by OnCoop has finished.
OnVersusPostIO  (in all games since Left 4 Dead 2)
Fired after all entity IO generated by OnVersus has finished
OnSurvivalPostIO  (in all games since Left 4 Dead 2)
Fired after all entity IO generated by OnSurvival has finished
OnScavengePostIO  (in all games since Left 4 Dead 2)
Fired after all entity IO generated by OnScavenge has finished
OnScavengeMatchStart  (in all games since Left 4 Dead 2)
Fired on the first map load of a scavenge match. Doesn't fire on round restarts.
OnNavAnalyze  (in all games since Left 4 Dead 2)
Fired when the map is loaded with -navanalyze on the command line.


See also