added opening sounds

This commit is contained in:
ir0n1e 2016-05-04 20:06:56 +02:00
parent 9af55d741b
commit 13dc56c435
3 changed files with 10 additions and 2 deletions

View File

@ -22,4 +22,4 @@ private _mass = getNumber (configFile >> "CfgWeapons" >> _weapon >> "WeaponSlots
_mass = _mass + getNumber (configFile >> "CfgWeapons" >> _x >> "ItemInfo" >> "mass");
} foreach _items;
_mass
(_mass / 22)

View File

@ -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);
};

View File

@ -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);
};