Info gamemode: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 4: Line 4:
== Entity description ==
== Entity description ==
[[Image:{{PAGENAME}}.png|left]]
[[Image:{{PAGENAME}}.png|left]]
When a map is loaded, this entity can fire outputs depending on the current game mode.
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 ==
Line 39: Line 43:
* [[Left 4 Dead Level Creation]]
* [[Left 4 Dead Level Creation]]
* [[Left 4 Dead 2 Level Creation]]
* [[Left 4 Dead 2 Level Creation]]
* [[L4D Level Design/Versus Maps]]
* [[L4D2 Level Design]]
* [[L4D2 Level Design/Multi-Gamemode Support]]
* [[L4D2 Level Design/VMF Instances]]
* [[L4D2 Level Design/Scavenge Maps]]
* [[Survival Gametype (L4D)]]
* [[Survival Gametype (L4D)]]


[[Category:Left 4 Dead Entities]]
[[Category:Left 4 Dead Entities]]
[[Category:Left 4 Dead 2 Entities]]
[[Category:Left 4 Dead 2 Entities]]

Revision as of 08:54, 16 July 2010

Template:L4d point
Template:L4d2 point

Entity description

Info gamemode.png

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.
  • 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