mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix opening backpack of clone while dragging and patient moved warning
This commit is contained in:
parent
5ea5330c70
commit
0a6ec071b1
@ -40,6 +40,7 @@ if (isNull _display) then {
|
|||||||
if (ACE_player distance _target > MAX_DISTANCE && {vehicle _target != vehicle ACE_player}) exitWith {
|
if (ACE_player distance _target > MAX_DISTANCE && {vehicle _target != vehicle ACE_player}) exitWith {
|
||||||
[_pfhID] call CBA_fnc_removePerFrameHandler;
|
[_pfhID] call CBA_fnc_removePerFrameHandler;
|
||||||
QGVAR(RscPatientInfo) cutFadeOut 0.3;
|
QGVAR(RscPatientInfo) cutFadeOut 0.3;
|
||||||
|
if (((getPosATL _target) # 2) < -9) exitWith {}; // handle dragging corpse/clone
|
||||||
[[ELSTRING(medical,DistanceToFar), _target call EFUNC(common,getName)], 2] call EFUNC(common,displayTextStructured);
|
[[ELSTRING(medical,DistanceToFar), _target call EFUNC(common,getName)], 2] call EFUNC(common,displayTextStructured);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -46,5 +46,6 @@ _unit addAction ["OpenBag", {
|
|||||||
{!lockedInventory _backpackContainer} &&
|
{!lockedInventory _backpackContainer} &&
|
||||||
{maxLoad _backpackContainer > 0} &&
|
{maxLoad _backpackContainer > 0} &&
|
||||||
{getNumber (_backpackConfig >> "disableInventory") != 1} &&
|
{getNumber (_backpackConfig >> "disableInventory") != 1} &&
|
||||||
|
{(typeOf _target) != QEGVAR(dragging,clone)} &&
|
||||||
{_target setUserActionText [_actionId, format [localize "STR_ACTION_OPEN_BAG", getText (_backpackConfig >> "displayName")]]; true}
|
{_target setUserActionText [_actionId, format [localize "STR_ACTION_OPEN_BAG", getText (_backpackConfig >> "displayName")]]; true}
|
||||||
}, 2];
|
}, 2];
|
||||||
|
Loading…
Reference in New Issue
Block a user