set g_respawn_ghosts_speed 5 "the speed with which respawn ghosts float and rotate"\r
set g_respawn_ghosts_maxtime 6 "maximum amount of time a respawn ghost can last, minimum time is half this value. 0 disables and ghosts fade when the body would"\r
\r
-set g_leanplayer_damage 0.1 "lean players that are shot by this amount, based on the force they take"\r
+set g_leanplayer_damage 0.3 "lean players that are shot by this amount, based on the force they take"\r
set g_leanplayer_damage_fade 0.95 "how fast players return to normal angles, based on damage taken"\r
set g_leanplayer_damage_max 10 "damage leaning is limited to this amount"\r
set g_leanplayer_acceleration 0.05 "lean players as they accelerate, by this amount"\r
\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