From: Mario Date: Sat, 13 Dec 2014 08:50:09 +0000 (+1100) Subject: Don't send taunt sounds to spectatees X-Git-Tag: xonotic-v0.8.0~103 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=46c4a28a03ddeb7a1ac8c5f85f34000a383cbeb3;p=xonotic%2Fxonotic-data.pk3dir.git Don't send taunt sounds to spectatees --- diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 9ae3f25d7..b96646dfb 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)