Garry's Mod

Garry's Mod

Customizable Taunt Menu for Prop Hunt
Vash Baldeus 21. mar. 2017 kl. 8:56
Taunt delay code.
Just replace the end of SERVER with this:
util.AddNetworkString("send_taunt") net.Receive( "send_taunt", function( _, ply ) local taunt = net.ReadString() if ((ply.Delay or 0) < CurTime()) then sound.Add( { name = "playerTauntSound", channel = CHAN_AUTO, volume = 1.0, level = 150, pitch = 100, sound = taunt } ) ply:EmitSound("playerTauntSound") ply.Delay = CurTime() + SoundDuration(taunt) + 3 end end ) end

It will make a dealy, forbid spam.
< >
Viser 1-2 af 2 kommentarer
M̶O̶N͞4̵͢D͘  [udvikler] 25. mar. 2017 kl. 13:15 
Nice! I will include this in the next version if thats ok :steamhappy:
Vash Baldeus 25. mar. 2017 kl. 13:23 
Oprindeligt skrevet af Catzen:
Nice! I will include this in the next version if thats ok :steamhappy:
Sure, just note that some taunts might not work correct as according to GLUA wiki the function I used is not precise (SoundLength)
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50