From 545cc76a864244a8ad93fba558f3010d7910378e Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 11 Jan 2015 07:21:48 -0800 Subject: [PATCH] Gib clones when they die, as I have no good way of activating their death animation. --- qcsrc/server/cl_player.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.39.5