Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
info_gamemode
![]() |
---|
CInfoGameMode |
![Info gamemode.png](/w/images/e/ec/Info_gamemode.png)
info_gamemode
is a point entity available in Left 4 Dead series. 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.
Outputs
OnCoop
OnVersus
OnSurvival
OnScavenge
- Fired when the map spawns in specified mode.
Note:OnCoop fires in realism
Bug:Killing the info_gamemode itself in one of these outputs with 0 delay crashes the game
OnScavengePostIO
(in all games since)
- Fired shortly after all scavenge items have been populated
Note:This doesn't mean item populating causes the output to be fired, mentioning item being populated just as a frame of reference
Tip:Useful when wanting to spawn templated weapon_* entities and not have it affected by info_map_parameters densities [confirm]
Risk of Confusion:Description in FGD is not correct. This output does fire later than On<Mode> outputs but it doesn't wait until IO generated by it finishes. Doesn't even wait for the delays specified in On<Mode> outputs to expire.
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
OnScavengeMatchStart
(in all games since)
- Fired on the first map load of a scavenge match. Doesn't fire on round restarts.
Note:Fires shortly after OnGameplayStart of info_director is fired
OnNavAnalyze
(in all games since)
- Fired when the map is loaded with -navanalyze on the command line.
Inputs
PostSpawnActivate
!FGD- Fired internally and causes On<Mode> output to fire.
PreRoundActivate
!FGD- Fired internally and causes On<Mode>PostIO output to fire.
FireScavengeMatchStart
!FGD- Fired internally and causes OnScavengeMapStart output to fire.
![Warning.png](/w/images/thumb/c/cb/Warning.png/10px-Warning.png)
![Tip.png](/w/images/thumb/4/45/Tip.png/10px-Tip.png)
![Blank image.png](/w/images/b/ba/Blank_image.png)