Page MenuHomeFeedback Tracker

Ammo weight
Acknowledged, NormalPublic

Description

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.

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

Moonny created this task.Feb 1 2022, 8:53 PM
Geez changed the task status from New to Acknowledged.Feb 3 2022, 12:29 PM
Geez added a subscriber: Geez.

Thank you for the report Moonny.
This is a known issue and it is scheduled for a fix.
Regards,
Geez