Advertisement
Guest User

Untitled

a guest
Aug 8th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.51 KB | None | 0 0
  1. DZE_ATM = ["Laptop_EP1"]; // objects where u can bank, add them here if u want extra's.
  2. disableSerialization;
  3.  
  4.  
  5. //-----------------------------------Currency & Banking Configs ---------------------------------//
  6. CurrencyName = "ZeroDead Dollars"; // name of your currency
  7. DZE_ATM = ["Laptop_EP1"]; // items,objects classnames where u can bank.
  8. LimitOnBank = false; // false = no limits, true = banks are limited on the value below
  9. MaxBankMoney = 5000000; // limit on bank for normal players
  10. DonatorListZupa = ["76561198012464696","111111111"]; // bigger bank PUID
  11. MaxDonatorBankMoney = 10000000; // Bank size donators
  12.  
  13. //-----------------------------------Currency & Banking Configs END ---------------------------------//
  14. //Model Variables
  15. Bandit1_DZ = "Bandit1_DZ";
  16. Bandit2_DZ = "Bandit2_DZ";
  17. BanditW1_DZ = "BanditW1_DZ";
  18. BanditW2_DZ = "BanditW2_DZ";
  19. Survivor1_DZ = "Survivor2_DZ";
  20. Survivor2_DZ = "Survivor2_DZ";
  21. SurvivorW2_DZ = "SurvivorW2_DZ";
  22. SurvivorW3_DZ = "SurvivorW2_DZ";
  23. Sniper1_DZ = "Sniper1_DZ";
  24. Camo1_DZ = "Camo1_DZ";
  25. Soldier1_DZ = "Soldier1_DZ";
  26. Rocket_DZ = "Rocket_DZ";
  27.  
  28. AllPlayers = ["Survivor2_DZ","SurvivorWcombat_DZ","SurvivorWdesert_DZ","SurvivorWurban_DZ","SurvivorWsequishaD_DZ","SurvivorWsequisha_DZ","SurvivorWpink_DZ","SurvivorW3_DZ","SurvivorW2_DZ","Bandit1_DZ","Bandit2_DZ","BanditW1_DZ","BanditW2_DZ","Soldier_Crew_PMC","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ","Rocker1_DZ","Rocker2_DZ","Rocker3_DZ","Rocker4_DZ","Priest_DZ","Functionary1_EP1_DZ","GUE_Commander_DZ","Ins_Soldier_GL_DZ","Haris_Press_EP1_DZ","Pilot_EP1_DZ","RU_Policeman_DZ","pz_policeman","pz_suit1","pz_suit2","pz_worker1","pz_worker2","pz_worker3","pz_doctor","pz_teacher","pz_hunter","pz_villager1","pz_villager2","pz_villager3","pz_priest","Soldier_TL_PMC_DZ","Soldier_Sniper_PMC_DZ","Soldier_Bodyguard_AA12_PMC_DZ","Drake_Light_DZ","CZ_Special_Forces_GL_DES_EP1_DZ","TK_INS_Soldier_EP1_DZ","TK_INS_Warlord_EP1_DZ","FR_OHara_DZ","FR_Rodriguez_DZ","CZ_Soldier_Sniper_EP1_DZ","Graves_Light_DZ","GUE_Soldier_MG_DZ","GUE_Soldier_Sniper_DZ","GUE_Soldier_Crew_DZ","GUE_Soldier_CO_DZ","GUE_Soldier_2_DZ","TK_Special_Forces_MG_EP1_DZ","TK_Soldier_Sniper_EP1_DZ","TK_Commander_EP1_DZ","RU_Soldier_Crew_DZ","INS_Lopotev_DZ","INS_Soldier_AR_DZ","INS_Soldier_CO_DZ","INS_Bardak_DZ","INS_Worker2_DZ","CamoWinterW_DZN","CamoWinter_DZN"];
  29. MeleeWeapons = ["MeleeFishingPole","MeleeCrowbar","MeleeBaseBallBatNails","MeleeBaseBallBatBarbed","MeleeBaseBallBat","Crossbow_DZ","MeleeSledge","MeleeMachete","MeleeHatchet_DZE"];
  30. gear_done = false;
  31. //Cooking
  32. meatraw = [
  33. "FoodSteakRaw",
  34. "FoodmeatRaw",
  35. "FoodbeefRaw",
  36. "FoodmuttonRaw",
  37. "FoodchickenRaw",
  38. "FoodrabbitRaw",
  39. "FoodbaconRaw",
  40. "ItemTrout",
  41. "ItemSeaBass",
  42. "ItemTuna"
  43. ];
  44. exceptionsraw = ["ItemTuna"];
  45. meatcooked = [
  46. "FoodSteakCooked",
  47. "FoodmeatCooked",
  48. "FoodbeefCooked",
  49. "FoodmuttonCooked",
  50. "FoodchickenCooked",
  51. "FoodrabbitCooked",
  52. "FoodbaconCooked",
  53. "ItemTroutCooked",
  54. "ItemSeaBassCooked",
  55. "ItemTunaCooked"
  56. ];
  57. //Eating
  58. no_output_food = ["FoodMRE", "FoodPistachio", "FoodNutmix","FoodBioMeat"]+meatcooked+meatraw;
  59.  
  60. // Food with increased chance for infection.
  61. badfood = ["FoodBioMeat","FoodCanUnlabeled"];
  62.  
  63. food_with_output=[
  64. "FoodCanBakedBeans",
  65. "FoodCanSardines",
  66. "FoodCanFrankBeans",
  67. "FoodCanPasta",
  68. "FoodCanGriff",
  69. "FoodCanBadguy",
  70. "FoodCanBoneboy",
  71. "FoodCanCorn",
  72. "FoodCanCurgon",
  73. "FoodCanDemon",
  74. "FoodCanFraggleos",
  75. "FoodCanHerpy",
  76. "FoodCanOrlok",
  77. "FoodCanPowell",
  78. "FoodCanTylers",
  79. "FoodCanUnlabeled"
  80. ];
  81.  
  82. food_output = [
  83. "TrashTinCan",
  84. "TrashTinCan",
  85. "TrashTinCan",
  86. "TrashTinCan",
  87. "FoodCanGriffEmpty",
  88. "FoodCanBadguyEmpty",
  89. "FoodCanBoneboyEmpty",
  90. "FoodCanCornEmpty",
  91. "FoodCanCurgonEmpty",
  92. "FoodCanDemonEmpty",
  93. "FoodCanFraggleosEmpty",
  94. "FoodCanHerpyEmpty",
  95. "FoodCanOrlokEmpty",
  96. "FoodCanPowellEmpty",
  97. "FoodCanTylersEmpty",
  98. "FoodCanUnlabeledEmpty"
  99. ];
  100. //Drinking
  101. no_output_drink = ["ItemWaterbottle", "ItemWaterbottleBoiled"];
  102. drink_with_output = [
  103. "ItemSoda", //just to define item for ItemSodaEmpty
  104. "ItemSodaRbull",
  105. "ItemSodaOrangeSherbet",
  106. "ItemSodaCoke",
  107. "ItemSodaPepsi",
  108. "ItemSodaMdew",
  109. "ItemSodaMtngreen",
  110. "ItemSodaR4z0r",
  111. "ItemSodaClays",
  112. "ItemSodaSmasht",
  113. "ItemSodaDrwaste",
  114. "ItemSodaLemonade",
  115. "ItemSodaLvg",
  116. "ItemSodaMzly",
  117. "ItemSodaRabbit"
  118. ];
  119. drink_output = [
  120. "ItemSodaEmpty",
  121. "ItemSodaEmpty",
  122. "ItemSodaEmpty",
  123. "ItemSodaCokeEmpty",
  124. "ItemSodaPepsiEmpty",
  125. "ItemSodaMdewEmpty",
  126. "ItemSodaMtngreenEmpty",
  127. "ItemSodaR4z0rEmpty",
  128. "ItemSodaClaysEmpty",
  129. "ItemSodaSmashtEmpty",
  130. "ItemSodaDrwasteEmpty",
  131. "ItemSodaLemonadeEmpty",
  132. "ItemSodaLvgEmpty",
  133. "ItemSodaMzlyEmpty",
  134. "ItemSodaRabbitEmpty"
  135. ];
  136. boil_tin_cans = [
  137. "TrashTinCan",
  138. "FoodCanGriffEmpty",
  139. "FoodCanBadguyEmpty",
  140. "FoodCanBoneboyEmpty",
  141. "FoodCanCornEmpty",
  142. "FoodCanCurgonEmpty",
  143. "FoodCanDemonEmpty",
  144. "FoodCanFraggleosEmpty",
  145. "FoodCanHerpyEmpty",
  146. "FoodCanOrlokEmpty",
  147. "FoodCanPowellEmpty",
  148. "FoodCanTylersEmpty",
  149. "FoodCanUnlabeledEmpty",
  150. "ItemSodaEmpty",
  151. "ItemSodaCokeEmpty",
  152. "ItemSodaPepsiEmpty",
  153. "ItemSodaMdewEmpty",
  154. "ItemSodaMtngreenEmpty",
  155. "ItemSodaR4z0rEmpty",
  156. "ItemSodaClaysEmpty",
  157. "ItemSodaSmashtEmpty",
  158. "ItemSodaDrwasteEmpty",
  159. "ItemSodaLemonadeEmpty",
  160. "ItemSodaLvgEmpty",
  161. "ItemSodaMzlyEmpty",
  162. "ItemSodaRabbitEmpty"
  163. ];
  164.  
  165. dayz_combination = "";
  166. dayz_humanitytarget = "";
  167. dayz_combatLog = "";
  168. canRoll = true;
  169.  
  170. canbuild = true;
  171.  
  172. //Hunting Variables
  173. dayZ_partClasses = [
  174. "PartFueltank",
  175. "PartWheel",
  176. //"PartGeneric", //No need to add, it is default for everything
  177. "PartEngine"
  178. ];
  179. dayZ_explosiveParts = [
  180. "palivo",
  181. "motor"
  182. ];
  183. //Survival Variables
  184. SleepFood = 2160; //minutes (48 hours)
  185. SleepWater = 1440; //minutes (24 hours)
  186. SleepTemperatur = 90 / 100; //Firs Value = Minutes untill Player reaches the coldest Point at night (without other effects! night factor expected to be -1) //TeeChange
  187.  
  188. //Server Variables
  189. allowConnection = false;
  190. isSinglePlayer = false;
  191. PVDZE_serverObjectMonitor = [];
  192. PlayerDeaths = [];
  193.  
  194. //Streaming Variables (player only)
  195. dayz_Locations = [];
  196. dayz_locationsActive = [];
  197.  
  198. //GUI
  199. Dayz_GUI_R = 0.38; // 0.7
  200. Dayz_GUI_G = 0.63; // -0.63
  201. Dayz_GUI_B = 0.26; // -0.26
  202.  
  203. //Player self-action handles
  204. dayz_resetSelfActions = {
  205. s_player_deploybike = -1;
  206. s_player_deploybike2 = -1;
  207. s_player_clothes = -1;
  208. s_player_fire = -1;
  209. s_player_cook = -1;
  210. s_player_boil = -1;
  211. s_player_fireout = -1;
  212. s_player_butcher = -1;
  213. s_player_packtent = -1;
  214. s_player_packvault = -1;
  215. s_player_lockvault = -1;
  216. s_player_unlockvault = -1;
  217. s_player_fillwater = -1;
  218. s_player_fillwater2 = -1;
  219. s_player_fillfuel = -1;
  220. s_player_grabflare = -1;
  221. s_player_callzombies = -1;
  222. s_player_showname = -1;
  223. s_player_debuglootpos = -1;
  224. s_player_pzombiesattack = -1;
  225. s_player_pzombiesvision = -1;
  226. s_player_pzombiesfeed = -1;
  227. s_player_removeflare = -1;
  228. s_player_painkiller = -1;
  229. s_player_studybody = -1;
  230. s_player_tamedog = -1;
  231. s_player_madsci_crtl = -1;
  232. s_player_parts_crtl = -1;
  233. s_build_Sandbag1_DZ = -1;
  234. s_build_Hedgehog_DZ = -1;
  235. s_build_Wire_cat1 = -1;
  236. s_player_deleteBuild = -1;
  237. s_player_forceSave = -1;
  238. s_player_checkGear = -1;
  239. s_player_flipveh = -1;
  240. s_player_stats = -1;
  241. s_player_sleep = -1;
  242. s_player_movedog = -1;
  243. s_player_speeddog = -1;
  244. s_player_calldog = -1;
  245. s_player_feeddog = -1;
  246. s_player_waterdog = -1;
  247. s_player_staydog = -1;
  248. s_player_trackdog = -1;
  249. s_player_barkdog = -1;
  250. s_player_warndog = -1;
  251. s_player_followdog = -1;
  252. s_player_repair_crtl = -1;
  253. s_player_information = -1;
  254. s_player_fuelauto = -1;
  255. s_player_fuelauto2 = -1;
  256. s_player_fillgen = -1;
  257. s_player_upgrade_build = -1;
  258. s_player_maint_build = -1;
  259. s_player_downgrade_build = -1;
  260. s_player_towing = -1;
  261. s_halo_action = -1;
  262. s_player_SurrenderedGear = -1;
  263. s_player_maintain_area = -1;
  264. s_player_maintain_area_preview = -1;
  265. s_player_heli_lift = -1;
  266. s_player_heli_detach = -1;
  267. s_player_lockUnlock_crtl = -1;
  268. };
  269. call dayz_resetSelfActions;
  270.  
  271. //Engineering variables
  272. s_player_lastTarget = [objNull,objNull,objNull,objNull,objNull];
  273. s_player_repairActions = [];
  274. s_player_lockunlock = [];
  275.  
  276. // Custom
  277. s_player_madsci = [];
  278. s_player_parts = [];
  279. s_player_combi = [];
  280.  
  281. //Initialize Medical Variables
  282. r_interrupt = false;
  283. r_doLoop = false;
  284. r_self = false;
  285. r_self_actions = [];
  286. r_drag_sqf = false;
  287. r_action = false;
  288. r_action_unload = false;
  289. r_player_handler = false;
  290. r_player_handler1 = false;
  291. r_player_dead = false;
  292. r_player_unconscious = false;
  293. r_player_infected = false;
  294. r_player_injured = false;
  295. r_player_inpain = false;
  296. r_player_loaded = false;
  297. r_player_cardiac = false;
  298. r_fracture_legs = false;
  299. r_fracture_arms = false;
  300. r_player_vehicle = player;
  301. r_player_blood = 12000;
  302. r_player_lowblood = false;
  303. r_player_timeout = 0;
  304. r_player_bloodTotal = r_player_blood;
  305. r_public_blood = r_player_blood;
  306. r_player_bloodDanger = r_player_bloodTotal * 0.2;
  307. r_player_actions = [];
  308. r_handlerCount = 0;
  309. r_action_repair = false;
  310. r_action_targets = [];
  311. r_pitchWhine = false;
  312. r_isBandit = false;
  313. isInTraderCity = false;
  314. NORRN_dropAction = -1;
  315. DZE_PROTOBOX = objNull;
  316.  
  317. //ammo routine
  318. r_player_actions2 = [];
  319. r_action2 = false;
  320. r_player_lastVehicle = objNull;
  321. r_player_lastSeat = [];
  322. r_player_removeActions2 = {
  323. if (!isNull r_player_lastVehicle) then {
  324. {
  325. r_player_lastVehicle removeAction _x;
  326. } count r_player_actions2;
  327. r_player_actions2 = [];
  328. r_action2 = false;
  329. };
  330. };
  331.  
  332. USEC_woundHit = [
  333. "",
  334. "body",
  335. "hands",
  336. "legs",
  337. "head_hit"
  338. ];
  339. DAYZ_woundHit = [
  340. [
  341. "body",
  342. "hands",
  343. "legs",
  344. "head_hit"
  345. ],
  346. [ 0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,2,2,3]
  347. ];
  348. DAYZ_woundHit_ok = [
  349. [
  350. "body",
  351. "hands",
  352. "legs"
  353. ],
  354. [0,0,0,0,0,1,1,1,2,2]
  355. ];
  356. DAYZ_woundHit_dog = [
  357. [
  358. "body",
  359. "hands",
  360. "legs"
  361. ],
  362. [0,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2]
  363. ];
  364. USEC_MinorWounds = [
  365. "hands",
  366. "legs"
  367. ];
  368. USEC_woundPoint = [
  369. ["Pelvis","aimpoint"],
  370. ["aimpoint"], //,"RightShoulder","LeftShoulder"
  371. ["lelbow","relbow"],
  372. ["RightFoot","LeftFoot"],
  373. ["neck","pilot"]
  374. ];
  375. USEC_typeOfWounds = [
  376. "Pelvis",
  377. "aimpoint",
  378. "lelbow","relbow",
  379. "RightFoot","LeftFoot",
  380. "neck","pilot"
  381. ];
  382.  
  383. DZE_vehicleZwounds = [
  384. "sklo predni L",
  385. "sklo predni P",
  386. "sklo zadni",
  387. "sklo zadni L",
  388. "sklo zadni P",
  389. "sklo P",
  390. "Glass1",
  391. "Glass2",
  392. "Glass3",
  393. "Glass4",
  394. "Glass5",
  395. "Glass6"
  396. ];
  397.  
  398. DZE_HeliAllowTowFrom = [
  399. "CH_47F_EP1_DZE",
  400. "CH_47F_EP1_DZ",
  401. "CH_47F_BAF",
  402. "CH_47F_EP1",
  403. "BAF_Merlin_DZE",
  404. "CH53_DZE"
  405. ];
  406.  
  407. DZE_HeliAllowToTow = [
  408. "hilux1_civil_1_open",
  409. "HMMWV_Base",
  410. "Lada_base",
  411. "Offroad_DSHKM_base",
  412. "Pickup_PK_base",
  413. "SkodaBase",
  414. "tractor",
  415. "VWGolf",
  416. "Volha_TK_CIV_Base_EP1",
  417. "S1203_TK_CIV_EP1",
  418. "SUV_Base_EP1",
  419. "ArmoredSUV_Base_PMC",
  420. "UAZ_Base",
  421. "LandRover_Base",
  422. "Ship"
  423. ];
  424.  
  425. //Initialize Zombie Variables
  426. dayz_zombieTargetList = [
  427. ["SoldierWB",50],
  428. ["Air",500],
  429. ["LandVehicle",200]
  430. ];
  431. PVDZE_plr_Hit = [];
  432. PVDZE_obj_Publish = []; //used for eventhandler to spawn a mirror of players tent
  433. PVDZE_plr_HideBody = objNull;
  434. dayz_selectedVault = objNull;
  435. dayz_selectedDoor = objNull;
  436.  
  437. PVDZE_veh_Publish = []; // for vehicle traders
  438. PVDZE_obj_Trade = []; // For all traders increment qty
  439. PVDZE_plr_TradeMenu = []; // For all traders
  440. PVDZE_plr_DeathB = [];
  441.  
  442. //DayZ settings
  443. dayz_dawn = 6;
  444. dayz_dusk = 18;
  445. DAYZ_agentnumber = 0;
  446. dayz_animalDistance = 800;
  447. dayz_zSpawnDistance = 1000;
  448.  
  449. dayz_maxMaxModels = 80; // max quantity of Man models (player || Z, dead || alive) around players. Below this limit we can spawn Z // max quantity of loot piles around players. Below this limit we can spawn some loot
  450. dayz_spawnArea = 200; // radius around player where we can spawn loot & Z
  451. dayz_cantseeDist = 150; // distance from which we can spawn a Z in front of any player without ray-tracing && angle checks
  452. dayz_cantseefov = 70; // half player field-of-view. Visible Z won't be spawned in front of any near players
  453. dayz_canDelete = 300; // Z, further than this distance from its "owner", will be deleted
  454.  
  455. if(isNil "DZE_SelfTransfuse") then {
  456. DZE_SelfTransfuse = false;
  457. };
  458. if(isNil "dayz_maxAnimals") then {
  459. dayz_maxAnimals = 5;
  460. };
  461. if(isNil "timezoneswitch") then {
  462. timezoneswitch = 0;
  463. };
  464. if(isNil "dayz_maxLocalZombies") then {
  465. dayz_maxLocalZombies = 15;
  466. };
  467. if(isNil "dayz_maxGlobalZombiesInit") then {
  468. dayz_maxGlobalZombiesInit = 15;
  469. };
  470. if(isNil "dayz_maxGlobalZombiesIncrease") then {
  471. dayz_maxGlobalZombiesIncrease = 5;
  472. };
  473. if(isNil "dayz_maxZeds") then {
  474. dayz_maxZeds = 500;
  475. };
  476. if (isNil "DZE_PlayerZed") then {
  477. DZE_PlayerZed = true;
  478. };
  479. if (isNil "DZE_GodModeBase") then {
  480. DZE_GodModeBase = false;
  481. };
  482. if(isNil "DZEdebug") then {
  483. DZEdebug = false;
  484. };
  485. if (isNil "DZE_Debug_Damage") then {
  486. DZE_Debug_Damage = true;
  487. };
  488. if(isNil "DZE_TRADER_SPAWNMODE") then {
  489. DZE_TRADER_SPAWNMODE = false;
  490. };
  491. if(isNil "dayz_tameDogs") then {
  492. dayz_tameDogs = false;
  493. };
  494. if(isNil "dayz_sellDistance_vehicle") then {
  495. dayz_sellDistance_vehicle = 10;
  496. };
  497. if(isNil "dayz_sellDistance_boat") then {
  498. dayz_sellDistance_boat = 30;
  499. };
  500. if(isNil "dayz_sellDistance_air") then {
  501. dayz_sellDistance_air = 40;
  502. };
  503. if(isNil "dayz_paraSpawn") then {
  504. dayz_paraSpawn = false;
  505. };
  506. if(isNil "dayz_minpos") then {
  507. dayz_minpos = -20000;
  508. };
  509. if(isNil "dayz_maxpos") then {
  510. dayz_maxpos = 20000;
  511. };
  512. if(isNil "DZE_BuildingLimit") then {
  513. DZE_BuildingLimit = 150;
  514. };
  515. if(isNil "DZE_HumanityTargetDistance") then {
  516. DZE_HumanityTargetDistance = 25;
  517. };
  518. if(isNil "DZE_FriendlySaving") then {
  519. DZE_FriendlySaving = true;
  520. };
  521. if(isNil "DZE_BuildOnRoads") then {
  522. DZE_BuildOnRoads = false;
  523. };
  524. if(isNil "DZE_MissionLootTable") then {
  525. DZE_MissionLootTable = false;
  526. };
  527. if(isNil "DZE_ConfigTrader") then {
  528. DZE_ConfigTrader = false;
  529. };
  530. if(isNil "DZE_LootSpawnTimer") then {
  531. DZE_LootSpawnTimer = 10;
  532. };
  533. if(isNil "DZE_HeliLift") then {
  534. DZE_HeliLift = true;
  535. };
  536. if(isNil "DZE_DamageBeforeMaint") then {
  537. DZE_DamageBeforeMaint = 0.09;
  538. };
  539. if(isNil "DZE_StaticConstructionCount") then {
  540. DZE_StaticConstructionCount = 0;
  541. };
  542. if (isNil "DZE_selfTransfuse_Values") then {
  543. DZE_selfTransfuse_Values = [12000, 15, 300];
  544. };
  545.  
  546. // needed on server
  547. if(isNil "DZE_PlotPole") then {
  548. DZE_PlotPole = [30,45];
  549. };
  550. if(isNil "DZE_maintainRange") then {
  551. DZE_maintainRange = ((DZE_PlotPole select 0)+20);
  552. };
  553.  
  554. DZE_REPLACE_WEAPONS = [["Crossbow","ItemMatchbox","ItemHatchet"],["Crossbow_DZ","ItemMatchbox_DZE","ItemHatchet_DZE"]];
  555.  
  556. if(isNil "dayz_zedSpawnVehCount") then {
  557. dayz_zedSpawnVehCount = dayz_maxLocalZombies / 2;
  558. };
  559. if(isNil "dayz_spawnAirCount") then {
  560. dayz_spawnAirCount = 0;
  561. };
  562. if(isNil "dayz_zedsAttackVehicles") then {
  563. dayz_zedsAttackVehicles = true;
  564. };
  565.  
  566. // update objects
  567. dayz_updateObjects = ["Plane","Tank","Car", "Helicopter", "Motorcycle", "Ship", "TentStorage", "VaultStorage","LockboxStorage","OutHouse_DZ","Wooden_shed_DZ","WoodShack_DZ","StorageShed_DZ","GunRack_DZ","WoodCrate_DZ","Scaffolding_DZ"];
  568. dayz_disallowedVault = ["TentStorage", "BuiltItems","ModularItems","DZE_Base_Object"];
  569. dayz_reveal = ["AllVehicles","WeaponHolder","Land_A_tent","BuiltItems","ModularItems","DZE_Base_Object"];
  570. dayz_allowedObjects = ["TentStorage","TentStorageDomed","TentStorageDomed2", "VaultStorageLocked", "Hedgehog_DZ", "Sandbag1_DZ","BagFenceRound_DZ","TrapBear","Fort_RazorWire","WoodGate_DZ","Land_HBarrier1_DZ","Land_HBarrier3_DZ","Land_HBarrier5_DZ","Fence_corrugated_DZ","M240Nest_DZ","CanvasHut_DZ","ParkBench_DZ","MetalGate_DZ","OutHouse_DZ","Wooden_shed_DZ","WoodShack_DZ","StorageShed_DZ","Plastic_Pole_EP1_DZ","Generator_DZ","StickFence_DZ","LightPole_DZ","FuelPump_DZ","DesertCamoNet_DZ","ForestCamoNet_DZ","DesertLargeCamoNet_DZ","ForestLargeCamoNet_DZ","SandNest_DZ","DeerStand_DZ","MetalPanel_DZ","WorkBench_DZ","WoodFloor_DZ","WoodLargeWall_DZ","WoodLargeWallDoor_DZ","WoodLargeWallWin_DZ","WoodSmallWall_DZ","WoodSmallWallWin_DZ","WoodSmallWallDoor_DZ","LockboxStorageLocked","WoodFloorHalf_DZ","WoodFloorQuarter_DZ","WoodStairs_DZ","WoodStairsSans_DZ","WoodStairsRails_DZ","WoodSmallWallThird_DZ","WoodLadder_DZ","Land_DZE_GarageWoodDoor","Land_DZE_LargeWoodDoor","Land_DZE_WoodDoor","Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallHalf_DZ","CinderWall_DZ","CinderWallDoorway_DZ","CinderWallDoor_DZ","CinderWallDoorLocked_DZ","CinderWallSmallDoorway_DZ","CinderWallDoorSmall_DZ","CinderWallDoorSmallLocked_DZ","MetalFloor_DZ","WoodRamp_DZ","GunRack_DZ","FireBarrel_DZ","WoodCrate_DZ","Scaffolding_DZ"];
  571.  
  572. //#########################INDESTRUCTIBLE ITEMS#########################
  573. indestructible = ["CinderWall_DZ","CinderWallSmallDoorway_DZ","CinderWallDoorSmall_DZ","CinderWallDoorSmallLocked_DZ","CinderWallDoorway_DZ","CinderWallDoor_DZ","CinderWallDoorLocked_DZ","MetalFloor_DZ"];
  574. //######################################################################
  575. DZE_LockableStorage = ["VaultStorage","VaultStorageLocked","LockboxStorageLocked","LockboxStorage"];
  576. DZE_LockedStorage = ["VaultStorageLocked","LockboxStorageLocked"];
  577. DZE_UnLockedStorage = ["VaultStorage","LockboxStorage"];
  578. DZE_maintainClasses = ["ModularItems","DZE_Housebase","LightPole_DZ","BuiltItems","Plastic_Pole_EP1_DZ","Fence_corrugated_DZ","CanvasHut_DZ","ParkBench_DZ","MetalGate_DZ","StickFence_DZ","DesertCamoNet_DZ","ForestCamoNet_DZ","DesertLargeCamoNet_DZ","ForestLargeCamoNet_DZ","DeerStand_DZ","Scaffolding_DZ","FireBarrel_DZ"];
  579.  
  580. DZE_DoorsLocked = ["Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallDoorLocked_DZ","CinderWallDoorSmallLocked_DZ"];
  581.  
  582. // List of removable items that require crowbar
  583. DZE_isRemovable = ["Fence_corrugated_DZ","M240Nest_DZ","ParkBench_DZ","Plastic_Pole_EP1_DZ","FireBarrel_DZ","Scaffolding_DZ"];
  584. DZE_isWreck = ["SKODAWreck","HMMWVWreck","UralWreck","datsun01Wreck","hiluxWreck","datsun02Wreck","UAZWreck","Land_Misc_Garb_Heap_EP1","Fort_Barricade_EP1","Rubbish2"];
  585. DZE_isWreckBuilding = ["Land_wreck_cinder","Land_wood_wreck_quarter","Land_wood_wreck_floor","Land_wood_wreck_third","Land_wood_wreck_frame","Land_iron_vein_wreck","Land_silver_vein_wreck","Land_gold_vein_wreck","Land_ammo_supply_wreck"];
  586. DZE_isNewStorage = ["VaultStorage","OutHouse_DZ","Wooden_shed_DZ","WoodShack_DZ","StorageShed_DZ","GunRack_DZ","WoodCrate_DZ"];
  587.  
  588. // These work with just a running generator
  589. dayz_fuelpumparray = ["FuelPump_DZ","Land_A_FuelStation_Feed","Land_Ind_FuelStation_Feed_EP1","Land_FuelStation_Feed_PMC","FuelStation","Land_ibr_FuelStation_Feed","Land_fuelstation_army","Land_fuelstation","land_fuelstation_w","Land_benzina_schnell"];
  590. DZE_fueltruckarray = ["KamazRefuel_DZ","UralRefuel_TK_EP1_DZ","MtvrRefuel_DES_EP1_DZ","V3S_Refuel_TK_GUE_EP1_DZ","MtvrRefuel_DZ","KamazRefuel_DZE","UralRefuel_TK_EP1_DZE","MtvrRefuel_DES_EP1_DZE","V3S_Refuel_TK_GUE_EP1_DZE","MtvrRefuel_DZE"];
  591.  
  592. // Standard Fuel sources
  593. dayz_fuelsources = ["Land_Ind_TankSmall","Land_fuel_tank_big","Land_fuel_tank_stairs","Land_fuel_tank_stairs_ep1","Land_wagon_tanker","Land_fuelstation","Land_fuelstation_army","land_fuelstation_w","Land_benzina_schnell"];
  594.  
  595. DZE_Lock_Door = "";
  596.  
  597. //init global arrays for Loot Chances
  598. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\loot_init.sqf";
  599.  
  600. if(isServer) then {
  601. dayz_players = [];
  602. dead_bodyCleanup = [];
  603. needUpdate_objects = [];
  604.  
  605. DZE_DYN_AntiStuck = 0;
  606. DZE_DYN_AntiStuck2nd = 0;
  607. DZE_DYN_AntiStuck3rd = 0;
  608.  
  609. if(isNil "dayz_fullMoonNights") then {
  610. dayz_fullMoonNights = false;
  611. };
  612. if(isNil "EpochEvents") then {
  613. EpochEvents = [];
  614. };
  615. if(isNil "DZE_vehicleAmmo") then {
  616. DZE_vehicleAmmo = 0;
  617. };
  618.  
  619. if(isNil "DZE_BackpackGuard") then {
  620. DZE_BackpackGuard = true;
  621. };
  622.  
  623. if(isNil "DZE_CleanNull") then {
  624. DZE_CleanNull = false;
  625. };
  626. if (isNil "DZE_DeathMsgGlobal") then {
  627. DZE_DeathMsgGlobal = false;
  628. };
  629. if (isNil "DZE_DeathMsgSide") then {
  630. DZE_DeathMsgSide = false;
  631. };
  632. if (isNil "DZE_DeathMsgTitleText") then {
  633. DZE_DeathMsgTitleText = false;
  634. };
  635. DZE_safeVehicle = ["ParachuteWest","ParachuteC","MMT_Civ"];
  636. };
  637.  
  638. if(!isDedicated) then {
  639.  
  640. dayz_spawnPos = getPosATL player;
  641.  
  642. dayz_buildingMonitor = []; //Buildings to check
  643. dayz_bodyMonitor = [];
  644.  
  645. // weather control var
  646. zeroPreviousWeather = [0,0,[0,0],0];
  647. zeroCurrentWeather = [0,0,[0,0],0];
  648.  
  649. if (DZE_MissionLootTable) then {
  650. dayz_baseTypes = getArray (missionConfigFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
  651. } else {
  652. dayz_baseTypes = getArray (configFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
  653. };
  654.  
  655.  
  656. //temperature variables
  657. dayz_temperatur = 36; //TeeChange
  658. dayz_temperaturnormal = 36; //TeeChange
  659. dayz_temperaturmax = 42; //TeeChange
  660. dayz_temperaturmin = 27; //TeeChange
  661.  
  662. //player special variables
  663. dayZ_lastPlayerUpdate = 0;
  664. dayZ_everyonesTents = [];
  665. dayz_hunger = 0;
  666. dayz_thirst = 0;
  667. dayz_combat = 0;
  668. dayz_preloadFinished = false;
  669. dayz_statusArray = [1,1];
  670. dayz_disAudial = 0;
  671. dayz_disVisual = 0;
  672. dayz_firedCooldown = 0;
  673. dayz_DeathActioned = false;
  674. dayz_canDisconnect = true;
  675. dayz_damageCounter = time;
  676. dayz_lastSave = time;
  677. dayz_isSwimming = true;
  678. dayz_isKneeling = false;
  679. dayz_isCrawling = false;
  680. dayz_PreviousTown = "Wilderness";
  681. dayz_currentDay = 0;
  682. dayz_hasLight = false;
  683. dayz_surfaceNoise = 0;
  684. dayz_surfaceType = "None";
  685. dayz_noPenalty = [];
  686. dayz_heavenCooldown = 0;
  687. deathHandled = false;
  688. dayz_lastHumanity = 0;
  689. dayz_guiHumanity = -90000;
  690. dayz_firstGroup = group player;
  691. dayz_originalPlayer = player;
  692. dayz_sourceBleeding = objNull;
  693. dayz_clientPreload = false;
  694. dayz_authed = false;
  695. dayz_panicCooldown = 0;
  696. dayz_areaAffect = 2.5;
  697. dayz_heartBeat = false;
  698. dayzClickTime = 0;
  699. //Current local
  700. dayz_spawnZombies = 0;
  701. dayz_swarmSpawnZombies = 0;
  702. //Max local
  703. dayz_maxLocalZombies = 30; // max quantity of Z controlled by local gameclient, used by player_spawnCheck. Below this limit we can spawn Z
  704. //Current NearBy
  705. dayz_CurrentNearByZombies = 0;
  706. //Max NearBy
  707. dayz_maxNearByZombies = 60; // max quantity of Z controlled by local gameclient, used by player_spawnCheck. Below this limit we can spawn Z
  708. //Current total
  709. dayz_currentGlobalZombies = 0;
  710. //Max global zeds.
  711. dayz_maxGlobalZeds = 3000;
  712. dayz_spawnDelay = 120;
  713. dayz_spawnWait = -120;
  714. dayz_lootDelay = 3;
  715. dayz_lootWait = -300;
  716. //used to count global zeds around players
  717. dayz_CurrentZombies = 0;
  718. //Used to limit overall zed counts
  719. dayz_tickTimeOffset = 0;
  720. dayz_currentWeaponHolders = 0;
  721. dayz_maxMaxWeaponHolders = 80;
  722. dayz_maxCurrentZeds = 0;
  723. dayz_inVehicle = false;
  724. dayz_Magazines = [];
  725. dayzGearSave = false;
  726. dayz_unsaved = false;
  727. dayz_scaleLight = 0;
  728. dayzDebug = false;
  729. dayzState = -1;
  730. //uiNamespace setVariable ['DAYZ_GUI_display',displayNull];
  731. //if (uiNamespace getVariable ['DZ_displayUI', 0] == 2) then {
  732. // dayzDebug = true;
  733. //};
  734.  
  735. DZE_ActionInProgress = false;
  736.  
  737. // DayZ Epoch Client only variables
  738. if(isNil "DZE_AllowForceSave") then {
  739. DZE_AllowForceSave = false;
  740. };
  741. if(isNil "DZE_AllowCargoCheck") then {
  742. DZE_AllowCargoCheck = true;
  743. };
  744. if(isNil "DZE_ForceNameTags") then {
  745. DZE_ForceNameTags = false;
  746. };
  747. if(isNil "DZE_ForceNameTagsOff") then {
  748. DZE_ForceNameTagsOff = false;
  749. };
  750. if(isNil "DZE_ForceNameTagsInTrader") then {
  751. DZE_ForceNameTagsInTrader = false;
  752. };
  753. if(isNil "DZE_HaloJump") then {
  754. DZE_HaloJump = true;
  755. };
  756.  
  757. if(isNil "DZE_AntiWallLimit") then {
  758. DZE_AntiWallLimit = 3;
  759. };
  760. if(isNil "DZE_requireplot") then {
  761. DZE_requireplot = 1;
  762. };
  763. if(isNil "DZE_R3F_WEIGHT") then {
  764. DZE_R3F_WEIGHT = true;
  765. };
  766.  
  767.  
  768. DZE_AntiWallCounter = 0;
  769.  
  770. DZE_FreshSpawn = false;
  771.  
  772. DZE_myHaloVehicle = objNull;
  773. dayz_myLiftVehicle = objNull;
  774.  
  775. DZE_Friends = [];
  776.  
  777. DZE_CanPickup = true;
  778. DZE_Q = false;
  779. DZE_Z = false;
  780.  
  781. DZE_Q_alt = false;
  782. DZE_Z_alt = false;
  783.  
  784. DZE_Q_ctrl = false;
  785. DZE_Z_ctrl = false;
  786.  
  787. DZE_5 = false;
  788. DZE_4 = false;
  789. DZE_6 = false;
  790.  
  791. DZE_cancelBuilding = false;
  792. DZE_PZATTACK = false;
  793.  
  794. DZE_trees = ["t_picea2s_snow.p3d","b_corylus.p3d","t_quercus3s.p3d","t_larix3s.p3d","t_pyrus2s.p3d","str_briza_kriva.p3d","dd_borovice.p3d","les_singlestrom_b.p3d","les_singlestrom.p3d","smrk_velky.p3d","smrk_siroky.p3d","smrk_maly.p3d","les_buk.p3d","str krovisko vysoke.p3d","str_fikovnik_ker.p3d","str_fikovnik.p3d","str vrba.p3d","hrusen2.p3d","str dub jiny.p3d","str lipa.p3d","str briza.p3d","p_akat02s.p3d","jablon.p3d","p_buk.p3d","str_topol.p3d","str_topol2.p3d","p_osika.p3d","t_picea3f.p3d","t_picea2s.p3d","t_picea1s.p3d","t_fagus2w.p3d","t_fagus2s.p3d","t_fagus2f.p3d","t_betula1f.p3d","t_betula2f.p3d","t_betula2s.p3d","t_betula2w.p3d","t_alnus2s.p3d","t_acer2s.p3d","t_populus3s.p3d","t_quercus2f.p3d","t_sorbus2s.p3d","t_malus1s.p3d","t_salix2s.p3d","t_picea1s_w.p3d","t_picea2s_w.p3d","t_ficusb2s_ep1.p3d","t_populusb2s_ep1.p3d","t_populusf2s_ep1.p3d","t_amygdalusc2s_ep1.p3d","t_pistacial2s_ep1.p3d","t_pinuse2s_ep1.p3d","t_pinuss3s_ep1.p3d","t_prunuss2s_ep1.p3d","t_pinusn2s.p3d","t_pinusn1s.p3d","t_pinuss2f.p3d","t_poplar2f_dead_pmc.p3d","misc_torzotree_pmc.p3d","misc_burnspruce_pmc.p3d","brg_cocunutpalm8.p3d","brg_umbrella_acacia01b.p3d","brg_jungle_tree_canopy_1.p3d","brg_jungle_tree_canopy_2.p3d","brg_cocunutpalm4.p3d","brg_cocunutpalm3.p3d","palm_01.p3d","palm_02.p3d","palm_03.p3d","palm_04.p3d","palm_09.p3d","palm_10.p3d","brg_cocunutpalm2.p3d","brg_jungle_tree_antiaris.p3d","brg_cocunutpalm1.p3d","str habr.p3d"];
  795. DZE_TEMP_treedmg = 1;
  796.  
  797. DZE_Surrender = false;
  798. DZE_Quarantine = false;
  799. DZE_InRadiationZone = false;
  800.  
  801. DZE_SaveTime = 30;
  802. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement