left4dead

The console is a feature of many games that can be used to change certain elements of a game. In Left 4 Dead and Left 4 Dead 2, it can be activated in the Options menu (go to "Keyboard/Mouse", then Enable the "Allow Developer Console" option) and then displayed by pressing the tilde (~) key. Valve features a quick-type feature in their consoles that allows rapid entry of commands.

Note that the key used to access the developer console may be different on non-U.S. keyboard layouts; for example, a standard UK keyboard layout uses the tilde key (left of the "1" key and below Escape).

You may edit the config file within your game directory directly. The file is located under

<Left 4 Dead Installation Directory> -> left4dead -> cfg -> config.cfg

Just open the file with a text-editor of your choice and adjust it to your needs.


Another workaround for non-U.S. keyboard layouts ― Finnish in particular ― is to switch to a U.S. keyboard layout, start the game, opening the console and typing bind X "toggleconsole", where x is whichever key you wish to bind the command to, then switching back to your own language. If you can't open the console by changing the keyboard layout, right click on Left 4 Dead 2 in the Steam Library, click properties, click 'Set Launch Options...' then type -console in the field. Binding toggleconsole to a key bypasses the Steam Cloud overwriting custom settings made, and allows you to pick a key on a familiar keyboard layout. The console key chosen might not work in the lobby or start menu, but it should work in-game.

Cheats

The sv_cheats console variable is a prerequisite command to many of the game-altering commands found in the Left 4 Dead series (including other Valve games, such as Half-Life). In the Left 4 Dead series, by setting sv_cheats to 1, most commands are then recognized by the game. It is with sv_cheats 1 that most of the exploits were found by users in the demo during its pre-order era.

Enabling cheats disallows unlocking achievements. This includes Grind Achievements, which are achievements based on your lifetime performance (i.e. killing 5,359 Zombies in Crash Course) and any other Achievement that uses a Counter-based system to acquire (i.e. Collect 10 Boomer Bile Bombs off Dead CEDA Agents) as well, so any Infected killed with cheats enabled will not count towards Zombie Genocides or any similar achievement. Even when turned off, achievements are still disabled. Only restarting the particular game will allow achievements. Achievements can still be earned through an online game as long as cheats were never enabled on that server.

Unfortunately, enabling cheats in Left 4 Dead 2 is more complicated than in the previous game. Cheats must be enabled in the main menu, before starting a game, and even then you must use the map command to load a game with cheats enabled - starting a local server via any of the lobbies will disable cheats.

Annotated list of commands

Knowing all the commands isn't quite as good as knowing what they do. The following will describe what each command does and its default value.

Important things to know about your cheat console:

Noclip (out of the map)

These commands will make you know no bounds (literally):

noclip

This disables collision and physics, which allows you to fly through walls and in the air around the map. In addition, you can go out of bounds in areas you normally can't explore.

sv_noclipspeed 

This command allows you to change the speed at which you noclip. Careful as to not set the speed too high, as you can get yourself lost outside of the map.

God Mode

God mode. The command which makes you practically invincible. Or, to be more precise, it makes you untouchable.

god 1

Survivors do not take any damage, and will not be slowed by Special Infected attacks. The only way to lose is to somehow leave everyone hanging on a ledge. The only realistic scenario would have to be a player falling off a ledge and the AI evolutionarily joining the player as they try to rescue them.

Budget God Mode (Buddha)

In a nutshell, God mode's relative that is nicer.

buddha

It is somewhat similar to god mode in that you cannot die, but you still receive damage. However, if you aren't the last survivor alive, you'll still be incapacitated as per normal gameplay. If you are, then whenever you take a hit that'd deplete your health, it will be reset to 10 instantly, thus protecting you from dying or incapacitation. However, sometimes it can still kill after receiving damage rather than just incapacitation or restored HP, so it is not guaranteed to save you.

Stopping the Apocalypse (director_stop)

This command will stop the Director from spawning any Infected, giving you free range of the map without the added worry or irritants that are zombies and their bleating noises.

director_stop

To restart the Director, type in:

director_start

This will cause zombies to spawn normally.

A More (In)Tolerant Witch (z_witch_anger_rate)

z_witch_anger_rate 0.2

This command modifies the witches irritation rate, allowing anyone to get close to her for longer. You can also increase this so that the witch is really pissed.

Spawning in Props

Do you feel like the map doesn't have enough props? There's a solution for that.

cl_precacheinfo modelprecache

This command gives you an advanced list of items. After you choose what you want, you need to place it after the following:

prop_dynamic_create // creates prop with animation potential

prop_physics_create // creates prop with gravity, mass, and collision properties

Usurping Another Vessel (sb_takecontrol)

These commands allow you to play as another Survivor of your liking. No worries about legality; identity theft isn't an enforced crime anymore.

Type in this command to switch between Survivors.

sb_takecontrol

Entering this command while looking at another Survivor will switch to that one. If there are no Survivors directly on the crosshair, it will pick the one closest to it.

Put the name of a Survivor bot following the command to switch to that Survivor; for example, sb_takecontrol zoey will let you control Zoey.

Also, in online gameplay it is possible to change your designated Survivor at joining the game by opening the console and putting in:

jointeam 2 <name of bot>

It is possible also to do this when in mid-play, you just need to change your view to spectator:

spectate
jointeam 2 <name of bot>

Spawning In More (z_spawn)

These commands can be used to spawn in additional zombies. They will appear in front of you.

z_spawn tank 
z_spawn witch
z_spawn boomer
z_spawn smoker
z_spawn hunter
z_spawn common, z_spawn, z_spawn horde (the first two commands spawn a single common infected; the latter spawns a horde.)
z_spawn mob (Mobs last a LOT longer than the usual horde)

Making Infected "disappear" (kick X, z_kill)

To remove Specials, use the kick command, followed by the name of the special in question. For example, if a Jockey was riding you (no innuendo intended), type kick Jockey and he'll disappear instantly.

bind K "kick Tank; wait; kick Boomer; wait; kick Smoker; wait; kick Hunter"

This stops each command executing simultaneously, instead it waits at least one frame before parsing the next command.

When you try to kick a Hunter and they're still there, then there may be more than one Hunter on the map.

If you wish to remove the Common Infected and Witches, give them a threatening stare and type down z_kill. Any Common Infected and Witch that are under your crosshair will be killed instantly.

True Single Player

Without the console, literal single player is impossible as you are always accompanied by 3 AI survivors. With the console, you can remove your AI pals.

Kick francis

Counter Strike: Source Weapons (give X)

Type in give in the console, and then the item names will appear.

give smg_mp5
give sniper_awp
give sniper_scout
give rifle_sg552

These originally did no damage until entering a safe room with the weapons, however this was fixed when CS:S' weapons were added as official content globally in The Last Stand Update. However, CS:S weapons were available and functional before the update in Germany and Australia.

Instant Ammo Refill (impulse 101)

Type impulse 101 into the console, and your current ranged weapon will receive an ammo refill.

There's More Melee Weapons!

These are the melee weapons that are either made by individual authors or can be found in some custom campaigns & survial maps such as Suicide Blitz 2, Blood Tracks, Left 4 Evil Dead, Necropolis, Kink, Death Mountain, Deathcraft II, Redemption II, Dark Wood, Mellow Manor, Farewell Chenming, Session 9, The Bloody Moors, Fall in Death, TRAPPED, Helm's Deep Reborn, Energy Crisis, Helms Deep: Reborn, and The Scrap Yard. Some of them are either part of the maps, hidden in the map files, or can be downloaded as standalone VPKs.

