Left 4 Dead 2

Left 4 Dead 2

58 ratings
L4D2 Useful Console Commands
By WADDLES ツ and 1 collaborators
Very useful console commands for skips, tricks, quality of life, fun, practicing etc etc.
This is just copied from my steam notes. Work in progress so please kindly let us know if you spot a mistake :)
   
Award
Favorite
Favorited
Unfavorite
Non-cheat commands.
**Console commands that DON'T require "sv_cheats1" **

cvarlist (Show the list of console commands and convars VERY helpful)

key_listboundkeys (shows all your binds and what keys they're tied to)

snd_mixahead 0.060 (sets audio delay to 60ms instead of the default 100ms allowing for faster reactions and syncs the audio a lot better to whatever action you're preforming. P.S NOT RECOMMENDED TO SET BELOW 40MS! audio will get crunchy)

Net_graph 1-4 (shows ping, packet info, FPS and more I and most others prefer 1 but the other options can be useful for debugging issues :) )

net_graphproportionalfont 0-1 (resizes netgraph to a smaller or larger size, 0 is a MUCH more appropriate size for most seeing as 1 is a bit toooooo big)

cl_showpos 1 (displays position, angle, velocity/speed, cordinates and more!)

cl_crosshair_alpha 255 (fixes broken crosshair, set to 0 to hide crosshair)

maps * shows the console name of all maps (ex: the first chapter of dead center will be "c1m1_hotel" and the second would be "c1m2_streets")

sv_consistency 0 (fixes "Server is enforcing consistency for this file" error when joining friends. If this doesn't work, try having the lobby host run it)

closecaption 0/1 (turns on or off the subtitles/captions)

ping (shows the ping of all connected players)

jointeam 0/1/2 (Used to join the spectator team, the infected team and the survivor team)

voice_show_mute (shows all players in voice comms and their respective mute number)

voice_mute [mute number] (type in the players mute number into the brackets to mute them, helpful against mic spammers or people blasting music)

clear (wipes all text from the console)

gameinstructor_enable 0/1 (turn on or off the annoying messages that pop up example: "dont shoot teammates!" pick up bla bla bla) "Displays in game lessons that teach new players."- Valve Wiki

getpos (dump position and angles to the console, helpful for practicing skips or seeing your exact current position and angle)

host_map (console name for the current map)

fov_desired x (sets your field of view to whatever number you put in place of X)

cl_viewmodelfovsurvivor x (sets your viewmodel field of view to whatever number you put in place of X)

fps_max x (caps your FPS to never go over the number in place of X)

setinfo name "x" (change your name to whatever you put in place of X. Resets upon loading a new chapter. Character limit still applies. Use quotes!) Example: setinfo name "Billy Bob's Bangers"

bind [x] [y] (binds whatever key you want to preform an input/action. X being the key you want and Y being what you want it to do. Example: bind y +jump) (P.S a lot if not most commands require that you add a "+" to preform the action and a "-" to stop it)

mm_dedicated_search_maxping 50 (searches for lobbies with this ping or lower when hosting an official dedicated lobby. P.S it can be added to your launch options)

disconnect (leaves the current lobby/game you're in; takes you to the main menu)

+mat_texture_list (brings up a panel showing you currently loaded textures or all textures if you select the option at the top of the panel. P.S hitting escape after typing in the command will get rid of your pause menu blocking the panel)
"Sv_cheats 1" required commands
Sv_cheats 1 ONLY commands:

setpos x (will teleport you to whatever the "getpos" command shows you. MUST KNOW FOR PRACTICING HARD SKIPS/TECH)

showtriggers_toggle 0/1 (Allows you to see invisible triggers. Use value 0 to disable.)

sb_takecontrol [survivor name] (Gives you control of a different survivor)

vs_max_team_switches 99 (allows 99 manual team switches between survivors and infected in VS. mode)

hurtme x (hurts you for whatever number you put in place of X. Example "hurtme 50" will take off half your health leaving you at 50 HP. or "hurtme 21"' to remove 21 health.)

r_drawclipbrushes 2 (useful for skips; allows seeing map collision and slopes)

sv_showhitboxes_cursor x (binds whatever key you put in place of X to toggle hitboxes on enemies. Helpful to see hitboxes on Tank rocks and Jockeys/Hunters jumping)

mat_crosshair (Display the name of the material/texture under the crosshair.)

melee_show_swing 1 (shows melee rays)

z_grab_ledges_solo (grab ledges when playing single player or if you're the last survivor)

z_gun_survivor_friend_push (whether or not you can shove allies)

z_debug_spawnable_areas (Draws areas mobs can spawn from in green (normal) or blue)

z_common_limit x (replace x with the number of max zombies you want to spawn. Default is 30)

perfui (Show/hide the level performance tools UI. Has helpful tools to see where your bullets landed [the yellow boxes in the image], loaded props, and a wireframe view of the map. IMAGE BELOW)


z_allow_ai_to_use_abilities 0/1 (toggled with 0 or 1. When set to 0 Hunters wont pounce, Tanks wont throw rocks, etc)

buddha 1-4 (Survivors take damage as normal, but will never go below 1 HP. it's a Cvar and the number it's set to represents amount of survivors that must remain standing (non-incapacitated). So for example with buddha 1, last survivor standing will get the buddha, buddha 2 = last 2 survivors standing will have buddha effect etc.)

Boom (Spawn a pipe-bomb under you)

fire / burn (ignites you)

director_force_panic (Forces a panic event)

nb_blind 1 (Special Infected won't attack you)

player_throwforce x (replace X with whatever number you want; increases how far you throw props [gas cans,oxygen tanks, firework crates] Default is 2000) (P.S if you throw things fast enough they explode on impact which could make for some good fun)
9 Comments
999 ᠌ ⁧⁧Optimus Rhyme Mar 16 @ 6:20am 
W:steamthis::steamthumbsup:
very safe for work SFM artist  [author] Mar 15 @ 6:08pm 
guide updated, ty! ^^
WiFiKebab Mar 15 @ 5:32pm 
setinfo name lets you have spaces and (probably) special characters as well if you put the name in the quotation marks e.g. setinfo name "Billy Joebob"
why not? nah! why boof! Mar 13 @ 9:24am 
thanks!
WADDLES ツ  [author] Mar 12 @ 9:01pm 
I figured it out :) "buddha 1" always worked because I was playing solo. However, you have to type "buddha 4" if you the 3 bots playing with you. I thought "buddha 0" turned it off and "buddha 1" turned it on like most mods but nope. This is what it says on the Valve Wiki "it's a cvar and the number it's set to represents amount of survivors that must remain standing (non-incapacitated). So for example with buddha 1, last survivor standing will get the buddha, buddha 2 = last 2 survivors standing will have buddha effect etc.
See also"
why not? nah! why boof! Mar 12 @ 6:20pm 
i put buddha 1
why not? nah! why boof! Mar 12 @ 6:19pm 
Buddha dose not work (i did turn of sv_cheats 1)
very safe for work SFM artist  [author] Mar 12 @ 12:45pm 
Put "-lv" in your launch options w/out quotes. It enables low violence mode, which gets rid of a lot of gore effects and makes the zombie bodies disappear :3
Z3L0xx Mar 12 @ 9:13am 
do you know how to make infected body disapear when killed ?