-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Players aren't given exhaustible weapons when they get the ammo for them #153
Comments
The ammo still doesn't add up correctly. In this case only the 5 satchels add up but not the 5 trip mines. It's an improvement though; before this none of these would have added up because neither were in my inventory. |
It's working fine on my end. Make sure you're using an unmodified codebase and do a full rebuild. |
Nevermind, i was able to reproduce it. You have to use up your tripmines first and then pick up more. |
Yes. In the video I used up the satchels and trip mines intentionally before picking up that ammo cache. The previous algorithm only added them up IF you had atleast one of each type (grenades, satchels, mines). |
I'm going to have to do some refactoring to fix this properly. The weapons code is a real mess, and it makes this pretty complicated. |
No rush Sam! Tomorrow is another day. |
I've reworked the weapons code to make sure that this works properly. |
Great job Sam! Works great and I've tested every weapon to make sure no side bugs appeared. |
No description provided.
The text was updated successfully, but these errors were encountered: