Cheat Codes
At the main menu, select "Options", then choose the "Keyboard/Mouse"
selection. Enable the "Allow Developers Console" option. While playing
the game, press ~ to display the console window. Type "Sv_Cheats 1"
and press [Enter] to enable cheat mode for everyone on your hosted
server. Then, type one of the following codes at the console window
and
press [Enter] to activate the corresponding cheat function:
Result | Cheat Code |
Toggle invincibility | god [0 or 1] |
Full health for your character | give health |
Receive damage, but will cannot die | buddha |
All weapons and ammunition | impulse 10 |
Toggle infinite ammunition | sv_infinite_ammo [0 or 1] |
Toggle no clipping mode | noclip |
Spawn indicated item | give [item name] |
Spawn indicated item for NPCs | ent_create weapon_[item name] |
Spawn indicated NPC type | z_spawn [NPC name] |
Spawn active pipebomb under you | boom |
Spawn lit Molotov cocktail under you | fire |
Remove a teammate; repeat for more | ent_remove |
Infected cannot see you | nb_blind 1 |
Teleports all survivors to your position | warp_all_survivors_here |
Teleports all survivors to the nearest checkpoint | warp_all_survivors_to_checkpoint |
Teleports all survivors to the finale | warp_all_survivors_to_finale |
Teleport yourself to the next chapter | warp_to_start_area |
Quick change map | changelevel [map name] |
Be spectator | ent_fire !self setteam 1 |
Be survivor | ent_fire !self setteam 2 |
Be infected | ent_fire !self setteam 3 |
Set number of normal zombies | z_common_limit [number] |
Set number of panic zombies | z_mega_mob_size [number] |
Set zombie health | z_health [number] |
Set zombie speed | z_speed [number] |
Set maximum range of Smoker's tongue attack; default is 750 | tongue_range [number] |
Set time before a burning Witch dies from fire | z_witch_burn_time |
Set amount of damage Witch's attack does | z_witch_damage [number] |
Toggle allowing witch to change targets instead | z_witch_allow_change_victim [0 or 1] |
Set maximum health of Tank | z_tank_health [number] |
Set number of seconds until the player loses control of Tank from not attacking survivors | z_frustration_lifetime [number] |
Toggle if bots can do friendly fire damage | sb_friendlyfire [0 or 1] |
Disable all wanderers, mobs, specials, and Bosses | director_stop |
Force a panic | director_force_panic_infinite 1 |
Force a panic event | director_force_panic |
Toggle never ending panics | director_panic_forever [0 or 1] |
Toggle mob rushes | director_no_mobs [0 or 1] |
Toggle controllable Boss Infected | director_no_human_zombies [0 or 1] |
Set camera behind the shoulder in third person view | thirdpersonshoulder |
Toggle set fixed camera in third person or third person shoulder view | thirdperson_mayamode |
Third person view | thirdperson |
Return to first person view | firstperson |
Enable Internet LAN; enable while in "Campaign Lobby" screen | sv_lan 0 |
Start LAN server; enable while in "Campaign Lobby" screen | map [map name] |
Display available servers | openserverbrowser |
Restart game with cheats active; allows achievements to be earned with cheats | retry |
Commit suicide | kill |
Quit game | quit |
Use one of the following values with the "give [item name]" code:
- ammo
- autoshotgun
- first_aid_kit
- gascan
- hunting_rifle
- moltov
- oxygen_tank
- pain_pills
- pipe_bomb
- pistol
- propane_tank
- pumpshotgun
- rifle
- smg
Use one of the following values with the "z_spawn [NPC name]" code:
- mob
- witch
- tank
- boomer
- smoker
- hunter
- zombie
Use one of the following values with the "changelevel [map name]" or "map [map name]" code:
Level | Code |
Campaign mode | |
No Mercy: The Apartments | changelevel l4d_hospital01_apartment |
No Mercy: The Subway | changelevel l4d_hospital02_subway |
No Mercy: The Sewer | changelevel l4d_hospital03_sewers |
No Mercy: The Hospital | changelevel l4d_hospital04_interior |
No Mercy: Rooftop Finale | changelevel l4d_hospital05_rooftop |
Death Toll: The Turnpike | changelevel l4d_smalltown01_caves |
Death Toll: The Drains | changelevel l4d_smalltown02_drainage |
Death Toll: The Church | changelevel l4d_smalltown03_ranchhouse |
Death Toll: The Town | changelevel l4d_smalltown04_mainstreet |
Death Toll: Boathouse Finale | changelevel l4d_smalltown05_houseboat |
Dead Air: The Greenhouse | changelevel l4d_airport01_greenhouse |
Dead Air: The Crane | changelevel l4d_airport02_offices |
Dead Air: The Construction Site | changelevel l4d_airport03_garage |
Dead Air: The Terminal | changelevel l4d_airport04_terminal |
Dead Air: Runway Finale | changelevel l4d_airport05_runway |
Blood Harvest: The Woods | changelevel l4d_farm01_hilltop |
Blood Harvest: The Tunnel | changelevel l4d_farm02_traintunnel |
Blood Harvest: The Bridge | changelevel l4d_farm03_bridge |
Blood Harvest: The Train Station | changelevel l4d_farm04_barn |
Blood Harvest: Farmhouse Finale | changelevel l4d_farm05_cornfield |
Versus mode | |
No Mercy: The Apartments | changelevel l4d_vs_hospital01_apartment |
No Mercy: The Subway | changelevel l4d_vs_hospital02_subway |
No Mercy: The Sewer | changelevel l4d_vs_hospital03_sewers |
No Mercy: The Hospital | changelevel l4d_vs_hospital04_interior |
No Mercy: Rooftop Finale | changelevel l4d_vs_hospital05_rooftop |
Blood Harvest: The Woods | changelevel l4d_vs_farm01_hilltop |
Blood Harvest: The Tunnel | changelevel l4d_vs_farm02_traintunnel |
Blood Harvest: The Bridge | changelevel l4d_vs_farm03_bridge |
Blood Harvest: The Train Station | changelevel l4d_vs_farm04_barn |
Blood Harvest: Farmhouse Finale | changelevel l4d_vs_farm05_cornfield |
Enable the "ent_fire !self setteam 3" code. After spawning and dying, press [Jump] until the camera changes into Free Roam mode. Then, enable one of the following "z_spawn" codes to play as that type of infected:
- z_spawn smoker
- z_spawn tank
- z_spawn boomer
- z_spawn hunter
Note: This
procedure involves editing a game file; create a backup copy of the
file before proceeding. Insert an Xbox 360 controller. Use a text editor
to edit the "360controller.cfg" file in the "\left4dead\cfg folder"
directory. Replace its content with the following:
unbindall // Prevent mouse/keyboard control when gamepad is in use (to prevent autoaim exploit) joystick 1 joy_advanced "1" // use advanced joystick options (allows for multiple axes) joy_name "L4D Xbox360 Joystick Configuration" joy_advaxisx 3 // x-axis controls GAME_AXIS_SIDE (strafing left and right) joy_advaxisy 1 // y-axis controls GAME_AXIS_FORWARD (move forward and back) joy_advaxisz 0 // z-axis is treated like a button joy_advaxisr 2 // r-axis controls GAME_AXIS_PITCH (look up and down) joy_advaxisu 4 // u-axis controls GAME_AXIS_YAW (look left and right) joy_advaxisv 0 // v-axis is unused joy_forwardsensitivity -1.0 // movement sensitivity joy_sidesensitivity 1.0 joy_forwardthreshold 0.1 // movement dead zone settings joy_sidethreshold 0.1 joy_pitchsensitivity 1.0 // look sensitivity joy_yawsensitivity -1.5 joy_pitchthreshold 0.1 // look dead zone settings joy_yawthreshold 0.0 joy_variable_frametime 1 joy_autoaimdampenrange 0.85 joy_autoaimdampen 0.5 joy_lowend 0.65 joy_lowmap 0.15 joy_accelscale 3.0 joy_accelmax 4.0 joy_response_move 5 joy_response_look 1 joy_autoaimdampen 0.3 joy_autoaimdampenrange 0.85 joyadvancedupdate // advanced joystick update allows for analog control of move and look // Alternate control 1 bind "0" "slot10" bind "1" "slot1" bind "2" "slot2" bind "3" "slot3" bind "4" "slot4" bind "5" "slot5" bind "6" "slot6" bind "7" "slot7" bind "8" "slot8" bind "9" "slot9" bind "a" "+moveleft" bind "c" "+voicerecord" bind "d" "+moveright" bind "e" "+use" bind "f" "impulse 100" bind "h" "motd" bind "m" "chooseteam" bind "q" "lastinv" bind "r" "+reload" bind "s" "+back" bind "t" "impulse 201" bind "u" "messagemode2" bind "w" "+forward" bind "x" "+mouse_menu QA" bind "y" "messagemode" bind "z" "+mouse_menu Orders" bind "`" "toggleconsole" bind "SPACE" "+jump" bind "TAB" "+showscores" bind "ESCAPE" "cancelselect" bind "SHIFT" "+speed" bind "CTRL" "+duck" bind "F1" "Vote Yes" bind "F2" "Vote No" bind "F5" "jpeg" bind "MOUSE1" "+attack" bind "MOUSE2" "+attack2" bind "MOUSE3" "+zoom" bind "MWHEELUP" "invprev" bind "MWHEELDOWN" "invnext" // controller2 bindings cmd2 +jlook // enable joystick look cmd2 bind "A_BUTTON" "+jump;+menuAccept" // (A) button - Jump -menuAccpt allows us to make selections on hud menus cmd2 bind "B_BUTTON" "+reload" // (B) button - Reload cmd2 bind "X_BUTTON" "+use" // (X) Use cmd2 bind "Y_BUTTON" "lastinv" // (Y) button - swap pistol/rifle or z_abort -used to respawn as a ghost. cmd2 bind "R_TRIGGER" "+attack" // RT - Main weapon - Primary trigger cmd2 bind "L_TRIGGER" "+attack2" // LT - Melee cmd2 bind "R_SHOULDER" "+lookspin" // RB - Fast 180 spin cmd2 bind "L_SHOULDER" "toggle_duck" // LB - Duck - is also used to give objects to people. cmd2 bind "STICK1" "vocalize smartlook" // LS - vocalize cmd2 bind "STICK2" "+zoom" // RS click - Rifle Zoom // Fixed bindings, do not change these across joystick presets cmd2 bind "BACK" "togglescores" // (back) button - scores cmd2 bind "START" "pause" // (start) button - pause cmd2 bind "S1_UP" "+menuUp" // Hud menu Up cmd2 bind "S1_DOWN" "+menuDown" // Hud menu Down cmd2 bind "UP" "impulse 100" // DPad Up - Toggle flashlight cmd2 bind "LEFT" "slot3" // DPad Left - grenade cmd2 bind "RIGHT" "slot4" // DPad Right - health cmd2 bind "DOWN" "slot5" // DPad Down - Pills
At the main menu, select "Options", then choose the "Keyboard/Mouse"
selection. Enable the "Allow Developers Console" option. While playing
the game, press ~ to display the console window. Type "Exec 360controller.cfg" and press [Enter], then set your split screen mode with the following console codes: "ss_splitmode 1" ("Horizontal-Cut" for standard monitors) or "ss_splitmode 2" ("Vertical-Cut" for widescreen monitors). Connect to a server. Join the server with the "connect [IP address] 2"
console code. You must now set the Xbox 360 controller to player two
(with the light on the Xbox logo pointing to "2"). To do this, quickly
unplug and reinsert the Xbox 360 controller while the game is running.
You can now play in Co-op mode in split-screen.