]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Gib clones when they die, as I have no good way of activating their
authorRudolf Polzer <divverent@xonotic.org>
Sun, 11 Jan 2015 15:21:48 +0000 (07:21 -0800)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 11 Jan 2015 15:22:45 +0000 (07:22 -0800)
death animation.

qcsrc/server/cl_player.qc

index bb80ace2753013e3131f83da6c33cd0562e17785..d899b3db3a8f85587c1c9ab152f043b2db29f93e 100644 (file)
@@ -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);
                }