mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Use bot mo angle in demo chasecam
This commit is contained in:
parent
954127d533
commit
fa60a3a20c
1 changed files with 5 additions and 6 deletions
11
src/p_user.c
11
src/p_user.c
|
|
@ -3263,13 +3263,12 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
|
|
||||||
if (demo.playback)
|
if (demo.playback)
|
||||||
{
|
{
|
||||||
// Hack-adjacent.
|
if (K_PlayerUsesBotMovement(player))
|
||||||
// Sometimes stale ticcmds send a weird angle at the start of the race.
|
focusangle = mo->angle; // Bots don't even send cmd angle; they always turn where they want to!
|
||||||
// P_UpdatePlayerAngle knows to ignore cmd angle when you literally can't turn, so we do the same here.
|
else if (leveltime <= introtime)
|
||||||
if (leveltime > introtime)
|
focusangle = mo->angle; // Can't turn yet. P_UpdatePlayerAngle will ignore angle in stale ticcmds, chasecam should too.
|
||||||
focusangle = player->cmd.angle << TICCMD_REDUCE;
|
|
||||||
else
|
else
|
||||||
focusangle = mo->angle; // Just use something known sane.
|
focusangle = player->cmd.angle << TICCMD_REDUCE;
|
||||||
focusaiming = 0;
|
focusaiming = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue