Talk:Console commands

Excellent job on this page, it made me laugh a few times and it was far more informative than the wall of text that is the PDF (although the PDF is ultimately more useful).

Hah, kind of hard to compete with a reference manual for breadth. But I figure I'll eventually extract every setting that's actually useful out of there. On the other hand, I turn a blind-spot to "stupid" commands like noclip, god, buddha, and sv_infinite_ammo, so it will never be complete if I'm left to my own nefarious devices. I cheat to make games harder! Denkkar 00:09, 18 November 2008 (UTC)

Is possible to spawn enemies with something like a Gameshark on the 360 version?--76.208.58.137 23:47, 29 November 2008 (UTC)

okay, I know that i'm not supposed to "necropost," but there are no Gamesharks for the 360, due to copyright or something.. Waterga74 02:16, 31 March 2009 (UTC)

Special boss infected
z_special_spawn_interval 45 z_exploding_limit 1 z_gas_limit 1 z_hunter_limit 1 z_minion_limit 3 It seems that these commands only control the boss infected during Versus mode, as they do nothing in single player, or do the opposite of what you think they would. I set the spawn interval to 6,000 and all the rest to 0, and I seemed to get MORE boss infected than you would expect. For example, two tanks on the apartment map instead of the usual 0 or 1. That could have been the AI Director being extra devious, though, so I don't know if it was the result of tampering with the numbers or not.

What I was trying to do was remove the boss infected and increase the amount of common infected and panic events to make it more like your typical zombie movie, but I couldn't prevent the boss infected from showing up on single player. All I managed was getting mauled by 500 zombies and then squished by a tank, or three out of four survivors being incapped by smokers and hunters. If anyone knows of any commands to disable boss infected, it would be most appreciated. Thanks! --MadDawg2552 16:44, 22 February 2009 (UTC)

um.. I think It was..

director_no_bosses 1

Waterga74 20:03, 22 March 2009 (UTC)


 * Nope. I tested it and it only removes Tanks and Witches (Tanks still appear during the Finale).  Boomers, Hunters, and Smokers still appear.  It's not a big deal because they add some variety to the endless horde.  I just toned down the number of regular zombies and it works out fine.  It's amazing how different people play when they know there is no end to the zombies and they don't have to worry about Tanks or Witches.  --MadDawg2552 14:32, 27 March 2009 (UTC)

I think I saw something like

director_no_specials

once... try setting that to 1

Waterga74 18:02, 4 April 2009 (UTC)

Cheats on 360??!?!
Is it possible to use these cheats on the 360 version using a computor keyboard that has a USB attachement? And if so a very clear explanation on how would be much appreciated. Now, GO KILL ZOMBIES!!!!!!!!!!!!!

No... I don't think there ever has been for the 360 for any games... Try buying the PC version Akkryls 12:12, 7 March 2009 (UTC)

Pitch Black version
Did anyone find that this cheat doesnt work for them? Cause it didn't work for me.... Waterga74 19:58, 22 March 2009 (UTC)

z_spawn_commands
hello, i tried the z_spawn commands on 05/31/09 and they don't work

console: sv_cheats 1 z_spawn boomer

no boomer spawned. maybe you should check this.

Console is non-existent in European version
I've tried forever on my European copy of L4D. I can't bring the console up. - Cid SilverWing

Make sure the console itself is enabled. You'll find it on one of the Option menu's.

play solo with no bosses

 * make a custom.cfg in cfg/ folder
 * then put this in it:


 * sv_cheats 1
 * director_no_bosses 1
 * director_no_specials 1
 * director_no_survivor_bots 1
 * director_no_mobs 1


 * then "exec custom" in the console at the main menu
 * i succesfully remove all kind of bosses including the mobs with it


 * it's suitable 4 someone who wants to take an easy walk & sightseeing the zombie town alone
 * i guess :D

Versus mode 4 people with no friends
Is anybody having trouble with trying the versus mode cheats. My console always says that it does not recognize the commands vs_max_team_switches or mp_gamemode... Any ideas?--Donuthead7310 01:34, September 28, 2009 (UTC)

All single player versus console codes have been patched by Valve. Why? I don't know. They don't want people training and getting good at the Infected? :P Seemed silly to me. Jo the Marten ♠  ( Shriek )  ಠ_ಠ  03:18, September 28, 2009 (UTC)

Oh well. Thanks anyways!--Donuthead7310 19:16, September 28, 2009 (UTC)

Left 4 Dead 2 Demo Console
Does anybody know how to access it?i can enable it but i cant activate cheats. I turn on sv_cheats 1 but it says i need to exit to the name menu and start a listen server. What does all of that mean?