Guest User

init.sqf

a guest
Sep 26th, 2013
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.36 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. _logistic = execVM "=BTC=_Logistic\=BTC=_Logistic_Init.sqf";
  16. execVM "R3F_ARTY_AND_LOG\init.sqf";
  17. execVM "BTK\Cargo Drop\Start.sqf";
  18.  
  19. //disable greeting menu
  20. player setVariable ["BIS_noCoreConversations", true];
  21. //disable radio messages to be heard and shown in the left lower corner of the screen
  22. enableRadio false;
  23.  
  24. // DayZ Epoch config
  25. spawnShoremode = 0; // Default = 1 (on shore)
  26. spawnArea= 1500; // Default = 1500
  27. MaxHeliCrashes= 5; // Default = 5
  28. MaxVehicleLimit = 300; // Default = 50
  29. MaxDynamicDebris = 500; // Default = 100
  30. dayz_MapArea = 14000; // Default = 10000
  31. dayz_maxLocalZombies = 30; // Default = 30
  32. DZE_DeathMsgGlobal = true;
  33. DZE_AllowForceSave = true;
  34. dze_buildinglimit = 150000000000000;
  35. dayz_tameDogs = true;
  36.  
  37. // Default Loadout Config for New Spawns
  38. DefaultMagazines = ["17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemBandage","ItemBandage","ItemPainkiller","ItemWaterbottle","FoodSteakCooked"];
  39. DefaultWeapons = ["ItemMap","ItemWatch","ItemHatchet","glock17_EP1"];
  40. DefaultBackpack = "DZ_Patrol_Pack_EP1";
  41. DefaultBackpackWeapon = "";
  42.  
  43. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  44. dayz_fullMoonNights = true;
  45.  
  46. //Load in compiled functions
  47. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  48. progressLoadingScreen 0.1;
  49. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  50. progressLoadingScreen 0.2;
  51. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  52. progressLoadingScreen 0.4;
  53. //call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  54. call compile preprocessFileLineNumbers "fixes\compiles.sqf"; //Compile regular functions
  55. progressLoadingScreen 0.5;
  56. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  57. call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
  58. progressLoadingScreen 1.0;
  59.  
  60. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  61.  
  62. /* BIS_Effects_* fixes from Dwarden */
  63. BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
  64. BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
  65. BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
  66.  
  67. BIS_Effects_globalEvent = {
  68. BIS_effects_gepv = _this;
  69. publicVariable "BIS_effects_gepv";
  70. _this call BIS_Effects_startEvent;
  71. };
  72.  
  73. BIS_Effects_startEvent = {
  74. switch (_this select 0) do {
  75. case "AirDestruction": {
  76. [_this select 1] spawn BIS_Effects_AirDestruction;
  77. };
  78. case "AirDestructionStage2": {
  79. [_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
  80. };
  81. case "Burn": {
  82. [_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
  83. };
  84. };
  85. };
  86.  
  87. "BIS_effects_gepv" addPublicVariableEventHandler {
  88. (_this select 1) call BIS_Effects_startEvent;
  89. };
  90.  
  91. if ((!isServer) && (isNull player) ) then
  92. {
  93. waitUntil {!isNull player};
  94. waitUntil {time > 3};
  95. };
  96.  
  97. if ((!isServer) && (player != player)) then
  98. {
  99. waitUntil {player == player};
  100. waitUntil {time > 3};
  101. };
  102.  
  103. if (isServer) then {
  104. axe_server_lampObjs = compile preprocessFileLineNumbers "lights\fnc_returnLampWS.sqf";
  105. "axeLampObjects" addPublicVariableEventHandler {_id = (_this select 1) spawn axe_server_lampObjs};
  106. call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
  107.  
  108. // Add trader citys
  109. _nil = [] execVM "mission.sqf";
  110. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  111. };
  112.  
  113. if (!isDedicated) then {
  114.  
  115. [] execVM "Scripts\kh_actions.sqf";
  116. [] execVM "custom_debug.sqf";
  117. //Conduct map operations
  118. 0 fadeSound 0;
  119. waitUntil {!isNil "dayz_loadScreenMsg"};
  120. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  121.  
  122. //Run the player monitor
  123. //_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  124. __id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "addin\plrInit.sqf";}];
  125. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  126. _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";
  127. _nul = [] execVM "addin\plrInit.sqf";
  128.  
  129. //Lights
  130. [17,6,true,false,true,true,72,242,600,10,[0.698, 0.556, 0.419],"Generator_DZ",208,"",0.5] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  131. //StreetLights
  132. [] execVM "lights\street_lights.sqf";
  133. [] execVM "safezone.sqf";
  134. [] execVM "actions.sqf";
  135. [] execVM "faction.sqf";
  136. [] execVM "debug\addmarkers.sqf";
  137. [] execVM "debug\addmarkers75.sqf";
  138. };
Advertisement
Add Comment
Please, Sign In to add comment