give 2_handed_concrete
give aetherpickaxe
give aethersword
give arm
give b_brokenbottle
give b_foamfinger
give b_legbone
give bajo_roku
give bamboo
give barnacle
give bigoronsword
give bnc
give bottle
give boxing
give bow
give bt_nail
give bt_sledge
give btorch
give chains
give chair
give chair2
give cleaver
give cleaverfast
give combat_knife
give computer_keyboard
give concrete1
give concrete2
give custom_ammo_pack
give custom_shotgun
give dagger_water
give daxe
give dekustick
give dhoe
give didgeridoo
give doc1
give dshovel
give dsword
give dustpan
give electric_guitar2
give electric_guitar3
give electric_guitar4
give enchsword
give extbaton
give fishingrod
give flamethrower
give foot
give fubar
give gaxe
give ghoe
give gladius
give gloves
give gman
give gpickaxe
give great_sword
give gshovel
give guandao
give guitar
give hammer
give hammer_roku
give handax
give helms_anduril
give helms_hatchet
give helms_orcrist
give helms_sting
give helms_sword_and_shield
give hylianshield
give iaxe
give ihoe
give ipickaxe
give isword
give kanasaibo
give katana2
give kitchen_knife
give kukri
give lamp
give legosword
give leon_knife
give lightsaber
give lobo
give longsword
give long_sword
give m72law
give mace
give mace2
give mastersword
give mirrorshield
give mop
give mop2
give morning_star
give muffler
give nailbat
give old_cleaver
give oz_roku
give panic_chair
give paper_bat
give pickaxe
give ping_pong
give pipehammer
give pot
give queue
give riotshield
give rockaxe
give roku_bass
give roku_cymbal
give roku_guitar
give sabel
give scup
give scythe_roku
give sentry
give sh2wood
give shoe
give shotel
give slasher
give sledgehammer
give sokka_sword
give spickaxe
give spikedbat
give sshovel
give ssword
give stun_rod
give syringe_gun
give thrower
give tireiron
give tonfa_riot
give trashbin
give vampiresword
give wand
give water_dagger
give waterpipe
give waxe
give weapon_chalice
give weapon_morgenstern
give weapon_shadowhand
give weapon_sof
give woodbat
give wpickaxe
give wrench
give wshovel
give wsword
give wulinmiji
give zuko
give zuko_knife

Demo Weapons

Demo weapons have been left in the game.

These also work in the full game, with the exception of the grenade launcher:

give autoshotgun
give hunting_rifle
give health
give rifle
give pistol
give smg
give shotgun
give pain_pills
give first_aid_kit
give pipe_bomb
give molotov
give vomitjar
give propanetank
give gascan
GIVE LIFE

ent_create weapon_grenade_launcher

Dropping Molotovs/Pipe Bombs

Using this will immediately spawn a throwable under your feet whenever you use it. On your feet.

fire // drop a Molotov in the center of the character lighting you on fire, so move fast
boom // drop a Pipe Bomb in the center of the character ready to explode

How Many Zombies Would You Like?

By default, the game limits how many zombies are drawn at any given time. You can bypass this limit to get an absurd amount of zombies to spawn.

z_common_limit 30

By doing this, well, more zombies can be spawned in at one time. The default is 30, and for good reason. Crank it up any higher and you'll see why.

How about the amount of zombies in a given horde? Simple.

z_mob_spawn_min_interval_expert 90
z_mob_spawn_max_interval_expert 180
z_mob_spawn_min_size 10
z_mob_spawn_max_size 30

There are regular mobs, but there are also mega mobs.

z_mega_mob_spawn_min_interval 420
z_mega_mob_spawn_max_interval 900
z_mega_mob_size 50

What about the zombies themselves? They are too sluggish in reaction time and wander too little. Now no more.

z_must_wander 0
z_acquire_far_range 2500
z_acquire_far_time 5
z_acquire_near_range 200
z_acquire_near_time 0.5

Now the zombies can see you much farther, patrol the map, and react near instantly. Zombies rely on quantity, and to raise their quality? Be prepared.

So far, it's all about commons, but nothing touching the Special's. And luckily, we can make it so there are no shortage of Special's.

