Remove air drifitng jitter
It looked really strange since you aren't on the ground to jitter in the first place.
This commit is contained in:
parent
1897f9d1e7
commit
9179c6620c
1 changed files with 20 additions and 34 deletions
54
src/k_kart.c
54
src/k_kart.c
|
|
@ -2790,47 +2790,33 @@ void K_KartMoveAnimation(player_t *player)
|
|||
if (onground == false)
|
||||
{
|
||||
// Only use certain frames in the air, to make it look like your tires are spinning fruitlessly!
|
||||
|
||||
if (drift > 0)
|
||||
if (turndir == -1)
|
||||
{
|
||||
// Neutral drift
|
||||
SetState(S_KART_DRIFT_L);
|
||||
SetState(S_KART_FAST_R);
|
||||
}
|
||||
else if (drift < 0)
|
||||
else if (turndir == 1)
|
||||
{
|
||||
// Neutral drift
|
||||
SetState(S_KART_DRIFT_R);
|
||||
SetState(S_KART_FAST_L);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (turndir == -1)
|
||||
switch (player->glanceDir)
|
||||
{
|
||||
SetState(S_KART_FAST_R);
|
||||
}
|
||||
else if (turndir == 1)
|
||||
{
|
||||
SetState(S_KART_FAST_L);
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (player->glanceDir)
|
||||
{
|
||||
case -2:
|
||||
SetState(S_KART_FAST_LOOK_R);
|
||||
break;
|
||||
case 2:
|
||||
SetState(S_KART_FAST_LOOK_L);
|
||||
break;
|
||||
case -1:
|
||||
SetState(S_KART_FAST_GLANCE_R);
|
||||
break;
|
||||
case 1:
|
||||
SetState(S_KART_FAST_GLANCE_L);
|
||||
break;
|
||||
default:
|
||||
SetState(S_KART_FAST);
|
||||
break;
|
||||
}
|
||||
case -2:
|
||||
SetState(S_KART_FAST_LOOK_R);
|
||||
break;
|
||||
case 2:
|
||||
SetState(S_KART_FAST_LOOK_L);
|
||||
break;
|
||||
case -1:
|
||||
SetState(S_KART_FAST_GLANCE_R);
|
||||
break;
|
||||
case 1:
|
||||
SetState(S_KART_FAST_GLANCE_L);
|
||||
break;
|
||||
default:
|
||||
SetState(S_KART_FAST);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue