mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-21 03:11:24 +00:00
More consistent face-forward
Needs it to still land in a close ballpark, so the timer changes are still needed, but this makes it less prone to error
This commit is contained in:
parent
240d7a44c1
commit
6dd7718d6e
1 changed files with 6 additions and 1 deletions
|
@ -6654,10 +6654,15 @@ static void P_MovePlayer(player_t *player)
|
|||
}
|
||||
else if (player->kartstuff[k_spinouttimer] > 0 || player->pflags & PF_SLIDING)
|
||||
{
|
||||
INT32 speed = max(1, min(8, player->kartstuff[k_spinouttimer]/8));
|
||||
|
||||
if (player->mo->state != &states[S_KART_SPIN])
|
||||
P_SetPlayerMobjState(player->mo, S_KART_SPIN);
|
||||
|
||||
player->frameangle -= (ANGLE_11hh * min(8, player->kartstuff[k_spinouttimer]/8));
|
||||
if (speed == 1 && abs(player->mo->angle - player->frameangle) < ANGLE_22h)
|
||||
player->frameangle = player->mo->angle; // Face forward at the end of the animation
|
||||
else
|
||||
player->frameangle -= (ANGLE_11hh * speed);
|
||||
}
|
||||
else if (player->powers[pw_nocontrol] && player->pflags & PF_SKIDDOWN)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue