Is there a way to disable the sounds that you hear when you burn?
There isn't anything about it in the GMod Wiki. In the Lua Files I neither found something about it.
Btw. sorry for my really bad english :P
[CODE]local DisabledSounds = {
["player/pl_burnpain1.wav"] = true,
["player/pl_burnpain2.wav"] = true,
["player/pl_burnpain3.wav"] = true,
--["ambient/fire/fire_small_loop2.wav"] = true,
}
hook.Add( "EntityEmitSound", "DisableFireDamageSound", function( t )
if DisabledSounds[ t.SoundName ] then return false end
end )[/CODE]
Run this on server. It wont work clientside (in this case).
The commented line is not a damage sound it is the actual fire loop.
And what if I want, that only (for example) traitors should hear this sounds?
So when I'm a detective i shouldn't hear the sounds and if I'm a traitor then I should hear them.
The gamemode is trouble in terroristtown.
(Just as an example o.O)
[QUOTE=markusmarkusz;50286437]And what if I want, that only (for example) traitors should hear this sounds?
So when I'm a detective i shouldn't hear the sounds and if I'm a traitor then I should hear them.
The gamemode is trouble in terroristtown.
(Just as an example o.O)[/QUOTE]
Any ideas?
You could try adding the hook clientside and then simply checking the team of the local player
Sorry, you need to Log In to post a reply to this thread.