Garry's Mod

Garry's Mod

Customizable Toolgun Sound
20 Comments
8eHg  [author] 30 Sep, 2024 @ 1:39am 
Nope, it directly replaces the sound path in the toolgun's (specifically your spawned instance of the toolgun) code.
Ready the Rabbit 30 Sep, 2024 @ 1:36am 
Does it affect the airboat gun sound too?
Virgiliu314 30 Apr, 2024 @ 4:41am 
ah ok
8eHg  [author] 30 Apr, 2024 @ 1:16am 
Was a local server though, not P2P.
Virgiliu314 30 Apr, 2024 @ 12:43am 
Just tried that and it didn't work, maybe it only works properly on peer-to-peer game sessions?
Virgiliu314 30 Apr, 2024 @ 12:41am 
Ok let me try respawning and see if the change is made
8eHg  [author] 30 Apr, 2024 @ 12:27am 
I tested it on a local server with 2 instances of GMod running at the same time. It should work. The only quirk I found is the player has to respawn for the sound change to broadcast to everyone else.
Virgiliu314 30 Apr, 2024 @ 12:12am 
Just tested it on server, sorry for late reply. It didn't change the sound when i ran the commands
Virgiliu314 29 Apr, 2024 @ 7:48am 
Right, i will try it
8eHg  [author] 29 Apr, 2024 @ 7:23am 
@Viirgiliu314 I've fixed the issue on my end. Please try it again on your server.
8eHg  [author] 29 Apr, 2024 @ 6:56am 
Don't worry, I've found the issue. It's an MP specific problem. I'll fix it soon.
Virgiliu314 29 Apr, 2024 @ 6:54am 
Ok so in a singleplayer session with just this mod installed it works as it should
Virgiliu314 29 Apr, 2024 @ 6:47am 
Right, will do, also idk if this bit of information helps narrow down the problem and troubleshoot any further but i have tested this mod on a multiplayer sandbox server that i own
8eHg  [author] 29 Apr, 2024 @ 4:30am 
Try with all other addons disabled except this one please. I've tested the addon on 2 PCs and it works fine.
Virgiliu314 29 Apr, 2024 @ 4:24am 
i tried again and well, there's no error anymore but the sound still won't change
Virgiliu314 29 Apr, 2024 @ 4:16am 
Okay, also sorry for late reply, i'll let you know if i have any issues
8eHg  [author] 29 Apr, 2024 @ 1:24am 
Could you try again, I just pushed out an update.
Virgiliu314 29 Apr, 2024 @ 1:13am 
i set it to 100 or something to make sure it's a reasonable cap, and even with changes to the length, the command still spews the same error
8eHg  [author] 29 Apr, 2024 @ 12:44am 
@Virgiliu314 What's the max length set to? I can't seem to replicate the issue.
Virgiliu314 28 Apr, 2024 @ 11:50pm 
This doesn't seem to work, i have tried running the following command:
"custom_toolgun_sound weapons/ar2/ar2_empty.wav"

and it didn't change the sound at all and it also spewed out this error message in console:

[Customizable Toolgun Sound] lua/autorun/client/customizabletoolgunsound_cl.lua:33: attempt to index a nil value
1. sendSound - lua/autorun/client/customizabletoolgunsound_cl.lua:33
2. callback - lua/autorun/client/customizabletoolgunsound_cl.lua:49
3. unknown - lua/includes/modules/cvars.lua:48


Not sure if this is a bug or if it's my mistake