Advertisement
Guest User

dayz init

a guest
Apr 12th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 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. startLoadingScreen ["","RscDisplayLoadCustom"];
  6. cutText ["","BLACK OUT"];
  7. enableSaving [false, false];
  8.  
  9. //REALLY IMPORTANT VALUES
  10. dayZ_instance = 11; //The instance
  11. dayzHiveRequest = [];
  12. initialized = false;
  13. dayz_previousID = 0;
  14.  
  15. //disable greeting menu
  16. player setVariable ["BIS_noCoreConversations", true];
  17. //disable radio messages to be heard and shown in the left lower corner of the screen
  18. enableRadio false;
  19. // May prevent "how are you civillian?" messages from NPC
  20. enableSentences false;
  21.  
  22. // DayZ Epoch config
  23. spawnShoremode = 1; // Default = 1 (on shore)
  24. spawnArea= 1500; // Default = 1500
  25. MaxHeliCrashes= 15; // Default = 5
  26. MaxVehicleLimit = 80; // Default = 50
  27. MaxMineVeins = 50;
  28. MaxDynamicDebris = 150; // Default = 100
  29. dayz_MapArea = 14000; // Default = 10000
  30. dayz_maxLocalZombies = 30; // Default = 30
  31. DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller"];
  32. DefaultWeapons = ["ItemFlashlight"];
  33. DefaultBackpack = "DZ_Patrol_Pack_EP1";
  34. dayz_zedsAttackVehicles = false;
  35. DZE_DeathMsgGlobal = true;
  36. DZE_DeathMsgTitleText = true;
  37. DZE_requireplot = 0;
  38. DZE_BuildingLimit = 15000;
  39. DZE_BackpackGuard = false;
  40.  
  41. DZE_GodModeBase = true;
  42.  
  43. dayz_paraSpawn = false;
  44. dayz_minpos = 0;
  45. dayz_maxpos = 16000;
  46.  
  47. dayz_sellDistance_vehicle = 10;
  48. dayz_sellDistance_boat = 30;
  49. dayz_sellDistance_air = 40;
  50.  
  51. DZE_HeliLift = false;
  52. DZE_PlayerZed = false;
  53.  
  54. dayz_maxAnimals = 4; // Default: 8
  55. dayz_tameDogs = false;
  56. DynamicVehicleDamageLow = 40; // Default: 0
  57. DynamicVehicleDamageHigh = 90; // Default: 100
  58. DynamicVehicleFuelLow = 0;
  59. DynamicVehicleFuelHigh = 50;
  60.  
  61. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  62. dayz_fullMoonNights = true;
  63.  
  64. //Load in compiled functions
  65. call compile preprocessFileLineNumbers "custom\variables.sqf"; // \z\addons\dayz_code\init Initilize the Variables (IMPORTANT: Must happen very early)
  66. progressLoadingScreen 0.1;
  67. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  68. progressLoadingScreen 0.2;
  69. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  70. progressLoadingScreen 0.4;
  71. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
  72. progressLoadingScreen 0.5;
  73. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  74. call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom functions
  75. progressLoadingScreen 1.0;
  76.  
  77. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  78.  
  79. if (isServer) then {
  80. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  81. //Compile vehicle configs
  82.  
  83. // Add trader citys
  84. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  85. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  86. };
  87.  
  88. if (!isDedicated) then {
  89. //Conduct map operations
  90. 0 fadeSound 0;
  91. waitUntil {!isNil "dayz_loadScreenMsg"};
  92. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  93.  
  94. //Run the player monitor
  95. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  96. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  97.  
  98. //anti Hack
  99.  
  100. //Lights
  101. //[0,0,true,true,true,58,280,600,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  102.  
  103. // Mission System Markers
  104. if (!isServer) then {
  105. [] execVM "debug\addmarkers.sqf";
  106. [] execVM "debug\addmarkers75.sqf";
  107. };
  108.  
  109. //Service Point
  110. [] execVM "SERVICE\service_point.sqf";
  111.  
  112. // Custom Monitor
  113. [] execVM "scripts\custom_monitor.sqf";
  114.  
  115. // Master Key
  116. [] execVM "scripts\vehiclefunctions.sqf";
  117.  
  118. // Evac Chopper
  119. [] execVM "addons\JAEM\EvacChopper_init.sqf";
  120. };
  121.  
  122. //Start Dynamic Weather
  123. [] execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  124.  
  125.  
  126. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  127.  
  128. // UPSMON
  129. call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
  130.  
  131. // SHK
  132. call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
  133.  
  134. // run SAR_AI
  135. [] execVM "addons\SARGE\SAR_AI_init.sqf";
  136.  
  137. // Auto Refuell
  138. [] execVM "scripts\kh_actions.sqf";
  139.  
  140. // Name Tags
  141. [] execVM "scripts\cpcnametags.sqf";
  142.  
  143. // Churches
  144. [] execVM "scripts\hide_churches.sqf";
  145. [] execVM "scripts\churches.sqf";
  146.  
  147. // Lift And Tow
  148. [] execVM "R3F_ARTY_AND_LOG\init.sqf";
  149.  
  150. // Markers
  151. [] execVM "scripts\custom_marker.sqf";
  152.  
  153. // Safe Zone
  154. [] execVM "scripts\safezone.sqf";
  155.  
  156. // Custom Menu
  157. [] execVM "admintools\Activate.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement