]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_player.qc
Don't send taunt sounds to spectatees
[xonotic/xonotic-data.pk3dir.git] / 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)