Garry's Mod

Garry's Mod

390 ratings
Sound Muffling Effect
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Movie, Realism
File Size
Posted
Updated
14.877 KB
19 Jul @ 4:47am
22 Jul @ 8:38pm
11 Change Notes ( view )

Subscribe to download
Sound Muffling Effect

In 1 collection by sora1d
Idiot's Collection
233 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.

Known Issues
  • CSoundPatch delta functionality is not implemented.
  • Ragdoll dragging sounds louder and play longer.

Please report bugs in the comment or even better, in a thread. 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://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1449731878
Popular Discussions View All (3)
7
3 hours ago
[Bug Report] Nombat music repeats every half-second
HeavySans
1
1 hour ago
Good maps to play w/ this on
ArgyBargyGuy / Can
0
5 hours ago
[Bug Report] Certain map entities do not play sound at all
The Bahbah
94 Comments
Big Red Scug 53 minutes ago 
Thank you dear friend for this addition
sora1d  [author] 3 hours ago 
@CarlosVIP9811 Should be fixed now
Space Stone 4 hours ago 
finally, ray traced audio
The Nugget 7 hours ago 
cool af
CarlosVIP9811 7 hours ago 
yo, what does this mean

[Sound Muffling Effect] lua/autorun/client/sme_cl.lua:172: Tried to use a NULL entity!
1. GetPos - [C]:-1
2. func - lua/autorun/client/sme_cl.lua:172
3. unknown - lua/includes/extensions/net.lua:34
verl 8 hours ago 
kerabyte-sized and cool, very awesome mod
UNATCO Trooper 8 hours ago 
This Client Side?
alastis 8 hours ago 
is it works with voicechats?
Capt. Odell 10 hours ago 
hey there, addon completely breaks sound emmiters for wiremod
HyperActiveStudios 10 hours ago 
I noticed it makes fire sound really muffled even up close and footsteps sound a lot slower.