Skip to content

Allow reload on weapons with altered ammo type#1151

Closed
BoloVEVO wants to merge 3 commits intorehlds:masterfrom
BoloVEVO:master
Closed

Allow reload on weapons with altered ammo type#1151
BoloVEVO wants to merge 3 commits intorehlds:masterfrom
BoloVEVO:master

Conversation

@BoloVEVO
Copy link
Copy Markdown

Purpose

ReGameDLL already gives support via ReAPI to implement custom ammo types, making possible to change the ammo type of any weapon, the current checks of weapon reload is that the player needs to have the original ammo type of the weapon in order to reload, which lead into issues if the user wishes to alter the current ammo type.

Approach

It now checks with the current item's ammo type instead of a hardcoded ammo type.

If there's a particular reason why to check the reload function with a hardcoded ammo type instead of grabbing the current item's ammo type, please explain.

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@BoloVEVO
Copy link
Copy Markdown
Author

I will reopen this pr again I forgot I did the pr with the master branch instead of a separate branch.

@BoloVEVO BoloVEVO closed this Apr 16, 2026
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.

2 participants