TMF
TMF copied to clipboard
AssignGear: clothing is not emptied
Since caching update to assign gear module, uniforms, vests and backpacks are not emptied from their preset content.
eg.
case 3: { // backpack private _backpack = selectRandom _x; if !(_backpack isEqualTo '') then { _unit addBackpack _backpack; }; };
Use of "clearAllItemsFromBackpack" is missing, so eg. rpg carrier is added with preset rpg-7 ammo and takes up space.
Solution to that problem is to use the classnames for the empty backpacks instead of the filled ones, same for weapons. Adding filled backpacks and clearing them adds additional network traffic.
So is it a problem that was raised before and container emptying was removed deliberately? There's no warning as to what happens and units just get overly heavy for no reason. I'm not denying that modders should always create empty versions of their backpacks as default as "scope=1" filled versions (looks at Delta Hawk angrily)