From: Mario Date: Tue, 21 Jul 2020 17:14:31 +0000 (+1000) Subject: Maker sure clones don't have a killindicator attached to them already when killing... X-Git-Tag: xonotic-v0.8.5~839 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=977d7262b039aa7771fccce01ce3f9846df19e4b;p=xonotic%2Fxonotic-data.pk3dir.git Maker sure clones don't have a killindicator attached to them already when killing them --- diff --git a/qcsrc/server/clientkill.qc b/qcsrc/server/clientkill.qc index 08758a065..51b133636 100644 --- a/qcsrc/server/clientkill.qc +++ b/qcsrc/server/clientkill.qc @@ -137,7 +137,7 @@ void ClientKill_TeamChange(entity this, float targetteam) // 0 = don't change, - this.killindicator.count = bound(0, ceil(killtime), 10); //sprint(this, strcat("^1You'll be dead in ", ftos(this.killindicator.cnt), " seconds\n")); - IL_EACH(g_clones, it.enemy == this && !(it.effects & CSQCMODEL_EF_RESPAWNGHOST), + IL_EACH(g_clones, it.enemy == this && !(it.effects & CSQCMODEL_EF_RESPAWNGHOST) && !it.killindicator, { it.killindicator = spawn(); it.killindicator.owner = it;