Advertisement
Guest User

Untitled

a guest
Apr 11th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.35 KB | None | 0 0
  1. disableSerialization;
  2.  
  3. //Model Variables
  4. Bandit1_DZ = "Bandit1_DZ";
  5. Bandit2_DZ = "Bandit2_DZ";
  6. BanditW1_DZ = "BanditW1_DZ";
  7. BanditW2_DZ = "BanditW2_DZ";
  8. Survivor1_DZ = "Survivor2_DZ";
  9. Survivor2_DZ = "Survivor2_DZ";
  10. SurvivorW2_DZ = "SurvivorW2_DZ";
  11. SurvivorW3_DZ = "SurvivorW2_DZ";
  12. Sniper1_DZ = "Sniper1_DZ";
  13. Camo1_DZ = "Camo1_DZ";
  14. Soldier1_DZ = "Soldier1_DZ";
  15. Rocket_DZ = "Rocket_DZ";
  16.  
  17. 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"];
  18.  
  19. //Cooking
  20. meatraw = [
  21. "FoodSteakRaw",
  22. "FoodmeatRaw",
  23. "FoodbeefRaw",
  24. "FoodmuttonRaw",
  25. "FoodchickenRaw",
  26. "FoodrabbitRaw",
  27. "FoodbaconRaw",
  28. "ItemTrout",
  29. "ItemSeaBass",
  30. "ItemTuna"
  31. ];
  32. exceptionsraw = ["ItemTuna"];
  33. meatcooked = [
  34. "FoodSteakCooked",
  35. "FoodmeatCooked",
  36. "FoodbeefCooked",
  37. "FoodmuttonCooked",
  38. "FoodchickenCooked",
  39. "FoodrabbitCooked",
  40. "FoodbaconCooked",
  41. "ItemTroutCooked",
  42. "ItemSeaBassCooked",
  43. "ItemTunaCooked"
  44. ];
  45. //Eating
  46. no_output_food = ["FoodMRE", "FoodPistachio", "FoodNutmix","FoodBioMeat"]+meatcooked+meatraw;
  47.  
  48. // Food with increased chance for infection.
  49. badfood = ["FoodBioMeat","FoodCanUnlabeled"];
  50.  
  51. food_with_output=[
  52. "FoodCanBakedBeans",
  53. "FoodCanSardines",
  54. "FoodCanFrankBeans",
  55. "FoodCanPasta",
  56. "FoodCanGriff",
  57. "FoodCanBadguy",
  58. "FoodCanBoneboy",
  59. "FoodCanCorn",
  60. "FoodCanCurgon",
  61. "FoodCanDemon",
  62. "FoodCanFraggleos",
  63. "FoodCanHerpy",
  64. "FoodCanOrlok",
  65. "FoodCanPowell",
  66. "FoodCanTylers",
  67. "FoodCanUnlabeled"
  68. ];
  69.  
  70. food_output = [
  71. "TrashTinCan",
  72. "TrashTinCan",
  73. "TrashTinCan",
  74. "TrashTinCan",
  75. "FoodCanGriffEmpty",
  76. "FoodCanBadguyEmpty",
  77. "FoodCanBoneboyEmpty",
  78. "FoodCanCornEmpty",
  79. "FoodCanCurgonEmpty",
  80. "FoodCanDemonEmpty",
  81. "FoodCanFraggleosEmpty",
  82. "FoodCanHerpyEmpty",
  83. "FoodCanOrlokEmpty",
  84. "FoodCanPowellEmpty",
  85. "FoodCanTylersEmpty",
  86. "FoodCanUnlabeledEmpty"
  87. ];
  88. //Drinking
  89. no_output_drink = ["ItemWaterbottle", "ItemWaterbottleBoiled"];
  90. drink_with_output = [
  91. "ItemSoda", //just to define item for ItemSodaEmpty
  92. "ItemSodaRbull",
  93. "ItemSodaOrangeSherbet",
  94. "ItemSodaCoke",
  95. "ItemSodaPepsi",
  96. "ItemSodaMdew",
  97. "ItemSodaMtngreen",
  98. "ItemSodaR4z0r",
  99. "ItemSodaClays",
  100. "ItemSodaSmasht",
  101. "ItemSodaDrwaste",
  102. "ItemSodaLemonade",
  103. "ItemSodaLvg",
  104. "ItemSodaMzly",
  105. "ItemSodaRabbit"
  106. ];
  107. drink_output = [
  108. "ItemSodaEmpty",
  109. "ItemSodaEmpty",
  110. "ItemSodaEmpty",
  111. "ItemSodaCokeEmpty",
  112. "ItemSodaPepsiEmpty",
  113. "ItemSodaMdewEmpty",
  114. "ItemSodaMtngreenEmpty",
  115. "ItemSodaR4z0rEmpty",
  116. "ItemSodaClaysEmpty",
  117. "ItemSodaSmashtEmpty",
  118. "ItemSodaDrwasteEmpty",
  119. "ItemSodaLemonadeEmpty",
  120. "ItemSodaLvgEmpty",
  121. "ItemSodaMzlyEmpty",
  122. "ItemSodaRabbitEmpty"
  123. ];
  124. boil_tin_cans = [
  125. "TrashTinCan",
  126. "FoodCanGriffEmpty",
  127. "FoodCanBadguyEmpty",
  128. "FoodCanBoneboyEmpty",
  129. "FoodCanCornEmpty",
  130. "FoodCanCurgonEmpty",
  131. "FoodCanDemonEmpty",
  132. "FoodCanFraggleosEmpty",
  133. "FoodCanHerpyEmpty",
  134. "FoodCanOrlokEmpty",
  135. "FoodCanPowellEmpty",
  136. "FoodCanTylersEmpty",
  137. "FoodCanUnlabeledEmpty",
  138. "ItemSodaEmpty",
  139. "ItemSodaCokeEmpty",
  140. "ItemSodaPepsiEmpty",
  141. "ItemSodaMdewEmpty",
  142. "ItemSodaMtngreenEmpty",
  143. "ItemSodaR4z0rEmpty",
  144. "ItemSodaClaysEmpty",
  145. "ItemSodaSmashtEmpty",
  146. "ItemSodaDrwasteEmpty",
  147. "ItemSodaLemonadeEmpty",
  148. "ItemSodaLvgEmpty",
  149. "ItemSodaMzlyEmpty",
  150. "ItemSodaRabbitEmpty"
  151. ];
  152.  
  153. dayz_combination = "";
  154. dayz_humanitytarget = "";
  155. dayz_combatLog = "";
  156. canRoll = true;
  157.  
  158. canbuild = true;
  159.  
  160. //Hunting Variables
  161. dayZ_partClasses = [
  162. "PartFueltank",
  163. "PartWheel",
  164. //"PartGeneric", //No need to add, it is default for everything
  165. "PartEngine"
  166. ];
  167. dayZ_explosiveParts = [
  168. "palivo",
  169. "motor"
  170. ];
  171. //Survival Variables
  172. SleepFood = 2160; //minutes (48 hours)
  173. SleepWater = 1440; //minutes (24 hours)
  174. SleepTemperatur = 90 / 100; //Firs Value = Minutes untill Player reaches the coldest Point at night (without other effects! night factor expected to be -1) //TeeChange
  175.  
  176. //Server Variables
  177. allowConnection = false;
  178. isSinglePlayer = false;
  179. PVDZE_serverObjectMonitor = [];
  180. PlayerDeaths = [];
  181.  
  182. //Streaming Variables (player only)
  183. dayz_Locations = [];
  184. dayz_locationsActive = [];
  185.  
  186. //GUI
  187. Dayz_GUI_R = 0.38; // 0.7
  188. Dayz_GUI_G = 0.63; // -0.63
  189. Dayz_GUI_B = 0.26; // -0.26
  190.  
  191. //Player self-action handles
  192. dayz_resetSelfActions = {
  193. s_player_fire = -1;
  194. s_player_cook = -1;
  195. s_player_boil = -1;
  196. s_player_fireout = -1;
  197. s_player_butcher = -1;
  198. s_player_packtent = -1;
  199. s_player_packvault = -1;
  200. s_player_lockvault = -1;
  201. s_player_unlockvault = -1;
  202. s_player_fillwater = -1;
  203. s_player_fillwater2 = -1;
  204. s_player_fillfuel = -1;
  205. s_player_grabflare = -1;
  206. s_player_callzombies = -1;
  207. s_player_showname = -1;
  208. s_player_debuglootpos = -1;
  209. s_player_pzombiesattack = -1;
  210. s_player_pzombiesvision = -1;
  211. s_player_pzombiesfeed = -1;
  212. s_player_removeflare = -1;
  213. s_player_painkiller = -1;
  214. s_player_studybody = -1;
  215. s_player_tamedog = -1;
  216. s_player_madsci_crtl = -1;
  217. s_player_parts_crtl = -1;
  218. s_build_Sandbag1_DZ = -1;
  219. s_build_Hedgehog_DZ = -1;
  220. s_build_Wire_cat1 = -1;
  221. s_player_deleteBuild = -1;
  222. s_player_forceSave = -1;
  223. s_player_checkGear = -1;
  224. s_player_flipveh = -1;
  225. s_player_stats = -1;
  226. s_player_sleep = -1;
  227. s_player_movedog = -1;
  228. s_player_speeddog = -1;
  229. s_player_calldog = -1;
  230. s_player_feeddog = -1;
  231. s_player_waterdog = -1;
  232. s_player_staydog = -1;
  233. s_player_trackdog = -1;
  234. s_player_barkdog = -1;
  235. s_player_warndog = -1;
  236. s_player_followdog = -1;
  237. s_player_repair_crtl = -1;
  238. s_player_information = -1;
  239. s_player_fuelauto = -1;
  240. s_player_fuelauto2 = -1;
  241. s_player_fillgen = -1;
  242. s_player_upgrade_build = -1;
  243. s_player_maint_build = -1;
  244. s_player_downgrade_build = -1;
  245. s_player_towing = -1;
  246. s_halo_action = -1;
  247. s_player_SurrenderedGear = -1;
  248. s_player_maintain_area = -1;
  249. s_player_maintain_area_preview = -1;
  250. s_player_heli_lift = -1;
  251. s_player_heli_detach = -1;
  252. s_player_lockUnlock_crtl = -1;
  253. };
  254. call dayz_resetSelfActions;
  255.  
  256. //Engineering variables
  257. s_player_lastTarget = [objNull,objNull,objNull,objNull,objNull];
  258. s_player_repairActions = [];
  259. s_player_lockunlock = [];
  260.  
  261. // Custom
  262. s_player_madsci = [];
  263. s_player_parts = [];
  264. s_player_combi = [];
  265.  
  266. //Initialize Medical Variables
  267. r_interrupt = false;
  268. r_doLoop = false;
  269. r_self = false;
  270. r_self_actions = [];
  271. r_drag_sqf = false;
  272. r_action = false;
  273. r_action_unload = false;
  274. r_player_handler = false;
  275. r_player_handler1 = false;
  276. r_player_dead = false;
  277. r_player_unconscious = false;
  278. r_player_infected = false;
  279. r_player_injured = false;
  280. r_player_inpain = false;
  281. r_player_loaded = false;
  282. r_player_cardiac = false;
  283. r_fracture_legs = false;
  284. r_fracture_arms = false;
  285. r_player_vehicle = player;
  286. r_player_blood = 12000;
  287. r_player_lowblood = false;
  288. r_player_timeout = 0;
  289. r_player_bloodTotal = r_player_blood;
  290. r_public_blood = r_player_blood;
  291. r_player_bloodDanger = r_player_bloodTotal * 0.2;
  292. r_player_actions = [];
  293. r_handlerCount = 0;
  294. r_action_repair = false;
  295. r_action_targets = [];
  296. r_pitchWhine = false;
  297. r_isBandit = false;
  298.  
  299. DZE_PROTOBOX = objNull;
  300.  
  301. //ammo routine
  302. r_player_actions2 = [];
  303. r_action2 = false;
  304. r_player_lastVehicle = objNull;
  305. r_player_lastSeat = [];
  306. r_player_removeActions2 = {
  307. if (!isNull r_player_lastVehicle) then {
  308. {
  309. r_player_lastVehicle removeAction _x;
  310. } forEach r_player_actions2;
  311. r_player_actions2 = [];
  312. r_action2 = false;
  313. };
  314. };
  315.  
  316. USEC_woundHit = [
  317. "",
  318. "body",
  319. "hands",
  320. "legs",
  321. "head_hit"
  322. ];
  323. DAYZ_woundHit = [
  324. [
  325. "body",
  326. "hands",
  327. "legs",
  328. "head_hit"
  329. ],
  330. [ 0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,2,2,3]
  331. ];
  332. DAYZ_woundHit_ok = [
  333. [
  334. "body",
  335. "hands",
  336. "legs"
  337. ],
  338. [0,0,0,0,0,1,1,1,2,2]
  339. ];
  340. DAYZ_woundHit_dog = [
  341. [
  342. "body",
  343. "hands",
  344. "legs"
  345. ],
  346. [0,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2]
  347. ];
  348. USEC_MinorWounds = [
  349. "hands",
  350. "legs"
  351. ];
  352. USEC_woundPoint = [
  353. ["Pelvis","aimpoint"],
  354. ["aimpoint"], //,"RightShoulder","LeftShoulder"
  355. ["lelbow","relbow"],
  356. ["RightFoot","LeftFoot"],
  357. ["neck","pilot"]
  358. ];
  359. USEC_typeOfWounds = [
  360. "Pelvis",
  361. "aimpoint",
  362. "lelbow","relbow",
  363. "RightFoot","LeftFoot",
  364. "neck","pilot"
  365. ];
  366.  
  367. DZE_vehicleZwounds = [
  368. "sklo predni L",
  369. "sklo predni P",
  370. "sklo zadni",
  371. "sklo zadni L",
  372. "sklo zadni P",
  373. "sklo P",
  374. "Glass1",
  375. "Glass2",
  376. "Glass3",
  377. "Glass4",
  378. "Glass5",
  379. "Glass6"
  380. ];
  381.  
  382. DZE_HeliAllowTowFrom = [
  383. "CH_47F_EP1_DZE",
  384. "CH_47F_EP1_DZ",
  385. "CH_47F_BAF",
  386. "CH_47F_EP1",
  387. "BAF_Merlin_DZE"
  388. ];
  389.  
  390. DZE_HeliAllowToTow = [
  391. "hilux1_civil_1_open",
  392. "HMMWV_Base",
  393. "Lada_base",
  394. "Offroad_DSHKM_base",
  395. "Pickup_PK_base",
  396. "SkodaBase",
  397. "tractor",
  398. "VWGolf",
  399. "Volha_TK_CIV_Base_EP1",
  400. "S1203_TK_CIV_EP1",
  401. "SUV_Base_EP1",
  402. "ArmoredSUV_Base_PMC",
  403. "UAZ_Base",
  404. "LandRover_Base",
  405. "Ship"
  406. ];
  407.  
  408. //Initialize Zombie Variables
  409. dayz_zombieTargetList = [
  410. ["SoldierWB",50],
  411. ["Air",500],
  412. ["LandVehicle",200]
  413. ];
  414. PVDZE_plr_Hit = [];
  415. PVDZE_obj_Publish = []; //used for eventhandler to spawn a mirror of players tent
  416. PVDZE_plr_HideBody = objNull;
  417. dayz_selectedVault = objNull;
  418. dayz_selectedDoor = objNull;
  419.  
  420. PVDZE_veh_Publish = []; // for vehicle traders
  421. PVDZE_obj_Trade = []; // For all traders increment qty
  422. PVDZE_plr_TradeMenu = []; // For all traders
  423. PVDZE_plr_DeathB = [];
  424.  
  425. //DayZ settings
  426. dayz_dawn = 6;
  427. dayz_dusk = 18;
  428. DAYZ_agentnumber = 0;
  429. dayz_animalDistance = 800;
  430. dayz_zSpawnDistance = 1000;
  431.  
  432. if(isNil "dayz_maxAnimals") then {
  433. dayz_maxAnimals = 5;
  434. };
  435. if(isNil "timezoneswitch") then {
  436. timezoneswitch = 0;
  437. };
  438. if(isNil "dayz_maxLocalZombies") then {
  439. dayz_maxLocalZombies = 15;
  440. };
  441. if(isNil "dayz_maxGlobalZombiesInit") then {
  442. dayz_maxGlobalZombiesInit = 15;
  443. };
  444. if(isNil "dayz_maxGlobalZombiesIncrease") then {
  445. dayz_maxGlobalZombiesIncrease = 5;
  446. };
  447. if(isNil "dayz_maxZeds") then {
  448. dayz_maxZeds = 500;
  449. };
  450. if (isNil "DZE_PlayerZed") then {
  451. DZE_PlayerZed = true;
  452. };
  453. if (isNil "DZE_GodModeBase") then {
  454. DZE_GodModeBase = false;
  455. };
  456. if(isNil "DZEdebug") then {
  457. DZEdebug = false;
  458. };
  459. if(isNil "DZE_TRADER_SPAWNMODE") then {
  460. DZE_TRADER_SPAWNMODE = false;
  461. };
  462. if(isNil "dayz_tameDogs") then {
  463. dayz_tameDogs = false;
  464. };
  465. if(isNil "dayz_sellDistance_vehicle") then {
  466. dayz_sellDistance_vehicle = 10;
  467. };
  468. if(isNil "dayz_sellDistance_boat") then {
  469. dayz_sellDistance_boat = 30;
  470. };
  471. if(isNil "dayz_sellDistance_air") then {
  472. dayz_sellDistance_air = 40;
  473. };
  474. if(isNil "dayz_paraSpawn") then {
  475. dayz_paraSpawn = false;
  476. };
  477. if(isNil "dayz_minpos") then {
  478. dayz_minpos = -20000;
  479. };
  480. if(isNil "dayz_maxpos") then {
  481. dayz_maxpos = 20000;
  482. };
  483. if(isNil "DZE_BuildingLimit") then {
  484. DZE_BuildingLimit = 150;
  485. };
  486. if(isNil "DZE_HumanityTargetDistance") then {
  487. DZE_HumanityTargetDistance = 25;
  488. };
  489. if(isNil "DZE_FriendlySaving") then {
  490. DZE_FriendlySaving = true;
  491. };
  492. if(isNil "DZE_BuildOnRoads") then {
  493. DZE_BuildOnRoads = false;
  494. };
  495. if(isNil "DZE_MissionLootTable") then {
  496. DZE_MissionLootTable = false;
  497. };
  498. if(isNil "DZE_ConfigTrader") then {
  499. DZE_ConfigTrader = false;
  500. };
  501. if(isNil "DZE_LootSpawnTimer") then {
  502. DZE_LootSpawnTimer = 10;
  503. };
  504. if(isNil "DZE_HeliLift") then {
  505. DZE_HeliLift = true;
  506. };
  507. if(isNil "DZE_DamageBeforeMaint") then {
  508. DZE_DamageBeforeMaint = 0.09;
  509. };
  510. if(isNil "DZE_StaticConstructionCount") then {
  511. DZE_StaticConstructionCount = 0;
  512. };
  513.  
  514.  
  515. // needed on server
  516. if(isNil "DZE_PlotPole") then {
  517. DZE_PlotPole = [30,45];
  518. };
  519. if(isNil "DZE_maintainRange") then {
  520. DZE_maintainRange = ((DZE_PlotPole select 0)+20);
  521. };
  522.  
  523. DZE_REPLACE_WEAPONS = [["Crossbow","ItemMatchbox","ItemHatchet"],["Crossbow_DZ","ItemMatchbox_DZE","ItemHatchet_DZE"]];
  524.  
  525. if(isNil "dayz_zedSpawnVehCount") then {
  526. dayz_zedSpawnVehCount = dayz_maxLocalZombies / 2;
  527. };
  528. if(isNil "dayz_spawnAirCount") then {
  529. dayz_spawnAirCount = 0;
  530. };
  531. if(isNil "dayz_zedsAttackVehicles") then {
  532. dayz_zedsAttackVehicles = true;
  533. };
  534.  
  535. // update objects
  536. dayz_updateObjects = ["Plane","Car", "Helicopter", "Motorcycle", "Ship", "TentStorage", "VaultStorage","LockboxStorage","OutHouse_DZ","Wooden_shed_DZ","WoodShack_DZ","StorageShed_DZ","GunRack_DZ","WoodCrate_DZ","Scaffolding_DZ"];
  537. dayz_disallowedVault = ["TentStorage", "BuiltItems","ModularItems","DZE_Base_Object"];
  538. dayz_reveal = ["AllVehicles","WeaponHolder","Land_A_tent","BuiltItems","ModularItems","DZE_Base_Object"];
  539. 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"];
  540.  
  541. DZE_LockableStorage = ["VaultStorage","VaultStorageLocked","LockboxStorageLocked","LockboxStorage"];
  542. DZE_LockedStorage = ["VaultStorageLocked","LockboxStorageLocked"];
  543. DZE_UnLockedStorage = ["VaultStorage","LockboxStorage"];
  544. //["ModularItems", "DZE_Housebase", "BuiltItems", "Plastic_Pole_EP1_DZ" ,"FireBarrel_DZ"] - Skaronator, looks like some classes are missing not sure if this is intended
  545. DZE_maintainClasses = ["ModularItems","DZE_Housebase","LightPole_DZ"];
  546.  
  547. DZE_DoorsLocked = ["Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallDoorLocked_DZ","CinderWallDoorSmallLocked_DZ"];
  548.  
  549. // List of removable items that require crowbar
  550. DZE_isRemovable = ["Fence_corrugated_DZ","M240Nest_DZ","ParkBench_DZ","Plastic_Pole_EP1_DZ","FireBarrel_DZ","Scaffolding_DZ"];
  551. DZE_isWreck = ["SKODAWreck","HMMWVWreck","UralWreck","datsun01Wreck","hiluxWreck","datsun02Wreck","UAZWreck","Land_Misc_Garb_Heap_EP1","Fort_Barricade_EP1","Rubbish2"];
  552. 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"];
  553. DZE_isNewStorage = ["VaultStorage","OutHouse_DZ","Wooden_shed_DZ","WoodShack_DZ","StorageShed_DZ","GunRack_DZ","WoodCrate_DZ"];
  554.  
  555. // These work with just a running generator
  556. 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"];
  557. 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"];
  558.  
  559. // Standard Fuel sources
  560. 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"];
  561.  
  562. DZE_Lock_Door = "";
  563.  
  564. //init global arrays for Loot Chances
  565. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\loot_init.sqf";
  566.  
  567. if(isServer) then {
  568. dayz_players = [];
  569. dead_bodyCleanup = [];
  570. needUpdate_objects = [];
  571.  
  572. DZE_DYN_AntiStuck = 0;
  573. DZE_DYN_AntiStuck2nd = 0;
  574. DZE_DYN_AntiStuck3rd = 0;
  575.  
  576. if(isNil "dayz_fullMoonNights") then {
  577. dayz_fullMoonNights = false;
  578. };
  579. if(isNil "EpochEvents") then {
  580. EpochEvents = [];
  581. };
  582. if(isNil "DZE_vehicleAmmo") then {
  583. DZE_vehicleAmmo = 0;
  584. };
  585.  
  586. if(isNil "DZE_BackpackGuard") then {
  587. DZE_BackpackGuard = true;
  588. };
  589.  
  590. if(isNil "DZE_CleanNull") then {
  591. DZE_CleanNull = false;
  592. };
  593.  
  594. DZE_safeVehicle = ["MH6J_EP1","CSJ_GyroC","TT650_Civ","MMT_Civ","ParachuteWest","ParachuteC"];
  595. };
  596.  
  597. if(!isDedicated) then {
  598.  
  599. dayz_spawnPos = getPosATL player;
  600.  
  601. dayz_buildingMonitor = []; //Buildings to check
  602. dayz_bodyMonitor = [];
  603.  
  604. // weather control var
  605. zeroPreviousWeather = [0,0,[0,0],0];
  606. zeroCurrentWeather = [0,0,[0,0],0];
  607.  
  608. if (DZE_MissionLootTable) then {
  609. dayz_baseTypes = getArray (missionConfigFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
  610. } else {
  611. dayz_baseTypes = getArray (configFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
  612. };
  613.  
  614.  
  615. //temperature variables
  616. dayz_temperatur = 36; //TeeChange
  617. dayz_temperaturnormal = 36; //TeeChange
  618. dayz_temperaturmax = 42; //TeeChange
  619. dayz_temperaturmin = 27; //TeeChange
  620.  
  621. //player special variables
  622. dayZ_lastPlayerUpdate = 0;
  623. dayZ_everyonesTents = [];
  624. dayz_hunger = 0;
  625. dayz_thirst = 0;
  626. dayz_combat = 0;
  627. dayz_preloadFinished = false;
  628. dayz_statusArray = [1,1];
  629. dayz_disAudial = 0;
  630. dayz_disVisual = 0;
  631. dayz_firedCooldown = 0;
  632. dayz_DeathActioned = false;
  633. dayz_canDisconnect = true;
  634. dayz_damageCounter = time;
  635. dayz_lastSave = time;
  636. dayz_isSwimming = true;
  637. dayz_isKneeling = false;
  638. dayz_isCrawling = false;
  639. dayz_PreviousTown = "Wilderness";
  640. dayz_currentDay = 0;
  641. dayz_hasLight = false;
  642. dayz_surfaceNoise = 0;
  643. dayz_surfaceType = "None";
  644. dayz_noPenalty = [];
  645. dayz_heavenCooldown = 0;
  646. deathHandled = false;
  647. dayz_lastHumanity = 0;
  648. dayz_guiHumanity = -90000;
  649. dayz_firstGroup = group player;
  650. dayz_originalPlayer = player;
  651. dayz_playerName = "Unknown";
  652. dayz_sourceBleeding = objNull;
  653. dayz_clientPreload = false;
  654. dayz_authed = false;
  655. dayz_panicCooldown = 0;
  656. dayz_areaAffect = 2.5;
  657. dayz_heartBeat = false;
  658. dayzClickTime = 0;
  659. dayz_spawnDelay = 120;
  660. dayz_spawnWait = -120;
  661. dayz_lootDelay = 3;
  662. dayz_lootWait = -300;
  663. dayz_spawnZombies = 0;
  664. //used to count global zeds around players
  665. dayz_CurrentZombies = 0;
  666. //Used to limit overall zed counts
  667. dayz_maxCurrentZeds = 0;
  668. dayz_inVehicle = false;
  669. dayz_Magazines = [];
  670. dayzGearSave = false;
  671. dayz_unsaved = false;
  672. DZE_ActionInProgress = false;
  673. dayz_scaleLight = 0;
  674. dayzDebug = false;
  675. dayzState = -1;
  676. //uiNamespace setVariable ['DAYZ_GUI_display',displayNull];
  677. //if (uiNamespace getVariable ['DZ_displayUI', 0] == 2) then {
  678. // dayzDebug = true;
  679. //};
  680.  
  681. // DayZ Epoch Client only variables
  682. if(isNil "DZE_AllowForceSave") then {
  683. DZE_AllowForceSave = false;
  684. };
  685. if(isNil "DZE_AllowCargoCheck") then {
  686. DZE_AllowCargoCheck = true;
  687. };
  688. if(isNil "DZE_ForceNameTags") then {
  689. DZE_ForceNameTags = false;
  690. };
  691. if(isNil "DZE_ForceNameTagsOff") then {
  692. DZE_ForceNameTagsOff = false;
  693. };
  694. if(isNil "DZE_HaloJump") then {
  695. DZE_HaloJump = true;
  696. };
  697.  
  698. if(isNil "DZE_AntiWallLimit") then {
  699. DZE_AntiWallLimit = 1;
  700. };
  701. if(isNil "DZE_requireplot") then {
  702. DZE_requireplot = 1;
  703. };
  704. if(isNil "DZE_R3F_WEIGHT") then {
  705. DZE_R3F_WEIGHT = true;
  706. };
  707.  
  708.  
  709. DZE_AntiWallCounter = 0;
  710.  
  711. DZE_FreshSpawn = false;
  712.  
  713. DZE_myHaloVehicle = objNull;
  714. dayz_myLiftVehicle = objNull;
  715.  
  716. DZE_Friends = [];
  717.  
  718. DZE_CanPickup = true;
  719. DZE_Q = false;
  720. DZE_Z = false;
  721.  
  722. DZE_Q_alt = false;
  723. DZE_Z_alt = false;
  724.  
  725. DZE_Q_ctrl = false;
  726. DZE_Z_ctrl = false;
  727.  
  728. DZE_5 = false;
  729. DZE_4 = false;
  730. DZE_6 = false;
  731.  
  732. DZE_cancelBuilding = false;
  733. DZE_PZATTACK = false;
  734.  
  735. 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"];
  736. DZE_TEMP_treedmg = 1;
  737.  
  738. DZE_Surrender = false;
  739. DZE_Quarantine = false;
  740. DZE_InRadiationZone = false;
  741.  
  742. DZE_SaveTime = 30;
  743. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement