2015-06-29 02:34:21 +00:00
|
|
|
#include "script_component.hpp"
|
2015-07-15 11:03:54 +00:00
|
|
|
//#include "initKeybinds.sqf";
|
2015-07-04 23:07:51 +00:00
|
|
|
|
|
|
|
// Add interaction menu exception
|
|
|
|
["isNotSpectating", {!((_this select 0) getVariable [QGVAR(isSpectator), false])}] call EFUNC(common,addCanInteractWithCondition);
|
|
|
|
|
|
|
|
// Run spectator framework if enabled
|
2015-06-29 02:34:21 +00:00
|
|
|
["SettingsInitialized", {
|
2015-07-02 15:23:25 +00:00
|
|
|
if !(hasInterface) exitWith {};
|
|
|
|
|
2015-07-15 11:03:54 +00:00
|
|
|
/*if (GVAR(tracking)) then {
|
2015-06-29 02:34:21 +00:00
|
|
|
[FUNC(checkUnits), 2] call CBA_fnc_addPerFrameHandler;
|
|
|
|
[FUNC(trackUnits), 20] call CBA_fnc_addPerFrameHandler;
|
2015-07-15 11:03:54 +00:00
|
|
|
};*/
|
2015-07-02 15:23:25 +00:00
|
|
|
|
2015-07-17 15:02:38 +00:00
|
|
|
if GVAR(system) then {
|
|
|
|
// Add event handlers to correctly enter spectator upon death
|
|
|
|
player addEventHandler ["Killed", FUNC(handleKilled)];
|
|
|
|
player addEventHandler ["Respawn", FUNC(handleRespawn)];
|
|
|
|
};
|
2015-07-04 17:53:06 +00:00
|
|
|
}] call EFUNC(common,addEventHandler);
|