Skip to content

Fix reserve ammo disappearing when carrying multiple weapons with the same ammo type#515

Open
Blixibon wants to merge 1 commit intomapbase-source:developfrom
Blixibon:mapbase/feature/multiple-reserve-ammo-fix
Open

Fix reserve ammo disappearing when carrying multiple weapons with the same ammo type#515
Blixibon wants to merge 1 commit intomapbase-source:developfrom
Blixibon:mapbase/feature/multiple-reserve-ammo-fix

Conversation

@Blixibon
Copy link
Member

This PR fixes a HL2-specific issue in which inactive weapons steal from the reserve ammo of an active weapon with the same ammo type.

Normally, when a weapon is inactive in your inventory, it automatically reloads itself. However, if the weapon you are holding uses the same ammo type, then it'll noticeably steal from your reserve ammo. This PR fixes that by making sure the active weapon doesn't use the same ammo type before reloading inactive weapons.


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant