mirror of
https://github.com/acemod/ACE3.git
synced 2025-07-25 04:42:48 +00:00
Cleaned up excessive whitespace
This commit is contained in:
@ -32,15 +32,15 @@ GVAR(distanceIndex) = -1;
|
||||
GVAR(lasing) = false;
|
||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
|
||||
_result = [eyePos ACE_player, ACE_player weaponDirection (currentWeapon ACE_player)] call EFUNC(laser,shootRay);
|
||||
_distance = _result select 1;
|
||||
|
||||
|
||||
_distance = _distance - 1 + (random 2);
|
||||
|
||||
|
||||
GVAR(distanceIndex) = (GVAR(distanceIndex) + 1) % METERING_POINT_NUMBER;
|
||||
GVAR(distances) set [GVAR(distanceIndex), _distance];
|
||||
|
||||
|
||||
if (count GVAR(distances) == METERING_POINT_NUMBER) then {
|
||||
_min = MAX_DISTANCE;
|
||||
_max = MIN_DISTANCE;
|
||||
@ -48,7 +48,7 @@ GVAR(distanceIndex) = -1;
|
||||
_min = _x min _min;
|
||||
_max = _max max _x;
|
||||
} forEach GVAR(distances);
|
||||
|
||||
|
||||
if (abs(_max - _min) < 5) then {
|
||||
_range = (_min + _max) / 2;
|
||||
if (_range >= MIN_DISTANCE && _range <= MAX_DISTANCE) then {
|
||||
|
@ -35,10 +35,10 @@ GVAR(active) = true;
|
||||
74210 cutText ["", "PLAIN"];
|
||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
|
||||
if (currentWeapon ACE_player == "ACE_Yardage450" && cameraView == "GUNNER") then {
|
||||
74210 cutRsc ["ACE_RscYardage450", "PLAIN", 1, false];
|
||||
|
||||
|
||||
__ctrlLaser ctrlShow GVAR(lasing);
|
||||
if (GVAR(targetAcquired)) then {
|
||||
__ctrlTarget ctrlSetText "Target Acquired";
|
||||
@ -52,5 +52,5 @@ GVAR(active) = true;
|
||||
} else {
|
||||
74210 cutText ["", "PLAIN"];
|
||||
};
|
||||
|
||||
|
||||
}, 0, []] call CBA_fnc_addPerFrameHandler;
|
||||
|
@ -6,7 +6,7 @@
|
||||
// Conditions: specific
|
||||
if !(GVAR(active)) exitWith {false};
|
||||
if (currentWeapon ACE_player != "ACE_Yardage450" || cameraView != "GUNNER") exitWith {false};
|
||||
|
||||
|
||||
// Statement
|
||||
if !(GVAR(powerButtonPressed)) then {
|
||||
GVAR(powerButtonPressed) = true;
|
||||
@ -19,7 +19,7 @@
|
||||
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
// Conditions: specific
|
||||
if (currentWeapon ACE_player != "ACE_Yardage450" || cameraView != "GUNNER") exitWith {false};
|
||||
|
||||
|
||||
// Statement
|
||||
GVAR(powerButtonPressed) = false;
|
||||
call FUNC(turnOn);
|
||||
|
Reference in New Issue
Block a user