From: Rudolf Polzer Date: Sun, 11 Jan 2015 15:21:48 +0000 (-0800) Subject: Gib clones when they die, as I have no good way of activating their X-Git-Tag: xonotic-v0.8.0~8 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=545cc76a864244a8ad93fba558f3010d7910378e Gib clones when they die, as I have no good way of activating their death animation. --- diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index bb80ace27..d899b3db3 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -623,8 +623,9 @@ void PlayerDamage (entity inflictor, entity attacker, float damage, float deatht self.nextthink = time; } - if(autocvar_sv_gentle > 0 || autocvar_ekg) { + if(autocvar_sv_gentle > 0 || autocvar_ekg || self.classname == "body") { // remove corpse + // clones don't run any animation code any more, so we must gib them when they die :( PlayerCorpseDamage (inflictor, attacker, autocvar_sv_gibhealth+1.0, deathtype, hitloc, force); }