Use pitch/roll for camera tilting

This commit is contained in:
James R 2021-04-06 15:04:24 -07:00
parent 696e405038
commit f313eece7e

View file

@ -4306,21 +4306,9 @@ DoABarrelRoll (player_t *player)
return;
}
if (player->mo->standingslope)
{
slope = player->mo->standingslope->zangle;
}
else
{
slope = 0;
}
slope = InvAngle(R_SpriteRotationAngle(player->mo));
if (abs((INT32)slope) > ANGLE_11hh)
{
delta = ( player->mo->angle - player->mo->standingslope->xydirection );
slope = -(FixedMul(FINESINE (delta>>ANGLETOFINESHIFT), slope));
}
else
if (AbsAngle(slope) < ANGLE_11hh)
{
slope = 0;
}