mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Do not tilt while respawning; speed up camera (snappier)
This commit is contained in:
parent
f205d6d8fd
commit
239e91c439
1 changed files with 10 additions and 0 deletions
10
src/p_user.c
10
src/p_user.c
|
|
@ -2974,6 +2974,10 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
else
|
||||
lookbackdelay[num]--;
|
||||
}
|
||||
else if (player->respawn.state != RESPAWNST_NONE)
|
||||
{
|
||||
camspeed = 3*FRACUNIT/4;
|
||||
}
|
||||
lookbackdown = (lookbackdelay[num] == MAXLOOKBACKDELAY) != lookbackactive[num];
|
||||
lookbackactive[num] = (lookbackdelay[num] == MAXLOOKBACKDELAY);
|
||||
#undef MAXLOOKBACKDELAY
|
||||
|
|
@ -4098,6 +4102,12 @@ DoABarrelRoll (player_t *player)
|
|||
|
||||
fixed_t smoothing;
|
||||
|
||||
if (player->respawn.state != RESPAWNST_NONE)
|
||||
{
|
||||
player->tilt = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
if (player->exiting)
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue