info_gamemode
Jump to navigation
Jump to search
Code classes:
CInfoGameMode
CBaseEntity
(all ents)
info_gamemode
is a point entity present in both Left 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 )
- Uncertain. Probably sent automatically and doesn't need to be used.
- PostSpawnActivate (Not in FGD) (only available in )
- Uncertain. Probably sent automatically and doesn't need to be used.
- FireScavengeMatchStart (Not in FGD) (only available in )
- 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 )
- Fires when the map loads in scavenge mode.
- OnCoopPostIO (only available in )
- 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 )
- Fires when all entity IO generated by OnVersus has finished.
- OnSurvivalPostIO (only available in )
- Fires when all entity IO generated by OnSurvival has finished.
- OnScavengePostIO (only available in )
- Fires when all entity IO generated by OnScavenge has finished.
- OnScavengeMatchStart (only available in )
- Fires only the first time a map is loaded in scavenge mode, and not round restarts.
- OnNavAnalyze (only available in )
- Fires when the map is loaded with
-navanalyze
in the launch options. To do: Purpose?