sv_cheats 1 before cheats such as god 1, noclip or z_spawn tank. Achievements are disabled while cheats are on.L4D2 console commands work on the PC and Mac versions through Valve’s Source engine console. Turn on the developer console in the options menu, press tilde, type sv_cheats 1 and then any cheat command. Most spawn and director commands only run in a single player or private lobby.
Commands on this page were checked against GameRevolution, TheGamer, the commands.gg Left 4 Dead 2 list and Steam community threads. Source-engine fans can also read the Half-Life 2 console commands and the wider all game cheat codes.
How to open the console in Left 4 Dead 2
- From the main menu, open Options, then Keyboard/Mouse.
- Set Allow Developer Console to Enabled.
- In a game, press the tilde or backtick key to open the console.
- Type
sv_cheats 1and press Enter, then run your cheat commands.
If the key does nothing, add -console to the game’s Steam launch options. You can then bind a key with bind F12 toggleconsole. Sources describe PC and Mac on Steam only; no console is documented for Xbox 360.
sv_cheats is 0, which is the default.How L4D2 console commands work
Type the command, a space and the value, then press Enter. Example: map c1m1_hotel loads the first Dead Center map. Toggles use 1 for on and 0 for off. Some commands, such as noclip and kill, need no value.
L4D2 console commands list
Cheats and player commands (need sv_cheats 1)
| Command | What it does |
|---|---|
sv_cheats 1 |
Enables cheat commands. Default is 0. |
god 1 |
Invincibility. Grabs from special infected can still affect you, per Steam players. god 0 turns it off. |
buddha 1 |
Like god mode but you still take damage. |
noclip |
Fly through walls and the level. Enter again to switch off. |
sv_infinite_ammo 1 |
Unlimited ammunition. |
give health |
Restores full health. |
give ammo |
Refills ammo for your weapon. |
impulse 101 |
Gives ammo for the primary weapon. |
give <weapon> |
Gives a weapon or item, for example give autoshotgun, give pistol, give molotov or give pipe_bomb. |
Spawning infected and the AI Director
| Command | What it does |
|---|---|
z_spawn tank |
Spawns a Tank at your crosshair. Other types: boomer, hunter, smoker. |
z_spawn mob |
Spawns a horde. |
director_stop |
Stops wanderers, mobs, specials and bosses from spawning. Existing infected stay. |
director_start |
Starts the director again after a stop. |
director_no_mobs 1 |
Disables mob rushes. |
director_force_panic_event |
Triggers a single panic event. |
director_panic_forever 1 |
Endless panic event until set back to 0. Requires sv_cheats. |
z_common_limit 30 |
Sets how many common infected can exist at once. Very high values may crash the game. |
z_health / z_speed |
Change common infected health and speed. Example from TheGamer: z_speed default is 250. |
z_tank_health <number> |
Sets Tank maximum health. |
Camera and bots
| Command | What it does |
|---|---|
thirdperson / thirdpersonshoulder |
Switch to a third person camera. Use firstperson to return. |
sb_friendlyfire 1 |
Lets bots deal friendly fire (bots only). |
kick <name> |
Removes a bot or infected by name, for example kick Ellis. |
ent_remove |
Removes the object or infected you are aiming at. |
How to enable cheats and use sv_cheats in L4D2
Run sv_cheats 1 first, because most commands above are cheat-flagged. Start a campaign from the menu, or load a level with map c1m1_hotel or map c1m2_streets, then open the console. Set sv_cheats 0 to turn cheats off.
How to spawn zombies, Tanks and hordes
Aim at the spot you want and run z_spawn tank, or use z_spawn mob for a horde. To fight less, use director_stop to halt new spawns, then clear any remaining infected. To fight more, director_panic_forever 1 keeps horde events running.
Multiplayer, mods and server notes
The commands.gg list says commands work in single player and multiplayer, but cheats need to be enabled on the server. Workshop admin menus are another route; Steam players suggest mods that add an in-game admin menu, opened with a key. Practice shooters elsewhere have similar setups, as in the CS2 practice console commands. Other Source engine games with the same console basics include the Black Mesa console commands.
Why L4D2 console commands are not working
- The console will not open: enable Allow Developer Console in Options, or add -console to the launch options.
- A command is ignored or says it is a cheat: run
sv_cheats 1first, in a game you host. - You cannot cheat in someone else’s lobby: only the host can enable sv_cheats.
- Infected still appear after director_stop: it stops new spawns only, so existing ones must be killed.
- The game crashes after z_common_limit: the value was too high. Lower it.
FAQ
How do I open the console in Left 4 Dead 2?
Open Options, Keyboard/Mouse, enable Allow Developer Console, then press tilde in game. If that fails, add -console to the Steam launch options.
What are the best L4D2 console commands?
Common picks are sv_cheats 1, god 1, noclip, sv_infinite_ammo 1, z_spawn tank, director_stop and director_panic_forever 1. Cheat commands need sv_cheats 1 first.
How do I spawn a Tank in Left 4 Dead 2?
Enable cheats with sv_cheats 1, aim where you want it and run z_spawn tank. The Tank appears at your crosshair.
How do I stop zombies spawning in L4D2?
Run director_stop with sv_cheats 1 on. It stops mobs, specials and bosses but does not remove infected that already exist.
Do cheats disable achievements in L4D2?
Steam players report that using cheats disables achievements, so use them in a separate session if you care about unlocks.
Does L4D2 have console commands on Xbox or PS3?
The sources describe the developer console only for PC and Mac on Steam. No console is documented for Xbox 360.
How do I give myself weapons in L4D2?
Use give followed by the item, such as give autoshotgun, give pistol or give first_aid_kit. Run sv_cheats 1 first. Use give health to restore health.
For a related title, read the Deadlock console commands guide. If you also play Dying Light, see Dying Light console commands.
More cheat guides
- STALKER Shadow of Chernobyl Console Commands: What Works
- Code Vein Console Commands: Is There a Console on PC?
- Hello Neighbor Console Commands: Alpha 2 Console and Cheats
- Borderlands 3 Console Commands: Mods and Save Editors
- Black Mesa Console Commands: Enable Console, God, Give, NPCs
- CS2 Console Commands for Practice: Cheats, Bots, Grenades
- All Shooter and Action cheat codes
- All game cheat codes
Sources
- GameRevolution – Left 4 Dead 2 Developer console cheats
- TheGamer – Left 4 Dead 2 cheats
- commands.gg – Left 4 Dead 2 console commands
- Steam Community – Left 4 Dead 2 discussions
Leave a Reply