Advertisement
iLogann

init

Jun 25th, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 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 = 24; //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 Epochconfig
  23. spawnShoremode = 1; // Default = 1 (on shore)
  24. spawnArea= 1500; // Default = 1500
  25.  
  26. //globalchat message
  27. DZE_DeathMsgGlobal = true;
  28. //sidechat message
  29. DZE_DeathMsgSide = true;
  30. //Titletext message
  31. DZE_DeathMsgTitleText = true;
  32.  
  33.  
  34. MaxVehicleLimit = 300; // Default = 50
  35. MaxDynamicDebris = 500; // Default = 100
  36. dayz_MapArea = 18000; // Default = 10000
  37.  
  38. dayz_minpos = -1000;
  39. dayz_maxpos = 26000;
  40.  
  41. //Default Loadout
  42. DefaultMagazines = ["ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemWaterbottleBoiled","FoodSteakCooked"];
  43. DefaultWeapons = ["glock17_EP1","ItemToolbox","ItemHatchet_DZE","ItemMap"];
  44. DefaultBackpack = "DZ_Patrol_Pack_EP1";
  45. DefaultBackpackWeapon = "";
  46.  
  47. dayz_paraSpawn = false;
  48.  
  49. dayz_sellDistance_vehicle = 10;
  50. dayz_sellDistance_boat = 30;
  51. dayz_sellDistance_air = 40;
  52.  
  53. dayz_maxAnimals = 5; // Default: 8
  54. dayz_tameDogs = false;
  55. DynamicVehicleDamageLow = 0; // Default: 0
  56. DynamicVehicleDamageHigh = 100; // Default: 100
  57.  
  58. DZE_BuildOnRoads = false; // Default: False
  59. DZE_BuildingLimit = 300; //Plot pole items
  60. DZE_MissionLootTable = true; //Custom Loot
  61.  
  62. EpochEvents = [["any","any","any","any",10,"Military"], ["any","any","any","any",25,"Treasure"], ["any","any","any","any",40,"Supplyitems"], ["any","any","any","any",55,"Construction"],["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  63. dayz_fullMoonNights = true;
  64.  
  65. //Load in compiled functions
  66. call compile preprocessFileLineNumbers "custom\overrides\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  67. progressLoadingScreen 0.1;
  68. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  69. progressLoadingScreen 0.2;
  70. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  71. progressLoadingScreen 0.4;
  72. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  73. progressLoadingScreen 0.5;
  74. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  75. call compile preprocessFileLineNumbers "custom\overrides\compiles.sqf"; //Compile custom compiles
  76. fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\overrides\fn_selfActions.sqf";
  77. progressLoadingScreen 1.0;
  78.  
  79. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  80.  
  81. if (isServer) then {
  82. //Compile vehicle configs
  83. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_24.Napf\dynamic_vehicle.sqf";
  84. // Add trader citys
  85. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_24.Napf\mission.sqf";
  86.  
  87. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  88. };
  89.  
  90. if (!isDedicated) then {
  91. //Conduct map operations
  92. 0 fadeSound 0;
  93. waitUntil {!isNil "dayz_loadScreenMsg"};
  94. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  95.  
  96. _nil = [] execVM "custom\scripts\remote_messages.sqf";
  97.  
  98. //Run the player monitor
  99. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  100. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  101.  
  102. //Lights
  103. //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  104.  
  105. //Safezones
  106. [] execVM 'custom\CAGN\initiate.sqf';
  107. };
  108. #include "\z\addons\dayz_code\system\REsec.sqf"
  109. //Start Dynamic Weather
  110. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  111.  
  112. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  113.  
  114. ///////////////////// CUSTOM /////////////////////
  115.  
  116. //Tow and lift
  117. [] execVM "R3F_ARTY_AND_LOG\init.sqf";
  118.  
  119. //Service Point
  120. execVM "custom\service_point\service_point.sqf";
  121.  
  122. //AF Edits
  123. [] execVM "custom\buildings\swaf.sqf";
  124. [] execVM "custom\buildings\napf_neaf.sqf";
  125. [] execVM "custom\buildings\napf_seaf.sqf";
  126.  
  127. //Other
  128. [] execVM "custom\buildings\extra_bridges.sqf";
  129.  
  130.  
  131. p2_newspawn = compile preprocessFileLineNumbers "custom\newspawn\newspawn_execute.sqf";
  132. waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
  133. if (dayzPlayerLogin2 select 2) then
  134. {
  135. player spawn p2_newspawn;
  136. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement