Survival Gametype (L4D)

From Valve Developer Community
Revision as of 14:02, 1 July 2009 by JeffLane (talk | contribs) (Basic information on Survival maps)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This article includes basic instructions for creating a Survival mode map for Left 4 Dead.

Starting Survival

Use a trigger_finale or a Director Panic Event input to start the finale. This is set up in the same method as starting a finale or crescendo event.


All Survival mode maps rely on the BATTLEGROUND flag on your navigation mesh to define the play space for the Survival mode. In Nav edit mode, mark the spaces which will be used for the Survival playspace with BATTLEGROUND. Also, the BATTLESTATION attribute can be used to define good holdout spots for the Survivor Bots. This is set up in the same way as finales or Crescendo Events.


Use the info_gamemode entity to set up specific map logic if a single .BSP runs in multiple modes. The OnSurvival output will fire when a map is loaded in Survival mode to set up any specific logic you'd like to do in survival mode. This will allow you to enable/disable or spawn func_brush walls, clip brushes, dynamic props, items, etc. You can use point_template and logic_relay entities triggered here for complex changes to the map.


Survivors spawn at info_survivor_position entities for Survival maps. Simply place four of these in your map to signify where the survivors should spawn in survival mode. In the case of a finale map with an escape vehicle which already uses info_survivor_positions, you may need to use the info_gamemode to kill these other positions so the survivors will spawn at the proper positions.


All placed items in the map will spawn in survival mode regardless of the normal densities allowed in other modes. If you wish to change the item placement or numbers, you can use the info_gamemode to spawn or kill items.

Mission file and testing

Add your .BSP to the mission file in the modes section as a survival map and it will work through the menu system. See the Deadline_Mission_File as an example. You may also set the game mode directly in the console by setting "mp_gamemode survival", however, the mission file will require setup before shipping for the game to play in the correct mode online. When you're done, you can create an Add-on that includes your map.

See also