z_special_spawn_interval 45
z_exploding_limit 1
z_gas_limit 1
z_hunter_limit 1
z_minion_limit 3 // This limits the total number of special infected alive at a given time to 3, regardless of what combination that might be.

Walking around the map to trigger a horde is tiresome. Luckily, you can summon one on command.

director_force_panic_event

But if you want an endless horde... It's your call.

director_panic_forever 1

But you can't decide how you wanna play? Well here on the wiki, we were generous enough to assemble you one.

z_special_spawn_interval 45
z_exploding_limit 1
z_gas_limit 1
z_hunter_limit 1
z_minion_limit 9
z_spawn mob
z_spawn tank // you WILL be overrun with lots of Infected if you try this

Combine the last two commands together and try to beat a single level without any cheats or game-breaking mods. Or, better yet, don't and keep your sanity.

No One's Saving You Today (No More Rescues)

Do you want to be trapped in the level forever? You can.

rescue_distance 4500
rescue_min_dead_time 60

Deadlier Zombies (Modified Zombie Damage)

Expert too easy for you? Go ahead and amp it up.

hunter_pz_claw_dmg 10 
z_pounce_damage 5 // There's a delay of 1 second where a teammate
                     can knock it off and you don't take this damage
tongue_choke_damage_amount 10
z_hit_from_behind_factor 0.5 // If a zombie hits you in the back,
                                multiplies the damage done
z_witch_damage 100

But what about the environment and those unknown damage multipliers? That's also configurable.

inferno_damage 40 // Damage per second when getting flamed
survivor_extra_damage_ammo_factor 1.25  // Appears to multiply the overall amount of
                                           friendly fire damage. At zero, it does no
                                           damage, even on expert though a decimal with
                                           many places will still do a good chunk with
                                           the Auto Shotgun. Does not appear to change
                                           damage on Infected at all. TODO: test this
                                           more
z_gun_damage 10 // Melee damage done to doors, boxes, and the like, but not Infected

Faster Sprinting (survivor_walk_speed)

survivor_walk_speed 85 // For reference base, movement speed is 210 and base Infected speed is 250

Teleportation (warp_all_survivors, warp_to_start_area)

Should any of the survivors get lost, you can bring them to you.

Just don't send them to a tank.

warp_all_survivors_here   // Warp all survivors to the player's cursor
warp_all_survivors_to_battlefield // Warp all Survivors to the battlefield
warp_all_survivors_to_checkpoint // Warp all Survivors to the exit checkpoint
warp_all_survivors_to_finale // Warp all Survivors to the finale radio
warp_far_survivor_here // Teleport the farthest away Survivor to your cursor position
warp_to_start_area // Warp yourself to a Survivor spawn area

Versus For the Man With no Friends

NOTE: This has been patched, but if you go to the other "NOTE", you'll find away to fight the bots again.

The title might have been too harsh, but you can fight the bots themselves.

(This has been patched. This has been kept as an archive.)
sv_cheats 1
sb_all_bot_team 1
vs_max_team_switches 99 chooset
sb_unstick 0 // stops bots teleportingeam // or use "M" or whatever key you have assigned to team
change mp_gamemode versus

With this command, you can play versus mode with bots.

NOTE: This cheat has been patched. In order to do this, you must enter sv_cheats 1; mp_gamemode versus. You must then finish the level and you will switch teams afterwards. If you want the AI to play with you, enter mp_gamemode coop. The AI will then spawn other Infected to play with you. They won't make the best decisions, and you will likely be the only one killing anyone. You can also play survival mode by entering mp_gamemode Survival. You cannot use this method for Left 4 Dead 2, as mp_gamemode is not recognized by the Developer Console. You must enter map mapname Versus. For example, to play Versus Mode on The Hotel, you must enter "map c1m1_hotel Versus". This will allow you to play Versus for the entire campaign. The switchteams command is also not recognized, so you must enter "vs_maxteamswitches" and then set it to something big like 999. Often, you will spawn in on the second or third map as the wrong team, so you can still switch. Sometimes, you will even spawn in as a Spectator. You will have all AI teammates, unlike the first Left 4 Dead where playing Versus by yourself meant by yourself.

