Left 4 Dead 2

Left 4 Dead 2

452 ratings
Several Incredibly Useful Commands for Left4Dead 2
By Xbye
Here is a list of incredibly useful if not essential commands needed to get the most out of your Left4Dead 2 experience. All these commands work and will have detailed information on what they do! Reduce input lag, increase frame rate, lower sound delay, and more!
2
   
Award
Favorite
Favorited
Unfavorite
Disclaimer
ㅤㅤㅤㅤㅤㅤㅤㅤ
ㅤI will not be covering how to make an autoexec in this guide. There are many videos and guides that already handle this. All this information is coming from years of playing the game and messing with different things within both public and competitive servers. None of these commands and such will get you banned, but as always use at your own risk. Most of these commands are going to require that you have/use an autoexec, so make sure to have one ready!

ㅤA few of these commands may already be common knowledge but I will still include them in this guide. There are still quite a few that are not common knowledge, so even veterans can still benefit from this guide.

As always, make sure to up vote the guide if you found it useful/good! It encourages people to continue making guides.
cl_interp (Network Latency)
Command(s): cl_interp
Default Value(s): 0.1

Description: Interpolation, also known as LERP. In very simple terms, this command adds latency (ping) to everything received from the server. The default is 0.1, which equates to adding 100ms to your latency. You can easily set this to as low as 0.0167 in public servers, which equates to adding 16.7ms to your latency.

ㅤHowever, keep in mind that the lower you set this the less smooth models will move. Common Infected while moving (and even Special Infected) will stutter the lower you set this. The lowest you were able to set this with minimal stuttering was 0.04 (40ms), but as of 2013(?) the lowest you can set this is 0.06 (60ms) for minimal stuttering.

ㅤㅤ
ㅤTo check if your successfully changed your LERP, you can temporarily enable net graph using the command net_graph 1. Do not leave this on, as it will sometimes impact FPS on a severe scale. For a better description of LERP, check out: ProdigySim's LERP Guide[www.l4dnation.com]. There are other commands you'll need to change as well, such as: rate, cl_updaterate, cl_cmdrate, cl_interp_ratio.
snd_mixahead (Audio Latency)
Command(s): snd_mixahead
Default Value(s): 0.1

Description: In simple terms this is essentially LERP but for sound/music. The default value is 0.1 which equates to 100ms of buffering time for audio. Setting this lower will reduce the delay in sounds being played to your speakers/headphones, however the lower you set this the lower the quality of audio will get.

ㅤThe lower this is set, the more likely you are to experience dropped sounds, stuttering audio, framerate drops, and or possible game instability. The lowest I've been able to set this without issue is 0.056 (56ms). This command is reliant on your hardware, so your CPU/RAM/Audio Drivers will have an impact on how low you can set this. This command has been used way back in the days of Half-Life competitive, and is currently used by CS:GO competitive players.
dsp_volume (Directional Accuracy)
Command(s): dsp_volume
Default Value(s): 0.8

Description: I recently discovered this command and brought it to light to the community. This command affects the accuracy of directional sound in source engine, and is currently cheat-flagged in CS:GO but not in Left4Dead 2.



ㅤI've tested this command for months before publishing my findings. Disabling it makes a difference for everyone but maybe a small handful of people. Both analog and USB headphone users will notice a difference between having it enabled or disabled. However... disabling it is not as easy as just typing dsp_volume 0 into console. This command resets every time you walk into a new soundscape (IE. Walk in to a building/room/outside area). You're going to need a special script to disable it permanently.

Pastebin - Link[pastebin.com]
bind "W" "+mfwd" bind "A" "+mleft" bind "S" "+mback" bind "D" "+mright" alias +mfwd "dsp_volume 0;-back;+forward;alias checkfwd +forward" alias +mback "dsp_volume 0;-forward;+back;alias checkback +back" alias +mleft "dsp_volume 0;-moveright;+moveleft;alias checkleft +moveleft" alias +mright "dsp_volume 0;-moveleft;+moveright;alias checkright +moveright" alias -mfwd "-forward;checkback;alias checkfwd none" alias -mback "-back;checkfwd;alias checkback none" alias -mleft "-moveleft;checkright;alias checkleft none" alias -mright "-moveright;checkleft;alias checkright none" alias checkfwd "none" alias checkback "none" alias checkleft "none" alias checkright "none" alias none ""

ㅤTo read more about this, check out my previous guide about dsp_volume.
voice_show_mute (Mute other players)
Command(s): voice_show_mute & voice_mute
Default Value(s): None

Description: This command will print out the current players (Including opponents) into console along with a number representing their voice channel. You can mute individual player's microphones using the command, voice_mute followed by their number. For example, voice_mute 8.
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
This will persist through map level changes and even when you return to lobby. If you remain in the same lobby and start a new game they will still continue to be muted. You can unmute someone by using the command voice_unmute followed by their number. For example, voice_unmute 8.
Vertical Sync (Input Latency)
Options(s): Vertical Sync
Default Value(s): Varies from hardware.

Description: Vertical sync locks your framerate to your monitors refresh rate (usually 60) and provides a smoother game experience while attempting to remove screen-tearing[upload.wikimedia.org]. This is great for the absolutely casual player, but absolutely devastating for anyone wanting to take their gameplay ability seriously. Vertical sync will introduce input latency, resulting in delayed actions ranging from jumping, moving, aiming, or anything really.



ㅤThe input latency gained from having vertical sync enabled depends entirely on the game's engine and if they properly do vertical sync. However source engine does it poorly, and having it enabled can result in anywhere between 300ms - 500ms of input lag. That is a half a second of delay before actions are displayed on your monitor. Your mouse is delayed by 300ms - 500ms, so is your movement, and so is the visual representation of your opponent's actions.

ㅤIf screen tearing bothers you, I implore that you look into other options to cap your framerate as vertical sync is a very bad option to have enabled. The input lag added from it just is too impactful for a fast action game. Such alternatives are MSI Afterburner+RivaTuner, DXTory, or NVidiaInspector (if you have an NVidia Card). These are just a few options.
Effects Detail / RAM (Rendering Distance)
Options(s): Effect Detail & High Paged Memory Pool
Default Value(s): Varies from hardware.

Description: Effect detail and high paged memory pool both control object rendering distance, with effect detail having the most impact. Setting these too low will make props not render at longer distances, and even completely remove props from your view.



ㅤEffect detail, at a very minimum, must bet set to medium. This will have an impact on your frame rate, but it is very mandatory if you ever plan to play anything competitive(IE. Versus/Scavenge). Paged Pool Memory Available refers to your computer's RAM. If you have at least 4 GB of RAM then you should set this to high and just forget about it. A higher setting will allow you to see props from farther away, reduce stuttering, but increase load times.

ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤExamples of Effect Detail Set To Low
.jpg].jpg]









ㅤMany props in infected only-areas as well as the main path of survivors will become invisible, but still have collision. Meaning you will be walking into these props and be completely unaware that something is in your way, or you're unable to spit/shoot through these. Render distance also affects the Tank's rocks!

ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤExamples of Effect Detail Set To Low
.jpg]-2.jpg]









ㅤAt lower settings (and not enough high paged pool memory) rocks will be almost invisible until they are already dangerously close. Making dodging and rock skeeting more difficult as you will be completely unaware of where the rock is. This is another reason why effect detail must be set to a minimum of medium.

.jpg]

Just by setting effect detail to medium I am able to now fully see the rock from a safe distance. Further setting this to high will have a bigger impact on FPS, but allow you to see rocks from an incredibly far distance. For most however, medium will suffice.
-LV (Low Violence Enabled)
Launch Options(s): -LV
Default Value(s): Disabled (Depending on region)

Description: This is a launch option available to uncensored versions of Left4Dead 2. This command is currently the only known command to actually increase your framerate. It essentially enables the low-violence or censored version of the game.

ㅤThis command will make corpses/ragdolls disappear near instantly, remove burning infected (Infected won't run around lit on fire, but still act as if lit on fire), remove gibbing (removal of limbs/cuts/wounds) and remove screen blood splatter. Also due to laziness by Valve, mudmen's attacks that place mud onto your screen will be removed as well due to them being the same as blood splatter.



ㅤTo add this command, simply right-click your and select properties. Then select set launch options and add -lv to it. To remove low violence, just remove -lv from your launch options. Enjoy the extra framerate and less clutter from corpses piling up.
+mat_motion_blur_percent_of_screen_max (default 4.00)
Launch Options(s): +mat_motion_blur_percent_of_screen_max
Default Value(s): 4.0

Description: Determines how much of your screen is to be blurred during high motion scenes. Very noticeable at higher graphic settings and when high damage pouncing as the Hunter. A comparison between the option being enabled/disabled can be seen below.

ㅤㅤㅤㅤㅤㅤㅤㅤEnabledㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤDisabled










Just simply put +mat_motion_blur_percent_of_screen_max 0 in your launch options.

57 Comments
Xbye  [author] 4 Sep, 2023 @ 2:56pm 
@Its_Kyaru

Other games like TF2 are good to reference as the concept is the exact same. CS:GO requires additional unneeded steps. You could try this video:

https://www.youtube.com/watch?v=1aT7kFj7ZGI

Just direct yourself to the L4D2 cfg folder.
Its_Kyaru 4 Sep, 2023 @ 1:11pm 
Hi, can you link me a video or guide on how to make an autoexec file specifically for L4D2, its either a video I find is completely irrelevant or is entirely in spanish.
Phobsorber 1 Aug, 2023 @ 11:00am 
Is it possible to use a command :neonrr:mm_dedicated_search_maxping:neonrl: as a launch option for a game on steam?
Big Joe 10 May, 2023 @ 12:38pm 
Want proof? Open your RivaTuner and add left4dead2.exe to it.
While that left4dead2.exe is highlighted, click on the blue "Setup" button.
Enable the "Enable frame color indicator".
Set the menu on the right side to "3 bars". Click "OK" at the bottom.
Limit your L4D2 frame rate with Nvidia control panel, or RivaTuner, or fps_max in your autoexec/developer console.
If you have a 60Hz display, limit your FPS to 57.
If you have 120Hz, limit to 117. If 144Hz, limit to 141.
It should be at least 3 FPS lower than your refresh rate.
Make sure you have G-Sync/FreeSync enabled, and L4D2 in-game VSync enabled.
View your RivaTuner OSD while playing a L4D2 map to see the 3 bars; the bars will be stable when VSync is on, but will show tearing when VSync is off. Your input lag will not be so laggy anymore, because your FPS is lower than your max refresh rate :steamhappy:
Big Joe 10 May, 2023 @ 12:23pm 
If you limit your FPS to be below your display's refresh rate, you won't have any significant impact to your input lag with VSync enabled. Blur Busters' "G-SYNC 101: Optimal G-SYNC Settings & Conclusion" article talks about this. G-Sync and FreeSync are meant to be used with VSync, as far as I know. Doing it that way prevents tearing at the bottom and/or top of the screen.
Beta 28 Jan, 2023 @ 8:11am 
10/10 guide thanks!!
NEKO.小行星驱逐舰和 10 Dec, 2022 @ 6:28pm 
is there any updated launch options? or console?
Masaharu Kaito (LJ 2021) 5 Nov, 2022 @ 9:23pm 
in my experience
i recommend setting the RAM (Paged Memory Pool) to Low
in my case, there are no differences between the high and low, and also it helps to load maps faster
p0wer 8 Nov, 2021 @ 10:35am 
What are your launch options?
@йвар 23 Jun, 2021 @ 10:01am 
TNX then. I thought it should be in config though... Will put it in autoexec then