Advertisement
Guest User

Untitled

a guest
May 4th, 2015
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.80 KB | None | 0 0
  1. disableSerialization;
  2.  
  3. Fast_Med = ["Dr_Annie_Baker_EP1","Doctor","Dr_Hladik_EP1"];
  4.  
  5. /**DoorManagement Config**/
  6. //DoorAdminList = ["76561198055124016","76561198055124016"]; // List of Player Id's of admins that can manage all doors
  7. //AllowManualCode = true;// 2 reason| 1: Allows breaking codes (if 2nd config = false and code = 3 digits) | 2: Friends can access access not owned doors until owner gets on.
  8. //HarderPenalty = true;// Cen's Penalty: Flashes screen white. And kicks player to lobby if failed more then (random number between 4 and 14) times.
  9. // AllowUncrackableCode = false; // in next release: if set to true, player can change code to more then 4 digits, The manualCode will always fail when he does. THIS is for AntiCodeCrack servers that allow Manual Code for people that like that system.
  10. // in next release. AllowManualCode will allow players to change the code in the DoorManagement Menu.
  11. /**DoorManagement Config END**/
  12. //DZE_DoorsLocked = ["Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallDoorLocked_DZ","CinderWallDoorSmallLocked_DZ"];
  13.  
  14.  
  15. //Model Variables
  16. Bandit1_DZ = "Bandit1_DZ";
  17. Bandit2_DZ = "Bandit2_DZ";
  18. BanditW1_DZ = "BanditW1_DZ";
  19. BanditW2_DZ = "BanditW2_DZ";
  20. Survivor1_DZ = "Survivor2_DZ";
  21. Survivor2_DZ = "Survivor2_DZ";
  22. SurvivorW2_DZ = "SurvivorW2_DZ";
  23. SurvivorW3_DZ = "SurvivorW2_DZ";
  24. Sniper1_DZ = "Sniper1_DZ";
  25. Camo1_DZ = "Camo1_DZ";
  26. Soldier1_DZ = "Soldier1_DZ";
  27. Rocket_DZ = "Rocket_DZ";
  28.  
  29. 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"];
  30. MeleeWeapons = ["MeleeFishingPole","MeleeCrowbar","MeleeBaseBallBatNails","MeleeBaseBallBatBarbed","MeleeBaseBallBat","Crossbow_DZ","MeleeSledge","MeleeMachete","MeleeHatchet_DZE"];
  31. gear_done = false;
  32. //Cooking
  33. meatraw = [
  34. "FoodSteakRaw",
  35. "FoodmeatRaw",
  36. "FoodbeefRaw",
  37. "FoodmuttonRaw",
  38. "FoodchickenRaw",
  39. "FoodrabbitRaw",
  40. "FoodbaconRaw",
  41. "ItemTrout",
  42. "ItemSeaBass",
  43. "ItemTuna"
  44. ];
  45. exceptionsraw = ["ItemTuna"];
  46. meatcooked = [
  47. "FoodSteakCooked",
  48. "FoodmeatCooked",
  49. "FoodbeefCooked",
  50. "FoodmuttonCooked",
  51. "FoodchickenCooked",
  52. "FoodrabbitCooked",
  53. "FoodbaconCooked",
  54. "ItemTroutCooked",
  55. "ItemSeaBassCooked",
  56. "ItemTunaCooked"
  57. ];
  58. //Eating
  59. no_output_food = ["FoodMRE", "FoodPistachio", "FoodNutmix","FoodBioMeat"]+meatcooked+meatraw;
  60.  
  61. // Food with increased chance for infection.
  62. badfood = ["FoodBioMeat","FoodCanUnlabeled"];
  63.  
  64. food_with_output=[
  65. "FoodCanBakedBeans",
  66. "FoodCanSardines",
  67. "FoodCanFrankBeans",
  68. "FoodCanPasta",
  69. "FoodCanGriff",
  70. "FoodCanBadguy",
  71. "FoodCanBoneboy",
  72. "FoodCanCorn",
  73. "FoodCanCurgon",
  74. "FoodCanDemon",
  75. "FoodCanFraggleos",
  76. "FoodCanHerpy",
  77. "FoodCanOrlok",
  78. "FoodCanPowell",
  79. "FoodCanTylers",
  80. "FoodCanUnlabeled"
  81. ];
  82.  
  83. food_output = [
  84. "TrashTinCan",
  85. "TrashTinCan",
  86. "TrashTinCan",
  87. "TrashTinCan",
  88. "FoodCanGriffEmpty",
  89. "FoodCanBadguyEmpty",
  90. "FoodCanBoneboyEmpty",
  91. "FoodCanCornEmpty",
  92. "FoodCanCurgonEmpty",
  93. "FoodCanDemonEmpty",
  94. "FoodCanFraggleosEmpty",
  95. "FoodCanHerpyEmpty",
  96. "FoodCanOrlokEmpty",
  97. "FoodCanPowellEmpty",
  98. "FoodCanTylersEmpty",
  99. "FoodCanUnlabeledEmpty"
  100. ];
  101. //Drinking
  102. no_output_drink = ["ItemWaterbottle", "ItemWaterbottleBoiled"];
  103. drink_with_output = [
  104. "ItemSoda", //just to define item for ItemSodaEmpty
  105. "ItemSodaRbull",
  106. "ItemSodaOrangeSherbet",
  107. "ItemSodaCoke",
  108. "ItemSodaPepsi",
  109. "ItemSodaMdew",
  110. "ItemSodaMtngreen",
  111. "ItemSodaR4z0r",
  112. "ItemSodaClays",
  113. "ItemSodaSmasht",
  114. "ItemSodaDrwaste",
  115. "ItemSodaLemonade",
  116. "ItemSodaLvg",
  117. "ItemSodaMzly",
  118. "ItemSodaRabbit"
  119. ];
  120. drink_output = [
  121. "ItemSodaEmpty",
  122. "ItemSodaEmpty",
  123. "ItemSodaEmpty",
  124. "ItemSodaCokeEmpty",
  125. "ItemSodaPepsiEmpty",
  126. "ItemSodaMdewEmpty",
  127. "ItemSodaMtngreenEmpty",
  128. "ItemSodaR4z0rEmpty",
  129. "ItemSodaClaysEmpty",
  130. "ItemSodaSmashtEmpty",
  131. "ItemSodaDrwasteEmpty",
  132. "ItemSodaLemonadeEmpty",
  133. "ItemSodaLvgEmpty",
  134. "ItemSodaMzlyEmpty",
  135. "ItemSodaRabbitEmpty"
  136. ];
  137. boil_tin_cans = [
  138. "TrashTinCan",
  139. "FoodCanGriffEmpty",
  140. "FoodCanBadguyEmpty",
  141. "FoodCanBoneboyEmpty",
  142. "FoodCanCornEmpty",
  143. "FoodCanCurgonEmpty",
  144. "FoodCanDemonEmpty",
  145. "FoodCanFraggleosEmpty",
  146. "FoodCanHerpyEmpty",
  147. "FoodCanOrlokEmpty",
  148. "FoodCanPowellEmpty",
  149. "FoodCanTylersEmpty",
  150. "FoodCanUnlabeledEmpty",
  151. "ItemSodaEmpty",
  152. "ItemSodaCokeEmpty",
  153. "ItemSodaPepsiEmpty",
  154. "ItemSodaMdewEmpty",
  155. "ItemSodaMtngreenEmpty",
  156. "ItemSodaR4z0rEmpty",
  157. "ItemSodaClaysEmpty",
  158. "ItemSodaSmashtEmpty",
  159. "ItemSodaDrwasteEmpty",
  160. "ItemSodaLemonadeEmpty",
  161. "ItemSodaLvgEmpty",
  162. "ItemSodaMzlyEmpty",
  163. "ItemSodaRabbitEmpty"
  164. ];
  165.  
  166. dayz_combination = "";
  167. dayz_humanitytarget = "";
  168. dayz_combatLog = "";
  169. canRoll = true;
  170.  
  171. canbuild = true;
  172.  
  173. //Hunting Variables
  174. dayZ_partClasses = [
  175. "PartFueltank",
  176. "PartWheel",
  177. //"PartGeneric", //No need to add, it is default for everything
  178. "PartEngine"
  179. ];
  180. dayZ_explosiveParts = [
  181. "palivo",
  182. "motor"
  183. ];
  184. //Survival Variables
  185. SleepFood = 2160; //minutes (48 hours)
  186. SleepWater = 1440; //minutes (24 hours)
  187. SleepTemperatur = 90 / 100; //Firs Value = Minutes untill Player reaches the coldest Point at night (without other effects! night factor expected to be -1) //TeeChange
  188.  
  189. //Server Variables
  190. allowConnection = false;
  191. isSinglePlayer = false;
  192. PVDZE_serverObjectMonitor = [];
  193. PlayerDeaths = [];
  194.  
  195. //Streaming Variables (player only)
  196. dayz_Locations = [];
  197. dayz_locationsActive = [];
  198.  
  199. //GUI
  200. Dayz_GUI_R = 0.38; // 0.7
  201. Dayz_GUI_G = 0.63; // -0.63
  202. Dayz_GUI_B = 0.26; // -0.26
  203.  
  204. //Player self-action handles
  205. dayz_resetSelfActions = {
  206. s_fast_med_dialog1 = -1;
  207. s_player_plotManagement = -1;
  208. s_givemoney_dialog = -1;
  209. s_bank_dialog = -1;
  210. s_bank_dialog2 = -1;
  211. s_player_fire = -1;
  212. s_player_cook = -1;
  213. s_player_boil = -1;
  214. s_player_fireout = -1;
  215. s_player_butcher = -1;
  216. s_player_packtent = -1;
  217. s_player_packvault = -1;
  218. s_player_lockvault = -1;
  219. s_player_unlockvault = -1;
  220. s_player_fillwater = -1;
  221. s_player_fillwater2 = -1;
  222. s_player_fillfuel = -1;
  223. s_player_grabflare = -1;
  224. s_player_callzombies = -1;
  225. s_player_showname = -1;
  226. s_player_debuglootpos = -1;
  227. s_player_pzombiesattack = -1;
  228. s_player_pzombiesvision = -1;
  229. s_player_pzombiesfeed = -1;
  230. s_player_removeflare = -1;
  231. s_player_painkiller = -1;
  232. s_player_studybody = -1;
  233. s_player_tamedog = -1;
  234. s_player_madsci_crtl = -1;
  235. s_player_parts_crtl = -1;
  236. s_build_Sandbag1_DZ = -1;
  237. s_build_Hedgehog_DZ = -1;
  238. s_build_Wire_cat1 = -1;
  239. s_player_deleteBuild = -1;
  240. s_player_forceSave = -1;
  241. s_player_checkGear = -1;
  242. s_player_flipveh = -1;
  243. s_player_stats = -1;
  244. s_player_sleep = -1;
  245. s_player_movedog = -1;
  246. s_player_speeddog = -1;
  247. s_player_calldog = -1;
  248. s_player_feeddog = -1;
  249. s_player_waterdog = -1;
  250. s_player_staydog = -1;
  251. s_player_trackdog = -1;
  252. s_player_barkdog = -1;
  253. s_player_warndog = -1;
  254. s_player_followdog = -1;
  255. s_player_repair_crtl = -1;
  256. s_player_information = -1;
  257. s_player_fuelauto = -1;
  258. s_player_fuelauto2 = -1;
  259. s_player_fillgen = -1;
  260. s_player_upgrade_build = -1;
  261. s_player_maint_build = -1;
  262. s_player_downgrade_build = -1;
  263. s_player_towing = -1;
  264. s_halo_action = -1;
  265. s_player_SurrenderedGear = -1;
  266. s_player_maintain_area = -1;
  267. s_player_maintain_area_preview = -1;
  268. s_player_heli_lift = -1;
  269. s_player_heli_detach = -1;
  270. s_player_lockUnlock_crtl = -1;
  271. };
  272. call dayz_resetSelfActions;
  273.  
  274. //Engineering variables
  275. s_player_lastTarget = [objNull,objNull,objNull,objNull,objNull];
  276. s_player_repairActions = [];
  277. s_player_lockunlock = [];
  278.  
  279. // Custom
  280. s_player_madsci = [];
  281. s_player_parts = [];
  282. s_player_combi = [];
  283.  
  284. //Initialize Medical Variables
  285. r_interrupt = false;
  286. r_doLoop = false;
  287. r_self = false;
  288. r_self_actions = [];
  289. r_drag_sqf = false;
  290. r_action = false;
  291. r_action_unload = false;
  292. r_player_handler = false;
  293. r_player_handler1 = false;
  294. r_player_dead = false;
  295. r_player_unconscious = false;
  296. r_player_infected = false;
  297. r_player_injured = false;
  298. r_player_inpain = false;
  299. r_player_loaded = false;
  300. r_player_cardiac = false;
  301. r_fracture_legs = false;
  302. r_fracture_arms = false;
  303. r_player_vehicle = player;
  304. r_player_blood = 12000;
  305. r_player_lowblood = false;
  306. r_player_timeout = 0;
  307. r_player_bloodTotal = r_player_blood;
  308. r_public_blood = r_player_blood;
  309. r_player_bloodDanger = r_player_bloodTotal * 0.2;
  310. r_player_actions = [];
  311. r_handlerCount = 0;
  312. r_action_repair = false;
  313. r_action_targets = [];
  314. r_pitchWhine = false;
  315. r_isBandit = false;
  316. isInTraderCity = false;
  317. NORRN_dropAction = -1;
  318. DZE_PROTOBOX = objNull;
  319.  
  320. //ammo routine
  321. r_player_actions2 = [];
  322. r_action2 = false;
  323. r_player_lastVehicle = objNull;
  324. r_player_lastSeat = [];
  325. r_player_removeActions2 = {
  326. if (!isNull r_player_lastVehicle) then {
  327. {
  328. r_player_lastVehicle removeAction _x;
  329. } count r_player_actions2;
  330. r_player_actions2 = [];
  331. r_action2 = false;
  332. };
  333. };
  334.  
  335. USEC_woundHit = [
  336. "",
  337. "body",
  338. "hands",
  339. "legs",
  340. "head_hit"
  341. ];
  342. DAYZ_woundHit = [
  343. [
  344. "body",
  345. "hands",
  346. "legs",
  347. "head_hit"
  348. ],
  349. [ 0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,2,2,3]
  350. ];
  351. DAYZ_woundHit_ok = [
  352. [
  353. "body",
  354. "hands",
  355. "legs"
  356. ],
  357. [0,0,0,0,0,1,1,1,2,2]
  358. ];
  359. DAYZ_woundHit_dog = [
  360. [
  361. "body",
  362. "hands",
  363. "legs"
  364. ],
  365. [0,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2]
  366. ];
  367. USEC_MinorWounds = [
  368. "hands",
  369. "legs"
  370. ];
  371. USEC_woundPoint = [
  372. ["Pelvis","aimpoint"],
  373. ["aimpoint"], //,"RightShoulder","LeftShoulder"
  374. ["lelbow","relbow"],
  375. ["RightFoot","LeftFoot"],
  376. ["neck","pilot"]
  377. ];
  378. USEC_typeOfWounds = [
  379. "Pelvis",
  380. "aimpoint",
  381. "lelbow","relbow",
  382. "RightFoot","LeftFoot",
  383. "neck","pilot"
  384. ];
  385.  
  386. DZE_vehicleZwounds = [
  387. "sklo predni L",
  388. "sklo predni P",
  389. "sklo zadni",
  390. "sklo zadni L",
  391. "sklo zadni P",
  392. "sklo P",
  393. "Glass1",
  394. "Glass2",
  395. "Glass3",
  396. "Glass4",
  397. "Glass5",
  398. "Glass6"
  399. ];
  400.  
  401. DZE_HeliAllowTowFrom = [
  402. "CH_47F_EP1_DZE",
  403. "CH_47F_EP1_DZ",
  404. "CH_47F_BAF",
  405. "CH_47F_EP1",
  406. "BAF_Merlin_DZE",
  407. "CH53_DZE"
  408. ];
  409.  
  410. DZE_HeliAllowToTow = [
  411. "hilux1_civil_1_open",
  412. "HMMWV_Base",
  413. "Lada_base",
  414. "Offroad_DSHKM_base",
  415. "Pickup_PK_base",
  416. "SkodaBase",
  417. "tractor",
  418. "VWGolf",
  419. "Volha_TK_CIV_Base_EP1",
  420. "S1203_TK_CIV_EP1",
  421. "SUV_Base_EP1",
  422. "ArmoredSUV_Base_PMC",
  423. "UAZ_Base",
  424. "LandRover_Base",
  425. "Ship"
  426. ];
  427.  
  428. //Initialize Zombie Variables
  429. dayz_zombieTargetList = [
  430. ["SoldierWB",50],
  431. ["Air",500],
  432. ["LandVehicle",200]
  433. ];
  434. PVDZE_plr_Hit = [];
  435. PVDZE_obj_Publish = []; //used for eventhandler to spawn a mirror of players tent
  436. PVDZE_plr_HideBody = objNull;
  437. dayz_selectedVault = objNull;
  438. dayz_selectedDoor = objNull;
  439.  
  440. PVDZE_veh_Publish = []; // for vehicle traders
  441. PVDZE_obj_Trade = []; // For all traders increment qty
  442. PVDZE_plr_TradeMenu = []; // For all traders
  443. PVDZE_plr_DeathB = [];
  444.  
  445. //DayZ settings
  446. dayz_dawn = 6;
  447. dayz_dusk = 18;
  448. DAYZ_agentnumber = 0;
  449. dayz_animalDistance = 800;
  450. dayz_zSpawnDistance = 1000;
  451.  
  452. 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
  453. dayz_spawnArea = 200; // radius around player where we can spawn loot & Z
  454. dayz_cantseeDist = 150; // distance from which we can spawn a Z in front of any player without ray-tracing && angle checks
  455. dayz_cantseefov = 70; // half player field-of-view. Visible Z won't be spawned in front of any near players
  456. dayz_canDelete = 300; // Z, further than this distance from its "owner", will be deleted
  457.  
  458. if(isNil "DZE_SelfTransfuse") then {
  459. DZE_SelfTransfuse = false;
  460. };
  461. if(isNil "dayz_maxAnimals") then {
  462. dayz_maxAnimals = 5;
  463. };
  464. if(isNil "timezoneswitch") then {
  465. timezoneswitch = 0;
  466. };
  467. if(isNil "dayz_maxLocalZombies") then {
  468. dayz_maxLocalZombies = 15;
  469. };
  470. if(isNil "dayz_maxGlobalZombiesInit") then {
  471. dayz_maxGlobalZombiesInit = 15;
  472. };
  473. if(isNil "dayz_maxGlobalZombiesIncrease") then {
  474. dayz_maxGlobalZombiesIncrease = 5;
  475. };
  476. if(isNil "dayz_maxZeds") then {
  477. dayz_maxZeds = 500;
  478. };
  479. if (isNil "DZE_PlayerZed") then {
  480. DZE_PlayerZed = true;
  481. };
  482. if (isNil "DZE_GodModeBase") then {
  483. DZE_GodModeBase = false;
  484. };
  485. if(isNil "DZEdebug") then {
  486. DZEdebug = false;
  487. };
  488. if (isNil "DZE_Debug_Damage") then {
  489. DZE_Debug_Damage = true;
  490. };
  491. if(isNil "DZE_TRADER_SPAWNMODE") then {
  492. DZE_TRADER_SPAWNMODE = false;
  493. };
  494. if(isNil "dayz_tameDogs") then {
  495. dayz_tameDogs = false;
  496. };
  497. if(isNil "dayz_sellDistance_vehicle") then {
  498. dayz_sellDistance_vehicle = 10;
  499. };
  500. if(isNil "dayz_sellDistance_boat") then {
  501. dayz_sellDistance_boat = 30;
  502. };
  503. if(isNil "dayz_sellDistance_air") then {
  504. dayz_sellDistance_air = 40;
  505. };
  506. if(isNil "dayz_paraSpawn") then {
  507. dayz_paraSpawn = false;
  508. };
  509. if(isNil "dayz_minpos") then {
  510. dayz_minpos = -20000;
  511. };
  512. if(isNil "dayz_maxpos") then {
  513. dayz_maxpos = 20000;
  514. };
  515. if(isNil "DZE_BuildingLimit") then {
  516. DZE_BuildingLimit = 150;
  517. };
  518. if(isNil "DZE_HumanityTargetDistance") then {
  519. DZE_HumanityTargetDistance = 25;
  520. };
  521. if(isNil "DZE_FriendlySaving") then {
  522. DZE_FriendlySaving = true;
  523. };
  524. if(isNil "DZE_BuildOnRoads") then {
  525. DZE_BuildOnRoads = false;
  526. };
  527. if(isNil "DZE_MissionLootTable") then {
  528. DZE_MissionLootTable = false;
  529. };
  530. if(isNil "DZE_ConfigTrader") then {
  531. DZE_ConfigTrader = false;
  532. };
  533. if(isNil "DZE_LootSpawnTimer") then {
  534. DZE_LootSpawnTimer = 10;
  535. };
  536. if(isNil "DZE_HeliLift") then {
  537. DZE_HeliLift = true;
  538. };
  539. if(isNil "DZE_DamageBeforeMaint") then {
  540. DZE_DamageBeforeMaint = 0.09;
  541. };
  542. if(isNil "DZE_StaticConstructionCount") then {
  543. DZE_StaticConstructionCount = 0;
  544. };
  545. if (isNil "DZE_selfTransfuse_Values") then {
  546. DZE_selfTransfuse_Values = [12000, 15, 300];
  547. };
  548.  
  549. // needed on server
  550. if(isNil "DZE_PlotPole") then {
  551. DZE_PlotPole = [30,45];
  552. };
  553. if(isNil "DZE_maintainRange") then {
  554. DZE_maintainRange = ((DZE_PlotPole select 0)+20);
  555. };
  556.  
  557. DZE_REPLACE_WEAPONS = [["Crossbow","ItemMatchbox","ItemHatchet"],["Crossbow_DZ","ItemMatchbox_DZE","ItemHatchet_DZE"]];
  558.  
  559. if(isNil "dayz_zedSpawnVehCount") then {
  560. dayz_zedSpawnVehCount = dayz_maxLocalZombies / 2;
  561. };
  562. if(isNil "dayz_spawnAirCount") then {
  563. dayz_spawnAirCount = 0;
  564. };
  565. if(isNil "dayz_zedsAttackVehicles") then {
  566. dayz_zedsAttackVehicles = true;
  567. };
  568.  
  569. // update objects
  570. 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"];
  571. dayz_disallowedVault = ["TentStorage", "BuiltItems","ModularItems","DZE_Base_Object"];
  572. dayz_reveal = ["AllVehicles","WeaponHolder","Land_A_tent","BuiltItems","ModularItems","DZE_Base_Object"];
  573. 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"];
  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","ParkBench_DZ","FireBarrel_DZ","Scaffolding_DZ","Plastic_Pole_EP1_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 = ["Old_bike_TK_CIV_EP1","MMT_Civ","ParachuteWest","ParachuteC","BIS_Steerable_Parachute","ParachuteBigEast","ParachuteBigWest","M1030","AH6X_EP1","AH6J_EP1","SUV_Camo_DZE4","SUV_Camo_DZE3","SUV_Camo_DZE2","SUV_Camo"];
  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 vars
  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. };
  803.  
  804. dayz_allowedObjects = dayz_allowedObjects + ["HeliHRescue"];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement