Left 4 Dead 2 Example Commands

I’m going to be going over what commands do what with for the Left 4 Dead 2 tool.
So just follow my steps, and you should be good. I did this for Brink and QAA so why not Left 4 Dead 2? Enjoy. I’ll update it in a few.

Make sure you’re making these changes/binds in the “left4dead2_cfg_ss.cfg” portion of your save. Everything needs to go there. Such as binds, cvars, etc.

Get some commands you want. I’ve listed some below.

For those who don’t know “//” is just a statement.

//Note: "1" is equal to ON. "0" is to OFF. This is the basics for any bind.
//You may set any command to "0" to turn it off. Ex: God 1 = ON | God 2 = OFF.
//You can string together binds with a semi-colon.
//Example: sv_cheats 1; z_spawn boomer; z_spawn hunter

//Enable cheats. (Note: This MUST be on to do most binds!)
sv_cheats 1

//God mode enabled.
God 1

//Noclip enabled.
Noclip 1

//Noclip speed. Replace "#" with speed value.

//Stop spawning zombies. Set "stop" to "start" to spawn infected again.

//Infinite ammo enabled.
sv_infinite_ammo 1

//Spawn special infected. (Replace "Tank" with special infected name. Ex: Witch.)
z_spawn Tank

//Spawn special infected. (More information.)
z_spawn tank 
z_spawn witch
z_spawn boomer
z_spawn smoker
z_spawn spitter
z_spawn jockey
z_spawn charger

//Spawn mob.
z_spawn mob

//Remove last spawned special infected. (Replace "Tank" with special infected name.)
kick tank

//Remove last spawned special infected. (More information.)
kick tank
kick boomer
kick smoker
kick hunter
kick spitter
kick jockey
kick charger

//Give weapon. (Replace "smg_mp5" with desired gun name. Ex: sniper_awp.)
give smg_mp5

//Give weapon. (More information.)
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 propane_tank
give gascan
give smg_mp5
give sniper_awp
give sniper_scout
give rifle_sg552
give rifle_desert
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

//Change view. (Choose one.)

//Change view. (More options.)

//Upgrade weapon. (Replace "LASER_SIGHT" with desired upgrade.)
upgrade_add LASER_SIGHT

//Upgrade weapon. (More information.)
upgrade_add LASER_SIGHT
upgrade_add explosive_ammo

Example save:

sv_cheats 1
bind "A_BUTTON" "+jump;+menuAccept"
bind "B_BUTTON" "+reload"
bind "X_BUTTON" "+use"
bind "Y_BUTTON" "lastinv"
bind "L_SHOULDER" "+duck"
bind "R_SHOULDER" "+lookspin"
bind "BACK" "noclip 0"
bind "START" "gameui_activate"
bind "STICK1" "vocalize smartlook"
bind "STICK2" "+zoom"
bind "UP" "z_spawn Witch"
bind "RIGHT" "z_spawn Tank"
bind "DOWN" "noclip 1"
bind "LEFT" "God 1;sv_infinite_ammo 1"
bind "S1_DOWN" "+menuDown"
bind "S1_UP" "+menuUp"
bind "L_TRIGGER" "+attack2"
bind "R_TRIGGER" "+attack"
joy_cfg_preset "0"
joy_inverty "0"
joy_legacy "0"
joy_movement_stick "0"
joy_pitchsensitivity "-1.050000"
joy_yawsensitivity "-2.500000"
option_duck_method "0"

Only if i had l4d2 still.
good share.

Great thread. I think I will try this (:

Thanks Cody, i’m sure this will be a great help to many people who weren’t sure about this.

Do you mind if i used this is in my guide to horizon? Full credit will obviously be given :smile:

Feel free. Probably will just be added to Horizon ><

Using binds and what not is still patched for online use right?

Yeah, unfortunately.
Valve didn’t care, but Microsoft forced them to fix it.