Transfer zeus module fixes from master into hotfix

This commit is contained in:
SilentSpike 2015-08-01 12:55:33 +01:00
parent 02cfbeda8c
commit f6d8625fcb
4 changed files with 8 additions and 4 deletions

View File

@ -79,6 +79,10 @@ class CfgVehicles {
class GVAR(moduleBase): Module_F {
author = "SilentSpike";
category = "ACE";
functionPriority = 1;
isGlobal = 1;
isTriggerActivated = 0;
scope = 1;
scopeCurator = 2;
};
class GVAR(moduleCaptive): GVAR(moduleBase) {

View File

@ -18,7 +18,7 @@
PARAMS_3(_logic,_units,_activated);
private ["_mouseOver","_unit","_captive"];
if (!_activated) exitWith {};
if !(_activated && local _logic) exitWith {};
if (isNil QEFUNC(captives,setHandcuffed)) then {
[LSTRING(RequiresAddon)] call EFUNC(common,displayTextStructured);

View File

@ -18,7 +18,7 @@
PARAMS_3(_logic,_units,_activated);
private ["_mouseOver","_unit","_surrendering"];
if (!_activated) exitWith {};
if !(_activated && local _logic) exitWith {};
if (isNil QEFUNC(captives,setSurrendered)) then {
[LSTRING(RequiresAddon)] call EFUNC(common,displayTextStructured);

View File

@ -18,7 +18,7 @@
PARAMS_3(_logic,_units,_activated);
private ["_mouseOver","_unit","_conscious"];
if (!_activated) exitWith {};
if !(_activated && local _logic) exitWith {};
if (isNil QEFUNC(medical,setUnconscious)) then {
[LSTRING(RequiresAddon)] call EFUNC(common,displayTextStructured);
@ -38,7 +38,7 @@ if (isNil QEFUNC(medical,setUnconscious)) then {
} else {
_conscious = GETVAR(_unit,ACE_isUnconscious,false);
// Function handles locality for me
[_unit, !_conscious, round(random(10)+5), true] call EFUNC(medical,setUnconscious);
[_unit, !_conscious, 10e10, true] call EFUNC(medical,setUnconscious);
};
};
};