Skip to content

Commit

Permalink
Fix firing state with akimbo mode for shotgun/napalm launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyqlfpir authored and nukeykt committed Feb 4, 2024
1 parent fa3abd4 commit 7592f12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/blood/src/weapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7592f12

Please sign in to comment.