Garry's Mod

Garry's Mod

Sound Muffling Effect
Impulse 28. juli kl. 19:38
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
< >
Viser 1-6 af 6 kommentarer
sora1d  [udvikler] 29. juli kl. 2:08 
Addon link?
Impulse 29. juli kl. 2:27 
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://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2896827442
Sidst redigeret af Impulse; 29. juli kl. 2:29
sora1d  [udvikler] 29. juli kl. 3:17 
That's odd. There seems to be sound level and pitch passed into CreateSound? Not sure which addon allows for this.
Impulse 29. juli kl. 11:39 
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)

Oprindeligt skrevet af sora1d:
That's odd. There seems to be sound level and pitch passed into CreateSound? Not sure which addon allows for this.
sora1d  [udvikler] 29. juli kl. 18:04 
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. juli kl. 19:58 
Oprindeligt skrevet af 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
< >
Viser 1-6 af 6 kommentarer
Per side: 1530 50