From: MirceaKitsune Date: Mon, 28 Feb 2011 01:12:54 +0000 (+0200) Subject: Use a (likely bad) way of making each player's taunt not limit another player's taunt... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=405055c8b7a511f99c34e34aa0da3964cc04de48;p=voretournament%2Fvoretournament.git 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... --- 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")