Left 4 Dead Wiki
m (Considering Uncommon Infected are unique to L4D2, I think it'd make more sense to relocate that section there. Also spacing out those smaller headings as they were very close.)
Tag: sourceedit
Tag: rte-wysiwyg
Line 634: Line 634:
 
Also, don't forget "bind"; use this to make madness such as: <code>bind "g" "z_spawn tank"</code> With this, every time you press "G," you will spawn a Tank. However, keep in mind that the default limit of Special Infected is four (not counting Tanks or Witches), so if there are already four Special Infected spawned by the Director, you cannot spawn more. The Director-spawned Infected must be killed before more can be spawned.
 
Also, don't forget "bind"; use this to make madness such as: <code>bind "g" "z_spawn tank"</code> With this, every time you press "G," you will spawn a Tank. However, keep in mind that the default limit of Special Infected is four (not counting Tanks or Witches), so if there are already four Special Infected spawned by the Director, you cannot spawn more. The Director-spawned Infected must be killed before more can be spawned.
   
==Bots copy your actions==
+
Bots copy your actions
  +
galera quem ta vendo este commandos coloquem no left 4 dead pc
Like the effect of ''Follow the Leader''? Then you could manipulate the actions your CPU-controlled allies and the CPU-controlled Special Infected (Special Infected who are playable in Versus Mode). Every movement you make will be followed by these bots, thus negating their A.I. functionality. These are all applied with the console command <code>bot_mimic 1</code>
 
  +
The command is quite self explanatory - ''every'' movement you make affects the movement of the bots, you shoot, the bots shoot (in the case of Special Infected, using their Special abilities is the equivalent of shooting), you walk forward, they also walk forward. This is a strategy if you want to direct the actions of the bots around you. Such as when you are ridden by a Jockey, this console command allows you to control both your player and the Jockey itself!
 
  +
'''Dead Center'''
*When this command is enabled, the human player cannot use items, pick up weapons, etc (deactivating the ''Use'' key), it is up to him to direct the bots to the items, since they can do it instead.
 
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c1m1_hotel</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c1m2_streets</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c1m3_mall</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c1m4_atrium</span>
  +
  +
'''Dark Carnival'''
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c2m1_highway</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c2m2_fairgrounds</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c2m3_coaster</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c2m4_barns</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c2m5_concert</span>
  +
  +
'''Swamp Fever'''
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c3m1_plankcountry</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c3m2_swamp</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c3m3_shantytown</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c3m4_plantation</span>
  +
  +
'''Hard Rain'''
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c4m1_milltown_a</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c4m2_sugarmill_a</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c4m3_sugarmill_b (Mill Escape level)</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c4m4_milltown_b (Return To Town level)</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c4m5_milltown_escape</span>
  +
  +
'''The Parish'''
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c5m1_waterfront_sndscape (Demo level; will glitch graphics until you quit the game)</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c5m1_waterfront</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c5m2_park</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c5m3_cemetery</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c5m4_quarter</span>
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">map c5m5_bridge</span>
  +
  +
<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:14px;font-weight:normal;">code para coloca em left 4 dead 2</span>
  +
  +
  +
{| border="0" cellpadding="1" cellspacing="1" class="bb_table article-table" style="border-spacing: 0px; font-size: 12px; color: rgb(172, 178, 184); font-family: Arial, Helvetica, Verdana, sans-serif; height: 258px; width: 500px;"
  +
|+Quit
  +
|-
  +
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|god [0 or 1]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Toggle no clipping mode
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|noclip
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Toggle Incendiary Ammo upgrade
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|upgrade_add incendiary_ammo
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Toggle Explosive Ammo upgrade
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|upgrade_add explosive_ammo
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Toggle Laser Sight upgrade
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|upgrade_add laser_sight
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Toggle infinite ammunition
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|sv_infinite_ammo [0 or 1]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Refill health
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give health
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Refill ammunition
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give ammo
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Get ammo for primary weapon
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|impulse 101
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn double pistol
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give pistol
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn Magnum
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give pistol_magnum
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn auto shotgun
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give autoshotgun
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn chrome shotgun
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give shotgun_chrome
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn pump shotgun
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give pumpshotgun
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn SPAS shotgun
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give shotgun_spas
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn SMG
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give smg
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn silenced SMG
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give smg_silenced
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn AK-47
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give rifle_ak47
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn M16
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give rifle
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn combat rifle
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give rifle_desert
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn hunting rifle
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give hunting_rifle
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn sniper rifle
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give sniper_military
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn grenade launcher
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give weapon_grenade_launcher
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn Hunter claws
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give melee
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn Boomer Bile
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give vomitjar
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn chainsaw
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give chainsaw
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn frying pan
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give frying_pan
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn guitar
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give electric_guitar
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn katana
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give katana
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn machete
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give machete
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn nightstick
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give tonfa
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn Molotov cocktail
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give molotov
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn pipe bomb
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give pipe_bomb
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn active pipe bomb under you
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|boom
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn propane tank
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give propanetank
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn gas can
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give gascan
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn oxygen tank
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give oxygentank
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn first aid kit
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give first_aid_kit
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn defibrillator
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give defibrilator
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn adrenaline
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give adrenaline
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn pain pills
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|give pain_pills
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn a zombie
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_spawn zombie
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn Spitter
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_spawn spitter
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn Jockey
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_spawn jockey
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn Charger
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_spawn charger
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn common zombie
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_spawn zombie
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn zombie horde
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_spawn mob
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn Boomer
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_spawn boomer
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn Hunter
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_spawn hunter
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn Witch
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_spawn witch
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn Smoker
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_spawn smoker
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn Tank
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_spawn tank
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Spawn special Infected
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_spawn [Infected name]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Level select
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|map [map name]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Level select
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|changelevel [map name]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Toggle received damage, but cannot die
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|buddha [0 or 1]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Toggle if bots do friendly fire damage
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|sb_friendlyfire [0 or 1]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Set amount of damage done to survivors
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_pounce_damage [number]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Set no clipping mode speed; default is "5"
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|sv_noclipspeed [number]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Bot teammates shoot nonstop
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|sb_openfire or open_fire
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Change zombie health
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_health [number]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Change zombie speed
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_speed [number]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Set maximum range of Smoker's tongue attack; default is "750"
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|tongue_range [number]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Set amount of time before a burning Witch dies from fire
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_witch_burn_time [number]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Toggle witch to change targets or focus on the survivor that first alerted her
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_witch_allow_change_victim [0 or 1]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Toggle controllable Boss Infected on any map
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|director_no_human_zombies [0 or 1]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Toggle never ending panics
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|director_panic_forever [0 or 1]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Force panic event
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|director_force_panic
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|No mob rushes
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|director_no_mobs [0 or 1]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Remove all bots
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Ent_Remove
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Set damage for a Witch's attack does
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_witch_damage [number]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Set maximum number of regular zombies
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_common_limit [number]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Set maximum health of tank
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_tank_health [number]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Set number of seconds until player loses control of the tank from not attacking survivors
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|z_frustration_lifetime [number]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Set probability of infected CEDA agents carrying bile jars
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|sv_infected_ceda_vomitjar_probability 0.1
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Disable all wanderers, mobs, specials, and Bosses
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|director_stop
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Third person view
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|thirdperson
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Over the shoulder third person view
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|thirdpersonshoulder
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Toggle crosshairs
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|crosshair [0 or 1]
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Toggle set fixed camera in third person or third person shoulder mode
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|thirdperson_mayamode
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Disable third person view
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|firstperson
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Disable all cheats
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|sv_cheats 0
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|Commit suicide
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|kill or explode
  +
|-
  +
| style="border:1pxsolidrgb(77,77,77);padding:4px;"|
  +
Quit game                                                                        
  +
|}
  +
{| border="0" cellpadding="1" cellspacing="1" class="article-table" style="width: 500px;"
  +
|-
  +
! scope="col"|
  +
server online
  +
! scope="col"|sv_cheat 2
  +
|-
  +
|spawn
  +
|
  +
{| class="bb_table" style="border-spacing:0px;font-size:12px;color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;"
  +
| style="border-top:1pxsolidrgb(77,77,77);border-right-style:solid;border-left-style:solid;border-right-color:rgb(77,77,77);border-bottom-color:rgb(77,77,77);border-left-color:rgb(77,77,77);border-image:initial;padding:4px;"|z_spawn smoker
  +
|-
  +
|}
  +
|-
  +
|spawn
  +
|<span style="color:rgb(172,178,184);font-family:Arial,Helvetica,Verdana,sans-serif;font-size:12px;font-weight:normal;">z_spawn tank</span>
  +
|}
  +
map: versus mutatio
  +
mutation1 = Last Man On Earth
  +
mutation2 = Headshot!
  +
mutation3 = Bleed Out
  +
mutation4 = Hard Eight
  +
mutation5 = Four Swordsmen
  +
mutation6 = Nothing
  +
mutation7 = Chainsaw Massacre
  +
mutation8 = Iron Man
  +
mutation9 = Last Gnome On Earth
  +
mutation10 = Room For One
  +
mutation11 = Healthpackalypse!
  +
mutation12 = Realism Versus
  +
mutation13 = Follow the Liter
  +
mutation14 = Gib Fest
  +
mutation15 = Versus Survival
  +
mutation16 = Hunting Party
  +
mutation17 = Lone Gunman
  +
mutation18 = Bleed Out Versus
  +
mutation19 = Taaannnkk!
  +
mutation20 = Healing Gnome
  +
community1 = Special Delivery
  +
community2 = Flu Season
  +
community3 = Riding My Survivor
  +
community4 = Nightmare
  +
community5 = Death Door
  +
community6 = Confogl
  +
  prop_dynamic_create // creates non-movable object
  +
prop_physics_create // creates movable object
  +
<span style="font-family:monospace;font-size:16px;font-weight:normal;">god 1</span>
  +
  +
<span style="font-family:monospace;font-size:16px;font-weight:normal;">map dead center</span>
  +
  +
'''map c1m1_hotel'''
  +
;'''map c1m2_streets'''
  +
;'''map c1m3_mall'''
  +
;'''map c1m4_atrium'''
  +
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;outline:none;color:rgb(0,0,0);font-weight:normal;">
  +
  +
Read mo</span>'''map c1m1_hotel'''
  +
;'''map c1m2_streets'''
  +
;'''map c1m3_mall'''map c1m1_hotel''''''
  +
;'''map c1m2_streets'''
  +
;'''map c1m3_mall'''
  +
;'''map c1m4_atrium'''
  +
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;outline:none;color:rgb(0,0,0);font-weight:normal;">
  +
Read more: [http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM http://www.cheatcc.com/pc/left4d]</span>
  +
  +
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;outline:none;color:rgb(0,0,0);font-weight:normal;"><span style="font-weight:normal;">Read more:</span>[http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM ead2cheatscodes.html#ixzz4OEatz1VM] '''map c1m1_hotel'''</span>
  +
;map c1m2_streets
  +
;map c1m3_mall
  +
;'''map c1m4_atrium'''
  +
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;outline:none;color:rgb(0,0,0);font-weight:normal;"><span style="outline:none;font-weight:normal;">
  +
  +
Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM 
  +
Under Creative Commons License: [http://creativecommons.org/licenses/by-nc-nd/3.0 Attribution Non-Commercial No Derivatives]</span>'''map c1m1_hotel'''</span>
  +
;map c1m2_streets
  +
;map c1m3_mall
  +
;'''map c1m4_atrium'''
  +
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;outline:none;color:rgb(0,0,0);font-weight:normal;"><span style="outline:none;font-weight:normal;">
  +
  +
Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM 
  +
Under Creative Commons License: [http://creativecommons.org/licenses/by-nc-nd/3.0 Attribution Non-Commercial No Derivatives]</span>'''map c1m1_hotel'''</span>
  +
;map c1m2_streets
  +
;map c1m3_mall
  +
;'''map c1m4_atrium'''
  +
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;outline:none;color:rgb(0,0,0);font-weight:normal;"><span style="outline:none;font-weight:normal;">
  +
  +
Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM 
  +
Under Creative Commons License: [http://creativecommons.org/licenses/by-nc-nd/3.0 Attribution Non-Commercial No Derivatives]</span>'''map c1m1_hotel'''</span>
  +
;map c1m2_streets
  +
;map c1m3_mall
  +
;'''map c1m4_atrium'''
  +
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;outline:none;color:rgb(0,0,0);font-weight:normal;"><span style="outline:none;font-weight:normal;">
  +
  +
Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM 
  +
Under Creative Commons License: [http://creativecommons.org/licenses/by-nc-nd/3.0 Attribution Non-Commercial No Derivatives]</span>'''map c1m1_hotel'''</span>
  +
;map c1m2_streets
  +
;map c1m3_mall
  +
;'''map c1m4_atrium'''
  +
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;outline:none;color:rgb(0,0,0);font-weight:normal;"><span style="outline:none;font-weight:normal;">
  +
  +
Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM 
  +
Under Creative Commons License: [http://creativecommons.org/licenses/by-nc-nd/3.0 Attribution Non-Commercial No Derivatives]</span>'''map c1m1_hotel'''</span>
  +
;map c1m2_streets
  +
;map c1m3_mall
  +
;'''map c1m4_atrium'''
  +
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;outline:none;color:rgb(0,0,0);font-weight:normal;"><span style="outline:none;font-weight:normal;">
  +
  +
Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM 
  +
Under Creative Commons License: [http://creativecommons.org/licenses/by-nc-nd/3.0 Attribution Non-Commercial No Derivatives]</span>'''map c1m1_hotel'''</span>
  +
;map c1m2_streets
  +
;map c1m3_mall
  +
;'''map c1m4_atrium'''
  +
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;outline:none;color:rgb(0,0,0);font-weight:normal;"><span style="outline:none;font-weight:normal;">
  +
  +
Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM 
  +
Under Creative Commons License: [http://creativecommons.org/licenses/by-nc-nd/3.0 Attribution Non-Commercial No Derivatives]</span>
  +
Under Creative Commons License: [http://creativecommons.org/licenses/by-nc-nd/3.0 Attribution Non-Commercial No Derivatives]</span>
  +
;'''map c1m4_atrium'''
 
[[Category:Left 4 Dead]]
 
[[Category:Left 4 Dead]]

Revision as of 23:02, 26 October 2016

The console is a feature of many games that can be used to change certain elements of a game. In Left 4 Dead and Left 4 Dead 2, it can be activated in the Options menu (go to "Keyboard/Mouse", then Enable the "Allow Developer Console" option) and then displayed by pressing the tilde (~) key in game. Valve features a quick-type feature in their consoles that allows rapid entry of commands.

Note that the key used to access the developer console may be different on non-U.S. keyboard layouts; for example, a standard UK keyboard layout uses the tilde key (left of the "1" key and below Escape).

You may edit the config file within your game directory directly. The file is located under

<Left 4 Dead Installation Directory> -> left4dead -> cfg -> config.cfg

Just open the file with a text-editor of your choice and adjust it to your needs.


Another workaround for non-U.S. keyboard layouts ― Finnish in particular ― is to switch to a U.S. keyboard layout, start the game, opening the console and typing bind x "toggleconsole", where x is whichever key you wish to bind the command to, then switching back to your own language. If you can't open the console by changing the keyboard layout, right click on Left 4 Dead 2 in the Steam Library, click properties, click 'Set Launch Options...' then type -console in the field. Binding toggleconsole to a key bypasses the Steam Cloud overwriting custom settings made, and allows you to pick a key on a familiar keyboard layout. The console key chosen might not work in the lobby or start menu, but it should work in-game.

sv_cheats

The sv_cheats console variable is a prerequisite command to many of the game-altering commands found in the Left 4 Dead series (including other Valve games, such as Half-Life). In the Left 4 Dead series, by setting sv_cheats to 1, most commands are then recognized by the game. It is with sv_cheats 1 that most of the exploits were found by users in the demo during its pre-order era.

Enabling cheats disallows unlocking achievements. This includes Grind Achievements, which are achievements based on your lifetime performance (i.e. killing 5,359 Zombies in Crash Course) and any other Achievement that uses a Counter-based system to acquire (i.e. Collect 10 Boomer Bile Bombs off Dead CEDA Agents) as well, so any Infected killed with cheats enabled will not count towards Zombie Genocides or any similar achievement. Even when turned off, achievements are still disabled. Only restarting the particular game will allow achievements. Achievements can still be earned through an online game as long as cheats were never enabled on that server.

Unfortunately, enabling cheats in Left 4 Dead 2 is more complicated than in the previous game. Cheats must be enabled in the main menu, before starting a game, and even then you must use the map command to load a game with cheats enabled - starting a local server via any of the lobbies will disable cheats.

Annotated list of commands

Knowing all the commands isn't quite as good as knowing what they do. The following will describe what each command does and its default value.

Important things to know about your cheat console:

  • Some commands require you to be the game host (such as sv_cheats).
  • It is assumed that you have cheats enabled for the commands described in this section.
  • If you turn on cheats then turn them off, many settings are discarded!
  • The console can auto-complete commands, making it inefficient to type more than you need to; just type a few letters and then hit the up/down arrows.
  • Commands can be chained. Example: sv_cheats 1; z_spawn boomer; z_spawn hunter; z_spawn smoker; z_spawn mob; sv_cheats 0; enable cheats, spawn a boomer, hunter, smoker, horde, then turn off cheats, all in that order.
  • You can store your commands in the "autoexec.cfg" file you create in a text editor like "Notepad" (Notepad++ is recommended for this) and put it in <steam install directory)/steamapps/common/left 4 dead/left4dead/cfg. While it isn't necessary to store it in the autoexec file, doing so will allow automatic execution of the commands saved when your server runs. You can also execute a particular config file, for instance, "die.cfg", by inputting "exec die" in the console.
  • If you are not sure of the correct spelling of a command, just type the first set of letters that you know and press "Tab." A list will appear below the input field listing each command beginning with what you have just typed. Press the "Tab" key to cycle through the commands listed.

Noclip

noclip (disables collision and physics, allows to fly through walls and in the air around the map.)

sv_noclipspeed # (set how fast you move when noclip is enabled)

God mode

god 1

Survivors are completely invincible.

Survivors will not take any damage, and will not be slowed by Special Infected attacks. The only real way to lose is to somehow leave everyone hanging on a ledge.

Note: If a Survivor has fallen from a ledge, or pinned somewhere out of reach, use the warp_all_survivors_here command to save them.

buddha is somewhat similar to godmode in that you cannot die, but you still receive damage. However, if you aren't the last survivor alive, you'll still be incapacitated as per normal gameplay. If you are, then whenever you take a hit that'd deplete your health, it will be reset to 10 instantly, thus protecting you from dying or incapacitatation. However, sometimes it can still kill after receiving damage rather than just incapacitation or restored HP.

Stopping the apocalypse

Using this code will stop the Director from spawning any Infected. You can explore the level without fights.

director_stop

To start the Director again, type in

director_start

Note: This code will not de-spawn any living Special Infected. Note: Infected in map design will still spawn, including the bride Witch in The Riverbank, Witches in The Sugar Mill, the Tank in train car in The Docks, as well as every Tank during the finales.

The Witch lets you come closer...a bit

z_witch_anger_rate 0.2

Setting it lower allows you to go near her without startling her as quickly.

Prop Spawner

cl_precacheinfo modelprecache

This command gives you an advanced list of items. After you choose what you want, you need to place it after the following:

prop_dynamic_create // creates non-movable object
prop_physics_create // creates movable object

Choose your Survivor

Type up sb_takecontrol to switch between Survivors. Entering this command while looking at another Survivor will switch to that one. If there are no Survivors directly on the crosshair, it will pick the one closest to it.

Put the name of a Survivor bot following the command to switch to that Survivor; for example, sb_takecontrol zoey will let you control Zoey.

Also, in online gameplay it is possible to change your designated Survivor at joining the game by opening the console and putting in:

jointeam 2 <name of bot>

It is possible also to do this when in mid-play, you just need to change your view to spectator:

spectate
jointeam 2 <name of bot>

Spawn Infected

These commands can be used to spawn in additional enemies.

z_spawn tank 
z_spawn witch
z_spawn boomer
z_spawn smoker
z_spawn hunter
z_spawn common, z_spawn, z_spawn horde (the first two commands spawn a single common infected; the latter spawns a horde.)
z_spawn mob (Mobs last a LOT longer than the usual horde)

Removing Infected

To remove Specials, use the kick command, followed by the name of the special in question. For example, if a Jockey was riding you and you're a lone player, type kick Jockey and it'll magically disappear. This also works on your fellow survivors - type kick Francis to see the biker dude disappear, with only his weapons and whatever other items he was carrying as the only evidence as to his existence.

This command does not work on Witches or Common Infected, they . To bind multiple kicks to a key, it is safer to use the wait command in between the kick commands.
i.e.

bind K "kick Tank; wait; kick Boomer; wait; kick Smoker; wait; kick Hunter"

This stops each command executing simultaneously, instead it waits at least one frame before parsing the next command.

Spawning more than one of the same Special Infected causes their names to go into a numbered list starting with no number. For example:

  • Hunter
  • (1)Hunter
  • (2)Hunter
  • (3)Hunter

When you try to kick a Hunter and it doesn't work, then there may be more than one Hunter on the map.

Note: For some reason, if you throw a Bile Bomb at a bunch of force-spawned Uncommons, they will start pushing rather than hitting each other, like when you bash one with your weapon. Also, if you throw a Bile Bomb on Jimmy Gibbs Jr., the Purple Aura remains on him even after the effects have faded, thus lighting him up through walls.

Counter Strike: Source weapons

Type: give in the console, and then the item names will appear.

give smg_mp5
give sniper_awp
give sniper_scout
give rifle_sg552

Be aware that these will do no damage whatsoever until you reload the map.

Custom Melee Weapons

These are the melee weaponry that can be found in some custom campaigns such as Suicide Blitz 2, Blood Tracks, Left 4 Evil Dead, Necropolis, Kink, Death Mountain, and The Scrap Yard. Some of them are either part of the map, while others can also be downloaded as standalone VPKs.

give bamboo
give daxe
give bigoron_sword
give gloves
give dekustick
give guitar
give bnc
give b_foamfinger
give fubar
give gman
give hylian_shield
give katana2
give kitchen_knife
give mace
give mace2
give master_sword
give mega_hammer
give mirror_shield
give nailbat
give bt_nail
give sh2wood
give riotshield
give rockaxe
give pot
give bt_sledge
give longsword
give tonfa_riot
give btorch
give woodbat
give wrench

Demo Weapons

These also work in the full game, with the exception of the grenade launcher:

give autoshotgun
give hunting_rifle
give health
give rifle
give pistol
give smg
give shotgun
give pain_pills
give first_aid_kit
give pipe_bomb
give molotov
give vomitjar
give propanetank
give gascan

ent_create weapon_grenade_launcher

In the full game, the Grenade Launcher can be spawned via the give command as with the other weapons, but because the grenade launcher was never meant to be obtainable in the demo, it must be created using ent_create as shown above.

Drops

Need to drop a pipe bomb or molotov instantly, damn the consequences? This will spawn an armed pipe bomb or molotov at your feet. You might want to be running when you try these.

fire // drop a Molotov in the center of the character lighting you on fire, so move fast
boom // drop a Pipe Bomb in the center of the character ready to explode

How many zombies would you like?

By default, the game limits how many zombies are drawn at any given time. You can bypass this limit to get truly outrageous numbers of zombies and also make you crash.

z_common_limit 30

Now, how can we get the director to give us more mobs of zombies at random times?

z_mob_spawn_min_interval_expert 90
z_mob_spawn_max_interval_expert 180
z_mob_spawn_min_size 10
z_mob_spawn_max_size 30

Still not hard enough?... Perhaps you need a mega-mob!

z_mega_mob_spawn_min_interval 420
z_mega_mob_spawn_max_interval 900
z_mega_mob_size 50

All good and fine, but what about those spaced-out zombies that are just standing still, waiting for you to shoot them? Would it not be more tense if they were always moving in at you?

z_must_wander 0
z_acquire_far_range 2500
z_acquire_far_time 5
z_acquire_near_range 200
z_acquire_near_time 0.5

Okay, if you got this far, you're going to need more boss zombies. This controls time in seconds between boss spawns and the max number of bosses that can be spawned at any given time:

z_special_spawn_interval 45
z_exploding_limit 1
z_gas_limit 1
z_hunter_limit 1
z_minion_limit 3 // This limits the number of 1 type of Special Infected
                    allowed at one time. In certain cases, you would get
                    three Hunters; this will make sure you do not get four, so in
                    places like Versus, you will not be overrun by Smokers
                    / Hunters / Boomers.

That's still not enough zombies? Well, then, time to panic (A.K.A., mega-mob on demand)!

director_force_panic_event

Still alive there? Try this one:

director_panic_forever 1

But if you like beating the crap out of every single one, try this as well:

STEP 1:

z_common_limit 400
z_special_spawn_interval 45
z_exploding_limit 1
z_gas_limit 1
z_hunter_limit 1
z_minion_limit 9
z_spawn mob
z_spawn tank // you WILL be overrun with lots of Infected if you try this

Note: Of course, spawning too many zombies at the same time can slow down your computer or even crash it (or your game).

No more rescues

Don't like the fact that dead isn't dead? Fix it! The variable "rescue_distance" controls how far your teammates must get beyond your dead corpse before you can be rescued. Set to minus one to preclude that ever happening. The second variable, "rescue_min_dead_time", controls how many seconds must elapse after death before you come up for reincarnation. Set to "-1" to preclude that possibility.

rescue_distance 4500
rescue_min_dead_time 60

Bite me

What if Infected could kill you with one bite?

hunter_pz_claw_dmg 10 
z_pounce_damage 5 // There's a delay of 1 second where a teammate
                     can knock it off and you don't take this damage
tongue_choke_damage_amount 10
z_hit_from_behind_factor 0.5 // If a zombie hits you in the back,
                                multiplies the damage done
z_witch_damage 100

Environmental and unknown damage modifiers:

inferno_damage 40 // Damage per second when getting flamed
survivor_extra_damage_ammo_factor 1.25  // Appears to multiply the overall amount of
                                           friendly fire damage. At zero, it does no
                                           damage, even on expert though a decimal with
                                           many places will still do a good chunk with
                                           the Auto Shotgun. Does not appear to change
                                           damage on Infected at all. TODO: test this
                                           more
z_gun_damage 10 // Melee damage done to doors, boxes, and the like, but not Infected

Walk or sprint?

Don't like the fact that you have a walk key instead of a sprint key? Set this variable to something ludicrous like 5,000...

survivor_walk_speed 85 // For reference base, movement speed is 210 and base Infected speed is 250

Still not fast enough? Use the following to get in and out of the action at faster than light speeds. REQUIRED: you must be the game host

warp_all_survivors_here   // Warp all survivors to the player's cursor
warp_all_survivors_to_battlefield // Warp all Survivors to the battlefield
warp_all_survivors_to_checkpoint // Warp all Survivors to the exit checkpoint
warp_all_survivors_to_finale // Warp all Survivors to the finale radio
warp_far_survivor_here // Teleport the farthest away Survivor to your cursor position
warp_to_start_area // Warp yourself to a Survivor spawn area

Versus Mode for the Man With No Friends

Well, maybe "no friends" is a bit drastic, but this will help you when you need some Versus and have no one to play with.

sv_cheats 1
sb_all_bot_team 1
sb_unstick 0 // stops bots teleporting
vs_max_team_switches 99
chooseteam // or use "M" or whatever key you have assigned to team change
mp_gamemode versus

Do note that the Survivor Bots will walk through the stage well enough, but may get hung up when it comes to pushing certain buttons or leaving certain areas. Simply switch teams again, accomplish the goal, and switch back. Do take note that the map that you are playing is still a co-op map and may end prematurely once both teams have played through. To avoid this, vote for a change in campaigns to load the Versus version of the maps.

NOTE: This cheat has been patched. In order to do this, you must enter sv_cheats 1; mp_gamemode versus. You must then finish the level and you will switch teams afterwards. If you want the AI to play with you, enter mp_gamemode coop. The AI will then spawn other Infected to play with you. They won't make the best decisions, and you will likely be the only one killing anyone. You can also play survival mode by entering mp_gamemode Survival. You cannot use this method for Left 4 Dead 2, as mp_gamemode is not recognized by the Developer Console. You must enter map mapname Versus. For example, to play Versus Mode on The Hotel, you must enter "map c1m1_hotel Versus". This will allow you to play Versus for the entire campaign. The switchteams command is also not recognized, so you must enter "vs_maxteamswitches" and then set it to something big like 999. Often, you will spawn in on the second or third map as the wrong team, so you can still switch. Sometimes, you will even spawn in as a Spectator. You will have all AI teammates, unlike the first Left 4 Dead where playing Versus by yourself meant by yourself.

NOTE: The Survivor Bots won't leave the safe room unless you enter "sb_all_bot_team 1". They will move through the level very fast, but they won't sit in the safe room for hours.

NOTE: With the release of The Sacrifice, the sb_all_bot_team command is no longer recognized in Left 4 Dead 2, and has been renamed to sb_all_bot_game, which will only work with the command line option +allow_all_bot_survivor_team 1. This is not a console command. This can be added by right-clicking on the game in Steam, selecting "properties," clicking "Set launch options," and adding it there.


NOTE: If all of those don't work, try this:

sv_cheats 1

sb_all_bot_team 1
sb_all_bot_game 1

If that doesn't work:

director_no_human_zombies 0

director_force_versus_start

Then hit the team change key (M by default). You can choose if you like to be an Infected or Survivor.

Survival mode

Playing Survival mode on single player is simple enough; it doesn't even require cheats.

map (map) Survival

LAN game

To play offline on a local LAN (works with Steam in offline mode and you only need one Steam account)

  1. Set launch option -console
  2. Launch the game on server and clients
  3. On the server, bring up the console (~) and type:
sv_lan 1 
sv_allow_lobby_connect_only 0
map

Then without hitting enter after "map", you will see a list of available maps. typing the first letter of the map name will give you more choices.

  1. Wait for the game to start
  2. Vote for the difficulty level you want.
  3. Input net_start to check the IP
  4. On the clients, bring up the console and type the following, replacing IP_ADDRESS with the servers LAN IP address:
connect IP_ADDRESS

Bile/Rock Target Practice

Let's face it―you know it, your parents know it, your dog knows it: Puking and throwing is hard as hell to master. These are a few simple commands you can use 5 minutes a day 3 times a week that will make you a sexy puking/throwing master, you know, just like those workout ads.

Basic

sv_cheats 1 // You'll need this for all the commands
map l4d_airport03_garage Versus // This level provides an extremly good practice environment, but you should try other maps, too
sb_all_bot team 1 // Without this, the game will shut down because there aren't players on the other team
sb_stop 1 // Without this, the Survivors will get in the way of your game; best to put this cheat in before sb_all_bot_game 1

Rock throw practice

z_spawn tank
z_tank_rock_debug 1 // Creates a small cube where your rock hits, helps get an idea of where your throws land
z_tank_throw_interval 1 // Makes the delay between throws nonexistent; just dont get used to throwing rocks like a submachine gun
z_spawn boomer // These provide excellent target practice

Bile practice

z_spawn boomer
z_vomit_debug 1 // Similar to z_tank_rock_debug 1, only it creates lines to show where the puke hitboxes travel. In other words, shows where you barf)
z_vomit_interval 1 // What progress do you expect to make only
                      puking every half-minute? Now you can do
                      it every second. Again, don't get used to
                      puking like a submachine gun

Lighting

Pitch Black Mode

Disable the white background fog to play the game without the unrealistic lighting effect. This was the original way the game was designed per the development team: Left 4 Dead takes place in a variety of dimly lit night-time environments. Because of this, play testers weren't able to see zombie silhouettes in the mid-ground and background. Because of this, they were repeatedly getting mobbed. While sudden zombie attacks were unarguably scary, they were also frustrating—players weren't being given the information they needed to react. They wanted that "Here they come!" moment, and we weren't giving it to them. The solution? Light-colored fog. While not as realistic-looking as actual fog in some settings, it meant play testers could see attackers in the distance. Once they were able to anticipate attacks, play testers started to have a much better time."

sv_cheats 1 
fog_override 1 
fog_enable 0

But remember to wisely use it in L4D2 – disabling fog somehow also disables rendering of water, leaving empty spaces everywhere where there used to be wet - not recommended for Swamp Fever and Hard Rain!

Full-Lit Mode (On by default if the map doesn't have any entities for lighting)

If you wish to explore the map in full daylight mode use: mat_fullbright 1

No-texture Mode

Want something else to see? Try using mat_fullbright 2 for size! No models in-game will be textured, that's not counting the eyes of your Survivor fellows.

Flashlight

Alternatively, if you wish to use your flashlight to see the difference between daylight and normal map lighting, use the following commands:

r_flashlightconstant 1 // select constant attenuation instead of linear or quadratic light fall off.
r_flashlightfov 179 // default is 53 degree cone.
r_flashlightfar 9999

Taking screenshots

To hide crosshair and other overlay elements:

sv_cheats 1
hidehud 4

0 returns to normal. 2 and 3 toggle certain elements on/off. Even though it does not look like you can change weapons, cl_drawhud 0 might help you more.

Change Player Name

This allows a player to use a name different from their Steam name.

setinfo name example

This allows the name change to be bound to a key as well. Additionally, this is temporary and only lasts on the game you are on until it's finished or you leave. To use names that have spaces in them, surround the whole thing in quotes, so if you wanted Example Name as your temporary name, you would type:

setinfo name "Example Name"

Kill

Do you want to end your cruel life? Just type "kill" in the console and you will die instantly. Is there a player that's being a pain? Then type "kill [player's name]". But it has to match the player's/NPC's name's case; so, to kill Bill, type "kill Bill". A side note is that you do not need to type the whole name; to kill Louis, for instance, you can simply type "kill L" and your work is done. This won't work if someone else has L at the beginning of their name, so just keep going until the name string is unique.

  • Note: The following only applies in Left 4 Dead 1: Using this code on Boomers will neither cover Survivors around him/her in Bile nor stumble anyone standing too close.

"explode" works too.

Respawn

Enter "respawn" if you want to live again.

Additionally, you can type "respawn_all" to ressurect bots and other dead players.

Third-person

Tired of first-person view? Want to get a better look at that scratch on the back of Bill's shirt? Type in "thirdperson" or if you like it like Gears of War/Resident Evil/Mass Effect, type in "thirdpersonshoulder" to get a view from your shoulder.

firstperson
thirdperson
thirdpersonshoulder

Note: By default, the crosshair in third person mode isn't aligned properly, so all of your shots will go either left or right of the cursor, depending on the distance. The following code will solve this;

c_thirdpersonshoulderoffset 0
c_thirdpersonshoulderaimdist 720
c_thirdpersonshoulderdist 40
c_thirdpersonshoulderheight 20
cam_ideallag 0


Testing "What if just your beard starts to turn?"
This article requires testing. You can help Left 4 Dead Wiki by experimenting with gameplay, and then changing it.



Ignite yourself

The command burn gives you the fire overlay below your screen and the ability to light movables by just jumping on them. Best used in combo with a Hunter as it gives you the extra damage. This command does no self-damage.

People Start Talking

Type "Vocalize Response" to have your character speak. Most people have been observed as (over)using "Vocalize Playerdeath". Nearly all of the commands for this command start with "player." An update on February 19th, 2010 has disabled this command for Left 4 Dead 2, but this is still available in the original. This does not require the use of "sv_cheats 1". Some players have made their own radial voice menus (x and z key commands) as an add-on in order to still have that feature in Left 4 Dead 2.

No Special Infected

Enter: director_no_specials 1. In finales, there might still be certain Specials that will still spawn however, you can get rid of them by kicking them out. For example, "kick tank" or "kick hunter," you can bind the kick command to a key so when they show up, press the key you bound it to and they will disappear, out of sight, out of mind.

Infinite Ammo

To have infinite grenades, ammo, or chainsaw fuel, just type in console Sv_infinite_ammo 1. Or if you just want it for your primary weapon, type Sv_infinite_primary_ammo 1

Items

To visually see all items that spawned (yellow), and that could possibly spawn in the map (white), use

director_debug_scavenge_items 1

General AI status

To see the general status of the AI Manager (Director), use:

director_debug 1

Left 4 Dead 2 Commands

To activate cheats within Left 4 Dead 2 start a map using the map command. Achievements will be turned off, however. Most commands from Left 4 Dead work in Left 4 Dead 2, but some have been removed:

team_desired
survivors_walk_speed

If you use the command z_spawn mob in Left 4 Dead 2, some of the Uncommon Infected that appear in that level will be mixed in with the regular Common Infected. The new weapons in Left 4 Dead 2 can be acquired using the following commands.

As all of the original Left 4 Dead weapons appear in Left 4 Dead 2, you can spawn all of them (except for the M1911 Pistol, which got replaced with P220s and Glocks!)

NOTE: Some melee weapons can only be spawned in certain campaigns. For instance, Crowbars cannot be spawned in "Swamp Fever" unless you edit the text files in your games directory to be able to do so.

give weapon_grenade_launcher // some people may have to rely on '''ent_create weapon_grenade_launcher'''
give rifle_desert // Gives the Combat Rifle
give rifle_ak47
give pistol_magnum
give shotgun_chrome
give shotgun_spas
give sniper_military
give smg_silenced
give vomitjar // Bile bomb
give defibrillator
give electric_guitar
give machete
give frying_pan
give katana
give rifle_m60

You can also use the console to give your weapon any of the three upgrades in Left 4 Dead 2.

upgrade_add LASER_SIGHT
upgrade_add explosive_ammo
upgrade_add INCENDIARY_AMMO

The explosive ammo can be modified with the following commands. Setting one of the force commands too high will result in the game crashing.

upgrade_explosive_bullet_force // explosive force for all weapons other than shotguns
upgrade_explosive_slug_force // explosive force for shotguns
upgrade_show_explosive_ammo_radius // changing to 1 causes a sphere to be shown whenever an explosive shot is fired, showing its area of effect

The Special Infected new to Left 4 Dead 2 can also be spawned:

z_spawn spitter
z_spawn jockey
z_spawn charger


Playing any Mutation

The following commands will allow you to play any of the revealed Mutations with bots.

map <map file name> mutation#
//Replace # with a number:
mutation1 = Last Man On Earth
mutation2 = Headshot!
mutation3 = Bleed Out
mutation4 = Hard Eight
mutation5 = Four Swordsmen
mutation6 = Nothing
mutation7 = Chainsaw Massacre
mutation8 = Iron Man
mutation9 = Last Gnome On Earth
mutation10 = Room For One
mutation11 = Healthpackalypse!
mutation12 = Realism Versus
mutation13 = Follow the Liter
mutation14 = Gib Fest
mutation15 = Versus Survival
mutation16 = Hunting Party
mutation17 = Lone Gunman
mutation18 = Bleed Out Versus
mutation19 = Taaannnkk!
mutation20 = Healing Gnome
community1 = Special Delivery
community2 = Flu Season
community3 = Riding My Survivor
community4 = Nightmare
community5 = Death Door
community6 = Confogl

It is recommended that sb_all_bot_game is set to 1 if playing a competitive Mutation alone as the game will disconnect due to lack of players.


Realism mode

Like with Survival mode, playing a single-player Realism mode in Left 4 Dead 2 is as follows:

map (map) realism


Force Uncommon Zombies

Type

z_forcezombiemodelname common_male_(Infected);z_forcezombiemodel 1;z_spawn

Replace (Infected) with the names below:

ceda = Hazmat CEDA zombies from Dead Center.
jimmy = Jimmy Gibbs zombie from Dead Center's last level.
fallen_survivor = The Fallen Survivor from The Passing.
clown = Clowns from Dark Carnival.
mud = Mud-Men from Swamp Fever.
riot = Riot Cops from The Parish.
worker = Workers from Hard Rain.

If you use the Fallen Survivor, you might want to use these:

z_fallen_kill_supress_time 1
z_fallen_max_count 30

Complete list of commands

See: Complete list of console commands

Also, don't forget "bind"; use this to make madness such as: bind "g" "z_spawn tank" With this, every time you press "G," you will spawn a Tank. However, keep in mind that the default limit of Special Infected is four (not counting Tanks or Witches), so if there are already four Special Infected spawned by the Director, you cannot spawn more. The Director-spawned Infected must be killed before more can be spawned.

Bots copy your actions galera quem ta vendo este commandos coloquem no left 4 dead pc

Dead Center map c1m1_hotel map c1m2_streets map c1m3_mall map c1m4_atrium

Dark Carnival map c2m1_highway map c2m2_fairgrounds map c2m3_coaster map c2m4_barns map c2m5_concert

Swamp Fever map c3m1_plankcountry map c3m2_swamp map c3m3_shantytown map c3m4_plantation

Hard Rain map c4m1_milltown_a map c4m2_sugarmill_a map c4m3_sugarmill_b (Mill Escape level) map c4m4_milltown_b (Return To Town level) map c4m5_milltown_escape

The Parish map c5m1_waterfront_sndscape (Demo level; will glitch graphics until you quit the game) map c5m1_waterfront map c5m2_park map c5m3_cemetery map c5m4_quarter map c5m5_bridge

code para coloca em left 4 dead 2


Quit
god [0 or 1]
Toggle no clipping mode noclip
Toggle Incendiary Ammo upgrade upgrade_add incendiary_ammo
Toggle Explosive Ammo upgrade upgrade_add explosive_ammo
Toggle Laser Sight upgrade upgrade_add laser_sight
Toggle infinite ammunition sv_infinite_ammo [0 or 1]
Refill health give health
Refill ammunition give ammo
Get ammo for primary weapon impulse 101
Spawn double pistol give pistol
Spawn Magnum give pistol_magnum
Spawn auto shotgun give autoshotgun
Spawn chrome shotgun give shotgun_chrome
Spawn pump shotgun give pumpshotgun
Spawn SPAS shotgun give shotgun_spas
Spawn SMG give smg
Spawn silenced SMG give smg_silenced
Spawn AK-47 give rifle_ak47
Spawn M16 give rifle
Spawn combat rifle give rifle_desert
Spawn hunting rifle give hunting_rifle
Spawn sniper rifle give sniper_military
Spawn grenade launcher give weapon_grenade_launcher
Spawn Hunter claws give melee
Spawn Boomer Bile give vomitjar
Spawn chainsaw give chainsaw
Spawn frying pan give frying_pan
Spawn guitar give electric_guitar
Spawn katana give katana
Spawn machete give machete
Spawn nightstick give tonfa
Spawn Molotov cocktail give molotov
Spawn pipe bomb give pipe_bomb
Spawn active pipe bomb under you boom
Spawn propane tank give propanetank
Spawn gas can give gascan
Spawn oxygen tank give oxygentank
Spawn first aid kit give first_aid_kit
Spawn defibrillator give defibrilator
Spawn adrenaline give adrenaline
Spawn pain pills give pain_pills
Spawn a zombie z_spawn zombie
Spawn Spitter z_spawn spitter
Spawn Jockey z_spawn jockey
Spawn Charger z_spawn charger
Spawn common zombie z_spawn zombie
Spawn zombie horde z_spawn mob
Spawn Boomer z_spawn boomer
Spawn Hunter z_spawn hunter
Spawn Witch z_spawn witch
Spawn Smoker z_spawn smoker
Spawn Tank z_spawn tank
Spawn special Infected z_spawn [Infected name]
Level select map [map name]
Level select changelevel [map name]
Toggle received damage, but cannot die buddha [0 or 1]
Toggle if bots do friendly fire damage sb_friendlyfire [0 or 1]
Set amount of damage done to survivors z_pounce_damage [number]
Set no clipping mode speed; default is "5" sv_noclipspeed [number]
Bot teammates shoot nonstop sb_openfire or open_fire
Change zombie health z_health [number]
Change zombie speed z_speed [number]
Set maximum range of Smoker's tongue attack; default is "750" tongue_range [number]
Set amount of time before a burning Witch dies from fire z_witch_burn_time [number]
Toggle witch to change targets or focus on the survivor that first alerted her z_witch_allow_change_victim [0 or 1]
Toggle controllable Boss Infected on any map director_no_human_zombies [0 or 1]
Toggle never ending panics director_panic_forever [0 or 1]
Force panic event director_force_panic
No mob rushes director_no_mobs [0 or 1]
Remove all bots Ent_Remove
Set damage for a Witch's attack does z_witch_damage [number]
Set maximum number of regular zombies z_common_limit [number]
Set maximum health of tank z_tank_health [number]
Set number of seconds until player loses control of the tank from not attacking survivors z_frustration_lifetime [number]
Set probability of infected CEDA agents carrying bile jars sv_infected_ceda_vomitjar_probability 0.1
Disable all wanderers, mobs, specials, and Bosses director_stop
Third person view thirdperson
Over the shoulder third person view thirdpersonshoulder
Toggle crosshairs crosshair [0 or 1]
Toggle set fixed camera in third person or third person shoulder mode thirdperson_mayamode
Disable third person view firstperson
Disable all cheats sv_cheats 0
Commit suicide kill or explode

Quit game                                                                        

server online

sv_cheat 2
spawn
z_spawn smoker
spawn z_spawn tank

map: versus mutatio

mutation1 = Last Man On Earth
mutation2 = Headshot!
mutation3 = Bleed Out
mutation4 = Hard Eight
mutation5 = Four Swordsmen
mutation6 = Nothing
mutation7 = Chainsaw Massacre
mutation8 = Iron Man
mutation9 = Last Gnome On Earth
mutation10 = Room For One
mutation11 = Healthpackalypse!
mutation12 = Realism Versus
mutation13 = Follow the Liter
mutation14 = Gib Fest
mutation15 = Versus Survival
mutation16 = Hunting Party
mutation17 = Lone Gunman
mutation18 = Bleed Out Versus
mutation19 = Taaannnkk!
mutation20 = Healing Gnome
community1 = Special Delivery
community2 = Flu Season
community3 = Riding My Survivor
community4 = Nightmare
community5 = Death Door
community6 = Confogl

  prop_dynamic_create // creates non-movable object

prop_physics_create // creates movable object

god 1

map dead center

map c1m1_hotel

map c1m2_streets
map c1m3_mall
map c1m4_atrium

Read momap c1m1_hotel

map c1m2_streets
'map c1m3_mallmap c1m1_hotel'
map c1m2_streets
map c1m3_mall
map c1m4_atrium

Read more: http://www.cheatcc.com/pc/left4d

Read more:ead2cheatscodes.html#ixzz4OEatz1VM map c1m1_hotel

map c1m2_streets
map c1m3_mall
map c1m4_atrium

Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM  Under Creative Commons License: Attribution Non-Commercial No Derivativesmap c1m1_hotel

map c1m2_streets
map c1m3_mall
map c1m4_atrium

Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM  Under Creative Commons License: Attribution Non-Commercial No Derivativesmap c1m1_hotel

map c1m2_streets
map c1m3_mall
map c1m4_atrium

Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM  Under Creative Commons License: Attribution Non-Commercial No Derivativesmap c1m1_hotel

map c1m2_streets
map c1m3_mall
map c1m4_atrium

Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM  Under Creative Commons License: Attribution Non-Commercial No Derivativesmap c1m1_hotel

map c1m2_streets
map c1m3_mall
map c1m4_atrium

Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM  Under Creative Commons License: Attribution Non-Commercial No Derivativesmap c1m1_hotel

map c1m2_streets
map c1m3_mall
map c1m4_atrium

Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM  Under Creative Commons License: Attribution Non-Commercial No Derivativesmap c1m1_hotel

map c1m2_streets
map c1m3_mall
map c1m4_atrium

Read more: http://www.cheatcc.com/pc/left4dead2cheatscodes.html#ixzz4OEatz1VM  Under Creative Commons License: Attribution Non-Commercial No Derivatives Under Creative Commons License: Attribution Non-Commercial No Derivatives

map c1m4_atrium