
List of Useful Commands z_population Sets the default population for all nav areas that do not specify a place name.
Use " nav_edit 0" to turn off the nav grid display. Save the navigation mesh by typing " nav_save" into the console. You'll hear a different sound signifying that it has been turned off. Type " nav_toggle_place_mode" into the console and hit enter (or use " nav_set_place_mode") to turn place mode off.
It will pick the place name from the area you are looking at at and use it as your new chosen place name.
You can use " nav_place_pick" as a sort of eyedropper for your chosen place name. This command will paint every nav area you look at with the chosen place name. You can also turn on a special painting mode with " nav_toggle_place_painting". You can paint areas individually using " nav_place_set". For instance, if you're making a Hospital map but want to fine-tune a few areas, you want to set the entire map to use " hospital" so that there are no remaining nav areas using " default". You should use this first to set your map's default spawn type. Type " nav_place_floodfill" in the console to flood fill, using the chosen place name, all areas that can be reached from the nav area at which your cursor is pointed (as well as the area at which your cursor is pointed). This place name will be referred to as your chosen place name. It decides what place name will be used for all of the place commands. This is like picking the color of a paintbrush in an image editing program. Type " nav_use_place " in the console. There is a different sound when you disable this. You should hear a beep signaling it was turned on. Type " nav_toggle_place_mode" into the console and hit enter (or use " nav_set_place_mode"). Type " nav_edit 1" in the console to see the nav mesh. Enable cheats by typing " sv_cheats 1" into the console.
To specify populations within your map, your nav mesh areas must be given place names corresponding to those defined in population.txt, located within the "scripts" directory of your Left 4 Dead installation. To specify a default population for the whole map, set "z_population" to the name of the desired population entry. Currently only hunters, boomers, and smokers can be spawned through infected populations. This is typically used in conjunction with Info_zombie_spawn.
This means that any areas with the name " hospital" would spawn approximately:Īdditionally, the populations may also allow certain special infected to spawn. The percentages within each population add up to 100% and define how frequently each type of infected should be spawned within the area.įor example, the " hospital" population is defined as:
7 List of Population-Supported Infected TypesĮach defined population has a name and a list of model names with associated percentages.