-
Notifications
You must be signed in to change notification settings - Fork 738
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
Common - Use MagazineReloading event for reload mutex #8432
Common - Use MagazineReloading event for reload mutex #8432
Conversation
0c19724
to
6ca4cf3
Compare
Maybe better to use |
2605cd5
to
5b92eb4
Compare
This breaks IDI-Systems/acre2#1031 by removing |
Update XEH_postInit.sqf
2ae2bcf
to
afd3b27
Compare
Please don't force push changes, it makes it incredibly hard to review or update reviews based on latest changes. |
We can always update ACRE2 as well if this gets removed. I don't think it was considered public API anyway? |
Maybe better suited to CBA since it's used in both ACE and ACRE? |
Commands are now available in current Arma patch. |
I haven't had issues reported on community testing with this, but I understand it's a bit sneakier with any bugs that might show up. Can I get another set of eyes on this? |
Not working for me, not sure if something changed in 2.08?
Reloading big gun and pistol both fail to trigger the mutex, it seems like weaponState # 6 is 0 at time the gesture event runs |
Back to WIP it is. |
I'm just here to make more problems lol |
If it works as advertised it'll be a more reliable solution. This PR already needs 2.18 anyway. I just didn't want to rewrite again. |
@LinkIsGrim Can you take a look at the changes I made? |
What happens if weapons are switched mid-reload to an empty weapon (is that possible?) |
I removed the weapon during reload and it broke. I'll see if I can find a fix. |
Fix found and pushed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be best if someone else also approved this, given the changes I've made.
prints false and magazine disappears also both old and new fail on
happening in same frame |
|
Managed to find a fix for gestures breaking the reload mutex. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just added the same check for the reload phase getting stuck when units are switched.
When merged this pull request will: