Change zeus modules to run globally

Zeus modules were only running on the *server* rather than the local machine. This resulted in the variable used to cache the object zeus has its cursor over not existing and therefore the modules didn't work at all.
This commit is contained in:
SilentSpike 2015-07-29 12:25:04 +01:00
parent cd934770e4
commit 67e5e31394
4 changed files with 7 additions and 3 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);