mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
More cleanup
This commit is contained in:
parent
264b05e3ec
commit
9fe6f269be
@ -1,7 +1,6 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
DAGR_RUN = false;
|
DAGR_RUN = false;
|
||||||
DAGR_STP = false;
|
|
||||||
DAGR_MENU_RUN = false;
|
DAGR_MENU_RUN = false;
|
||||||
DAGR_DIRECTION = true; // true -> degrees; false -> milliradian
|
DAGR_DIRECTION = true; // true -> degrees; false -> milliradian
|
||||||
DAGR_GRID_VECTOR = "00000000"; // Default
|
DAGR_GRID_VECTOR = "00000000"; // Default
|
||||||
|
@ -24,8 +24,6 @@
|
|||||||
135471 cutText ["", "PLAIN"];
|
135471 cutText ["", "PLAIN"];
|
||||||
|
|
||||||
DAGR_RUN = false;
|
DAGR_RUN = false;
|
||||||
DAGR_STP = false;
|
|
||||||
|
|
||||||
DAGR_MENU_RUN = true;
|
DAGR_MENU_RUN = true;
|
||||||
DAGR_Menu_Handler = [] execFSM QUOTE(PATHTOF(DAGR_MENU.fsm));
|
DAGR_Menu_Handler = [] execFSM QUOTE(PATHTOF(DAGR_MENU.fsm));
|
||||||
};
|
};
|
||||||
|
@ -32,13 +32,9 @@ if (DAGR_RUN) then {
|
|||||||
};
|
};
|
||||||
[{
|
[{
|
||||||
EXPLODE_1_PVT(_this select 0,_vehicle);
|
EXPLODE_1_PVT(_this select 0,_vehicle);
|
||||||
if (DAGR_STP || (!alive ACE_player) || (cameraView == "GUNNER") || (vehicle ACE_player != _vehicle)) exitWith {
|
if (!DAGR_RUN || (!alive ACE_player) || (cameraView == "GUNNER") || (vehicle ACE_player != _vehicle)) exitWith {
|
||||||
135471 cutText ["", "PLAIN"];
|
135471 cutText ["", "PLAIN"];
|
||||||
DAGR_RUN = false;
|
|
||||||
DAGR_STP = false;
|
|
||||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||||
};
|
};
|
||||||
}, 0.1, [vehicle ACE_player]] call CBA_fnc_addPerFrameHandler;
|
}, 0.1, [vehicle ACE_player]] call CBA_fnc_addPerFrameHandler;
|
||||||
} else {
|
|
||||||
DAGR_STP = true;
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user