Guest User

init.sqf

a guest
Jun 6th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.28 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. dayzHiveRequest = [];
  9. initialized = false;
  10. dayz_previousID = 0;
  11.  
  12. //disable greeting menu
  13. player setVariable ["BIS_noCoreConversations", true];
  14. //disable radio messages to be heard and shown in the left lower corner of the screen
  15.  
  16. //disable radio messages
  17. enableRadio true;
  18.  
  19. // Prevent messages from NPC
  20. enableSentences false;
  21.  
  22. // DayZ Epoch config
  23. spawnShoremode = 1; // Default = 1 (on shore)
  24. spawnArea= 2500;
  25. dayz_MapArea = 22000;
  26. dayz_minpos = -1000;
  27. dayz_maxpos = 17000;
  28.  
  29. //Load in compiled functions
  30. diag_log "Loading Server Options";
  31. execVM "OPTIONS\EpochConfig.sqf";
  32. call compile preprocessFileLineNumbers "OPTIONS\Loader.sqf";
  33. diag_log "Server Options Loaded";
  34.  
  35. // Dayz Epoch Events
  36. 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"],
  37. ["any","any","any","any",40,"crash_spawner"],["any","any","any","any",45,"supply_drop"]];
  38.  
  39. debugMonitor = true;
  40.  
  41. //Load in compiled functions
  42. call compile preprocessFileLineNumbers "DAYZ_CODE\INIT\variables.sqf";
  43. call compile preprocessFileLineNumbers "custom\A_Plot_for_Life\init\variables.sqf";
  44. progressLoadingScreen 0.1;
  45. call compile preprocessFileLineNumbers "custom\A_Plot_for_Life\init\publicEH.sqf";
  46. progressLoadingScreen 0.2;
  47. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
  48. progressLoadingScreen 0.3;
  49. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
  50. call compile preprocessFileLineNumbers "custom\Other Compiles\compiles.sqf"; //Compile custom compiles
  51. call compile preprocessFileLineNumbers "custom\A_Plot_for_Life\init\compiles.sqf";
  52. progressLoadingScreen 0.5;
  53. call compile preprocessFileLineNumbers "DAYZ_CODE\INIT\compiles.sqf";
  54. progressLoadingScreen 0.6;
  55. call compile preprocessFileLineNumbers "DAYZ_CODE\FUNCTIONS\CoinInit.sqf";
  56. call compile preprocessFileLineNumbers "DAYZ_CODE\FUNCTIONS\BankInit.sqf";
  57. progressLoadingScreen 0.8;
  58. call compile preprocessFileLineNumbers "TRADERS\server_traders.sqf";
  59. call compile preprocessFileLineNumbers "custom\compiles.sqf";
  60. progressLoadingScreen 1.0;
  61.  
  62. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  63.  
  64. diag_log "Loading Server Monitor & Server Executions!";
  65. if (isServer) then {
  66. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  67.  
  68. // Add trader citys
  69. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  70. _serverMonitor = [] execVM "custom\system\server_monitor.sqf";
  71.  
  72. };
  73.  
  74. diag_log "Loading Dedicated Executions!";
  75. if (!isDedicated) then {
  76. //Conduct map operations
  77. 0 fadeSound 0;
  78. waitUntil {!isNil "dayz_loadScreenMsg"};
  79. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  80.  
  81. //Run the player monitor
  82. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  83. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  84.  
  85. //Remote Messages
  86. _nil = [] execVM "DAYZ_CODE\COMPILE\remote_message.sqf";
  87.  
  88. //Mod Loader
  89. execVM "OPTIONS\ModConfig.sqf";
  90.  
  91. //Custom PlayerHUD
  92. _nill = execvm "custom\debug_monitor.sqf";
  93.  
  94. //Elevators
  95. ["elevator"] execVM "elevator\elevator_init.sqf";
  96. };
  97.  
  98. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  99.  
  100. if (!isNil "dayZ_serverName") then {
  101. [] spawn {
  102. waitUntil {(!isNull Player) and (alive Player) and (player == player)};
  103. waituntil {!(isNull (findDisplay 46))};
  104. 5 cutRsc ["wm_disp","PLAIN"];
  105. ((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText dayZ_serverName;
  106. };
  107. };
  108.  
  109. diag_log "Finalizing Server Startup, Loading BIS_Effects";
  110. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
  111. [] execvm 'custom\SafeZone\agn_SafeZoneCommander.sqf';
  112.  
  113. //Slow Zombies
  114. zombie_generate = compile preprocessFileLineNumbers "GTX\walkers\zombie_generate.sqf";
  115. wild_spawnZombies = compile preprocessFileLineNumbers "GTX\walkers\wild_spawnZombies.sqf";
Add Comment
Please, Sign In to add comment