mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Ring Shooter: Disallow turning while in it
This commit is contained in:
parent
3ea9b2d82d
commit
b123fd98a2
2 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue