Skip to content

Commit

Permalink
Merge branch 'fixmodules' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
kymckay committed Aug 1, 2015
2 parents 02cfbed + f6d8625 commit 07845d5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions addons/zeus/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion addons/zeus/functions/fnc_moduleCaptive.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion addons/zeus/functions/fnc_moduleSurrender.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions addons/zeus/functions/fnc_moduleUnconscious.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
};
};
};
Expand Down

0 comments on commit 07845d5

Please sign in to comment.