Left 4 Dead 2

Left 4 Dead 2

86 个评价
Audio Modulator
   
奖励
收藏
已收藏
取消收藏
Game Content: Sounds, Scripts
文件大小
发表于
更新日期
10.992 KB
2022 年 7 月 12 日 上午 10:54
2022 年 7 月 17 日 下午 12:56
4 项改动说明 ( 查看 )

订阅以下载
Audio Modulator

描述
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 条留言
7ᴇᴍᴘᴇsᴛᴲ  [作者] 2024 年 9 月 29 日 上午 2:49 
No
datsample 2024 年 9 月 29 日 上午 1:58 
Goaty 2024 年 9 月 21 日 下午 1:16 
Could you make a similar mod for reloading sounds?
7ᴇᴍᴘᴇsᴛᴲ  [作者] 2023 年 10 月 2 日 下午 7:58 
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 2023 年 10 月 2 日 上午 11:46 
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 2023 年 9 月 8 日 上午 2:40 
:cozybethesda:
7ᴇᴍᴘᴇsᴛᴲ  [作者] 2023 年 9 月 7 日 下午 9:56 
ye
🀥|17. LwFD| EftertruppMastare 2023 年 9 月 7 日 下午 12:59 
can this be use with any weapons gunfire sound mod?
Pluvillion 2023 年 3 月 26 日 上午 6:31 
Ah. Gotcha. Got it now. Thanks again.
7ᴇᴍᴘᴇsᴛᴲ  [作者] 2023 年 3 月 26 日 上午 5:32 
Sound folder doesn't need to be in a vpk, but the sound scripts are