Advertisement
ShadowStalker

init.sqf

Oct 2nd, 2014
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.73 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 = 7; //The instance
  11. dayzHiveRequest = [];
  12. initialized = false;
  13. dayz_previousID = 0;
  14. server_name = "T.U.S.C.";
  15.  
  16. //disable greeting menu
  17. player setVariable ["BIS_noCoreConversations", true];
  18. //disable radio messages to be heard and shown in the left lower corner of the screen
  19. enableRadio true;
  20. // May prevent "how are you civillian?" messages from NPC
  21. enableSentences true;
  22.  
  23. // DayZ Epoch config
  24. spawnShoremode = 0; // Default = 1 (on shore)
  25. spawnArea = 1500; // Default = 1500
  26. DZE_requireplot = 0;
  27.  
  28. //Empty out the Loadout
  29. DefaultMagazines = [""];
  30. DefaultWeapons = [""];
  31. DefaultBackpack = "";
  32. DefaultBackpackItems = [""];
  33.  
  34. MaxVehicleLimit = 300; // Default = 50
  35. MaxDynamicDebris = 500; // Default = 100
  36. dayz_MapArea = 12000; // Default = 10000
  37. dayz_maxLocalZombies = 40; // Default = 40
  38.  
  39. dayz_paraSpawn = false;
  40.  
  41. dayz_sellDistance_vehicle = 10;
  42. dayz_sellDistance_boat = 30;
  43. dayz_sellDistance_air = 40;
  44.  
  45. dayz_maxAnimals = 8; // Default: 8
  46. dayz_tameDogs = true;
  47. DynamicVehicleDamageLow = 0; // Default: 0
  48. DynamicVehicleDamageHigh = 100; // Default: 100
  49.  
  50. DZE_BuildOnRoads = true; // Default: False
  51. DZE_noRotate = []; //Objects that cannot be rotated. Ex: DZE_noRotate = ["VaultStorageLocked"]
  52. DZE_curPitch = 45; //Starting rotation angle. Only 1, 5, 45, or 90.
  53.  
  54. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  55. dayz_fullMoonNights = true;
  56.  
  57.  
  58. //Load in compiled functions
  59. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  60. call compile preprocessFileLineNumbers "addons\variables.sqf";
  61. progressLoadingScreen 0.1;
  62. call compile preprocessFileLineNumbers "custom\VASP\publicEH.sqf"; //Initilize the publicVariable event handlers
  63. progressLoadingScreen 0.2;
  64. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  65. progressLoadingScreen 0.4;
  66. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  67. call compile preprocessFileLineNumbers "custom\compiles.sqf";
  68. call compile preprocessFileLineNumbers "addons\bike\init.sqf";
  69. progressLoadingScreen 0.5;
  70. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  71. call compile preprocessFileLineNumbers "logistic\init.sqf";
  72. progressLoadingScreen 1.0;
  73.  
  74. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  75.  
  76. if (isServer) then {
  77. //Compile vehicle configs
  78. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_7.Lingor\dynamic_vehicle.sqf";
  79. // Add trader citys
  80. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_7.Lingor\mission.sqf";
  81.  
  82. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  83. };
  84.  
  85. [] execVM "admintools\Activate.sqf"; // Epoch admin tools
  86.  
  87. if (!isDedicated) then {
  88. execVM "service_point\service_point.sqf";
  89. _nil = [] execVM "custom\VASP\VASP_init.sqf";
  90. execVM "custom\TradeFromVehicle\init.sqf"
  91. };
  92. execVM "addons\kill_msg.sqf";
  93. [] execVM "addons\Server_WelcomeCredits.sqf";
  94. //Conduct map operations
  95. 0 fadeSound 0;
  96. waitUntil {!isNil "dayz_loadScreenMsg"};
  97. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  98.  
  99. //Custom Loadouts
  100. execVM "addons\loadout+.sqf";
  101.  
  102. //Run the player monitor
  103. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  104. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  105.  
  106.  
  107. // Epoch Admin Tools
  108. waitUntil{!isNil "adminListLoaded"};
  109. if ( !((getPlayerUID player) in AdminList) && !((getPlayerUID player) in ModList) && !((getPlayerUID player) in tempList)) then
  110. {
  111. [] execVM "\z\addons\dayz_code\system\antihack.sqf"; // Epoch Antihack
  112. };
  113.  
  114. //Lights
  115. //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  116. };
  117. #include "\z\addons\dayz_code\system\REsec.sqf"
  118. //Start Dynamic Weather
  119. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  120.  
  121. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  122.  
  123. //DayZ Watermark
  124. if (!isNil "server_name") then {
  125. [] spawn {
  126. waitUntil {(!isNull Player) and (alive Player) and (player == player)};
  127. waituntil {!(isNull (findDisplay 46))};
  128. 5 cutRsc ["wm_disp","PLAIN"];
  129. ((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText server_name;
  130. };
  131. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement