mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
17 lines
561 B
Plaintext
17 lines
561 B
Plaintext
#include "script_component.hpp"
|
|
|
|
// Exit on player clients that are not hosts
|
|
if (hasInterface && !isServer) exitWith {};
|
|
|
|
["SettingsInitialized", {
|
|
if (isServer) then {
|
|
// Add disconnect EH if HC transferring enabled
|
|
if (GVAR(Enabled)) then {
|
|
addMissionEventHandler ["HandleDisconnect", {_this call FUNC(handleDisconnect)}];
|
|
};
|
|
} else {
|
|
// Register HC (this part happens on HC only)
|
|
["ACE_HeadlessClientJoined", [player]] call EFUNC(common,globalEvent);
|
|
};
|
|
}] call EFUNC(common,addEventHandler);
|