Advertisement
iLogann

variables

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