Advertisement
Guest User

Untitled

a guest
Sep 12th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. #include "script_macros.hpp"
  2.  
  3. waitUntil {!(isNil "allFunctions")};
  4. [] remoteExec ["TON_fnc_receiveFunctions",clientOwner];
  5. waitUntil {(!(isNil "life_serverFunctionsReady"))}; waitUntil {life_serverFunctionsReady};
  6.  
  7. if (!hasInterface && !isServer) exitWith {
  8. [] call compile preprocessFileLineNumbers "\life_hc\initHC.sqf";
  9. }; //This is a headless client.
  10.  
  11. #define CONST(var1,var2) var1 = compileFinal (if (var2 isEqualType "") then {var2} else {str(var2)})
  12. #define LIFE_SETTINGS(TYPE,SETTING) TYPE(missionConfigFile >> "Life_Settings" >> SETTING)
  13.  
  14. CONST(BIS_fnc_endMission,BIS_fnc_endMission);
  15. if (LIFE_SETTINGS(getNumber,"spyGlass_toggle") isEqualTo 1) then {[] execVM "SpyGlass\fn_initSpy.sqf";};
  16.  
  17. if (hasInterface) then {
  18. player addEventHandler ["GetOutMan", {
  19. life_seatbelt = false;
  20. [] call life_fnc_hudUpdate; //--Enable if you are putting a hud option to display when your seatbelt is on
  21. }];
  22. };
  23.  
  24. if (hasInterface) then {
  25. player addEventHandler ["GetInMan", {
  26. life_seatbelt = false;
  27. [] call life_fnc_hudUpdate; //--Enable if you are putting a hud option to display when your seatbelt is on
  28. }];
  29. };
  30.  
  31. [] execVM "core\init.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement