Advertisement
Buly

init.sqf

Jun 11th, 2014
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.67 KB | None | 0 0
  1. /*
  2.  
  3. For DayZ Epoch
  4.  
  5. Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
  6.  
  7. */
  8.  
  9. startLoadingScreen ["","RscDisplayLoadCustom"];
  10.  
  11. cutText ["","BLACK OUT"];
  12.  
  13. enableSaving [false, false];
  14.  
  15.  
  16.  
  17. //REALLY IMPORTANT VALUES
  18.  
  19. dayZ_instance = 24; //The instance
  20.  
  21. dayzHiveRequest = [];
  22.  
  23. initialized = false;
  24.  
  25. dayz_previousID = 0;
  26.  
  27. server_name = "buly.biz";
  28.  
  29.  
  30.  
  31. //disable greeting menu
  32.  
  33. player setVariable ["BIS_noCoreConversations", true];
  34.  
  35. //disable radio messages to be heard and shown in the left lower corner of the screen
  36.  
  37. enableRadio true;
  38.  
  39. // May prevent "how are you civillian?" messages from NPC
  40.  
  41. enableSentences false;
  42.  
  43.  
  44.  
  45. // DayZ Epoch config
  46. spawnShoremode = 1; // Default = 1 (on shore)
  47. spawnArea= 1500; // Default = 1500
  48. MaxVehicleLimit = 600; // Default = 50
  49. MaxMineVeins = 10;
  50. MaxDynamicDebris = 50; // Default = 100
  51. dayz_MapArea = 18000; // Default = 10000
  52. dayz_maxLocalZombies = 30; // Default = 30
  53. DefaultMagazines = ["ItemBandage","ItemPainkiller"];
  54. DefaultWeapons = ["ItemFlashlight","ItemMachete",""];
  55. DefaultBackpack = "";
  56. dayz_zedsAttackVehicles = false;
  57. DZE_DeathMsgGlobal = true;
  58. DZE_DeathMsgTitleText = true;
  59. DZE_requireplot = 0;
  60. DZE_BuildingLimit = 15000;
  61. DZE_BackpackGuard = false;
  62. DZE_ForceNameTagsOff = true;
  63. DZE_MissionLootTable = true;
  64. DZE_PlayerZed = false;
  65.  
  66.  
  67. dayz_paraSpawn = false;
  68.  
  69. dayz_minpos = -1000;
  70. dayz_maxpos = 26000;
  71.  
  72. dayz_sellDistance_vehicle = 20;
  73. dayz_sellDistance_boat = 40;
  74. dayz_sellDistance_air = 60;
  75.  
  76.  
  77. dayz_maxAnimals = 4; // Default: 8
  78. dayz_tameDogs = false;
  79. DynamicVehicleDamageLow = 20; // Default: 0
  80. DynamicVehicleDamageHigh = 20; // Default: 100
  81. DynamicVehicleFuelLow = 0;
  82. DynamicVehicleFuelHigh = 20;
  83. DZE_BuildOnRoads = true; // Default: False
  84. DZE_StaticConstructionCount = 1;
  85.  
  86. setViewDistance 2000;
  87. setTerrainGrid 20;
  88.  
  89.  
  90. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  91.  
  92. dayz_fullMoonNights = false;
  93.  
  94.  
  95.  
  96. //Load in compiled functions
  97. call compile preprocessFileLineNumbers "fixes\system\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  98. progressLoadingScreen 0.1;
  99. call compile preprocessFileLineNumbers "fixes\system\publicEH.sqf"; //Initilize the publicVariable event handlers
  100. progressLoadingScreen 0.2;
  101. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  102. progressLoadingScreen 0.4;
  103. call compile preprocessFileLineNumbers "fixes\system\compiles.sqf"; //Compile regular functions
  104. call compile preprocessFileLineNumbers "custom\snap_build\compiles.sqf"; //building snapping
  105. progressLoadingScreen 0.5;
  106. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  107. progressLoadingScreen 1.0;
  108.  
  109.  
  110. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  111.  
  112.  
  113.  
  114. if (isServer) then {
  115.  
  116. //Compile vehicle configs
  117.  
  118. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_24.Napf\dynamic_vehicle.sqf";
  119.  
  120. // Add trader citys
  121.  
  122. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_24.Napf\mission.sqf";
  123.  
  124.  
  125.  
  126. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  127. };
  128.  
  129.  
  130.  
  131. if (!isDedicated) then {
  132. [] execVM "fixes\Server_WelcomeCredits.sqf";
  133. ["elevator"] execVM "elevator\elevator_init.sqf";
  134. //Conduct map operations
  135.  
  136. 0 fadeSound 0;
  137.  
  138. waitUntil {!isNil "dayz_loadScreenMsg"};
  139.  
  140. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  141.  
  142.  
  143.  
  144. //Run the player monitor
  145.  
  146. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  147.  
  148.  
  149.  
  150.  
  151.  
  152. //anti Hack
  153.  
  154.  
  155.  
  156. //Lights
  157.  
  158. //[0,0,true,true,true,58,280,600,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  159.  
  160. //masterkey
  161. _nil = [] execVM "custom\VehicleKeyChanger\VehicleKeyChanger_init.sqf";
  162.  
  163. //service point
  164. execVM "service_point\service_point.sqf";
  165.  
  166. };
  167.  
  168. //Start Dynamic Weather
  169.  
  170. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  171.  
  172.  
  173.  
  174. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  175.  
  176. ///ZED NUKE
  177. [[8843.05,16238.2, 0],50] execVM "fixes\SAR_nuke_zeds.sqf"; //Trader Lenzburg
  178. [[8821.86,16241.5, 0],50] execVM "fixes\SAR_nuke_zeds.sqf"; //Trader Lenzburg
  179. [[8907.62,16303.5, 0],50] execVM "fixes\SAR_nuke_zeds.sqf"; //Trader Lenzburg
  180. [[8897.74,16283, 0],50] execVM "fixes\SAR_nuke_zeds.sqf"; //Trader Lenzburg
  181. [[9179.84,5416.7, 0],50] execVM "fixes\SAR_nuke_zeds.sqf"; //Trader Schangen
  182. [[9172.58,5411.72, 0],50] execVM "fixes\SAR_nuke_zeds.sqf"; //Trader Schangen
  183. [[9139.12,5428.38, 0],50] execVM "fixes\SAR_nuke_zeds.sqf"; //Trader Schangen
  184. [[9140.23,5424.2, 0],50] execVM "fixes\SAR_nuke_zeds.sqf"; //Trader Schangen
  185. [[18181.7,2106.23, 0],50] execVM "fixes\SAR_nuke_zeds.sqf"; //Mili Trader
  186. [[18198.8,2126.22, 0],50] execVM "fixes\SAR_nuke_zeds.sqf"; //Mili Trader
  187.  
  188. [] execVM "fixes\agn_SafeZoneCommander.sqf";
  189.  
  190. [] execVM "fixes\safezone.sqf";
  191.  
  192. [] execVM "fixes\marker.sqf";
  193.  
  194. [] execVM "RC\init.sqf";
  195.  
  196. //NEW SPAWN
  197. p2_newspawn = compile preprocessFileLineNumbers "fixes\newspawn\newspawn_execute.sqf";
  198. waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
  199. if (dayzPlayerLogin2 select 2) then
  200. {
  201. player spawn p2_newspawn;
  202. };
  203.  
  204. //DayZ Watermark
  205. if (!isNil "server_name") then {
  206. [] spawn {
  207. waitUntil {(!isNull Player) and (alive Player) and (player == player)};
  208. waituntil {!(isNull (findDisplay 46))};
  209. 5 cutRsc ["wm_disp","PLAIN"];
  210. ((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText server_name;
  211. };
  212. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement