Advertisement
Guest User

Untitled

a guest
Aug 4th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.58 KB | None | 0 0
  1. /*
  2. For DayZ Epoch
  3. Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
  4. */
  5. //Set Script On/Off values (XsG)
  6. _scriptvariables = execVM "scriptvariables.sqf";
  7. waitUntil {scriptDone _scriptvariables};
  8.  
  9.  
  10. startLoadingScreen ["","RscDisplayLoadCustom"];
  11. cutText ["","BLACK OUT"];
  12. enableSaving [false, false];
  13.  
  14. //REALLY IMPORTANT VALUES
  15. dayZ_instance = 11; //The instance
  16. dayzHiveRequest = [];
  17. initialized = false;
  18. dayz_previousID = 0;
  19.  
  20. //disable greeting menu
  21. player setVariable ["BIS_noCoreConversations", true];
  22. //disable radio messages to be heard and shown in the left lower corner of the screen
  23. enableRadio false;
  24. // May prevent "how are you civillian?" messages from NPC
  25. enableSentences false;
  26.  
  27. // DayZ Epoch config
  28. dayz_MapArea = 14000; // Default = 10000
  29. DZE_teleport = [99999,99999,99999,99999,99999];
  30. dayz_minpos = 0;
  31. dayz_maxpos = 16000;
  32. DZE_BuildOnRoads = false; // Default: False
  33. DZE_MissionLootTable = true;
  34.  
  35. //Load in compiled functions
  36. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  37. call compile preprocessFileLineNumbers "Fixes\variables.sqf";
  38. progressLoadingScreen 0.1;
  39. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  40. progressLoadingScreen 0.2;
  41. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  42. progressLoadingScreen 0.4;
  43. if (IsDebugMonitorOn) then {
  44. call compile preprocessFileLineNumbers "Fixes\compiles.sqf"; //Debug Monitor On
  45. } else {
  46. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  47. };
  48. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  49. call compile preprocessFileLineNumbers "Fixes\compiles.sqf";
  50. call compile preprocessFileLineNumbers "Recover_Skin\compiles.sqf";
  51. progressLoadingScreen 0.5;
  52. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  53. if (IsSelfBloodBagOn) then {
  54. call compile preprocessFileLineNumbers "SelfBloodBag\compiles.sqf"; //Self Blood Bag Addition (XsG)
  55. };
  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. if (IsDebugMonitorOn) then {
  60. playerstats = compile preprocessFileLineNumbers "custom\playerstats.sqf"; //Playerstats for Debug Monitor
  61. };
  62.  
  63. if (isServer) then {
  64. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  65. //Compile vehicle configs
  66.  
  67. // Add trader citys
  68. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  69. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  70.  
  71. vfats =[6] spawn compile preprocessFile ('VFATS\VFATS_SRV.sqf');
  72. };
  73.  
  74. if (!isDedicated) then {
  75. //Conduct map operations
  76. 0 fadeSound 0;
  77. waitUntil {!isNil "dayz_loadScreenMsg"};
  78. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  79.  
  80. //Run the player monitor
  81. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  82. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  83.  
  84. // Epoch Admin Tools
  85. [] execVM "admintools\AdminList.sqf";
  86. if ( !((getPlayerUID player) in AdminList) && !((getPlayerUID player) in ModList) && !((getPlayerUID player) in tempList)) then
  87. {
  88. [] execVM "\z\addons\dayz_code\system\antihack.sqf";
  89. };
  90.  
  91.  
  92. //Lights
  93. //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  94.  
  95. execVM "service_point\service_point.sqf";
  96.  
  97. vfats =[] spawn compile preprocessFile ('VFATS\VFATS_CLI.sqf');
  98. };
  99.  
  100.  
  101. #include "\z\addons\dayz_code\system\REsec.sqf"
  102.  
  103.  
  104. //Start Dynamic Weather
  105.  
  106. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  107.  
  108.  
  109. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  110.  
  111. //Script Pack Enabling Code
  112. //R3F trigger Also in description.ext (XsG)
  113. if (IsTowOn) then {
  114. execVM "R3F_ARTY_AND_LOG\init.sqf"; //Call R3F Log to enable Towing
  115. };
  116.  
  117. //Enable Missions (other code enables)
  118. if (IsMissionsOn) then {
  119. execVM "faction.sqf"; //Needed to enable DayZ Chernarus Missions
  120. };
  121.  
  122. //Enable SAR AI (also in description.ext)
  123. if (IsSarAIOn) then {
  124. call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
  125. call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
  126. execVM "addons\SARGE\SAR_AI_init.sqf";
  127. };
  128. if (IsSarAIWithMissionsOn) then {
  129. call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
  130. call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
  131. execVM "addons\SARGE\SAR_AI_init.sqf";
  132. };
  133.  
  134. [] execVM "Buildings\balota.sqf";
  135.  
  136. [] execVM "Buildings\mission.sqf";
  137.  
  138. [] execVM "Buildings\northeast.sqf";
  139.  
  140. [] execVM "Buildings\northwest.sqf";
  141.  
  142. [] execVM "Buildings\[dayz]_tikhaya_city.sqf";
  143.  
  144. [] execVM "Buildings\sector_fng.sqf";
  145.  
  146. [] execVM "Buildings\sector_ubf.sqf";
  147.  
  148. [] execVM "Buildings\skalistybase.sqf";
  149.  
  150. [] execVM "Buildings\RiteShootingRange.sqf";
  151.  
  152. [] execVM "Buildings\elektro.sqf";
  153.  
  154. [] execVM "Buildings\Arena.sqf";
  155.  
  156. [] execVM "Buildings\hJgGSee3.sqf";
  157.  
  158. [] execVM "Buildings\Zeleno.sqf";
  159.  
  160. [] execVM "Buildings\zonealpha.sqf";
  161.  
  162. [] execVM "Buildings\Checkpoint.sqf";
  163.  
  164. [] execVM "bsb_maze_v2.sqf";
  165.  
  166. [] execVM "sectorfng\sectorfng_init.sqf";
  167.  
  168. [] execVM "spawn_allBuildingLoot.sqf";
  169.  
  170. [] execVM "admintools\Activate.sqf";
  171.  
  172. [] execVM "debug.sqf";
  173. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement