Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Left 4 Dead 2

From PCGamingWiki, the wiki about fixing PC games
Revision as of 11:17, 26 February 2012 by Zazaodh (talk | contribs) (Removed Introduction, as game synopsis are not wanted on the wiki - as per Our Goals.)

Console Commands

Games running on the source engine can utilize Source Engine Console Commands for various tasks. To use the Console you need to enable it first by going to options -> Keyboard/Mouse -> Allow Developer Console and change it to enabled. To open the console command window press the tilde key in the upper left hand corner of your keyboard (`~). Some console commands require that the server has sv_cheats set to 1 in order to be allowed.

Common Commands

This is a list of common commands that do not require the use of sv_cheats


  • bind "key" "command(s)": This binds a command(s) to the set key
  • chooseteam: Allows you to change team in versus
  • cl_colorblind: Set to 1 for high contrast crosshairs. Set to 2 for specific color changes intended to help common types of color blindness.
  • cl_showfps "0-2": Displays the current FPS (0 = off, 1 = real time, 2 = average over the past few seconds)
  • cl_crosshair_alpha "0-255": Set the alpha value of your crosshair
  • cl_crosshair_blue "0-255": Set the blue value of your crosshair
  • cl_crosshair_green "0-255": Set the green value of your crosshair
  • cl_crosshair_red "0-255": Set the red value of your crosshair
  • cl_crosshair_thickness "#": Set the thickness of your crosshair
  • cl_drawprogressbar "0-1": Turn healing progress bar on and off
  • cl_fov "#": Sets the field of view
  • cl_showhelp "0-1": Turns hints on and off
  • clear: clears console command window
  • differences: shows convars that are not at their default values
  • exit: Closes the game
  • help "command":Displays information about a certain command
  • retry: Tries to reconnect to current server

Common Commands that require sv_cheats

To turn on sv_cheats open the console on the main menu and type "map" "mapname" (without the quotes) then once the map is loaded type sv_cheats 1 into the console. Note this will prevent you from earning achievements until you restart the game.


  • adrenaline_duration "#": How long the effects of adrenaline lasts (default is 15.0)
  • adrenaline_run_speed "#": How fast one runs while under the effects of adrenaline (default is 260)
  • buddha "0-1": Take damage but will not die
  • cl_drawhud "0-1": Turns hud on and off
  • give "item name": Gives you the item (example "give rifle" will spawn the tier 2 rifle)
  • givecurrentammo: Gives you ammo for your current weapon
  • god "0-1": Makes you invincible
  • firstperson: Changes view to firstperson
  • map "mapname": Changes map
  • thirdperson: Changes view to thirdperson
  • thirdpersonshoulder: Changes view to thirdperson from the shoulder

Director Commands

These all require sv_cheats to be on


  • director_no_bosses "0-1": If set to 1 bosses will not spawn
  • director_no_mobs "0-1": If set to 1 mobs will not spawn
  • director_no_specials "0-1": If set to 1 special infected will not spawn
  • director_force_panic_event: Starts a panic event
  • director_force_tank: Forces a tank to spawn
  • director_force_witch: Forces a witch to spawn
  • director_panic_forever: Endless panic event
  • director_stop: Stops the director from spawning enemies
  • director_start: The director will resume spawning enemies

Spawning the Leaker a cut Special infected

The Leaker was to be a new special infected that caught survivors on fire by committing suicide near them. However it was cut in favor of Spitter. The Leaker is quite buggy as it was never meant to be in the final version of the game and as such does not take damage other then from itself during suicide.

List of commands in the order they must occur:


  • sv_cheats 1
  • boomer_leaker_chance 100
  • z_spawn boomer

Creating your own CFG and running it

A CFG is a file that contains a list of commands that when run will attempt to execute them all

Open up a text editor such as notepad and type in all the commands you want separating each with a ";" (remove the quotes). When done save the file as filename.cfg in "C:\Program Files (x86)\Steam\steamapps\common\left 4 dead 2\left4dead2\cfg" (NOTE: This directory may be different depending on your installation location and what OS you are running). To run the cfg open the console during the game and type in "exec filename.cfg" (remove quotes).

System Requirements

Windows Template:SysReq

Mac Template:SysReq