\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
+ if(WEP_VALID(DEATH_WEAPONOF(deathtype))) // only for damage caused by weapons\r
{\r
targ.leanangle_damage_loc = hitloc - targ.origin;\r
targ.leanangle_damage_force += force * cvar("g_leanplayer_damage"); // keep existing force if any\r