Left 4 Dead 2 Console Commands for PC

Published by

God mode and health

CheatCommandEffect
God modePCgod 1Makes you and your team invincible; enter it again with a 0 to turn off
Buddha modePCbuddha 1You take damage but can't die; enter it again with a 0 to turn off
Restore healthPCgive healthFully restores your health
Give pain pillsPCgive pain_pillsAdds a bottle of pain pills to your inventory
Enable cheatsPCsv_cheats 1Allows cheat commands on your current map or server
First aid kitPCgive first_aid_kitGives you a first aid kit
DefibrillatorPCgive defibrilatorGives you a defibrillator
AdrenalinePCgive adrenalineGives you an adrenaline shot
Kill yourselfPCkillSets your health to 0

Weapons and ammo

CheatCommandEffect
Infinite ammoPCsv_infinite_ammo 1Removes the need to reload
Refill ammoPCgive ammoRefills the ammo for the weapon you're holding
Give molotovPCgive molotovAdds a molotov cocktail to your inventory
Give pipe bombPCgive pipe_bombAdds a pipe bomb to your inventory
Infinite primary ammoPCsv_infinite_primary_ammo 1Unlimited ammo for your primary weapon only
AK-47PCgive rifle_ak47Gives you an AK-47
M60PCgive rifle_m60Gives you an M60
Automatic shotgunPCgive autoshotgunGives you the automatic shotgun
AWPPCgive sniper_awpGives you the AWP sniper rifle
Grenade launcherPCgive weapon_grenade_launcherGives you the grenade launcher
ChainsawPCgive chainsawGives you a chainsaw
KatanaPCgive katanaGives you a katana
Boomer BilePCgive vomitjarGives you a bile jar

Movement

CheatCommandEffect
NoclipPCnoclipFly and pass through walls, floors and enemies

Zombies and director

CheatCommandEffect
Stop all spawnsPCdirector_stopStops wanderers, mobs, specials and bosses from spawning
Restart spawnsPCdirector_startTurns spawning back on after director_stop
No mob rushesPCdirector_no_mobs 1Turns off mob rushes
Force a panic eventPCdirector_force_panic_eventStarts a panic event right away
Endless panicPCdirector_panic_forever 1Panic never ends until you set it back to 0
Freeze botsPCnb_stop 1Freezes all bots; set it to 0 to unfreeze

Maps and teleporting

CheatCommandEffect
Load a mapPCmap c1m1_hotelLoads a map by its map code, e.g. Dead Center Hotel
Survivors to youPCwarp_all_survivors_hereTeleports all survivors to where you are
Survivors to checkpointPCwarp_all_survivors_to_checkpointTeleports all survivors to the current checkpoint
Back to startPCwarp_to_start_areaTeleports you to the start of the current map
Take control of a survivorPCsb_takecontrolSwitches you to the survivor under or nearest your crosshair

Camera and world

CheatCommandEffect
Slow motionPChost_timescale 0.5Runs the game at half speed; 2 runs it twice as fast
Full brightnessPCmat_fullbright 1Lights every area of the map at full brightness
Third personPCthirdpersonSwitches to the third-person camera
Over-the-shoulder viewPCthirdpersonshoulderSwitches to an over-the-shoulder third-person camera
First personPCfirstpersonSwitches back to the first-person camera

A code here did not work? Tell us and it gets rechecked. Report a code

How to enter cheats in Left 4 Dead 2

PC

  1. Load an offline campaign or versus-with-bots game.
  2. Turn on Allow Developer Console in Options Keyboard/Mouse.
  3. Press ~ to open the console, type sv_cheats 1 and press Enter.
  4. Type the command and press Enter.

How to enable developer mode in Left 4 Dead 2

  1. Go to Options > Keyboard/Mouse and set Allow Developer Console to Enabled.
  2. From the main menu, press the ` or ~ key to open the console.
  3. Type map followed by a map code, for example map c1m1_hotel, to start your own local game.
  4. Type sv_cheats 1 and press Enter, then enter the commands.

Commands.gg: Left 4 Dead 2 cheats, complete list and guide for PC

Can you use these cheats in multiplayer?

Only in a game you host yourself. The game asks you to start your own listen server with the map command before it accepts sv_cheats 1, and TheGamer says god mode and noclip are treated as cheats on many public servers and can get you banned. Use them in a local campaign or a versus game with bots. TheGamer: 10 Left 4 Dead 2 Console Commands

Compatibility notes

Which releases these codes apply to, and where one behaves differently. Each note links to the source that documents it.

FAQ

How do you open the console in Left 4 Dead 2?

Turn on Allow Developer Console in Options Keyboard/Mouse, then press the tilde (~) key during a game.

Is there a god mode command in Left 4 Dead 2?

Yes. Type sv_cheats 1 then god 1 to make you and your team invincible; enter god 0 to turn it off.

Do Left 4 Dead 2 console commands disable achievements?

Yes. Turning on sv_cheats 1 disables achievements for that session.

Do the console commands work online?

No. sv_cheats 1 only works offline, in single-player campaigns or versus games with bots.

Is there an infinite ammo command in Left 4 Dead 2?

Yes. sv_infinite_ammo 1 removes the need to reload.

Part of

References: TheGamer: 10 Left 4 Dead 2 Console Commands; Commands.gg: Left 4 Dead 2 cheats, complete list and guide for PC; Steam Community: Left 4 Dead 2 thread on sv_cheats after joining a server; Steam Community: Left 4 Dead 2 thread on "start listen server to enable cheats".