allow rangefinder while the fcs is active

This commit is contained in:
commy2 2015-02-11 22:39:31 +01:00
parent 0d3e103de1
commit d18f470394
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#include "script_component.hpp" #include "script_component.hpp"
GVAR(enabled) = True; GVAR(enabled) = false;
GVAR(time) = 0; GVAR(time) = 0;
GVAR(position) = [0,0,0]; GVAR(position) = [0,0,0];

View File

@ -19,7 +19,7 @@ _turret = _this select 1;
_distance = call FUNC(getRange); _distance = call FUNC(getRange);
if !(call FUNC(canUseFCS)) exitWith {}; if !(!GVAR(enabled) && FUNC(canUseFCS)) exitWith {};
GVAR(Enabled) = true; GVAR(Enabled) = true;
GVAR(Time) = time; GVAR(Time) = time;

View File

@ -7,7 +7,7 @@
_exceptions = []; _exceptions = [];
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false}; if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
// Conditions: specific // Conditions: specific
if !(!GVAR(enabled) && {call FUNC(canUseRangefinder) || FUNC(canUseFCS)}) exitWith {false}; if !((!GVAR(enabled) && FUNC(canUseFCS)) || FUNC(canUseRangefinder)) exitWith {false};
// prevent holding down // prevent holding down
if (GETGVAR(isDownStateKey1,false)) exitWith {false}; if (GETGVAR(isDownStateKey1,false)) exitWith {false};