Advertisement
Guest User

Untitled

a guest
May 21st, 2015
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. /*Mission Loading*/
  2. startLoadingScreen ["","RscDisplayLoadCustom"];
  3. cutText ["","BLACK OUT"];
  4. enableSaving [false, false];
  5.  
  6. //REALLY IMPORTANT VALUES
  7. dayZ_instance = 11; //The instance
  8. dayZ_serverName = "Overpoch";
  9. dayzHiveRequest = [];
  10. initialized = false;
  11. dayz_previousID = 0;
  12.  
  13. //disable greeting menu
  14. player setVariable ["BIS_noCoreConversations", true];
  15. //disable radio messages to be heard and shown in the left lower corner of the screen
  16.  
  17. //disable radio messages
  18. enableRadio true;
  19.  
  20. // Prevent messages from NPC
  21. enableSentences false;
  22.  
  23. // DayZ Epoch config
  24. DZE_R3F_WEIGHT = false;
  25. spawnShoremode = 1; // Default = 1 (on shore)
  26. spawnArea= 2500;
  27. dayz_MapArea = 22000;
  28. dayz_minpos = -1000;
  29. dayz_maxpos = 17000;
  30.  
  31. //Load in compiled functions
  32. diag_log "Loading Server Options";
  33. execVM "OPTIONS\EpochConfig.sqf";
  34. call compile preprocessFileLineNumbers "OPTIONS\Loader.sqf";
  35. diag_log "Server Options Loaded";
  36.  
  37. // Dayz Epoch Events
  38. EpochEvents = [["any","any","any","any",5,"crash_spawner"],["any","any","any","any",10,"crash_spawner"],["any","any","any","any",15,"supply_drop"],["any","any","any","any",25,"ikea"],["any","any","any","any",35,"supply_drop"],
  39. ["any","any","any","any",40,"crash_spawner"],["any","any","any","any",45,"supply_drop"],["any","any","any","any",50,"ikea"]];
  40.  
  41. //Load in compiled functions
  42. call compile preprocessFileLineNumbers "DAYZ_CODE\INIT\variables.sqf";
  43. progressLoadingScreen 0.1;
  44. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
  45. progressLoadingScreen 0.2;
  46. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
  47. progressLoadingScreen 0.4;
  48. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
  49. call compile preprocessFileLineNumbers "custom\compiles.sqf";
  50. progressLoadingScreen 0.6;
  51. call compile preprocessFileLineNumbers "DAYZ_CODE\INIT\compiles.sqf";
  52. progressLoadingScreen 0.7;
  53. call compile preprocessFileLineNumbers "DAYZ_CODE\COMPILE\player_traderMenu.sqf";
  54. progressLoadingScreen 0.8;
  55. call compile preprocessFileLineNumbers "TRADERS\server_traders.sqf";
  56. progressLoadingScreen 1.0;
  57.  
  58. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  59.  
  60. diag_log "Loading Server Monitor & Server Executions!";
  61. if (isServer) then {
  62. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  63.  
  64. // Add trader citys
  65. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  66. _serverMonitor = [] execVM "\z\addons\dayz_server\system\server_monitor.sqf";
  67.  
  68. };
  69.  
  70. diag_log "Loading Dedicated Executions!";
  71. if (!isDedicated) then {
  72. //Conduct map operations
  73. 0 fadeSound 0;
  74. waitUntil {!isNil "dayz_loadScreenMsg"};
  75. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  76.  
  77. //Run the player monitor
  78. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  79. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  80.  
  81. //Remote Messages
  82. _nil = [] execVM "DAYZ_CODE\COMPILE\remote_message.sqf";
  83.  
  84. //Mod Loader
  85. execVM "OPTIONS\ModConfig.sqf";
  86. };
  87.  
  88. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  89.  
  90. if (!isNil "dayZ_serverName") then {
  91. [] spawn {
  92. waitUntil {(!isNull Player) and (alive Player) and (player == player)};
  93. waituntil {!(isNull (findDisplay 46))};
  94. 5 cutRsc ["wm_disp","PLAIN"];
  95. ((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText dayZ_serverName;
  96. };
  97. };
  98.  
  99. diag_log "Finalizing Server Startup, Loading BIS_Effects";
  100. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
  101.  
  102. [] ExecVM "custom\safeZoneCars.sqf";
  103. [] ExecVM "custom\safeZoneCommander.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement