From 46c4a28a03ddeb7a1ac8c5f85f34000a383cbeb3 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 13 Dec 2014 19:50:09 +1100 Subject: [PATCH] Don't send taunt sounds to spectatees --- qcsrc/server/cl_player.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 9ae3f25d75..b96646dfb6 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -1229,10 +1229,10 @@ void VoiceMessage(string type, string msg) flood = Say(self, ownteam, world, msg, 1); - if (flood > 0) - GlobalSound(self.sample, CH_VOICE, voicetype); - else if (flood < 0) + if(IS_SPEC(self) || IS_OBSERVER(self) || flood < 0) FakeGlobalSound(self.sample, CH_VOICE, voicetype); + else if (flood > 0) + GlobalSound(self.sample, CH_VOICE, voicetype); } void MoveToTeam(entity client, float team_colour, float type) -- 2.39.2