diff options
| author | Kiloku <mateus.sateles@protonmail.com> | 2025-01-04 21:08:04 -0300 |
|---|---|---|
| committer | Alejandro Asenjo Nitti <96613413+sonicdcer@users.noreply.github.com> | 2025-01-08 14:28:49 -0500 |
| commit | 0b5dfd900e31e7b7e5b813f4c589596efece2c6a (patch) | |
| tree | f77819653e4d16d907d97922164f2ece0aea89a8 /src/engine/fox_beam.c | |
| parent | 0c6b548e3c6d12dc875c0cd6dc4982061a8bb9fb (diff) | |
Rapid fire mode on arwing
Diffstat (limited to 'src/engine/fox_beam.c')
| -rw-r--r-- | src/engine/fox_beam.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/fox_beam.c b/src/engine/fox_beam.c index ac4c7a16..37152833 100644 --- a/src/engine/fox_beam.c +++ b/src/engine/fox_beam.c @@ -1769,9 +1769,10 @@ void PlayerShot_SearchLockOnTarget(PlayerShot* shot) { !(gControllerHold[shot->sourceId].button & A_BUTTON) || (shot->timer == 0)) { Object_Kill(&shot->obj, shot->sfxSource); } - } else { + } else { + bool rapidFire = CVarGetInteger("gRapidFire", 0) == 1; if ((shot->obj.pos.y < gGroundHeight) || PlayerShot_FindLockTarget(shot) || - !(gControllerHold[gMainController].button & A_BUTTON) || (shot->timer == 0)) { + (!(gControllerHold[gMainController].button & A_BUTTON)^rapidFire) || (shot->timer == 0)) { Object_Kill(&shot->obj, shot->sfxSource); } } |
