mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
allow rangefinder while the fcs is active
This commit is contained in:
parent
0d3e103de1
commit
d18f470394
@ -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];
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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};
|
||||||
|
Loading…
Reference in New Issue
Block a user