The Survivor Bots won't leave the safe room unless you enter "sb_all_bot_team 1". They will move through the level very fast, but they won't sit in the safe room for hours.

NOTE: With the release of The Sacrifice, the sb_all_bot_team command is no longer recognized in Left 4 Dead 2, and has been renamed to sb_all_bot_game, which will only work with the command line option +allow_all_bot_survivor_team 1. This is not a console command. This can be added by right-clicking on the game in Steam, selecting "properties," clicking "Set launch options," and adding it there.

If all of those don't work, try this:

sv_cheats 1

sb_all_bot_team 1
sb_all_bot_game 1

If that doesn't work:

director_no_human_zombies 0

director_force_versus_start

Then hit the team change key (M by default). You can choose if you like to be an Infected or Survivor.

LAN game

To play offline on a local LAN (works with Steam in offline mode and you only need one Steam account)

  1. Set launch option -console
  2. Launch the game on server and clients
  3. On the server, bring up the console (~) and type:
sv_lan 1 
sv_allow_lobby_connect_only 0
map

Then without hitting enter after "map", you will see a list of available maps. typing the first letter of the map name will give you more choices.

  1. Wait for the game to start
  2. Vote for the difficulty level you want.
  3. Input net_start to check the IP
  4. On the clients, bring up the console and type the following, replacing IP_ADDRESS with the servers LAN IP address:
connect IP_ADDRESS

Bile/Rock Target Practice

With this command, you can practice Vile and Rock throwing as a Special Infected. Now you're prepared to take on the survivors.

sv_cheats 1 // You'll need this for all the commands
map l4d_airport03_garage Versus // This level provides an extremly good practice environment, but you should try other maps, too.
sb_all_bot team 1 // Without this, the game will shut down because there aren't players on the other team.
sb_stop 1 // Without this, the Survivors will get in the way of your game; best to put this cheat in before sb_all_bot_game 1

Now you've got those stupid bots out of the way, you can begin your practice. Lets start with throwing some rocks.

z_spawn tank
z_tank_rock_debug 1 // Creates a small cube where your rock hits, helps get an idea of where your throws land
z_tank_throw_interval 1 // Makes the delay between throws nonexistent; just dont get used to throwing rocks like a submachine gun
z_spawn boomer // These provide excellent target practice

Now you've mastered rock throwing, you can do the same with bile.

z_spawn boomer
z_vomit_debug 1 // Similar to z_tank_rock_debug 1, only it creates lines to show where the puke hitboxes travel. In other words, shows where you barf)
z_vomit_interval 1 // What progress do you expect to make only
                      puking every half-minute? Now you can do
                      it every second. Again, don't get used to
                      puking like a submachine gun

Lighting to kill your eyes or to save them

Is the map too dark, or too bright? Now, you can change that.

Pitch Black Mode

To fully embrace the nightmare and to fight the dark, this command is all up for that.

sv_cheats 1 
fog_override 1 
fog_enable 0

It disables the white background fog to play the game without the unrealistic lighting effect. This was the original way the game was designed per the development team: Left 4 Dead takes place in a variety of dimly lit night-time environments. Because of this, play testers weren't able to see zombie silhouettes in the mid-ground and background. Because of this, they were repeatedly getting mobbed. While sudden zombie attacks were unarguably scary, they were also frustrating—players weren't being given the information they needed to react. They wanted that "Here they come!" moment, and we weren't giving it to them. The solution was light-colored fog. While not as realistic-looking as actual fog in some settings, it meant play testers could see attackers in the distance. Once they were able to anticipate attacks, play testers started to have a much better time."

in L4D2, disabling fog also disables rendering of water, leaving empty spaces everywhere where there used to be water.

