Skip to content

Disable automatic reload#149

Open
97saundersj wants to merge 5 commits into
LivingFray:masterfrom
97saundersj:Disable-automatic-reload
Open

Disable automatic reload#149
97saundersj wants to merge 5 commits into
LivingFray:masterfrom
97saundersj:Disable-automatic-reload

Conversation

@97saundersj

@97saundersj 97saundersj commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

This PR contains a new setting DisableEmptyMagazineAutoReload which when enabled will disable the games automatic reloading when a magazine is out of ammo.

When the magazine is out of ammo the player will have to manually press the reload button, which will then play the reload animation and reload the weapon.

When the magazine is empty and the player tries to fire the sound and reload UI will be shown, just like when a weapon is fully out of ammo.

Demo

797bca7cc039f92c000aec718237e2e02.mp4

Files for testing:
HaloCEVR.zip

I have tested with all in game weapons and it seems to work well.
Any feedback is welcome :)

Introduced a new configuration setting 'DisableEmptyMagazineAutoReload' to prevent automatic reloading when firing with an empty magazine. Updated input handling to respect this setting and added a helper function to determine when to suppress firing to avoid unintended reloads.
…tion

Updated the 'DisableEmptyMagazineAutoReload' configuration description for clarity. Removed the 'MaybeSuppressEmptyMagAutoReload' function and its references from the input handling logic, as it is no longer needed. This streamlines the code and improves maintainability.
@97saundersj 97saundersj marked this pull request as ready for review June 21, 2026 22:02
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