Hey there. Pretty annoying bug here. When using removeMagazine on grenades, it disables usage of that type of grenades till you drop them and pick them back up.
Description
Description
Details
Details
- Legacy ID
- 1993724631
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Inventory
Steps To Reproduce
- Give yourself 3 grenades and some smoke (player addMagazine "HandGrenade"; player addMagazine "smokeShell"))
- Check amount of magazines and see if you can throw a frag grenade (Works)
- Remove 3 magazine (player removeMagazine "HandGrenade")
- Check inventory. Still 1 grenade left, throw grenade, nothing happens
- Press Ctrl+G to switch to smoke. Smoke works fine. Switching back to grenades is not possible
- Put grenade on ground and pick it back up.
- Grenade now works again.
Additional Information
If you delete 1 smoke shell first, the smoke grenades still work (Exactly as it should), however when deleting a frag grenade first and deleting a smoke shell after that, the smoke grenades also bug out.
Event Timeline
Comment Actions
For anyone having problems with this, you can do a workaround by removing one more magazine than needed and then adding back one using addMagazine. That'll re-enable the usage of that type.
Comment Actions
Still an issue in 2.17.151825.
Repro:
- Place down unit, set as playable in a new mission
- Make sure unit has at least 2 grenades of 1 type
- Play mission
- Remove 1 grenade via player removeMagazine _grenade (e.g. player removeMagazine "HandGrenade")
- Grenade type that was removed is no longer selectable. You need to drop or add a grenade of the same type in order for it to selectable.
Another workaround for the problem: Use _unit removeItem _grenade, it doesn't make the grenade type unselectable.
Comment Actions
Same for removeMagazineGlobal, but only when executed on a local unit.
If a remote unit receives the removeMagazine over network, it will reload and work.
Fixed 2.18, next profiling/dev branch