mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
enable repairing while on ladder
This commit is contained in:
parent
7a4c37c085
commit
37aec2b3c3
@ -10,6 +10,7 @@
|
|||||||
priority = 2; \
|
priority = 2; \
|
||||||
icon = "\A3\ui_f\data\igui\cfg\actions\repair_ca.paa"; \
|
icon = "\A3\ui_f\data\igui\cfg\actions\repair_ca.paa"; \
|
||||||
distance = 4; \
|
distance = 4; \
|
||||||
|
exceptions[] = {"isNotOnLadder"}; \
|
||||||
}; \
|
}; \
|
||||||
}; \
|
}; \
|
||||||
};
|
};
|
||||||
|
@ -30,7 +30,7 @@ if (typeName _wheel == "OBJECT") then {
|
|||||||
_wheel = objNull;
|
_wheel = objNull;
|
||||||
|
|
||||||
{
|
{
|
||||||
if ([_unit, _x, ["isNotDragging", "isNotCarrying"]] call EFUNC(common,canInteractWith)) exitWith {
|
if ([_unit, _x, ["isNotDragging", "isNotCarrying", "isNotOnLadder"]] call EFUNC(common,canInteractWith)) exitWith {
|
||||||
_wheel = _x;
|
_wheel = _x;
|
||||||
};
|
};
|
||||||
} forEach nearestObjects [_unit, ["ACE_Track"], 5];
|
} forEach nearestObjects [_unit, ["ACE_Track"], 5];
|
||||||
|
@ -31,7 +31,7 @@ if (typeName _track == "OBJECT") then {
|
|||||||
_track = objNull;
|
_track = objNull;
|
||||||
|
|
||||||
{
|
{
|
||||||
if ([_unit, _x, ["isNotDragging", "isNotCarrying"]] call EFUNC(common,canInteractWith)) exitWith {
|
if ([_unit, _x, ["isNotDragging", "isNotCarrying", "isNotOnLadder"]] call EFUNC(common,canInteractWith)) exitWith {
|
||||||
_track = _x;
|
_track = _x;
|
||||||
};
|
};
|
||||||
} forEach nearestObjects [_unit, ["ACE_Track"], 5];
|
} forEach nearestObjects [_unit, ["ACE_Track"], 5];
|
||||||
|
@ -37,7 +37,7 @@ if (typeName _wheel == "OBJECT") then {
|
|||||||
_wheel = objNull;
|
_wheel = objNull;
|
||||||
|
|
||||||
{
|
{
|
||||||
if ([_unit, _x, ["isNotDragging", "isNotCarrying"]] call EFUNC(common,canInteractWith)) exitWith {
|
if ([_unit, _x, ["isNotDragging", "isNotCarrying", "isNotOnLadder"]] call EFUNC(common,canInteractWith)) exitWith {
|
||||||
_wheel = _x;
|
_wheel = _x;
|
||||||
};
|
};
|
||||||
} forEach nearestObjects [_unit, ["ACE_Wheel"], 5];
|
} forEach nearestObjects [_unit, ["ACE_Wheel"], 5];
|
||||||
|
@ -27,7 +27,7 @@ private ["_hitPointDamage", "_newDamage", "_wheel"];
|
|||||||
_wheel = objNull;
|
_wheel = objNull;
|
||||||
|
|
||||||
{
|
{
|
||||||
if ([_unit, _x, ["isNotDragging", "isNotCarrying"]] call EFUNC(common,canInteractWith)) exitWith {
|
if ([_unit, _x, ["isNotDragging", "isNotCarrying", "isNotOnLadder"]] call EFUNC(common,canInteractWith)) exitWith {
|
||||||
_wheel = _x;
|
_wheel = _x;
|
||||||
};
|
};
|
||||||
} forEach nearestObjects [_unit, ["ACE_Track"], 5];
|
} forEach nearestObjects [_unit, ["ACE_Track"], 5];
|
||||||
|
@ -27,7 +27,7 @@ private["_hitPointDamage", "_wheel"];
|
|||||||
_wheel = objNull;
|
_wheel = objNull;
|
||||||
|
|
||||||
{
|
{
|
||||||
if ([_unit, _x, ["isNotDragging", "isNotCarrying"]] call EFUNC(common,canInteractWith)) exitWith {
|
if ([_unit, _x, ["isNotDragging", "isNotCarrying", "isNotOnLadder"]] call EFUNC(common,canInteractWith)) exitWith {
|
||||||
_wheel = _x;
|
_wheel = _x;
|
||||||
};
|
};
|
||||||
} forEach nearestObjects [_unit, ["ACE_Track"], 5];
|
} forEach nearestObjects [_unit, ["ACE_Track"], 5];
|
||||||
|
@ -27,7 +27,7 @@ private ["_hitPointDamage", "_wheel"];
|
|||||||
_wheel = objNull;
|
_wheel = objNull;
|
||||||
|
|
||||||
{
|
{
|
||||||
if ([_unit, _x, ["isNotDragging", "isNotCarrying"]] call EFUNC(common,canInteractWith)) exitWith {
|
if ([_unit, _x, ["isNotDragging", "isNotCarrying", "isNotOnLadder"]] call EFUNC(common,canInteractWith)) exitWith {
|
||||||
_wheel = _x;
|
_wheel = _x;
|
||||||
};
|
};
|
||||||
} forEach nearestObjects [_unit, ["ACE_Wheel"], 5];
|
} forEach nearestObjects [_unit, ["ACE_Wheel"], 5];
|
||||||
|
@ -177,7 +177,7 @@ _processText = getText (_config >> "displayNameProgress");
|
|||||||
DFUNC(repair_failure),
|
DFUNC(repair_failure),
|
||||||
_text,
|
_text,
|
||||||
_callbackProgress,
|
_callbackProgress,
|
||||||
[]
|
["isNotOnLadder"]
|
||||||
] call EFUNC(common,progressBar);
|
] call EFUNC(common,progressBar);
|
||||||
|
|
||||||
// Display Icon
|
// Display Icon
|
||||||
|
Loading…
Reference in New Issue
Block a user