Added weapon resting state icon

This commit is contained in:
Glowbal 2015-02-22 13:58:51 +01:00
parent dd51037c5e
commit 77666e8097
3 changed files with 7 additions and 0 deletions

Binary file not shown.

View File

@ -27,6 +27,9 @@ _intersects = _this call FUNC(getIntersection);
if (true in _intersects) then {
_unit setVariable ["ACE_weaponRested", true];
if (_unit == ACE_PLAYER) then {
[QGVAR(bipodDeployed), true, QUOTE(PATHTOF(data\icons\icon_bipod.paa)), [1,1,1,1], -1] call EFUNC(common,displayIcon);
};
private "_restedPosition";
_restedPosition = getPosASL _unit;

View File

@ -47,3 +47,7 @@ playSound QGVAR(unrest);
_unit setVariable ["ACE_weaponRested", false];
_unit setVariable ["ACE_bipodDeployed", false];
if (_unit == ACE_PLAYER) then {
[QGVAR(bipodDeployed), false, "", [1,1,1,1], -1] call EFUNC(common,displayIcon);
};