From 405055c8b7a511f99c34e34aa0da3964cc04de48 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Mon, 28 Feb 2011 03:12:54 +0200 Subject: [PATCH] Use a (likely bad) way of making each player's taunt not limit another player's taunt. Don't know if I can timefilter them any better... --- data/qcsrc/server/cl_player.qc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/server/cl_player.qc b/data/qcsrc/server/cl_player.qc index 14d44a23..ea3a9797 100644 --- a/data/qcsrc/server/cl_player.qc +++ b/data/qcsrc/server/cl_player.qc @@ -1212,6 +1212,7 @@ void UpdatePlayerSounds() } .float soundtimefilter; +.entity soundownerfilter; void GlobalSound(string sample, float chan, float voicetype) { float n; @@ -1294,8 +1295,10 @@ void GlobalSound(string sample, float chan, float voicetype) break; tauntrand = random(); FOR_EACH_REALCLIENT(msg_entity) + { + msg_entity.soundownerfilter = self; if (tauntrand < msg_entity.cvar_cl_autotaunt) - if not (self.taunt_soundtimefiltered && msg_entity.soundtimefilter > time) + if not (self.taunt_soundtimefiltered && msg_entity.soundownerfilter.soundtimefilter > time) { if (msg_entity.cvar_cl_voice_directional >= 1) { @@ -1308,8 +1311,9 @@ void GlobalSound(string sample, float chan, float voicetype) soundto(MSG_ONE, self, chan, sample, VOL_BASEVOICE, ATTN_NONE); if(self.taunt_soundtimefiltered) - msg_entity.soundtimefilter = time + msg_entity.cvar_cl_autotaunt_repeat; + msg_entity.soundownerfilter.soundtimefilter = time + msg_entity.cvar_cl_autotaunt_repeat; } + } break; case VOICETYPE_TAUNT: if(self.classname == "player") -- 2.39.2