Page MenuHomeFeedback Tracker

ItemPreviewManagerEntity does not care about Entity position
Assigned, NormalPublic

Description

If you change an attachedEntity position with:

InventoryStorageSlot.SetAdditiveTransformLS(vector);
or:
InventoryStorageSlot.OverrideTransformLS(vector);

The new position will not updated/set in "SCR_InventoryMenuUI / ItemPreviewManagerEntity".

So if you open the Inventory or weapon inspection, the Entity is still on the wrong position. But in the main world, the position is updated correctly.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
General
Steps To Reproduce

Change a weapon attachment position with "SetAdditiveTransformLS" or "OverrideTransformLS"

Open the inventory or weapon inspection.

Position is not updated on preview.

Event Timeline

R34P3R created this task.Wed, Apr 30, 7:18 PM
R34P3R added a subscriber: Geez.EditedThu, May 1, 5:45 PM

Update: You can set "ShowAllChildrens" on the ItemPreviewAttributes, but this will make thinks strange. The attachment with the Offset will now show double! And on the Deployment Screen, the offset will still not set.

Geez closed this task as Resolved.Fri, May 2, 11:40 AM
Geez claimed this task.

@Geez - its not resolved. Please see edited post. Maybe Niirozz knows what happening here. Thanks

Geez reopened this task as New.Fri, May 2, 11:50 AM
Geez changed the task status from New to Assigned.Fri, May 2, 1:29 PM
R34P3R added a subscriber: NiiRoZz.Mon, May 5, 12:59 PM

@NiiRoZz i did a workround for this issue. I created a new "InventoryStorageSlot"

class REAPER_VariableAttachmentSlot: InventoryStorageSlot

On the attach event, i do not "SetAdditiveTransformLS" or "OverrideTransformLS", instead i move the whole PointInfo to the new Offset.

Set(GetOwner(), GetBoneName(), vOffset);

This will fix the Preview bug in inventory, inspection screen and also deployment preview.