Advertisement
Guest User

Untitled

a guest
Jul 26th, 2013
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.05 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.  
  20. // DayZ Epoch config
  21. spawnShoremode = 1; // Default = 1 (on shore)
  22. spawnArea= 1500; // Default = 1500
  23. MaxHeliCrashes= 5; // Default = 5
  24. MaxVehicleLimit = 150; // Default = 50
  25. MaxDynamicDebris = 200; // Default = 100
  26. dayz_MapArea = 14000; // Default = 10000
  27. dayz_maxLocalZombies = 30; // Default = 30
  28. DZE_TRADER_SPAWNMODE = false;
  29. dayz_zedsAttackVehicles = true;
  30. DefaultMagazines = ["8Rnd_9x18_Makarov","8Rnd_9x18_Makarov","ItemBandage","ItemBandage","FoodCanBakedBeans","ItemSodaPepsi","ItemPainkiller"];
  31. DefaultWeapons = ["Makarov","ItemFlashlight","ItemMap","ItemCompass"];
  32. DefaultBackpack = "DZ_TerminalPack_EP1";
  33. DefaultBackpackWeapon = "";
  34.  
  35. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"]];
  36. dayz_fullMoonNights = true;
  37.  
  38. //Load in compiled functions
  39. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  40. progressLoadingScreen 0.1;
  41. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  42. progressLoadingScreen 0.2;
  43. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  44. progressLoadingScreen 0.4;
  45. //call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  46. call compile preprocessFileLineNumbers "dayz_code\compiles.sqf"; //Compile für Selfbloodbag *iFear
  47.  
  48. progressLoadingScreen 0.5;
  49. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  50. progressLoadingScreen 1.0;
  51. building_spawnLoot = compile preprocessFileLineNumbers "fixes\building_spawnLoot.sqf";
  52.  
  53. //call compile preprocessFileLineNumbers "fixes\fn_selfActions.sqf"; //Wird für SelfBloodbag gebraucht, nichts verändern
  54.  
  55. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  56.  
  57. /* BIS_Effects_* fixes from Dwarden */
  58. BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
  59. BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
  60. BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
  61.  
  62. BIS_Effects_globalEvent = {
  63. BIS_effects_gepv = _this;
  64. publicVariable "BIS_effects_gepv";
  65. _this call BIS_Effects_startEvent;
  66. };
  67.  
  68. BIS_Effects_startEvent = {
  69. switch (_this select 0) do {
  70. case "AirDestruction": {
  71. [_this select 1] spawn BIS_Effects_AirDestruction;
  72. };
  73. case "AirDestructionStage2": {
  74. [_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
  75. };
  76. case "Burn": {
  77. [_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
  78. };
  79. };
  80. };
  81.  
  82. "BIS_effects_gepv" addPublicVariableEventHandler {
  83. (_this select 1) call BIS_Effects_startEvent;
  84. };
  85.  
  86. if ((!isServer) && (isNull player) ) then
  87. {
  88. waitUntil {!isNull player};
  89. waitUntil {time > 3};
  90. };
  91.  
  92. if ((!isServer) && (player != player)) then
  93. {
  94. waitUntil {player == player};
  95. waitUntil {time > 3};
  96. };
  97.  
  98. if (isServer) then {
  99. call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
  100.  
  101. // Add trader citys
  102. _nil = [] execVM "mission.sqf";
  103. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  104. };
  105.  
  106. if (!isDedicated) then {
  107. //Conduct map operations
  108. 0 fadeSound 0;
  109. waitUntil {!isNil "dayz_loadScreenMsg"};
  110. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  111.  
  112. //Run the player monitor
  113. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;_nul = [] execVM "addin\plrInit.sqf";}];
  114. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  115. _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";
  116. };
  117. #include "\z\addons\dayz_code\system\REsec.sqf";
  118. //Sarge AI (UPSMON)
  119. call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
  120. //SHK
  121. call compile preprocessFileLineNumbers "addons\SHK_pos\shk_pos_init.sqf";
  122. //SARGE AI
  123. [] execVM "addons\SARGE\SAR_AI_init.sqf";
  124.  
  125.  
  126. //Towen und LIften
  127. [] ExecVM "R3F_ARTY_AND_LOG\init.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement