Update fn_addDuplicateTool again and add vehicle handling

This commit is contained in:
A Man
2022-05-02 11:16:57 +02:00
parent 6b24eaa26f
commit 3d9914a239
3 changed files with 31 additions and 10 deletions

View File

@@ -29,7 +29,7 @@ if (!isNull _bag) then {
call {
if (_weaponInvType == 1) exitwith {_qtyMaxBag = _qtyMaxBag + (10*_qtyWeapon);};
if (_weaponInvType == 2) exitwith {_qtyMaxBag = _qtyMaxBag + (5*_qtyWeapon);};
if (_weaponInvType in [256,4096]) exitwith {_qtyMaxBag = _qtyMaxBag + _qtyWeapon;};
if (_weaponInvType in [131072,4096]) exitwith {_qtyMaxBag = _qtyMaxBag + _qtyWeapon;};
};
} foreach _weaponsBag;