1
0
mirror of https://github.com/acemod/ACE3.git synced 2024-08-30 18:23:18 +00:00

Death to tabs

This commit is contained in:
SilentSpike 2015-05-18 22:49:47 +01:00
parent e27ac53713
commit 7d71d85ffc
3 changed files with 55 additions and 55 deletions

@ -21,25 +21,25 @@ private ["_unit","_captive"];
if (!_activated) exitWith {};
if (isNil QEFUNC(captives,setHandcuffed)) then {
["Requires ACE_Captives"] call DEFUNC(common,displayTextStructured);
["Requires ACE_Captives"] call EFUNC(common,displayTextStructured);
} else {
_unit = attachedTo _logic;
_unit = attachedTo _logic;
if (isNull _unit) then {
["Place on a unit"] call DEFUNC(common,displayTextStructured);
} else {
if !(_unit isKindOf "CAManBase") then {
["Unit must be infantry"] call DEFUNC(common,displayTextStructured);
} else {
if !(alive _unit) then {
["Unit must be alive"] call DEFUNC(common,displayTextStructured);
} else {
_captive = GETVAR(_unit,EGVAR(captives,isHandcuffed),false);
// Event initalized by ACE_Captives
["SetHandcuffed", _unit, [_unit, !_captive]] call DEFUNC(common,targetEvent);
};
};
};
if (isNull _unit) then {
["Place on a unit"] call EFUNC(common,displayTextStructured);
} else {
if !(_unit isKindOf "CAManBase") then {
["Unit must be infantry"] call EFUNC(common,displayTextStructured);
} else {
if !(alive _unit) then {
["Unit must be alive"] call EFUNC(common,displayTextStructured);
} else {
_captive = GETVAR(_unit,EGVAR(captives,isHandcuffed),false);
// Event initalized by ACE_Captives
["SetHandcuffed", _unit, [_unit, !_captive]] call EFUNC(common,targetEvent);
};
};
};
};
deleteVehicle _logic;

@ -21,25 +21,25 @@ private ["_unit","_conscious"];
if (!_activated) exitWith {};
if (isNil QEFUNC(medical,setUnconscious)) then {
["Requires ACE_Medical"] call DEFUNC(common,displayTextStructured);
["Requires ACE_Medical"] call EFUNC(common,displayTextStructured);
} else {
_unit = attachedTo _logic;
_unit = attachedTo _logic;
if (isNull _unit) then {
["Place on a unit"] call DEFUNC(common,displayTextStructured);
} else {
if !(_unit isKindOf "CAManBase") then {
["Unit must be infantry"] call DEFUNC(common,displayTextStructured);
} else {
if !(alive _unit) then {
["Unit must be alive"] call DEFUNC(common,displayTextStructured);
} else {
_conscious = GETVAR(_unit,ACE_isUnconscious,false);
// Function handles locality for me
[_unit, !_conscious, round(random(10)+5), true] call DEFUNC(medical,setUnconscious);
};
};
};
if (isNull _unit) then {
["Place on a unit"] call EFUNC(common,displayTextStructured);
} else {
if !(_unit isKindOf "CAManBase") then {
["Unit must be infantry"] call EFUNC(common,displayTextStructured);
} else {
if !(alive _unit) then {
["Unit must be alive"] call EFUNC(common,displayTextStructured);
} else {
_conscious = GETVAR(_unit,ACE_isUnconscious,false);
// Function handles locality for me
[_unit, !_conscious, round(random(10)+5), true] call EFUNC(medical,setUnconscious);
};
};
};
};
deleteVehicle _logic;

@ -21,29 +21,29 @@ private ["_unit","_surrendering"];
if (!_activated) exitWith {};
if (isNil QEFUNC(captives,setSurrendered)) then {
["Requires ACE_Captives"] call DEFUNC(common,displayTextStructured);
["Requires ACE_Captives"] call EFUNC(common,displayTextStructured);
} else {
_unit = attachedTo _logic;
_unit = attachedTo _logic;
if (isNull _unit) then {
["Place on a unit"] call DEFUNC(common,displayTextStructured);
} else {
if !(_unit isKindOf "CAManBase") then {
["Unit must be infantry"] call DEFUNC(common,displayTextStructured);
} else {
if !(alive _unit) then {
["Unit must be alive"] call DEFUNC(common,displayTextStructured);
} else {
if (GETVAR(_unit,EGVAR(captives,isHandcuffed),false)) then {
["Unit is a captive"] call DEFUNC(common,displayTextStructured);
} else {
_surrendering = GETVAR(_unit,EGVAR(captives,isSurrendering),false);
// Event initalized by ACE_Captives
["SetSurrendered", _unit, [_unit, !_surrendering]] call DEFUNC(common,targetEvent);
};
};
};
};
if (isNull _unit) then {
["Place on a unit"] call EFUNC(common,displayTextStructured);
} else {
if !(_unit isKindOf "CAManBase") then {
["Unit must be infantry"] call EFUNC(common,displayTextStructured);
} else {
if !(alive _unit) then {
["Unit must be alive"] call EFUNC(common,displayTextStructured);
} else {
if (GETVAR(_unit,EGVAR(captives,isHandcuffed),false)) then {
["Unit is a captive"] call EFUNC(common,displayTextStructured);
} else {
_surrendering = GETVAR(_unit,EGVAR(captives,isSurrendering),false);
// Event initalized by ACE_Captives
["SetSurrendered", _unit, [_unit, !_surrendering]] call EFUNC(common,targetEvent);
};
};
};
};
};
deleteVehicle _logic;