init.sqf 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. enableSaving [ false, false ];
  2. [] call compileFinal preprocessFileLineNumbers "scripts\shared\liberation_functions.sqf";
  3. [] call compileFinal preprocessFileLineNumbers "scripts\shared\init_sectors.sqf";
  4. [] call compileFinal preprocessFileLineNumbers "scripts\shared\fetch_params.sqf";
  5. [] call compileFinal preprocessFileLineNumbers "IA_liberation_config.sqf";
  6. switch (IA_liberation_preset) do {
  7. case 0: {[] call compileFinal preprocessFileLineNumbers "presets\501st.sqf";};
  8. default {[] call compileFinal preprocessFileLineNumbers "presets\501st.sqf";};
  9. };
  10. MISSION_ROOT = call {
  11. private "_arr";
  12. _arr = toArray __FILE__;
  13. _arr resize (count _arr - 8);
  14. toString _arr
  15. };
  16. [] call compileFinal preprocessFileLineNumbers "scripts\shared\classnames.sqf";
  17. [] execVM "GREUH\scripts\GREUH_activate.sqf";
  18. [] execVM "intercom.sqf";
  19. //[] execVM "alarm.sqf";
  20. [] call compileFinal preprocessFileLineNumbers "scripts\shared\init_shared.sqf";
  21. if (isServer) then {
  22. [] call compileFinal preprocessFileLineNumbers "scripts\server\init_server.sqf";
  23. };
  24. // TODO: Check To See If HC_Manager Script Is Needed (Possable Replaced with ACEX HC)
  25. if (!isDedicated && !hasInterface && isMultiplayer) then {
  26. [] spawn compileFinal preprocessFileLineNumbers "scripts\server\offloading\hc_manager.sqf";
  27. };
  28. if (!isDedicated && hasInterface) then {
  29. waitUntil { alive player };
  30. [] call compileFinal preprocessFileLineNumbers "scripts\client\init_client.sqf";
  31. } else {
  32. setViewDistance 1600;
  33. };
  34. if (IA_liberation_debug) then {private _text = format ["[IA LIBERATION] [DEBUG] init.sqf done for: %1", (name player)];_text remoteExec ["diag_log",2];};
  35. //Temp fix for endless loading screen.
  36. _EndSplashScreen = {
  37. for "_x" from 1 to 4 do {
  38. endLoadingScreen;
  39. sleep 3;
  40. };
  41. };
  42. [] spawn _EndSplashScreen;