From: Rudolf Polzer Date: Sat, 11 Dec 2010 19:52:37 +0000 (+0100) Subject: fix the antispam X-Git-Tag: xonotic-v0.1.0preview~56 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a471ddf95bae15401e99299be86d8c2db5ad5d8c;p=xonotic%2Fxonotic-data.pk3dir.git fix the antispam --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 1d034a4ec..821f51573 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1306,9 +1306,11 @@ void ClientKill_TeamChange (float targetteam) // 0 = don't change, -1 = auto, -2 if(g_race_qualifying) killtime = 0; - // flood control it - killtime = max(killtime, self.clientkill_nexttime - time); - self.clientkill_nexttime = time + killtime + autocvar_g_balance_kill_antispam; + if(self.modelindex && self.deadflag == DEAD_NO) + { + killtime = max(killtime, self.clientkill_nexttime - time); + self.clientkill_nexttime = time + killtime + autocvar_g_balance_kill_antispam; + } self.killindicator_teamchange = targetteam;