Open JamesTheClarke opened 9 years ago
I can't reproduce that issue. As what Class did you spawn?
Possibly related to https://github.com/KoffeinFlummi/AGM/issues/2184
Btw, i have similar problem, but with different grenades (from AGM). I had 2x Fakel, probably, and 5x RGD from RHS. Can't cycle them. Will try to check.
As far as I can tell it has to do with compatibility issue introcuded by elements of RHS in combination with AGM. Issue is persistent with various classes, although we use our own loadouts setup with F3 Framework (if you need I can list you the class names of all gear).
The handflares make cycling through grenades get stuck. Cycling without handflares makes the agm picture inaccurate, e.g. if you cycle through the small picture shows an RGO grenade but you end up throwing a smoke grenade or chem light. If need be I can provide screenshots of this.
I can confirm that several classes can throw one extra RGO grenade that they should have in the first place. Maybe that's what's making the picture cycling look "off" by one item.
Arma 3 version: 1.40.129533 (stable branch)
No mods were active at the time of testing.
player ammo "HandGrenadeMuzzle"
returns 1"HandGrenade" in magazines player
returns TRUEplayer removeMagazine "HandGrenade"
.
player ammo "HandGrenadeMuzzle"
returns 0"HandGrenade" in magazines player
returns TRUEplayer removeMagazine "HandGrenade"
a second time.
player ammo "HandGrenadeMuzzle"
returns 0"HandGrenade" in magazines player
returns FALSEplayer addMagazine "HandGrenade"
.
player ammo "HandGrenadeMuzzle"
returns 1"HandGrenade" in magazines player
returns TRUEplayer addMagazine "HandGrenade"
.
player ammo "HandGrenadeMuzzle"
returns 1"HandGrenade" in magazines player
returns TRUEplayer removeMagazines "HandGrenade"
(NOTE removeMagazines).
player ammo "HandGrenadeMuzzle"
returns 0"HandGrenade" in magazines player
returns FALSEplayer addMagazine "HandGrenade"
again.
player ammo "HandGrenadeMuzzle"
returns 1"HandGrenade" in magazines player
returns TRUESo basically "HandGrenade" in magazines player
is broken, because the muzzle is loaded without having a grenade in the inventory. That's what I figured in my testings too.
This bug is also the reason for https://github.com/KoffeinFlummi/AGM/issues/2184 If you spawn with a unit set up to have a full inventory the grenade IS selectable. And the inventory displays it at 0. Reason seems to be that the spare barrel takes away so much space. Therefore #2184 should be reproducable even without grenade select, by starting the game with agm_overheating, but without agm_weaponselect.
I don't see how that connects to Handflares though, yet.
I don't think the handflares are an issue. I can easily reproduce the issue described by @JamesTheClarke by using removeMagazines
and addMagazine
with at least all RHS's Russian grenades. AGM's grenade hint goes out of sync and RHS's RGD grenades become unselectable.
I should have stated this in my previous comment, but I figured it was clear the issue was reproducible even without AGM and RHS. Unless I've missed something, it seems that removeMagazines
works differently (i.e. breaks the inventory and AGM's grenade hint) than calling removeMagazine
multiple times.
Cycling without handflares makes the agm picture inaccurate, e.g. if you cycle through the small picture shows an RGO grenade but you end up throwing a smoke grenade or chem light.
The way I interpreted this decription was that cycling grenades does not get stuck, it goes out of sync. If this is an incorrect interpretation, my previous comment is probably incorrect.
Hmm. I missed that.
We neither use removeMagazine
, nor removeMagazines
, but removeItem
. Maybe it has the same issue.
I still think the underlying issue is the broken, inaccessable magazine in the throw muzzle though.
https://community.bistudio.com/wiki/removeMagazine
Note: You may create invalid combinations with this function. When doing so, application behaviour is undefined.
The same goes for removeMagazines
Issue description:
The hand flares cause an issue when cycling through grenades. Once the hand flare is reached during the cycle one won't be able to cycle any further through grenades. It is kinda stuck in place and one is forces to get rid of RGO grenades in order to reach smoke grenades.