mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Use frameangle for rocket sneakers so they rotate around you when you spinout
This commit is contained in:
parent
ef44df0081
commit
e5e7bc4c11
1 changed files with 2 additions and 2 deletions
|
|
@ -3630,7 +3630,7 @@ static void K_MoveHeldObjects(player_t *player)
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
{
|
{
|
||||||
angle_t input = player->mo->angle - cur->angle;
|
angle_t input = player->frameangle - cur->angle;
|
||||||
boolean invert = (input > ANGLE_180);
|
boolean invert = (input > ANGLE_180);
|
||||||
if (invert)
|
if (invert)
|
||||||
input = InvAngle(input);
|
input = InvAngle(input);
|
||||||
|
|
@ -3642,7 +3642,7 @@ static void K_MoveHeldObjects(player_t *player)
|
||||||
cur->angle = cur->angle + input;
|
cur->angle = cur->angle + input;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
cur->angle = player->mo->angle;
|
cur->angle = player->frameangle;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
angoffset = ANGLE_90 + (ANGLE_180 * num);
|
angoffset = ANGLE_90 + (ANGLE_180 * num);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue