mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
added opening sounds
This commit is contained in:
parent
9af55d741b
commit
13dc56c435
@ -22,4 +22,4 @@ private _mass = getNumber (configFile >> "CfgWeapons" >> _weapon >> "WeaponSlots
|
||||
_mass = _mass + getNumber (configFile >> "CfgWeapons" >> _x >> "ItemInfo" >> "mass");
|
||||
} foreach _items;
|
||||
|
||||
_mass
|
||||
(_mass / 22)
|
||||
|
@ -40,5 +40,9 @@ removeAllPrimaryWeaponItems _unit;
|
||||
_unit addWeaponItem [_weapon, _x];
|
||||
} forEach _items;
|
||||
|
||||
[_target, backpackContainer _target, [_weapon, _items] call FUNC(calculateMass)] call EFUNC(movement,addLoadToUnitContainer);
|
||||
[_target, backpackContainer _target, -([_weapon, _items] call FUNC(calculateMass))] call EFUNC(movement,addLoadToUnitContainer);
|
||||
_gunbag setVariable [QGVAR(GunbagWeapon), [], true];
|
||||
|
||||
if(["ACE_Backpacks"] call EFUNC(common,isModLoaded)) then {
|
||||
[_unit, _target, backpackContainer _target] call EFUNC(backpacks,backpackOpened);
|
||||
};
|
||||
|
@ -39,3 +39,7 @@ _unit removeWeapon _weapon;
|
||||
|
||||
[_target, backpackContainer _target, [_weapon, _items] call FUNC(calculateMass)] call EFUNC(movement,addLoadToUnitContainer);
|
||||
_gunbag setVariable [QGVAR(GunbagWeapon), [[_weapon], _items], true];
|
||||
|
||||
if(["ACE_Backpacks"] call EFUNC(common,isModLoaded)) then {
|
||||
[_unit, _target, backpackContainer _target] call EFUNC(backpacks,backpackOpened);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user