Ammunition_Base weight isn't calculated properly. Every pile has a weight of its config regardless of its quantity.
UpdateWeight() doesn't properly work with GetQuantity() of ammo piles - it always returns 1.
Combining ammo piles doesn't call UpdateWeight(), splitting ammo piles calls UpdateWeight(WeightUpdateType.RECURSIVE_ADD, 0) on one pile only.
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Operating System Version
- 21H1
- Category
- Scripting
Steps To Reproduce
modded class PlayerBase { void PlayerBase() { GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater(PrintWeightToLog, 1000, true); } void PrintWeightToLog() { Print("[WEIGHT]: " + m_Weight); } }
Take an Ammo_762x39 or any other, compare player's weight:
A pile of 20 bullets has the same weight as a pile of 1 bullet.
20 piles of 20 bullets have the same weight as 20 piles of 1 bullet.
Additional Information
Also noticed a lot of ammo using a weight of a bullet instead of a round:
Ammo_556x45: ingame weight=4; | 10-12 grams IRL
Ammo_762x54: ingame weight=9; | 21.8 grams IRL
etc.
Event Timeline
Comment Actions
Thank you for the report Moonny.
This is a known issue and it is scheduled for a fix.
Regards,
Geez