Garry's Mod

Garry's Mod

864 ratings
Sound Muffling Effect
3
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Movie, Realism
File Size
Posted
Updated
24.232 KB
19 Jul @ 4:47am
8 Oct @ 6:22am
26 Change Notes ( view )

Subscribe to download
Sound Muffling Effect

In 1 collection by sora1d
Idiot's Collection
234 items
Description
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://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1449731878
Popular Discussions View All (16)
10
24 Jul @ 8:54am
(Fixed) [Bug Report] Nombat music repeats every half-second
GlucosePapi
6
29 Jul @ 7:58pm
https://wiki.facepunch.com/gmod/Global.CreateSound < Breaks sound muffling effect
Impulse
3
25 Jul @ 12:30pm
(Fixed) [Bug Report] Nombat music shuffles while in a vehicle
GlucosePapi
199 Comments
Crazy 17 Oct @ 5:10pm 
[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 3 Oct @ 12:39pm 
what if someone makes an addon that makes sound have travel time
Mr. Pilot guy 1 Oct @ 7:00pm 
Thats strange I never expected for a muffling sound mod to affect an Alien VS predator mod
Uzi Doorman 1 Oct @ 11:12am 
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 1 Oct @ 11:11am 
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 21 Sep @ 5:09pm 
The mod is Alien vs Predators SNPCS
Mr. Pilot guy 21 Sep @ 5:07pm 
It for some reason makes the Queen alien a Neutral creature and she just walks and wanders around, can the creator of this mod please (if possible} fix that issue?
Mr. Pilot guy 21 Sep @ 5:06pm 
This mod breaks Xenomorph SNPCS
UNIT1 20 Sep @ 11:42am 
still has death sound problems with Zbase snpcs
but vj seems to work fine now
TheMar 7 Sep @ 9:34am 
this mod does NOT like vrej base voice lines