Advertisement
Guest User

init.sqf

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