Games

Left 4 Dead 2 Console Commands and Cheat Codes Guide

Left 4 Dead 2 has no screen for entering promo codes. When people say "cheat codes," they mean commands typed into the developer console in the PC (Steam) version of the game. These commands never expire; you just need to open the console and enable cheat mode in a game you host yourself. Below, we've grouped the most useful commands by category.

Opening the console and enabling cheat mode

  1. From the main menu, go to Options > Keyboard/Mouse and set Allow Developer Console to Enabled.
  2. In game, press the ~ key (the one right below ESC) to open the console.
  3. Type sv_cheats 1 and press Enter. The console will show a line confirming that sv_cheats is set to 1.
  4. You can now type the commands below one by one. To turn cheats off completely, type sv_cheats 0.

Depending on your keyboard layout, the console key may show a different character. If the console won't open, right-click the game in your Steam library, go to Properties > Launch Options, and type -console; the game will then start with the console open. If you type bind p toggleconsole in the console, you can open it with the P key from then on.

Basic cheat commands

CommandEffect
god 1Makes the whole team invincible. Type god 0 to turn it off.
buddha 1You still take damage, but you can't die.
noclipLets you fly freely and pass through walls. Type it again to turn it off.
sv_infinite_ammo 1Gives you unlimited ammo.
give healthFully restores your health.
give ammoRefills your ammo.
impulse 101Gives ammo to your primary weapon.
killKills your character; useful if you get stuck somewhere.
thirdpersonshoulderSwitches the camera to an over-the-shoulder third-person view.
thirdpersonMoves the camera behind your character.
firstpersonReturns the camera to the normal first-person view.

Weapon commands

CommandWeapon
give pistolPistol
give pistol_magnumMagnum pistol
give smgSubmachine gun (SMG)
give smg_silencedSilenced SMG
give pumpshotgunPump shotgun
give shotgun_chromeChrome pump shotgun
give autoshotgunAuto shotgun
give shotgun_spasSPAS shotgun
give rifleM16 assault rifle
give rifle_ak47AK-47
give rifle_desertCombat Rifle (three-round burst)
give hunting_rifleHunting rifle
give sniper_militaryMilitary sniper rifle

Melee and item commands

CommandItem
give katanaKatana
give macheteMachete
give frying_panFrying pan
give electric_guitarElectric guitar
give tonfaNightstick
give chainsawChainsaw
give first_aid_kitFirst aid kit
give pain_pillsPain pills
give adrenalineAdrenaline shot
give molotovMolotov cocktail
give pipe_bombPipe bomb
give vomitjarBile jar
give gascanGas can
give propanetankPropane tank
give oxygentankOxygen tank

Weapon upgrade commands

CommandEffect
upgrade_add laser_sightAttaches a laser sight to the weapon in your hands.
upgrade_add incendiary_ammoGives incendiary ammo; zombies you hit catch fire.
upgrade_add explosive_ammoGives explosive ammo.

Zombie and special infected spawn commands

The creature you spawn appears at the spot your crosshair is pointing to.

CommandEffect
z_spawn tankSpawns a Tank.
z_spawn witchSpawns a Witch.
z_spawn hunterSpawns a Hunter.
z_spawn smokerSpawns a Smoker.
z_spawn boomerSpawns a Boomer.
z_spawn chargerSpawns a Charger.
z_spawn jockeySpawns a Jockey.
z_spawn spitterSpawns a Spitter.
z_spawn mobSends a horde of zombies.
z_spawn zombieSpawns a single common zombie.

Director and bot commands

In Left 4 Dead 2, an AI called the AI Director controls zombie hordes and when special infected arrive. You can control it with these commands:

CommandEffect
director_stopStops new zombies, special infected, and Tanks from spawning.
director_no_mobs 1Turns off zombie hordes.
director_panic_forever 1Makes the panic event never end.
z_common_limit [number]Sets the maximum number of common zombies that can exist at once.
z_tank_health [number]Sets the Tank's health.
sb_friendlyfire 1Allows bot teammates to deal damage with friendly fire.
sb_openfireBot teammates fire nonstop.
boomDrops an active pipe bomb at your feet.

Map start commands

To enable cheat mode, you need to start the game on your own server; the easiest way is the map command in the console. The first map of each campaign:

CampaignCommand
Dead Centermap c1m1_hotel
Dark Carnivalmap c2m1_highway
Swamp Fevermap c3m1_plankcountry
Hard Rainmap c4m1_milltown_a
The Parishmap c5m1_waterfront
The Passingmap c6m1_riverbank
The Sacrificemap c7m1_docks
No Mercymap c8m1_apartment
Crash Coursemap c9m1_alleys
Death Tollmap c10m1_caves
Dead Airmap c11m1_greenhouse
Blood Harvestmap c12m1_hilltop
Cold Streammap c13m1_alpinecreek

Why aren't the cheats working?

  • You're not on your own server: sv_cheats can only be enabled on the server of the player who hosts the game. If you get a "Can't use cheats now" warning, return to the main menu, start a map yourself with a command like map c5m1_waterfront, and type sv_cheats 1 again.
  • Achievements are disabled: You can't earn Steam achievements while cheat mode is on. If you're chasing achievements, try cheats in a separate game.
  • Type the command in full: When copying, don't paste the description text into the console; type only the command itself.
  • If the console won't open: Check the Allow Developer Console setting in Options and the -console launch option.

Since the game has no timed code system, don't trust lists shared as "October 2026 codes" or "expired codes." All the cheats in Left 4 Dead 2 come down to the console commands above.

NE
Editör
The Nedese editorial team covers competitive gaming guides, patch notes, and strategy breakdowns across all major titles. With over 15 years of coverage, our writers combine deep game knowledge with practical in-match experience.
Reader Comments
Discussion
0 comments
No comments yet. Be the first to share your thoughts.
Write a Comment
Did you find this article helpful? Share your thoughts with other readers.
Community
Want to showcase your own server?
Add your community-run server to our directory and reach more players. Join our Discord to connect with the community, or submit your server now.
Submit Your Server