mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
4ff01967b6
* Switch to CBA Feature Camera handling * Register ACE3's Feature Cameras * Backwards compatiblity for old ace event * Require CBA 3.9
16 lines
414 B
Plaintext
16 lines
414 B
Plaintext
#include "script_component.hpp"
|
|
|
|
GVAR(ZOOM) = 0;
|
|
GVAR(NV) = 0;
|
|
GVAR(IRON) = false;
|
|
GVAR(TI) = 0;
|
|
GVAR(cur_cam) = 0;
|
|
GVAR(ROTATE) = 0;
|
|
GVAR(ELEVAT) = 0.01;
|
|
|
|
// Register fire event handler
|
|
// Don't run for non players, as they are too dumb to launch huntirs anyway
|
|
["ace_firedPlayer", DFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_huntir", {!GETMVAR(GVAR(stop),true)}] call CBA_fnc_registerFeatureCamera;
|