Left 4 Dead 2

Left 4 Dead 2

81 ratings
Audio Modulator
   
Award
Favorite
Favorited
Unfavorite
Game Content: Sounds, Scripts
File Size
Posted
Updated
10.992 KB
Jul 12, 2022 @ 10:54am
Jul 17, 2022 @ 12:56pm
4 Change Notes ( view )

Subscribe to download
Audio Modulator

Description
Only work on Valve's official campaigns

A script that increase the range of which the weapon firing sound's pitch and volume shift (increase the sound randomness, basically) So instead of rifle go brrrrrrrr it will go ↗↘↗↘↗↘↗↘↗↘ instead

Adding new sound variant

Instead of just having one same firing sound, you can have multiple of them, enriching the gun battle experience.
Look into the vpk's scripts folder, open module7.txt
Add new sound variants like below for the weapon firing sound you want

"AutoShotgun.Fire"
{
"channel" "CHAN_WEAPON"
"soundlevel" "SNDLVL_TALKING"
"volume" "0.75,1"
"pitch" "88,120"
"rndwave" {
"wave" ")weapons/auto_shotgun/gunfire/auto_shotgun_fire_1.wav"
"wave" ")weapons/auto_shotgun/gunfire/auto_shotgun_fire_2.wav"
"wave" ")weapons/auto_shotgun/gunfire/auto_shotgun_fire_3.wav"
}
}

This will tell the game to pick randomly between auto_shotgun_fire_1, 2 and 3 when you fire the weapon

However by adding new sound you'll need to build audio cache for it, so place the new sound Left4Dead2/hl2/sound/weapons
Next, start the game and open the console, type "snd_buildsoundcachefordirectory ../hl2/"
This will build the audio cache for newly added sound files. Without this the new sound wont play in game

Global sound script
There is a more complex method that work on any map instead of just Valve's campaign here: https://www.reddit.com/r/SourceEngine/comments/ro322t/how_to_change_sound_script_for_left_4_dead_2/
41 Comments
7ᴇᴍᴘᴇsᴛᴲ  [author] Sep 29, 2024 @ 2:49am 
No
Desmond Sep 29, 2024 @ 1:58am 
Goaty Sep 21, 2024 @ 1:16pm 
Could you make a similar mod for reloading sounds?
7ᴇᴍᴘᴇsᴛᴲ  [author] Oct 2, 2023 @ 7:58pm 
Only official maps name are listed in the script
If you want custom maps to work you'll have to add their name to the script
(^^^) Xeno Oct 2, 2023 @ 11:46am 
I find a little odd so it only works for official maps/campaigns? May I know why it doesn't work for custom maps.
🀥|17. LwFD| EftertruppMastare Sep 8, 2023 @ 2:40am 
:cozybethesda:
7ᴇᴍᴘᴇsᴛᴲ  [author] Sep 7, 2023 @ 9:56pm 
ye
🀥|17. LwFD| EftertruppMastare Sep 7, 2023 @ 12:59pm 
can this be use with any weapons gunfire sound mod?
Pluvillion Mar 26, 2023 @ 6:31am 
Ah. Gotcha. Got it now. Thanks again.
7ᴇᴍᴘᴇsᴛᴲ  [author] Mar 26, 2023 @ 5:32am 
Sound folder doesn't need to be in a vpk, but the sound scripts are