Garry's Mod

Garry's Mod

Sound Muffling Effect
https://wiki.facepunch.com/gmod/Global.CreateSound < Breaks sound muffling effect
Someone using my mods was reporting this. Seems like your mod causes an error with entities using CreateSound

[Sound Muffling Effect] lua/sme_modules/server/sme_soundpatch_sv.lua:32: bad argument #1 to 'Send' (Entity expected, got number)
1. Send - [C]:-1
2. CreateSound - lua/sme_modules/server/sme_soundpatch_sv.lua:32
3. unknown - lua/entities/ent_halo_eqp_instantcover.lua:285


[Sound Muffling Effect] lua/sme_modules/server/sme_soundpatch_sv.lua:32: bad argument #1 to 'Send' (Entity expected, got number)
1. Send - [C]:-1
2. CreateSound - lua/sme_modules/server/sme_soundpatch_sv.lua:32
3. unknown - lua/entities/ent_halo_eqp_instantcover.lua:46
4. CallProxies - lua/includes/extensions/entity.lua:339
5. SetActivated - lua/includes/extensions/entity.lua:367
6. v - lua/autorun/imp_halo_hooks.lua:534
7. unknown - lua/includes/modules/hook.lua:102
< >
Showing 1-6 of 6 comments
sora1d  [developer] 29 Jul @ 2:08am 
Addon link?
Impulse 29 Jul @ 2:27am 
The version they were using isn't listed but here's the public version.
They were on a branch of it I have that's updated but I cant release publicly yet.
The equipment items like the deployable cover, Grav lift and power drain should cause it
That being said, if you're going to try to look at the code in my mod it's not going to be the same line
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2896827442
Last edited by Impulse; 29 Jul @ 2:29am
sora1d  [developer] 29 Jul @ 3:17am 
That's odd. There seems to be sound level and pitch passed into CreateSound? Not sure which addon allows for this.
Impulse 29 Jul @ 11:39am 
This is the line of code that was causing your mod to error for reference;
CreateSound(self, "impulse/halo/cover/instantcover_loop/instant_cover"..math.random(1,4)..".wav",80,100)

Originally posted by sora1d:
That's odd. There seems to be sound level and pitch passed into CreateSound? Not sure which addon allows for this.
sora1d  [developer] 29 Jul @ 6:04pm 
Yes and that's not possible with vanilla Gmod CreatSound. It only takes in three parameters and the third one is a CRecipientFilter not a number.
Impulse 29 Jul @ 7:58pm 
Originally posted by sora1d:
Yes and that's not possible with vanilla Gmod CreatSound. It only takes in three parameters and the third one is a CRecipientFilter not a number.
Yeah I realized that earlier. Ill have to go through and check my things that use create sound
< >
Showing 1-6 of 6 comments
Per page: 1530 50