mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-24 17:02:35 +00:00
Use pitch/roll for camera tilting
This commit is contained in:
parent
696e405038
commit
f313eece7e
1 changed files with 2 additions and 14 deletions
16
src/p_user.c
16
src/p_user.c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue