Page MenuHomeFeedback Tracker

BaseInventoryStorageComponent volume not updating when reloading weapon with magazine (GetAdditionalVolume, GetTotalVolume)
Closed, ResolvedPublic

Description

BaseInventoryStorageComponent Functions for volume do not provide an up-to-date volume of the weapon

Using the GetTotalVolume and GetAdditionalVolume I was unable to detect a change in weapon voluem when removing and re-adding a magazine to the weapon.
I expected the volume of the weapon to be adjusted accordingly based on the weapon magazine size.

I displayed the weapon volume on screen and it didn't change when changing magazine:

// ShowDbg("Volume> Total:" + m_Comp_InvStrgMngr.GetTotalVolume() + " additional:" + m_Comp_InvStrgMngr.GetAdditionalVolume());

.
.
.

Here's the weapon weight, which does work as expected.

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. check weapon volume using the function in main description
  2. remove magazine from weapon
  3. Check weapon volume
  4. add magazine to weapon
  5. check weapon volume
  6. the volume does not change according to the magazine which physically and visually makes the weapon bigger, therefor increasing it's volume

Event Timeline

Geez changed the task status from New to Awaiting internal Testing.Jan 25 2023, 3:17 PM

Hello,

GetTotalVolume only returns the volume of the item itself. In this case the weapon. If you want to return also all the volume of attached items you need to use GetOccupiedSpace :)

Geez closed this task as Resolved.Jan 30 2023, 10:28 AM
Geez claimed this task.