Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "script_macros.hpp"
- /*
- File: initPlayerLocal.sqf
- Author:
- Description:
- Starts the initialization of the player.
- */
- if (!hasInterface && !isServer) exitWith {
- [] call compile preprocessFileLineNumbers "\life_hc\initHC.sqf";
- }; //This is a headless client.
- #define CONST(var1,var2) var1 = compileFinal (if (var2 isEqualType "") then {var2} else {str(var2)})
- #define LIFE_SETTINGS(TYPE,SETTING) TYPE(missionConfigFile >> "Life_Settings" >> SETTING)
- CONST(BIS_fnc_endMission,BIS_fnc_endMission);
- if (LIFE_SETTINGS(getNumber,"spyGlass_toggle") isEqualTo 1) then {[] execVM "SpyGlass\fn_initSpy.sqf";};
- [] execVM "core\init.sqf";
- waitUntil {!(isNil "allFunctions")};
- [] remoteExec ["TON_fnc_receiveFunctions",clientOwner];
- waitUntil {(!(isNil "life_serverFunctionsReady"))}; waitUntil {life_serverFunctionsReady};
Add Comment
Please, Sign In to add comment