From 7592f1283d96cd23bcf869363a17332deb4f0a32 Mon Sep 17 00:00:00 2001 From: tmyqlfpir <80724828+tmyqlfpir@users.noreply.github.com> Date: Wed, 31 Jan 2024 13:02:27 +1000 Subject: [PATCH] Fix firing state with akimbo mode for shotgun/napalm launcher --- source/blood/src/weapon.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/blood/src/weapon.cpp b/source/blood/src/weapon.cpp index 6e315513dc..368fc67534 100644 --- a/source/blood/src/weapon.cpp +++ b/source/blood/src/weapon.cpp @@ -759,7 +759,7 @@ void WeaponLower(PLAYER *pPlayer) } break; case kWeaponShotgun: - if (powerupCheck(pPlayer, kPwUpTwoGuns)) + if (powerupCheck(pPlayer, kPwUpTwoGuns) && (VanillaMode() || (gInfiniteAmmo || CheckAmmo(pPlayer, 2, 4)))) StartQAV(pPlayer, 63, -1, 0); else StartQAV(pPlayer, 58, -1, 0); @@ -786,7 +786,7 @@ void WeaponLower(PLAYER *pPlayer) StartQAV(pPlayer, 81, -1, 0); break; case kWeaponNapalm: - if (powerupCheck(pPlayer, kPwUpTwoGuns)) + if (powerupCheck(pPlayer, kPwUpTwoGuns) && (VanillaMode() || (gInfiniteAmmo || CheckAmmo(pPlayer, 4, 2)))) StartQAV(pPlayer, 124, -1, 0); else StartQAV(pPlayer, 92, -1, 0); @@ -996,7 +996,7 @@ void WeaponUpdateState(PLAYER *pPlayer) switch (vb) { case 3: - if (powerupCheck(pPlayer, kPwUpTwoGuns) && (gInfiniteAmmo || CheckAmmo(pPlayer,4, 4))) + if (powerupCheck(pPlayer, kPwUpTwoGuns) && (gInfiniteAmmo || CheckAmmo(pPlayer, 4, VanillaMode() ? 4 : 2))) pPlayer->weaponQav = 121; else pPlayer->weaponQav = 90; @@ -2406,7 +2406,7 @@ void WeaponProcess(PLAYER *pPlayer) { } break; case kWeaponNapalm: - if (powerupCheck(pPlayer, kPwUpTwoGuns)) + if (powerupCheck(pPlayer, kPwUpTwoGuns) && (VanillaMode() || (gInfiniteAmmo || CheckAmmo(pPlayer, 4, 2)))) StartQAV(pPlayer, 122, nClientFireNapalm, 0); else StartQAV(pPlayer, 91, nClientFireNapalm, 0);