]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix health in ekg
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 5 Apr 2011 07:12:26 +0000 (09:12 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 5 Apr 2011 07:12:26 +0000 (09:12 +0200)
qcsrc/server/cl_player.qc

index 035114b25f23a9e62b34885927e9269c6330e003..3426c4ce56d6782db7a94a2274d23033376eea2b 100644 (file)
@@ -722,7 +722,7 @@ void PlayerDamage (entity inflictor, entity attacker, float damage, float deatht
 
                if(sv_gentle > 0 || autocvar_ekg) {
                        // remove corpse
-                       PlayerCorpseDamage (inflictor, attacker, 100.0, deathtype, hitloc, force);
+                       PlayerCorpseDamage (inflictor, attacker, autocvar_sv_gibhealth+1.0, deathtype, hitloc, force);
                }
 
                // reset fields the weapons may use just in case