mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-24 14:31:02 +00:00
Tilt camera less quickly with more air time
This commit is contained in:
parent
1fc942e47a
commit
0818be1b8a
1 changed files with 4 additions and 2 deletions
|
|
@ -4313,8 +4313,10 @@ DoABarrelRoll (player_t *player)
|
|||
|
||||
delta = slope - player->tilt;
|
||||
smoothing = FixedDiv(AbsAngle(slope), ANGLE_45);
|
||||
delta = FixedDiv(delta, 33 * FixedDiv(FRACUNIT,
|
||||
FRACUNIT + smoothing));
|
||||
|
||||
delta =
|
||||
FixedDiv(delta, (33 + min(4, player->airtime) * 22)
|
||||
* FixedDiv(FRACUNIT, FRACUNIT + smoothing));
|
||||
|
||||
if (delta)
|
||||
player->tilt += delta;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue