X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fclientkill.qc;h=73ccb383d40fe3f2c355b325c3eb3846f15e8541;hb=77a72b8a1d5686ac0ee30d5019f512086bcbaf3e;hp=8d7293bb066214c1f5e47535be2ab93453f47c46;hpb=e044c33d2e56a13837659b0cdb0ac9a2e6242957;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/clientkill.qc b/qcsrc/server/clientkill.qc index 8d7293bb0..73ccb383d 100644 --- a/qcsrc/server/clientkill.qc +++ b/qcsrc/server/clientkill.qc @@ -1,11 +1,15 @@ #include "clientkill.qh" -#include +#include +#include +#include +#include -#include "g_damage.qh" +#include "damage.qh" #include "teamplay.qh" #include +#include #include #include @@ -137,7 +141,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; @@ -195,8 +199,6 @@ void ClientKill_Silent(entity this, float _delay) // Called when a client types 'kill' in the console void ClientKill(entity this) { - // TODO: once .health is removed, will need to check it here for the "already dead" message! - if (game_stopped || this.player_blocked || STAT(FROZEN, this)) return;