mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +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
|
else
|
||||||
lookbackdelay[num]--;
|
lookbackdelay[num]--;
|
||||||
}
|
}
|
||||||
|
else if (player->respawn.state != RESPAWNST_NONE)
|
||||||
|
{
|
||||||
|
camspeed = 3*FRACUNIT/4;
|
||||||
|
}
|
||||||
lookbackdown = (lookbackdelay[num] == MAXLOOKBACKDELAY) != lookbackactive[num];
|
lookbackdown = (lookbackdelay[num] == MAXLOOKBACKDELAY) != lookbackactive[num];
|
||||||
lookbackactive[num] = (lookbackdelay[num] == MAXLOOKBACKDELAY);
|
lookbackactive[num] = (lookbackdelay[num] == MAXLOOKBACKDELAY);
|
||||||
#undef MAXLOOKBACKDELAY
|
#undef MAXLOOKBACKDELAY
|
||||||
|
|
@ -4098,6 +4102,12 @@ DoABarrelRoll (player_t *player)
|
||||||
|
|
||||||
fixed_t smoothing;
|
fixed_t smoothing;
|
||||||
|
|
||||||
|
if (player->respawn.state != RESPAWNST_NONE)
|
||||||
|
{
|
||||||
|
player->tilt = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (player->exiting)
|
if (player->exiting)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue