Garry's Mod

Garry's Mod

887 个评价
Sound Muffling Effect
3
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 快乐, 影视, 写实
文件大小
发表于
更新日期
24.232 KB
7 月 19 日 上午 4:47
10 月 8 日 上午 6:22
26 项改动说明 ( 查看 )

订阅以下载
Sound Muffling Effect

在 sora1d 的 1 个合集中
Idiot's Collection
234 件物品
描述
About
Have you ever thought how odd it is that sounds do not seem to care about walls? Why do gunshots behind 3 meters of concrete sound the same as when it's they go off right in front of you? Well if so, then this addon might just be what you're looking for.

Features
  • Dynamically determine the appropriate muffling effect using a sensible occlusion detection.
  • Three muffle effect variant. One for each distance range.
  • Distant muffling for things that are far away regardless of obstruction.
  • Customisation via console variables.
  • Works for every sound other than voice chat as far as I know.
  • Multiplayer compatible. Each player will hear different muffling levels based on their position.

Commands
sme_active (serverside) - Enable or disable sound muffling. sme_attenuation - Enable or disable custom attenuation. Disable this if you think sound radii are too low. sme_sound_bouncing - Enable or disable sound bouncing. You can turn this off if you're experiencing performance problems. Note that this makes sound muffling way less accurate. sme_sound_launch_dist - Part of sound bouncing. How far can a sound launch from a source before it starts bouncing. sme_min_thickness - How much distance between you and where a sound source hit a solid for muffling effect to apply. Increase if you think sounds get muffled too easily. Decrease if you think that sounds hardly gets muffled. Setting it to 0 effectively disables it. sme_far_muffle_dist - How far away should a sound be for it to be muffled regardless of occlusion. Setting it to 0 effectively disables it.

Reporting Bugs
You can report bugs in the comment or even better, in a thread. Please note that only reports with steps to replicate will be investigated. Thank you!

Miscellaneous
The mod is compatible with Echo/Reverb Everywhere. In fact, this was supposed to be a part of that addon, but I thought it deserves its own identity.

The map in the video is gm_vyten:
https://steamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1449731878
热门讨论 查看全部(16)
10
7 月 24 日 上午 8:54
(Fixed) [Bug Report] Nombat music repeats every half-second
GlucosePapi
6
7 月 29 日 下午 7:58
https://wiki.facepunch.com/gmod/Global.CreateSound < Breaks sound muffling effect
Impulse
3
7 月 25 日 下午 12:30
(Fixed) [Bug Report] Nombat music shuffles while in a vehicle
GlucosePapi
203 条留言
GroovyBruce 11 月 17 日 下午 3:07 
I love this addon, but unfortunately it breaks the majority of sounds for VJ Base NPC's. Huge bummer!
Games Dean 11 月 14 日 下午 7:51 
I feel right in the action!
commie 11 月 5 日 下午 2:27 
This is an awesome add on, but this mod disables the voices added from RCVR. RCVR is a framework that allows for multiple voice packs to be used at once for NPCs. I hope a solution can be found!
Lobster2845 11 月 2 日 下午 12:26 
this thing goes crazy paired with the thumper things
SenorTerminator 10 月 17 日 下午 5:10 
[Sound Muffling Effect] lua/sme_modules/server/sme_soundpatch_sv.lua:168: bad argument #2 to 'soundPatchChangePitchOld' (number expected, got nil)
1. soundPatchChangePitchOld - [C]:-1
2. ChangePitch - lua/sme_modules/server/sme_soundpatch_sv.lua:168
3. CreateSound - lua/sme_modules/server/sme_soundpatch_sv.lua:72
4. Zombie_OnThinkActive - lua/entities/npc_vj_con_zriotbrute/init.lua:136
5. OnThinkActive - lua/entities/npc_vj_con_zmale/init.lua:667
6. unknown - lua/entities/npc_vj_creature_base/init.lua:1904
Whaddafrak 10 月 3 日 下午 12:39 
what if someone makes an addon that makes sound have travel time
Mr. Pilot guy 10 月 1 日 下午 7:00 
Thats strange I never expected for a muffling sound mod to affect an Alien VS predator mod
Uzi Doorman 10 月 1 日 上午 11:12 
and for the queen alien going neutral

[Sound Muffling Effect] lua/sme_modules/server/sme_soundpatch_sv.lua:168: bad argument #2 to 'soundPatchChangePitchOld' (number expected, got nil)
1. soundPatchChangePitchOld - [C]:-1
2. ChangePitch - lua/sme_modules/server/sme_soundpatch_sv.lua:168
3. CreateSound - lua/sme_modules/server/sme_soundpatch_sv.lua:72
4. Breathe - lua/entities/npc_vj_avp_xeno_queen/init.lua:630
5. OnThinkActive - lua/entities/npc_vj_avp_xeno_warrior/init.lua:2386
6. unknown - lua/entities/npc_vj_creature_base/init.lua:1904 (x54)
Uzi Doorman 10 月 1 日 上午 11:11 
aliens vs predator snpcs whenever the facehugger seems to try and attack someone it duplicates their bodies

[Sound Muffling Effect] lua/sme_modules/server/sme_soundpatch_sv.lua:168: bad argument #2 to 'soundPatchChangePitchOld' (number expected, got nil)
1. soundPatchChangePitchOld - [C]:-1
2. ChangePitch - lua/sme_modules/server/sme_soundpatch_sv.lua:168
3. CreateSound - lua/sme_modules/server/sme_soundpatch_sv.lua:72
4. OnMeleeAttackExecute - lua/entities/npc_vj_avp_xeno_facehugger/init.lua:319
5. ExecuteMeleeAttack - lua/entities/npc_vj_creature_base/init.lua:2469
6. unknown - lua/entities/npc_vj_creature_base/init.lua:2258

Timer Failed! [timer_melee_start_109.57999420166103][@lua/vj_base/ai/core.lua (line 1853)]
Mr. Pilot guy 9 月 21 日 下午 5:09 
The mod is Alien vs Predators SNPCS