Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.42 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 = 800; // Default = 50
  27. MaxMineVeins = 50;
  28. MaxDynamicDebris = 50; // Default = 100
  29. dayz_MapArea = 14000; // Default = 10000
  30. dayz_maxLocalZombies = 10; // Default = 30
  31. DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller","15Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x19_M9","ItemMorphine","FoodMRE","ItemSodaCoke"];
  32. DefaultWeapons = ["ItemFlashlight","M9","ItemMap","ItemToolbox","ItemCrowbar"];
  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. DZE_R3F_WEIGHT = false;
  41. DZE_GodModeBase = true;
  42.  
  43. dayz_paraSpawn = false;
  44. dayz_minpos = 0;
  45. dayz_maxpos = 16000;
  46.  
  47. dayz_sellDistance_vehicle = 30;
  48. dayz_sellDistance_boat = 30;
  49. dayz_sellDistance_air = 40;
  50.  
  51. DZE_HeliLift = true;
  52. DZE_PlayerZed = false;
  53.  
  54. dayz_maxAnimals = 5; // Default: 8
  55. dayz_tameDogs = true;
  56. DynamicVehicleDamageLow = 40; // Default: 0
  57. DynamicVehicleDamageHigh = 90; // Default: 100
  58. DynamicVehicleFuelLow = 20;
  59. DynamicVehicleFuelHigh = 60;
  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 "custom\compiles.sqf"; //Compile regular functions
  72. progressLoadingScreen 0.5;
  73. fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf";
  74. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  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. [] execVM "SERVICE\service_point.sqf";
  110.  
  111. // Custom Monitor
  112. [] execVM "scripts\custom_monitor.sqf";
  113.  
  114. // Master Key
  115. [] execVM "scripts\vehiclefunctions.sqf";
  116.  
  117. // Evac Chopper
  118. [] execVM "addons\JAEM\EvacChopper_init.sqf";
  119. };
  120.  
  121. //Start Dynamic Weather
  122. [] execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  123.  
  124.  
  125. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  126.  
  127. // UPSMON
  128. call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
  129.  
  130. // SHK
  131. call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
  132.  
  133. // run SAR_AI
  134. [] execVM "addons\SARGE\SAR_AI_init.sqf";
  135.  
  136. // auto refuell
  137. [] execVM "scripts\kh_actions.sqf";
  138.  
  139. // Name Tags
  140. [] execVM "scripts\cpcnametags.sqf";
  141.  
  142. // Churches
  143. [] execVM "scripts\hide_churches.sqf";
  144. [] execVM "scripts\churches.sqf";
  145.  
  146. // Lift und Tow
  147. [] execVM "R3F_ARTY_AND_LOG\init.sqf";
  148.  
  149. // Markers
  150. [] execVM "scripts\custom_marker.sqf";
  151.  
  152. // Safe Zone
  153. [] execVM "scripts\safezone.sqf";
  154.  
  155. // Custom Menu
  156. [] execVM "scripts\custom_menu.sqf";
  157. _fast_roping = [] execVM "=BTC=_fast_roping\=BTC=_fast_roping_init.sqf";
  158.  
  159. // Epoch Admin Tools
  160. [] execVM "admintools\Activate.sqf";
  161.  
  162. // Epoch Admin Tools
  163. [] execVM "admintools\AdminList.sqf";
  164. if ( !((getPlayerUID player) in AdminList) && !((getPlayerUID player) in ModList) && !((getPlayerUID player) in tempList)) then
  165. {
  166. [] execVM "\z\addons\dayz_code\system\antihack.sqf";
  167. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement