Advertisement
Guest User

init.sqf

a guest
Apr 25th, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 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 = 24; //The instance
  11. dayzHiveRequest = [];
  12. initialized = false;
  13. dayz_previousID = 0;
  14.  
  15. // Require Plot poll
  16. DZE_requireplot = 0;
  17.  
  18. //disable greeting menu
  19. player setVariable ["BIS_noCoreConversations", true];
  20. //disable radio messages to be heard and shown in the left lower corner of the screen
  21. enableRadio false;
  22. // May prevent "how are you civillian?" messages from NPC
  23. enableSentences false;
  24.  
  25. // DayZ Epoch config
  26. spawnShoremode = 1; // Default = 1 (on shore)
  27. spawnArea= 1500; // Default = 1500
  28. DZE_StaticConstructionCount = 1; //Fast Building
  29. DZE_R3F_WEIGHT = false;
  30.  
  31. //
  32. MaxVehicleLimit = 300; // Default = 50
  33. MaxDynamicDebris = 0; // Default = 100
  34. dayz_MapArea = 18000; // Default = 10000
  35.  
  36. // Load outs
  37. DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemBriefcase100oz","FoodSteakCooked","10Rnd_127x99_m107","10Rnd_127x99_m107","30m_plot_kit","ItemBriefcase100oz"];
  38. DefaultWeapons = ["M9SD","M107_DZ","Binocular_Vector","NVGoggles","ItemMap","ItemCompass","ItemGPS","ItemWatch","ItemKnife","Itemtoolbox","ItemCrowbar","Itemetool","ItemHatchet"];
  39. DefaultBackpack = "DZ_LargeGunBag_EP1";
  40. DefaultBackpackWeapon = "";
  41.  
  42. dayz_minpos = -1000;
  43. dayz_maxpos = 26000;
  44.  
  45. dayz_paraSpawn = false;
  46.  
  47. dayz_sellDistance_vehicle = 10;
  48. dayz_sellDistance_boat = 30;
  49. dayz_sellDistance_air = 40;
  50.  
  51. dayz_maxAnimals = 5; // Default: 8
  52. dayz_tameDogs = true;
  53. DynamicVehicleDamageLow = 0; // Default: 0
  54. DynamicVehicleDamageHigh = 0; // Default: 100
  55.  
  56. DZE_BuildOnRoads = false; // Default: False
  57.  
  58. EpochEvents =
  59. [
  60. ["any","any","any","any",1,"Military"],
  61. ["any","any","any","any",25,"Treasure"],
  62. ["any","any","any","any",40,"Supplyitems"],
  63. ["any","any","any","any",55,"Construction"],
  64. ["any","any","any","any",30,"crash_spawner"],
  65. ["any","any","any","any",0,"crash_spawner"],
  66. ["any","any","any","any",15,"supply_drop"]
  67. ];
  68.  
  69. dayz_fullMoonNights = true;
  70.  
  71. //Load in compiled functions
  72. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  73. progressLoadingScreen 0.1;
  74. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  75. progressLoadingScreen 0.2;
  76. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  77. progressLoadingScreen 0.4;
  78. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  79. call compile preprocessFileLineNumbers "custom\snap_build\compiles.sqf";
  80. progressLoadingScreen 0.5;
  81. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  82. progressLoadingScreen 1.0;
  83.  
  84. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  85.  
  86. if (isServer) then {
  87. //Compile vehicle configs
  88. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_24.Napf\dynamic_vehicle.sqf";
  89. // Add trader citys
  90. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_24.Napf\mission.sqf";
  91.  
  92. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  93. };
  94.  
  95. if (!isDedicated) then {
  96. //Conduct map operations
  97. 0 fadeSound 0;
  98. waitUntil {!isNil "dayz_loadScreenMsg"};
  99. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  100. _nil = [] execVM "custom\remote_messages.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. //anti Hack
  108. [] execVM "admintools\AdminList.sqf";
  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";
  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. // Auto Refuel.
  124. execVM "scripts\kh_actions.sqf";
  125.  
  126. //Debug
  127. execVM "scripts\custom_monitor.sqf";
  128.  
  129. // Admin tools
  130. [] execVM "admintools\Activate.sqf";
  131.  
  132. //R3F Towing
  133. execVM "R3F_ARTY_AND_LOG\init.sqf";
  134.  
  135. // Customs Buildings
  136. [] ExecVM "custom_buildings.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement