Advertisement
Guest User

Untitled

a guest
Feb 10th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.31 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 true;
  19. // May prevent "how are you civillian?" messages from NPC
  20. enableSentences false;
  21.  
  22. // Player kills in chat
  23. DZE_DeathMsgGlobal = false;
  24. DZE_DeathMsgTitleText = false;
  25.  
  26. // DayZ Epochconfig
  27. spawnShoremode = 1; // Default = 1 (on shore)
  28. spawnArea= 1500; // This is the overall area used to determine where to spawn vehicles, road debris, and helicopter crashes. (Default: 10000)
  29. MaxVehicleLimit = 300; // Controls the max overall vehicle limit if this limit is reached no new vehicles will spawn.
  30. MaxDynamicDebris = 150; // Default = 100
  31. MaxMineVeins = 40;
  32. MaxAmmoBoxes = 15;
  33. dayz_MapArea = 14000; // Default = 10000
  34. dayz_minpos = -1;
  35. dayz_maxpos = 16000;
  36. dayz_paraSpawn = false; // Experimental feature that will parachute spawn all players into the game. (Default: false)
  37. dayz_sellDistance_vehicle = 80;
  38. dayz_sellDistance_boat = 80;
  39. dayz_sellDistance_air = 80;
  40. dayz_maxLocalZombies = 25;
  41. dayz_maxGlobalZombiesInit = 30;
  42. dayz_maxGlobalZombiesIncrease = 10;
  43. dayz_maxZeds = 500;
  44. dayz_maxAnimals = 5; // Default: 8
  45. dayz_tameDogs = true;
  46. DynamicVehicleDamageLow = 5; // Default: 0
  47. DynamicVehicleDamageHigh = 50; // Default: 100
  48. DynamicVehicleFuelLow = 3;
  49. DynamicVehicleFuelHigh = 35;
  50. DZE_vehicleAmmo = 1; //Default = 0, deletes ammo from vehicles with machine guns every restart if set to 0.
  51. DZE_BackpackGuard = false; //Default = True, deletes backpack contents if logging out or losing connection beside another player if set to true.
  52. DZE_BuildingLimit = 1000; //Default = 150, decides how many objects can be built on the server before allowing any others to be built. Change value for more buildings.
  53. DZE_TRADER_SPAWNMODE = false; //Vehicles bought with traders will parachute in instead of just spawning on the ground.
  54. DZE_BuildOnRoads = false; // Default: False
  55. DZE_GodModeBase = true; //unbreakable bases
  56. DZE_requireplot = 1; //removes need for plot pole
  57. DZE_HeliLift = false; //epoch default heli lifting
  58. DZE_R3F_WEIGHT = true; //remove weight system
  59. DZE_PlotPole = [50,30]; //plot pole radius, exclusion zone
  60. DZE_PlayerZed = false; //player spawns back as zed
  61. DZE_ForceNameTagsInTrader = true; //Forces player names in traders
  62. DZE_SelfTransfuse = true; //Solf blood transfusion
  63. DZE_selfTransfuse_Values = [6000, 200, 240]; //[blood amount, infection chance, cool-down (seconds)]
  64. setViewDistance 2200; //sets view distance
  65. setTerrainGrid 20; //sets terrain detail
  66.  
  67. EpochEvents = [["any","any","any","any",30,"crash_spawner"],
  68. ["any","any","any","any",0,"crash_spawner"],
  69. ["any","any","any","any",15,"supply_drop"]];
  70.  
  71.  
  72. dayz_fullMoonNights = true;
  73.  
  74. //Load in compiled functions
  75. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  76. progressLoadingScreen 0.1;
  77. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  78. progressLoadingScreen 0.2;
  79. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  80. progressLoadingScreen 0.4;
  81. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  82. call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
  83. call compile preprocessFileLineNumbers "addons\bike\init.sqf"; //Deployable Bike Init
  84. progressLoadingScreen 0.5;
  85. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  86. call compile preprocessFileLineNumbers "admintools\AdminList.sqf"; // Epoch admin Tools variables/UIDs
  87. call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
  88. progressLoadingScreen 1.0;
  89.  
  90. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  91.  
  92. if (isServer) then {
  93. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  94. //Compile vehicle configs
  95.  
  96. // Add trader citys
  97. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  98. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  99. };
  100.  
  101. if (!isDedicated) then {
  102. //Conduct map operations
  103. 0 fadeSound 0;
  104. waitUntil {!isNil "dayz_loadScreenMsg"};
  105. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  106.  
  107. //Run the player monitor
  108. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  109. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  110. execVM "spawn\start.sqf";
  111. execVM "dzgm\init.sqf";
  112.  
  113. // Epoch Admin Tools
  114. if ( !((getPlayerUID player) in AdminList) && !((getPlayerUID player) in ModList)) then
  115. {
  116. [] execVM "admintools\antihack\antihack.sqf"; // Epoch Antihack with bypass
  117. };
  118.  
  119. //Lights
  120. //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  121. execVM "service_point\service_point.sqf"; //Auto Refuel, Repair and Rearm
  122.  
  123. if (isNil 'debugMonitor') then
  124. {
  125. debugMonitor = true;
  126. _nill = execvm "custom\debug_monitor.sqf";
  127. };
  128.  
  129. };
  130.  
  131. #include "\z\addons\dayz_code\system\REsec.sqf"
  132.  
  133. //Start Dynamic Weather
  134. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  135.  
  136.  
  137. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  138.  
  139. //Load custom scripts
  140. [] execVM "R3F_ARTY_AND_LOG\init.sqf"; //R3F Lift and Tow
  141. [] execvm 'AGN\agn_SafeZoneCommander.sqf'; //Trader Safe Zones
  142. [] execVM "admintools\Activate.sqf"; // Epoch admin tools
  143.  
  144. [] ExecVM "bsb_updates\bsb_chernarus_plus_v2.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement