mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
63c034e348
Existing variable "ace_spectator_isSpectator" split into counterparts "ace_spectator_isSet" and "ace_spectator_isStaged" in order to better manage spectator events
18 lines
670 B
Plaintext
18 lines
670 B
Plaintext
#include "script_component.hpp"
|
|
//#include "initKeybinds.sqf";
|
|
|
|
// Add interaction menu exception
|
|
["isNotSpectating", {!(GETVAR((_this select 0),GVAR(isStaged),false))}] call EFUNC(common,addCanInteractWithCondition);
|
|
|
|
["SettingsInitialized", {
|
|
GVAR(availableModes) = [[0,1,2], [1,2], [0], [1], [2]] select GVAR(restrictModes);
|
|
GVAR(availableVisions) = [[-2,-1,0,1], [-2,-1], [-2,0,1], [-2]] select GVAR(restrictVisions);
|
|
|
|
if !(hasInterface) exitWith {};
|
|
|
|
if (GVAR(onDeath)) then {
|
|
player addEventHandler ["Killed",FUNC(handleKilled)];
|
|
player addEventHandler ["Respawn",FUNC(handleRespawn)];
|
|
};
|
|
}] call EFUNC(common,addEventHandler);
|