mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-28 17:26:16 +00:00
Require slope angle > 11.25 to tilt camera
This commit is contained in:
parent
f2812dbbe6
commit
3a7a537d0e
1 changed files with 13 additions and 3 deletions
16
src/p_user.c
16
src/p_user.c
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue