mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Normalize 2 more files
This commit is contained in:
parent
bd5f6107a0
commit
b97ba4990d
@ -25,12 +25,12 @@ if (_assistant isEqualTo _gunner) then {
|
|||||||
// Barrel mount gesture
|
// Barrel mount gesture
|
||||||
_gunner playAction QGVAR(GestureMountMuzzle);
|
_gunner playAction QGVAR(GestureMountMuzzle);
|
||||||
playSound "ACE_BarrelSwap";
|
playSound "ACE_BarrelSwap";
|
||||||
};
|
};
|
||||||
|
|
||||||
// don't consume the barrel, but rotate through them.
|
|
||||||
[localize LSTRING(SwappedBarrel), QPATHTOF(UI\spare_barrel_ca.paa)] call EFUNC(common,displayTextPicture);
|
|
||||||
|
|
||||||
private _temp = _gunner getVariable [format [QGVAR(%1_temp), _weapon], 0];
|
// don't consume the barrel, but rotate through them.
|
||||||
|
[localize LSTRING(SwappedBarrel), QPATHTOF(UI\spare_barrel_ca.paa)] call EFUNC(common,displayTextPicture);
|
||||||
|
|
||||||
|
private _temp = _gunner getVariable [format [QGVAR(%1_temp), _weapon], 0];
|
||||||
private _barrelMass = 0.50 * (getNumber (configFile >> "CfgWeapons" >> _weapon >> "WeaponSlotsInfo" >> "mass") / 22.0) max 1.0;
|
private _barrelMass = 0.50 * (getNumber (configFile >> "CfgWeapons" >> _weapon >> "WeaponSlotsInfo" >> "mass") / 22.0) max 1.0;
|
||||||
|
|
||||||
// Instruct the server to load the coolest spare barrel into the weapon and
|
// Instruct the server to load the coolest spare barrel into the weapon and
|
||||||
|
@ -20,8 +20,8 @@ params ["_unit", "_item"];
|
|||||||
TRACE_2("params",_unit,_item);
|
TRACE_2("params",_unit,_item);
|
||||||
|
|
||||||
if ([_unit, _item] call EFUNC(common,hasItem)) exitWith {
|
if ([_unit, _item] call EFUNC(common,hasItem)) exitWith {
|
||||||
["ace_useItem", [_unit, _item], _unit] call CBA_fnc_targetEvent;
|
["ace_useItem", [_unit, _item], _unit] call CBA_fnc_targetEvent;
|
||||||
[true, _unit];
|
[true, _unit];
|
||||||
};
|
};
|
||||||
|
|
||||||
[false, objNull];
|
[false, objNull];
|
||||||
|
Loading…
Reference in New Issue
Block a user