From: MirceaKitsune Date: Tue, 15 Nov 2011 17:00:44 +0000 (+0200) Subject: Properly fix the damage leaning bug X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b0daf7e86cbd346e8ea775c430ac0100657cc3bf;p=voretournament%2Fvoretournament.git Properly fix the damage leaning bug --- 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