Ring Shooter: Disallow turning while in it

This commit is contained in:
Sally Coolatta 2023-04-13 21:17:43 -04:00
parent 3ea9b2d82d
commit b123fd98a2
2 changed files with 7 additions and 0 deletions

View file

@ -8943,6 +8943,12 @@ INT16 K_GetKartTurnValue(player_t *player, INT16 turnvalue)
return 0;
}
if (Obj_PlayerRingShooterFreeze(player) == true)
{
// No turning while using Ring Shooter
return 0;
}
currentSpeed = FixedHypot(player->mo->momx, player->mo->momy);
if ((currentSpeed <= 0) // Not moving

View file

@ -675,6 +675,7 @@ void Obj_RingShooterInput(player_t *player)
if (rs_base_canceled(base) == 0)
{
player->mo->momx = player->mo->momy = 0;
P_SetPlayerAngle(player, base->angle);
if (base->fuse < RS_FUSE_BLINK)
{