From b0daf7e86cbd346e8ea775c430ac0100657cc3bf Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 15 Nov 2011 19:00:44 +0200 Subject: [PATCH] Properly fix the damage leaning bug --- data/qcsrc/server/g_damage.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/server/g_damage.qc b/data/qcsrc/server/g_damage.qc index 22ed5de1..86e1f1b4 100644 --- a/data/qcsrc/server/g_damage.qc +++ b/data/qcsrc/server/g_damage.qc @@ -867,9 +867,9 @@ void Damage (entity targ, entity inflictor, entity attacker, float damage, float // lean the player based on the amount of damage taken if(cvar("g_leanplayer_damage")) + if(deathtype != DEATH_DIGESTION && deathtype != DEATH_STOMACHKICK && deathtype != DEATH_REGURGITATION) // prevents some bugs { - if(hitloc != targ.origin) // prevents a bug - targ.leanangle_damage_loc = hitloc - targ.origin; + targ.leanangle_damage_loc = hitloc - targ.origin; targ.leanangle_damage_force += force * cvar("g_leanplayer_damage"); // keep existing force if any // bound angles to the specified limit -- 2.39.2