loadBackpack inconsistency
Reviewed, NormalPublic

Description

When you put a weapon with all its attachements in your backpack, the command loadBackpack returns a value different than the one returned when you strip all weapons attachements and put them in your backpack as well as the "naked" weapon.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
1607 (build 14393.222)
Category
Scripting
Steps To Reproduce

Open the editor and place a unit that has a weapon with attachements and a backpack, eg. a Blufor engineer (B_engineer_F).
Preview the mission, hit escape and type in the debug console: onEachFrame { hint str loadBackpack player; }; and execute locally.
Open your inventory, empty your backpack, now drag and drop your primary weapon in your backpack and note the load displayed in the hint.
Now take the weapon back in your primary slot, drag and drop each attachement (laser, opitc and magazine) inside your backpack and finally add the weapon to the backpack.
Note the difference with the load displayed before even though there are exactly the same items inside your backpack.

basstard created this task.Oct 2 2016, 4:14 PM
razazel claimed this task.Oct 3 2016, 12:55 PM
razazel changed the task status from "New" to "Reviewed".

Add Comment