Advertisement
Guest User

Init.sqf

a guest
Aug 15th, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.38 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. // May prevent "how are you civillian?" messages from NPC
  20. enableSentences false;
  21.  
  22. // DayZ Epoch config
  23. spawnShoremode = 1; // Default = 1 (on shore)
  24. spawnArea= 1500; // Default = 1500
  25.  
  26. MaxVehicleLimit = 50; // Default = 50
  27. MaxDynamicDebris = 100; // Default = 100
  28. dayz_MapArea = 14000; // Default = 10000
  29. dayz_maxLocalZombies = 30; // Default = 30
  30. DZE_PlayerZed = false;
  31. DZE_TRADER_SPAWNMODE = false;
  32. DZE_ForceNameTagsInTrader = true;
  33. DZE_ForceNameTags = true;
  34.  
  35. dayz_paraSpawn = false;
  36.  
  37. dayz_minpos = -1;
  38. dayz_maxpos = 16000;
  39.  
  40. dayz_sellDistance_vehicle = 20;
  41. dayz_sellDistance_boat = 30;
  42. dayz_sellDistance_air = 40;
  43.  
  44. dayz_maxAnimals = 5; // Default: 8
  45. dayz_tameDogs = true;
  46. DynamicVehicleDamageLow = 20; // Default: 0
  47. DynamicVehicleDamageHigh = 80; // Default: 100
  48.  
  49. DZE_BuildOnRoads = false; // Default: False
  50. DZE_noRotate = []; //Objects that cannot be rotated. Ex: DZE_noRotate = ["ItemVault"] (NOTE: The objects magazine classname)
  51. DZE_vectorDegrees = [0.01, 0.1, 1, 5, 15, 45, 90];
  52. DZE_curDegree = 45; //Starting rotation angle. //Prefered any value in array above
  53. DZE_dirWithDegrees = true; //When rotating objects with Q&E, use the custom degrees
  54. DZE_BuildingLimit = 500;
  55. DZE_SelfTransfuse = true;
  56. DZE_selfTransfuse_Values = [6000, 15, 120];
  57. DZE_PlotPole = [80,120];
  58. DZE_StaticConstructionCount = 1;
  59. DZE_GodModeBase = false;
  60. DZE_R3F_WEIGHT = false;
  61. DZE_MissionLootTable = true;
  62. /*ZSC*/
  63. DZE_ConfigTrader = true;
  64. /*ZSC*/
  65.  
  66. EpochEvents = [["any","any","any","any",0,"animated_crash_spawner"],["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  67. dayz_fullMoonNights = true;
  68.  
  69. //Load in compiled functions
  70. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  71. call compile preprocessFileLineNumbers "custom\variables.sqf";
  72. progressLoadingScreen 0.1;
  73. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  74. progressLoadingScreen 0.2;
  75. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  76. progressLoadingScreen 0.4;
  77. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  78. call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Custom compile
  79. call compile preprocessFileLineNumbers "ZSC\gold\ZSCinit.sqf";
  80. progressLoadingScreen 0.5;
  81. call compile preprocessFileLineNumbers "server_traders_cherno_11.sqf"; //Compile trader configs
  82. call compile preprocessFileLineNumbers "admintools\config.sqf"; // Epoch admin Tools config file
  83. call compile preprocessFileLineNumbers "admintools\variables.sqf"; // Epoch admin Tools variables
  84. progressLoadingScreen 1.0;
  85.  
  86. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  87.  
  88. if (isServer) then {
  89. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  90. //Compile vehicle configs
  91.  
  92. // Add trader citys
  93. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  94. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  95. // _serverMonitor = [] execVM "\z\addons\dayz_server\system\server_monitor.sqf";
  96. };
  97.  
  98. if (!isDedicated) then {
  99. [] execVM "custom\Server_WelcomeCredits.sqf";
  100. //Conduct map operations
  101. 0 fadeSound 0;
  102. waitUntil {!isNil "dayz_loadScreenMsg"};
  103. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  104.  
  105. //Run the player monitor
  106. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  107. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  108.  
  109. execVM "dzgm\init.sqf";
  110.  
  111. execVM "custom\checkDriver.sqf";
  112.  
  113. execVM "spawn\start.sqf";
  114.  
  115. execVM "ZSC\compiles\playerHud.sqf";
  116.  
  117. // Epoch Admin Tools
  118. if ( !((getPlayerUID player) in AdminList) && !((getPlayerUID player) in ModList)) then
  119. {
  120. [] execVM "admintools\antihack\antihack.sqf"; // Epoch Antihack with bypass
  121. };
  122.  
  123. //Lights
  124. //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  125.  
  126. //DZAI client side
  127. _nul = ["zombieenemy"] execVM "DZAI_Client\dzai_initclient.sqf";
  128.  
  129. //Auto-Refuel
  130. execVM "service_point\service_point.sqf";
  131.  
  132. // Custom debug monitor
  133. [] execVM "custom\debug_monitor.sqf";
  134.  
  135. [] execVM "custom\logo.sqf";
  136.  
  137. };
  138.  
  139. #include "\z\addons\dayz_code\system\REsec.sqf"
  140.  
  141. //Start Dynamic Weather
  142. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  143.  
  144.  
  145. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  146.  
  147. //Infistar Safezone
  148. [] execVM 'SafeZone.sqf';
  149. //Tow and lift
  150. [] execVM "R3F_ARTY_AND_LOG\init.sqf";
  151. [] execVM "admintools\Activate.sqf"; // Epoch admin tools
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement