init_client.sqf 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [] call compileFinal preprocessFileLineNumbers "scripts\client\misc\init_markers.sqf";
  2. switch (IA_liberation_arsenal) do {
  3. case 0: {[] call compileFinal preprocessFileLineNumbers "arsenal_presets\useBlacklist.sqf";};
  4. case 1: {[] call compileFinal preprocessFileLineNumbers "arsenal_presets\custom.sqf";};
  5. case 2: {[] call compileFinal preprocessFileLineNumbers "arsenal_presets\killahpotatoes.sqf";};
  6. case 3: {[] call compileFinal preprocessFileLineNumbers "arsenal_presets\rhsusaf.sqf";};
  7. case 4: {[] call compileFinal preprocessFileLineNumbers "arsenal_presets\rhsusaf_ace.sqf";};
  8. case 5: {[] call compileFinal preprocessFileLineNumbers "arsenal_presets\rhsusaf_ace_acre.sqf";};
  9. case 6: {[] call compileFinal preprocessFileLineNumbers "arsenal_presets\3cbBAF.sqf";};
  10. default {[] call compileFinal preprocessFileLineNumbers "arsenal_presets\useBlacklist.sqf";};
  11. };
  12. if ( typeOf player == "VirtualSpectator_F" ) exitWith {
  13. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\empty_vehicles_marker.sqf";
  14. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\fob_markers.sqf";
  15. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\group_icons.sqf";
  16. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\hostile_groups.sqf";
  17. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\sector_manager.sqf";
  18. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\spot_timer.sqf";
  19. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\synchronise_vars.sqf";
  20. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\ui\ui_manager.sqf";
  21. };
  22. // This causes the script error with not defined variable _display in File A3\functions_f_bootcamp\Inventory\fn_arsenal.sqf [BIS_fnc_arsenal], line 2122
  23. // ["Preload"] call BIS_fnc_arsenal;
  24. spawn_camera = compileFinal preprocessFileLineNumbers "scripts\client\spawn\spawn_camera.sqf";
  25. cinematic_camera = compileFinal preprocessFileLineNumbers "scripts\client\ui\cinematic_camera.sqf";
  26. write_credit_line = compileFinal preprocessFileLineNumbers "scripts\client\ui\write_credit_line.sqf";
  27. do_load_box = compileFinal preprocessFileLineNumbers "scripts\client\ammoboxes\do_load_box.sqf";
  28. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\actions\action_manager.sqf";
  29. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\actions\intel_manager.sqf";
  30. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\actions\recycle_manager.sqf";
  31. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\actions\unflip_manager.sqf";
  32. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\ammoboxes\ammobox_action_manager.sqf";
  33. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\build\build_overlay.sqf";
  34. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\build\do_build.sqf";
  35. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\commander\enforce_whitelist.sqf";
  36. if (IA_liberation_mapmarkers) then {[] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\empty_vehicles_marker.sqf";};
  37. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\fob_markers.sqf";
  38. if (IA_liberation_mapmarkers) then {[] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\group_icons.sqf";};
  39. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\hostile_groups.sqf";
  40. if (IA_liberation_mapmarkers) then {[] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\huron_marker.sqf";} else {deleteMarker "huronmarker"};
  41. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\sector_manager.sqf";
  42. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\markers\spot_timer.sqf";
  43. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\broadcast_squad_colors.sqf";
  44. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\disable_remote_sensors.sqf";
  45. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\init_arsenal.sqf";
  46. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\offload_diag.sqf";
  47. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\permissions_warning.sqf";
  48. if (!IA_liberation_ace) then {[] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\resupply_manager.sqf";};
  49. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\secondary_jip.sqf";
  50. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\stay_leader.sqf";
  51. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\stop_renegade.sqf";
  52. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\synchronise_vars.sqf";
  53. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\synchronise_eco.sqf";
  54. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\misc\vehicle_permissions.sqf";
  55. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\spawn\redeploy_manager.sqf";
  56. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\ui\ui_manager.sqf";
  57. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\ui\tutorial_manager.sqf";
  58. player addMPEventHandler ["MPKilled", {_this spawn kill_manager}];
  59. player addEventHandler ["GetInMan", {[_this select 2] execVM "scripts\client\misc\ia_fuel_consumption.sqf";}];
  60. {
  61. [_x] call BIS_fnc_drawCuratorLocations;
  62. } foreach allCurators;
  63. [] spawn compileFinal preprocessFileLineNumbers "scripts\client\ui\intro.sqf";
  64. [] execVM "onPlayerRespawn.sqf";
  65. [player] joinSilent (createGroup GRLIB_side_friendly);
  66. if (IA_liberation_debug) then {private _text = format ["[IA LIBERATION] [DEBUG] init_client.sqf done for: %1", (name player)];_text remoteExec ["diag_log",2];};