Full Bright

If you wish to explore the map in full daylight mode use this.

mat_fullbright 1
No Textures
 mat_fullbright 2

This will cause the models in-game to not be textured. Why would you do this?

Flashlight

Alternatively, if you wish to use your flashlight to see the difference between daylight and normal map lighting, use the following commands:

r_flashlightconstant 1 // select constant attenuation instead of linear or quadratic light fall off.
r_flashlightfov 179 // default is 53 degree cone.
r_flashlightfar 9999

Better screenshots

To hide crosshair and other overlay elements:

sv_cheats 1
hidehud 4

0 returns to normal. 2 and 3 toggle certain elements on/off. Even though it does not look like you can change weapons, cl_drawhud 0 might help you more.

Change Player Name

This allows a player to use a name different from their Steam name.

setinfo name example

This allows the name change to be bound to a key as well. Additionally, this is temporary and only lasts on the game you are on until it's finished or you leave. To use names that have spaces in them, surround the whole thing in quotes, so if you wanted Example Name as your temporary name, you would type:

setinfo name "Example Name"

Kill

using "kill" will kill the target player immediately. To kill a player, type "kill [player's name]". But the name must be the player's NPC name. So, to kill Bill, type "kill Bill". You do not need to type the whole name; to kill Louis, for instance, you can simply type "kill L" . This won't work if someone else has L at the beginning of their name. Note that this is not efficient when hordes of tank spawn, so try "kick Tank" instead.

Replacing Kill with "explode" works too.

Respawn

Enter "respawn" to respawn your character.

Additionally, you can type "respawn_all" to resurrect bots and other dead players.

Third-person

"thirdperson" or "thirdpersonshoulder" to get a view from your shoulder.

firstperson
thirdperson
thirdpersonshoulder

Note: By default, the crosshair in third person shoulder mode isn't aligned properly, so all of your shots will go either left or right of the crosshair, depending on the distance.

Ignite

The command burn gives you the fire overlay below your screen and the ability to light movables by jumping on them. This command does no self-damage.

Speaking Character

Type "Vocalize Response" to have your character speak. Most people have been observed as (over)using "Vocalize Playerdeath". Nearly all of the commands for this command start with "player." An update on February 19th, 2010 has disabled this command for Left 4 Dead 2, but this is still available in the original. This does not require the use of "sv_cheats 1". Some players have made their own radial voice menus (x and z key commands) as an add-on in order to still have that feature in Left 4 Dead 2.

No Special Infected

Enter: director_no_specials 1. In finales, there might still be certain Specials that will still spawn, however, you can get rid of them by kicking them out. For example, "kick tank" or "kick hunter," you can bind the kick command to a key so when they show up, press the key you bound it to and they will disappear.

Infinite Ammo

To have infinite grenades, ammo, or chainsaw fuel, just type in console Sv_infinite_ammo 1. Or if you just want it for your primary weapon, type Sv_infinite_primary_ammo 1.

Items Spawn Chance

To visually see all items that spawned (yellow), and that could possibly spawn in the map (white), use

director_debug_scavenge_items 1

General AI status

To see the general status of the AI Manager (Director), use:

director_debug 1

Left 4 Dead 2 Commands

To activate cheats within Left 4 Dead 2 start a map using the map command. Achievements will be turned off, however. Most commands from Left 4 Dead work in Left 4 Dead 2, but some have been removed:

team_desired
survivors_walk_speed

If you use the command z_spawn mob in Left 4 Dead 2, some of the Uncommon Infected that appear in that level will be mixed in with the regular Common Infected. The new weapons in Left 4 Dead 2 can be acquired using the following commands.

As all of the original Left 4 Dead weapons appear in Left 4 Dead 2, you can spawn all of them (except for the M1911 Pistol, which got replaced with P220s and Glocks!)

NOTE: Some melee weapons can only be spawned in certain campaigns. For instance, Crowbars cannot be spawned in "Swamp Fever" unless you edit the text files in your games directory to be able to do so.

give weapon_grenade_launcher // some people may have to rely on '''ent_create weapon_grenade_launcher'''
give rifle_desert // Gives the Combat Rifle
give rifle_ak47
give pistol_magnum
give shotgun_chrome
give shotgun_spas
give sniper_military
give smg_silenced
give vomitjar // Bile bomb
give defibrillator
give electric_guitar
give machete
give frying_pan
give katana
give rifle_m60

You can also use the console to give your weapon any of the three upgrades in Left 4 Dead 2.

upgrade_add LASER_SIGHT
upgrade_add explosive_ammo
upgrade_add INCENDIARY_AMMO

The explosive ammo can be modified with the following commands. Setting one of the force commands too high will result in the game crashing.

upgrade_explosive_bullet_force // explosive force for all weapons other than shotguns
upgrade_explosive_slug_force // explosive force for shotguns
upgrade_show_explosive_ammo_radius // changing to 1 causes a sphere to be shown whenever an explosive shot is fired, showing its area of effect

The Special Infected new to Left 4 Dead 2 can also be spawned:

z_spawn spitter
z_spawn jockey
z_spawn charger


Playing any Mutation

The following commands will allow you to play any of the revealed Mutations with bots.

map <map file name> mutation#
//Replace # with a number:
mutation1 = Last Man On Earth
mutation2 = Headshot!
mutation3 = Bleed Out
mutation4 = Hard Eight
mutation5 = Four Swordsmen
mutation6 = Nothing
mutation7 = Chainsaw Massacre
mutation8 = Iron Man
mutation9 = Last Gnome On Earth
mutation10 = Room For One
mutation11 = Healthpackalypse!
mutation12 = Realism Versus
mutation13 = Follow the Liter
mutation14 = Gib Fest
mutation15 = Versus Survival
mutation16 = Hunting Party
mutation17 = Lone Gunman
mutation18 = Bleed Out Versus
mutation19 = Taaannnkk!
mutation20 = Healing Gnome
community1 = Special Delivery
community2 = Flu Season
community3 = Riding My Survivor
community4 = Nightmare
community5 = Death Door
community6 = Confogl
rocketdude = Rocket Dude
tankrun = Tank Run

It is recommended that sb_all_bot_game is set to 1 if playing a competitive Mutation alone as the game will disconnect due to lack of players.

*Notice* Mutation called "Versus Survival" is playable on main menu.


Realism mode

Like with Survival mode, playing a single-player Realism mode in Left 4 Dead 2 is as follows:

map (map) realism


Force Uncommon Zombies

Type

z_forcezombiemodelname common_male_(Infected);z_forcezombiemodel 1;z_spawn

Replace (Infected) with the names below:

ceda = Hazmat CEDA zombies from Dead Center.
jimmy = Jimmy Gibbs zombie from Dead Center's last level.
fallen_survivor = The Fallen Survivor from The Passing.
clown = Clowns from Dark Carnival.
mud = Mud-Men from Swamp Fever.
riot = Riot Cops from The Parish.
worker = Workers from Hard Rain.

If you use the Fallen Survivor, you might want to use these:

z_fallen_kill_suppress_time 1
z_fallen_max_count 30

Complete list of commands

See: Complete list of console commands

Bots copy actions

You could manipulate the actions your CPU-controlled allies and the CPU-controlled Special Infected (Special Infected who are playable in Versus Mode). Every movement you make will be followed by these bots, thus negating their A.I. functionality. These are all applied with the console command bot_mimic 1. The command is quite self explanatory - every movement you make affects the movement of the bots, you shoot, the bots shoot (in the case of Special Infected, using their Special abilities is the equivalent of shooting), you walk forward, they also walk forward. This is a strategy if you want to direct the actions of the bots around you. Such as when you are ridden by a Jockey, this console command allows you to control both your player and the Jockey itself!