#include "..\script_component.hpp"


if (!hasInterface) exitWith {};

call FUNC(addMicroDAGRWaypoints);
call FUNC(addZenModules);
call FUNC(bindEventHandlers);
call FUNC(bindVehicleActions);

// add core getNearMenPFH handler
localNamespace setVariable [QGVAR(nearMen), []];
call FUNC(addGetNearMenPFH);
// add core draw3dPFH handler
localNamespace setVariable [QGVAR(pfhCode), []];
call FUNC(addDraw3DPFH);

// add listener that tracks using the respawn button while unconscious
call FUNC(logRespawnButtonUse);
// add conditional eject-from-vehicle handler to apply temp invincibility when static line jumping
call FUNC(staticLineProtection);

[
	LEVEL_DEBUG,
	QUOTE(COMPONENT),
	"initClient complete",
	[]
] call EFUNC(common,log);

localNamespace setVariable [QGVAR(complete), true];

nil;