RAX-Anomaly / MagsRedux

Rework of Wuuts Mags
52 stars 21 forks source link

Drop ammo when reloading mags #282

Open wasaaaaabi opened 1 year ago

wasaaaaabi commented 1 year ago

If there is unloaded ammunition in your inventory, it will fall out when you reload. This happens for example when using a UMP or AUG A3 9mm XS. An error message appears in the console when this happens: ERROR on rejecting: entity not found. parent_id = [0], entity_id [4019], frame = [84758]

lalzy commented 1 year ago

Issue isn't that ammo is being dropped, but rather that the ammo created (as to refund the automatically subtracted ammo) gets spawned at the player, rather than in the player inventory as intended.

From my testing, I suspect this has to do with events and\or timing. Some weapons have longer reload time than others, so it might simply be the reload time for these weapons are too short, causing the game to not be able to place the ammo in the inventory, and instead place it at the player.