Require slope angle > 11.25 to tilt camera

This commit is contained in:
James R 2020-09-24 19:59:24 -07:00
parent f2812dbbe6
commit 3a7a537d0e

View file

@ -4208,12 +4208,22 @@ DoABarrelRoll (player_t *player)
if (player->mo->standingslope)
{
delta = ( player->mo->angle - player->mo->standingslope->xydirection );
slope = -(FixedMul(FINESINE (delta>>ANGLETOFINESHIFT),
player->mo->standingslope->zangle));
slope = player->mo->standingslope->zangle;
}
else
{
slope = 0;
}
if (abs((INT32)slope) > ANGLE_11hh)
{
delta = ( player->mo->angle - player->mo->standingslope->xydirection );
slope = -(FixedMul(FINESINE (delta>>ANGLETOFINESHIFT), slope));
}
else
{
slope = 0;
}
slope -= Quaketilt(player);