Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local taunts = {}
- function addTaunt(cat, soundFile,)
- if !taunts[cat] then
- taunts[cat] = {}
- end
- local t = {}
- t.sound = soundFile
- t.category = cat
- table.insert(taunts[cat], t)
- end
- addTaunt("help", "vo/npc/male01/help01.wav",)
- addTaunt("scream", "vo/npc/male01/runforyourlife01.wav")
- addTaunt("scream", "vo/npc/male01/runforyourlife02.wav")
- addTaunt("scream", "vo/npc/male01/runforyourlife03.wav")
- addTaunt("scream", "vo/npc/male01/watchout.wav")
- addTaunt("scream", "vo/npc/male01/gethellout.wav")
- addTaunt("morose", "vo/npc/female01/question31.wav")
- addTaunt("morose", "vo/npc/male01/question30.wav")
- addTaunt("morose", "vo/npc/male01/question20.wav")
- addTaunt("morose", "vo/npc/male01/question25.wav")
- addTaunt("morose", "vo/npc/male01/question15.wav")
- addTaunt("funny", "vo/npc/male01/doingsomething.wav")
- addTaunt("funny", "vo/npc/male01/busy02.wav")
- addTaunt("funny", "vo/npc/male01/gordead_ques07.wav")
- addTaunt("funny", "vo/npc/male01/notthemanithought01.wav")
- addTaunt("funny", "vo/npc/male01/notthemanithought02.wav")
- addTaunt("funny", "vo/npc/male01/question06.wav")
- addTaunt("funny", "vo/npc/male01/question09.wav")
- concommand.Add("mu_taunt", function (ply, com, args, full)
- if ply.LastTaunt && ply.LastTaunt > CurTime() then return end
- if !ply:Alive() then return end
- if ply:Team() != 2 then return end
- if #args < 1 then return end
- local cat = args[1]:lower()
- if !taunts[cat] then return end
- local taunt = table.Random(taunts[cat])
- ply:EmitSound(taunt.sound)
- ply.LastTaunt = CurTime() + SoundDuration(taunt.sound) + 0.3
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement