info_gamemode

From Source Entities
Jump to navigation Jump to search

Code classes:

Info gamemode.png

info_gamemode is a point entity present in both L4d.pngL4d2-small.pngLeft 4 Dead games. It fires outputs which match the gamemode the map was loaded in.

Tip: Sometimes info_gamemode has to be used instead of logic_auto because logic_auto's outputs are delayed by a small amount of time.

Inputs[edit | edit source]

PreRoundActivate (Not in FGD)  (only available in L4d2-small.png)
Uncertain. Probably sent automatically and doesn't need to be used.
PostSpawnActivate (Not in FGD)  (only available in L4d2-small.png)
Uncertain. Probably sent automatically and doesn't need to be used.
FireScavengeMatchStart (Not in FGD)  (only available in L4d2-small.png)
Uncertain. Probably sent automatically and doesn't need to be used.

Outputs[edit | edit source]

OnCoop
Fires when the map loads in coop (normal) mode.
OnVersus
Fires when the map loads in versus mode.
OnSurvival
Fires when the map loads in survival mode.
OnScavenge  (only available in L4d2-small.png)
Fires when the map loads in scavenge mode.
OnCoopPostIO  (only available in L4d2-small.png)
Fires when all entity IO generated by OnCoop has finished. "PostIO" inputs aren't actually needed, but help to organize logic.
OnVersusPostIO  (only available in L4d2-small.png)
Fires when all entity IO generated by OnVersus has finished.
OnSurvivalPostIO  (only available in L4d2-small.png)
Fires when all entity IO generated by OnSurvival has finished.
OnScavengePostIO  (only available in L4d2-small.png)
Fires when all entity IO generated by OnScavenge has finished.
OnScavengeMatchStart  (only available in L4d2-small.png)
Fires only the first time a map is loaded in scavenge mode, and not round restarts.
OnNavAnalyze  (only available in L4d2-small.png)
Fires when the map is loaded with -navanalyze in the launch options. To do: Purpose?