]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't send taunt sounds to spectatees
authorMario <zacjardine@y7mail.com>
Sat, 13 Dec 2014 08:50:09 +0000 (19:50 +1100)
committerMario <zacjardine@y7mail.com>
Sat, 13 Dec 2014 08:50:09 +0000 (19:50 +1100)
qcsrc/server/cl_player.qc

index 9ae3f25d759a0f2ef38ad1b5c0c85c7b6d0fb1e9..b96646dfb6f28ea5fb352e42f61ac70a6ce25497 100644 (file)
@@ -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)