Garry's Mod

Garry's Mod

901 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://steamproxy.net/sharedfiles/filedetails/?id=1449731878
Popular Discussions View All (17)
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
207 Comments
screwdriver lobotomy 11 hours ago 
[Sound Muffling Effect] lua/sme_modules/client/sme_emit_cl.lua:138: attempt to compare number with nil
1. func - lua/sme_modules/client/sme_emit_cl.lua:138
2. run - lua/gmpp/hook.lua:347
3. unknown - lua/gmpp/hook.lua:393
4. EmitSound - [C]:-1
5. unknown - lua/autorun/immersivecolleffects.lua:223
little_boi 29 Nov @ 6:35am 
when im playing on gm_gateway city the the dropships, gunships and helicopters are all muffled even when outside:papyruswacky:
persondoesstuff 25 Nov @ 9:01pm 
I got an error here.
[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. 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
AGCS 20 Nov @ 2:17am 
Some NPC deathsounds cut out abruptly with this addon ( Metrocop is the most noticable).
GroovyBruce 17 Nov @ 3:07pm 
I love this addon, but unfortunately it breaks the majority of sounds for VJ Base NPC's. Huge bummer!
Games Dean 14 Nov @ 7:51pm 
I feel right in the action!
commie 5 Nov @ 2:27pm 
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 2 Nov @ 12:26pm 
this thing goes crazy paired with the thumper things
SenorTerminator 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