Garry's Mod

Garry's Mod

815 ratings
Sound Muffling Effect
3
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Movie, Realism
File Size
Posted
Updated
23.737 KB
19 Jul @ 4:47am
31 Aug @ 7:40am
23 Change Notes ( view )

Subscribe to download
Sound Muffling Effect

In 1 collection by sora1d
Idiot's Collection
238 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 (15)
10
24 Jul @ 8:54am
(Fixed) [Bug Report] Nombat music repeats every half-second
HeavySans
6
29 Jul @ 7:58pm
https://wiki.facepunch.com/gmod/Global.CreateSound < Breaks sound muffling effect
Impulse
1
25 Aug @ 3:40am
Mod gives a lua error when used with GWarheads.
Iwasnotfound595
189 Comments
ishowblackish 5 Sep @ 12:06am 
this mod broke goldsrc hl1 vjbase npc voice, voice line wont even play
classic gamer 3 Sep @ 5:19pm 
Can you port this to gmod https://gamebanana.com/sounds/53788
screwdriver lobotomy 2 Sep @ 8:28am 
[Sound Muffling Effect] lua/sme_modules/client/sme_emit_cl.lua:134: attempt to compare number with nil
1. v - lua/sme_modules/client/sme_emit_cl.lua:134
2. unknown - lua/includes/modules/hook.lua:102
3. EmitSound - [C]:-1
4. LevelUp - gamemodes/beatrun/gamemode/cl/xp.lua:82
5. AddXP - gamemodes/beatrun/gamemode/cl/xp.lua:103
6. v - gamemodes/beatrun/gamemode/cl/xp.lua:47
7. Run - lua/includes/modules/hook.lua:102
8. func - gamemodes/beatrun/gamemode/sh/!misc.lua:119
9. unknown - lua/includes/extensions/net.lua:34

breaks with beatrun :c
Chupep 31 Aug @ 8:56am 
this mod makes third person cam jittery ASF
meierhans 29 Aug @ 11:46pm 
It indeed jitters the third person cam quite bad. It is not really playable like this. Looks like something is computed in a regular interval, and somehow this makes the third person cam stutter.
FrutigerAeroDreamer 28 Aug @ 11:00pm 
This mod is pretty good, but for whatever reason this mod forces abrupt stops death lines on some NPCs.

For example, if I kill a Metropolice NPC, or a Combine Soldier NPC, their death lines will play, but then immediately cut out once the sound engine produces it.
plzeatpomegranate 26 Aug @ 5:12am 
cool mod. but this mod will conflict with Headcrab Takeover (Zombie Overhaul) https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2998424650 . If you install Headcrab Takeover and installing this mod will make some maps to loop the fast zombies and poison zombies voices in some place.
C²²H²⁸N²O 25 Aug @ 11:13pm 
another thing i should mention is it stopped doing this after i added a mod called better movement v2, maybe the stuttering is related to the player's speed?
C²²H²⁸N²O 25 Aug @ 11:12pm 
there's a weird bug (it doesn't really seem like one but) when in third person, if the player steps or makes a sound (like stepping, jumping) the camera will lag behind for about 3 frames.

don't know why it's happening, but i'll try to figure it out.

the thirdperson mod is called "Enhanced Thirdperson"
gm_Redlerman16 25 Aug @ 2:17am 
and i also found this error, fix?

[Sound Muffling Effect] lua/sme_modules/client/sme_emit_cl.lua:52: attempt to index local 'trCheckUp' (a nil value)
1. v - lua/sme_modules/client/sme_emit_cl.lua:52
2. unknown - lua/includes/modules/hook.lua:102
3. EmitSound - [C]:-1
4. func - lua/sme_modules/client/sme_emit_cl.lua:194
5. unknown - lua/includes/extensions/net.lua:34