X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fcl_player.qc;h=17569147fb091d9e08f9ee4ea7e877287c69f34d;hp=9ae3f25d759a0f2ef38ad1b5c0c85c7b6d0fb1e9;hb=dc25d591f448c6ed191fcf9452d65b87d7a26e90;hpb=b03338e49b3b16ec20c59a9809abe16bebcd29ce diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 9ae3f25d7..17569147f 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -502,7 +502,7 @@ void PlayerDamage (entity inflictor, entity attacker, float damage, float deatht if(self.alivetime) { - PlayerStats_Event(self, PLAYERSTATS_ALIVETIME, time - self.alivetime); + PS_GR_P_ADDVAL(self, PLAYERSTATS_ALIVETIME, time - self.alivetime); self.alivetime = 0; } @@ -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)