Guest User

init.sqf

a guest
Feb 2nd, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 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 = 20; // Default = 50
  27. MaxDynamicDebris = 500; // Default = 100
  28. dayz_MapArea = 14000; // Default = 10000
  29. dayz_maxLocalZombies = 30; // Default = 30
  30.  
  31. dayz_spawnselection = 0;
  32. dayz_paraSpawn = false;
  33.  
  34. dayz_minpos = -1;
  35. dayz_maxpos = 16000;
  36.  
  37. dayz_sellDistance_vehicle = 10;
  38. dayz_sellDistance_boat = 30;
  39. dayz_sellDistance_air = 40;
  40.  
  41. dayz_maxAnimals = 5; // Default: 8
  42. dayz_tameDogs = true;
  43. DynamicVehicleDamageLow = 0; // Default: 0
  44. DynamicVehicleDamageHigh = 100; // Default: 100
  45.  
  46. DZE_BuildOnRoads = false; // Default: False
  47.  
  48. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  49. dayz_fullMoonNights = true;
  50.  
  51.  
  52. DZE_ConfigTrader = true;
  53. DZE_AsReMix_PLAYER_HUD = true; //Open Custom AsReMix Player HUD
  54.  
  55. //Load in compiled functions
  56. call compile preprocessFileLineNumbers "init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  57. progressLoadingScreen 0.1;
  58. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  59. progressLoadingScreen 0.2;
  60. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  61. progressLoadingScreen 0.4;
  62. call compile preprocessFileLineNumbers "init\compiles.sqf"; //Compile regular functions
  63. progressLoadingScreen 0.5;
  64. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  65. progressLoadingScreen 1.0;
  66.  
  67. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  68.  
  69. if (isServer) then {
  70. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  71. //Compile vehicle configs
  72.  
  73. // Add trader citys
  74. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  75. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  76. };
  77.  
  78.  
  79. if (!isDedicated) then {
  80. //Conduct map operations
  81. 0 fadeSound 0;
  82. waitUntil {!isNil "dayz_loadScreenMsg"};
  83. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  84.  
  85. //Run the player monitor
  86. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  87. _playerMonitor =[] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  88. execVM "spawn\start.sqf";
  89. [] execVM "service_point\service_point.sqf";
  90.  
  91. //Slow/Walking Zombies
  92. execVM "MPMissions\DayZ_Epoch_11.Chernarus\dayz_code\system\zombie_agent.fsm"
  93.  
  94. //anti Hack
  95. //[] execVM "\z\addons\dayz_code\system\antihack.sqf";
  96.  
  97. //Lights
  98. //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  99.  
  100. ELE_StopClass = "MetalFloor_Preview_DZ";
  101. ELE_RequiredBuildTools = ["ItemToolbox", "ItemCrowbar"]; // required tools for building an elevator and elevator stop
  102. ELE_RequiredBuildItems = [["PartGeneric",4], "PartEngine", "ItemGenerator", "ItemJerrycan"]; // required items to build an elevator
  103. ELE_RequiredBuildStopItems = [["PartGeneric",4]]; // required items to build an elevator stop
  104. ELE_MaxRange = 100; // maximum range the elevator can travel / stop points can be built (in meter)
  105. ELE_Speed = 5; // speed of the elevator (meters per second)
  106. ELE_StopWaitTime = 0; // disable the wait time if you call the elevator
  107. ["elevator"] execVM "elevator\elevator_init.sqf";
  108. };
  109.  
  110. // Zupa - SC
  111. execVM "gold\init.sqf";
  112. execVM "gold\addbankmarkers.sqf";
  113. // END Zupa - SC
  114.  
  115. ///#include "\z\addons\dayz_code\system\REsec.sqf"
  116.  
  117. //Start Dynamic Weather
  118. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  119.  
  120. //Auto-Refuel
  121. execVM "service_point\service_point.sqf";
  122.  
  123. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  124.  
  125. if (!isDedicated) then {
  126. if (DZE_AsReMix_PLAYER_HUD) then {
  127. execVM "addons\playerhud\playerHud.sqf"//AsReMix Player HUD
  128. };
  129. };
  130. //Safezones
  131. [] execVM "AGN\agn_SafeZoneCommander.sqf";
  132. // Nox's Custom Loadout
  133. [] ExecVM "custom\loadouts.sqf";
  134. // Nox's Custom Action Menu
  135. [] execVM "actions\activate.sqf";
  136. //Nox's Tow and lift
  137. [] execVM "R3F_ARTY_AND_LOG\init.sqf";
Add Comment
Please, Sign In to add comment