TMF3 / TMF

TMF is a mission making mod for Arma 3's 3D editor
http://teamonetactical.com/wiki/doku.php?id=tmf:start
40 stars 25 forks source link

AssignGear: clothing is not emptied #297

Open Boberro opened 4 years ago

Boberro commented 4 years ago

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.

Freddo3000 commented 4 years ago

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.

Boberro commented 4 years ago

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)