ACE3/addons/hunterkiller/XEH_postInit.sqf
PabstMirror 981a8ea352
Hunter Killer (Commander Override) (#8496)
* Hunter Killer (Commander Override) - Initial Demo

* Just do a one-time slew

* Update fnc_eachFrame.sqf

* Update addons/hunterkiller/functions/script_component.hpp

Co-authored-by: jonpas <jonpas33@gmail.com>

* Update for ArmA 2.08

* cleanup

* Rework Observe / Control configs

* Add to all 2035 tanks

* Update script_component.hpp

* Use eyeDirection on commander turrets

* Update docs/wiki/framework/hunterkiller-framework.md

Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>

* Add to all 2035, support ture/false setVars

* remove from apcs because mods don't know how to do inheritance

Co-authored-by: jonpas <jonpas33@gmail.com>
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
2022-09-01 13:38:22 -05:00

29 lines
838 B
Plaintext

#include "script_component.hpp"
#include "\a3\ui_f\hpp\defineDIKCodes.inc"
[QGVAR(slew), LINKFUNC(slew)] call CBA_fnc_addEventHandler;
if (!hasInterface) exitWith {};
GVAR(mode) = 0;
GVAR(targetTurret) = [];
["CBA_settingsInitialized", {
["turret", LINKFUNC(turretChangedEH), true] call CBA_fnc_addPlayerEventHandler;
}] call CBA_fnc_addEventHandler;
["ACE3 Vehicles", QGVAR(observe), [format ["%1 - %2", LLSTRING(displayName), LLSTRING(observe)], LLSTRING(observe_description)],
{
[false] call FUNC(keyDown)
}, {
false
}, [DIK_Q, [false, false, false]]] call CBA_fnc_addKeybind;
["ACE3 Vehicles", QGVAR(override), [format ["%1 - %2", LLSTRING(displayName), LLSTRING(override)], LLSTRING(override_description)],
{
[true] call FUNC(keyDown)
}, {
false
}, [DIK_E, [false, false, false]]] call CBA_fnc_addKeybind;