\r
// lean the player based on the amount of damage taken\r
if(cvar("g_leanplayer_damage"))\r
+ if(deathtype != DEATH_DIGESTION && deathtype != DEATH_STOMACHKICK && deathtype != DEATH_REGURGITATION) // prevents some bugs\r
{\r
- if(hitloc != targ.origin) // prevents a bug\r
- targ.leanangle_damage_loc = hitloc - targ.origin;\r
+ targ.leanangle_damage_loc = hitloc - targ.origin;\r
targ.leanangle_damage_force += force * cvar("g_leanplayer_damage"); // keep existing force if any\r
\r
// bound angles to the specified limit\r