Advertisement
Guest User

Untitled

a guest
Aug 4th, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.89 KB | None | 0 0
  1. disableSerialization;
  2.  
  3. // Enable
  4. // 0=False/off, 1=True/on
  5. dayz_Trash = 1;
  6.  
  7. //Model Variables
  8. Bandit1_DZ = "Bandit1_DZ";
  9. BanditW1_DZ = "BanditW1_DZ";
  10. Survivor1_DZ = "Survivor2_DZ";
  11. Survivor2_DZ = "Survivor2_DZ";
  12. SurvivorW2_DZ = "SurvivorW2_DZ";
  13. Sniper1_DZ = "Sniper1_DZ";
  14. Camo1_DZ = "Camo1_DZ";
  15. Soldier1_DZ = "Soldier1_DZ";
  16. Rocket_DZ = "Rocket_DZ";
  17.  
  18. ///Player class's
  19. AllPlayers = ["SurvivorW2_DZ","Survivor2_DZ","Sniper1_DZ","Soldier1_DZ","Camo1_DZ","BanditW1_DZ","Bandit1_DZ","Survivor3_DZ"];
  20. DayZ_Male = ["Survivor2_DZ","Sniper1_DZ","Soldier1_DZ","Camo1_DZ","Bandit1_DZ","Survivor3_DZ"];
  21. DayZ_Female = ["SurvivorW2_DZ","BanditW1_DZ"];
  22.  
  23. //Classnames for specific items
  24. MeleeWeapons = ["MeleeHatchet","MeleeCrowbar","MeleeMachete","MeleeBaseball","MeleeBaseBallBat","MeleeBaseBallBatBarbed","MeleeBaseBallBatNails","MeleeFishingPole"];
  25. MeleeMagazines = ["hatchet_swing","crowbar_swing","Machete_swing","Bat_Swing","BatBarbed_Swing","BatNails_Swing","Fishing_Swing"];
  26. //Fishing Tool
  27. Dayz_fishingItems = ["MeleeFishingPole"];
  28. //Plants
  29. Dayz_plants = ["Dayz_Plant1","Dayz_Plant2","Dayz_Plant3"];
  30. //Attachment array - NOt USED
  31. Dayz_attachment_array = ["Attachment_ACG","Attachment_AIM"];
  32. //DayZ_Tents = ["TentStorage","TentStorage0","TentStorage1","TentStorage2","TentStorage3","TentStorage4","DomeTentStorage","DomeTentStorage0","DomeTentStorage1","DomeTentStorage2","DomeTentStorag3","DomeTentStorage4"]
  33. //DayZ_Stashs = ["StashSmall","StashSmall1","StashSmall2","StashSmall3","StashSmall4","StashMedium","StashMedium1","StashMedium2","StashMedium3", "StashMedium4"]
  34. //DayZ_cutter = ["Wire_cat1","Sandbag1_DZ","Fence_DZ","Generator_DZ","Hedgehog_DZ","CamoNet_DZ"]
  35. //Bags
  36. DayZ_Backpacks = ["DZ_Patrol_Pack_EP1","DZ_Assault_Pack_EP1","DZ_Czech_Vest_Puch","DZ_ALICE_Pack_EP1","DZ_TK_Assault_Pack_EP1","DZ_British_ACU","DZ_CivilBackpack_EP1","DZ_Backpack_EP1"];
  37. //Tools used in gutting
  38. Dayz_Gutting = ["ItemKnife","ItemKnife5","ItemKnife4","ItemKnife3","ItemKnife2","ItemKnife1","ItemKnifeBlunt"];
  39. //Dayz fire starters
  40. Dayz_Ignators = ["ItemMatchbox","Item5Matchbox","Item4Matchbox","Item3Matchbox","Item2Matchbox","Item1Matchbox"];
  41. //Dayz FuelCans
  42. DayZ_fuelCans = ["ItemJerrycan","ItemFuelcan"];
  43. //Traps
  44. DayZ_traps = ["Trap_Cans", "TrapTripwireFlare", "TrapBearTrapSmoke", "TrapTripwireGrenade", "TrapTripwireSmoke", "TrapBearTrapFlare"];
  45. //New Zeds
  46. DayZ_ViralZeds = ["z_new_villager2","z_new_villager3","z_new_villager4","z_new_worker2","z_new_worker3","z_new_worker4"];
  47.  
  48. //placed objects
  49. DayZ_SafeObjects = ["Land_Fire_DZ", "TentStorage","TentStorage0","TentStorage1","TentStorage2","TentStorage3","TentStorage4","StashSmall","StashSmall1","StashSmall2","StashSmall3","StashSmall4","StashMedium","StashMedium1","StashMedium2","StashMedium3", "StashMedium4", "Wire_cat1", "Sandbag1_DZ", "Fence_DZ", "Generator_DZ", "Hedgehog_DZ", "BearTrap_DZ", "DomeTentStorage", "DomeTentStorage0", "DomeTentStorage1", "DomeTentStorage2", "DomeTentStorag3", "DomeTentStorage4", "CamoNet_DZ", "Trap_Cans", "TrapTripwireFlare", "TrapBearTrapSmoke", "TrapTripwireGrenade", "TrapTripwireSmoke", "TrapBearTrapFlare"];
  50.  
  51. //objects with gear menus
  52. DayZ_GearedObjects = ["Car", "Helicopter", "Motorcycle", "Ship", "TentStorage_base", "StashSmall_base", "StashMedium_base", "DomeTentStorage_base"];
  53.  
  54. //Dayz achievements
  55. dayz_playerAchievements = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
  56.  
  57. //Cooking
  58. Dayz_meatraw = [
  59. "FoodSteakRaw",
  60. "FoodmeatRaw",
  61. "FoodbeefRaw",
  62. "FoodmuttonRaw",
  63. "FoodchickenRaw",
  64. "FoodrabbitRaw",
  65. "FoodbaconRaw",
  66. "FoodgoatRaw",
  67. "FishRawTrout",
  68. "FishRawSeaBass",
  69. "FishRawTuna"
  70. ];
  71. Dayz_meatcooked = [
  72. "FoodSteakCooked",
  73. "FoodmeatCooked",
  74. "FoodbeefCooked",
  75. "FoodmuttonCooked",
  76. "FoodchickenCooked",
  77. "FoodrabbitCooked",
  78. "FoodbaconCooked",
  79. "FoodgoatCooked",
  80. "FishCookedTrout",
  81. "FishCookedSeaBass",
  82. "FishCookedTuna"
  83. ];
  84.  
  85. //Eating
  86. no_output_food = [
  87. "FoodMRE",
  88. "FoodPistachio",
  89. "FoodNutmix",
  90. "FoodCandyAnders",
  91. "FoodCandyLegacys",
  92. "FoodCandyMintception"
  93. ]+Dayz_meatcooked+Dayz_meatraw;
  94.  
  95. food_with_output=[
  96. "FoodCanBakedBeans",
  97. "FoodCanSardines",
  98. "FoodCanFrankBeans",
  99. "FoodCanPasta",
  100. "FoodCanGriff",
  101. "FoodCanBadguy",
  102. "FoodCanBoneboy",
  103. "FoodCanCorn",
  104. "FoodCanCurgon",
  105. "FoodCanDemon",
  106. "FoodCanFraggleos",
  107. "FoodCanHerpy",
  108. "FoodCanDerpy",
  109. "FoodCanOrlok",
  110. "FoodCanPowell",
  111. "FoodCanTylers",
  112. "FoodCanUnlabeled",
  113. "FoodCanRusUnlabeled",
  114. "FoodCanRusPork",
  115. "FoodCanRusPeas",
  116. "FoodCanRusMilk",
  117. "FoodCanRusCorn",
  118. "FoodCanRusStew",
  119. "FoodChipsSulahoops",
  120. "FoodChipsMysticales"
  121. ];
  122.  
  123. food_output = [
  124. "FoodCanUnlabeledEmpty",
  125. "FoodCanUnlabeledEmpty",
  126. "FoodCanUnlabeledEmpty",
  127. "FoodCanUnlabeledEmpty",
  128. "FoodCanGriffEmpty",
  129. "FoodCanBadguyEmpty",
  130. "FoodCanBoneboyEmpty",
  131. "FoodCanCornEmpty",
  132. "FoodCanCurgonEmpty",
  133. "FoodCanDemonEmpty",
  134. "FoodCanFraggleosEmpty",
  135. "FoodCanHerpyEmpty",
  136. "FoodCanDerpyEmpty",
  137. "FoodCanOrlokEmpty",
  138. "FoodCanPowellEmpty",
  139. "FoodCanTylersEmpty",
  140. "FoodCanUnlabeledEmpty",
  141. "FoodCanRusUnlabeledEmpty",
  142. "FoodCanRusPorkEmpty",
  143. "FoodCanRusPeasEmpty",
  144. "FoodCanRusMilkEmpty",
  145. "FoodCanRusCornEmpty",
  146. "FoodCanRusStewEmpty",
  147. "FoodChipsSulahoopsEmpty",
  148. "FoodChipsMysticalesEmpty"
  149. ];
  150. //Drinking
  151. no_output_drink = ["ItemWaterbottle", "ItemWaterbottleBoiled", "ItemWaterBottleInfected"];
  152.  
  153. drink_with_output = [
  154. "ItemSoda", //just to define item for ItemSodaEmpty
  155. "ItemSodaCoke",
  156. "ItemSodaPepsi",
  157. "ItemSodaMdew",
  158. "ItemSodaMtngreen",
  159. "ItemSodaR4z0r",
  160. "ItemSodaClays",
  161. "ItemSodaSmasht",
  162. "ItemSodaDrwaste",
  163. "ItemSodaLemonade",
  164. "ItemSodaLvg",
  165. "ItemSodaMzly",
  166. "ItemSodaRabbit"
  167. ];
  168. drink_output = [
  169. "ItemSodaEmpty",
  170. "ItemSodaCokeEmpty",
  171. "ItemSodaPepsiEmpty",
  172. "ItemSodaMdewEmpty",
  173. "ItemSodaMtngreenEmpty",
  174. "ItemSodaR4z0rEmpty",
  175. "ItemSodaClaysEmpty",
  176. "ItemSodaSmashtEmpty",
  177. "ItemSodaDrwasteEmpty",
  178. "ItemSodaLemonadeEmpty",
  179. "ItemSodaLvgEmpty",
  180. "ItemSodaMzlyEmpty",
  181. "ItemSodaRabbitEmpty"
  182. ];
  183. boil_tin_cans = [
  184. "TrashTinCan",
  185. "FoodCanGriffEmpty",
  186. "FoodCanBadguyEmpty",
  187. "FoodCanBoneboyEmpty",
  188. "FoodCanCornEmpty",
  189. "FoodCanCurgonEmpty",
  190. "FoodCanDemonEmpty",
  191. "FoodCanFraggleosEmpty",
  192. "FoodCanHerpyEmpty",
  193. "FoodCanDerpyEmpty",
  194. "FoodCanOrlokEmpty",
  195. "FoodCanPowellEmpty",
  196. "FoodCanTylersEmpty",
  197. "FoodCanUnlabeledEmpty",
  198. "FoodCanRusUnlabeledEmpty",
  199. "FoodCanRusStewEmpty",
  200. "FoodCanRusPorkEmpty",
  201. "FoodCanRusPeasEmpty",
  202. "FoodCanRusMilkEmpty",
  203. "FoodCanRusCornEmpty",
  204. "ItemSodaEmpty",
  205. "ItemSodaCokeEmpty",
  206. "ItemSodaPepsiEmpty",
  207. "ItemSodaMdewEmpty",
  208. "ItemSodaMtngreenEmpty",
  209. "ItemSodaR4z0rEmpty",
  210. "ItemSodaClaysEmpty",
  211. "ItemSodaSmashtEmpty",
  212. "ItemSodaDrwasteEmpty",
  213. "ItemSodaLemonadeEmpty",
  214. "ItemSodaLvgEmpty",
  215. "ItemSodaMzlyEmpty",
  216. "ItemSodaRabbitEmpty"
  217. ];
  218.  
  219. canPickup = false;
  220. pickupInit = false;
  221.  
  222. //Hunting Variables
  223. dayZ_partClasses = [
  224. "PartFueltank",
  225. "PartWheel",
  226. //"PartGeneric", //No need to add, it is default for everything
  227. "PartEngine"
  228. ];
  229. dayZ_explosiveParts = [
  230. "palivo",
  231. "motor"
  232. ];
  233. //Survival Variables
  234. SleepFood = 2160; //minutes (48 hours)
  235. SleepWater = 1440; //minutes (24 hours)
  236. SleepTemperatur = 90 / 100; //Firs Value = Minutes untill Player reaches the coldest Point at night (without other effects! night factor expected to be -1) //TeeChange
  237.  
  238. //Server Variables
  239. allowConnection = false;
  240. dayz_serverObjectMonitor = [];
  241.  
  242. //Streaming Variables (player only)
  243. dayz_Locations = [];
  244. dayz_locationsActive = [];
  245.  
  246. //GUI
  247. Dayz_GUI_R = 0.38; // 0.7 .38
  248. Dayz_GUI_G = 0.63; // -0.63
  249. Dayz_GUI_B = 0.26; // -0.26
  250.  
  251. //actions blockers
  252. a_player_cooking = false;
  253. a_player_boil = false;
  254. a_player_jerryfilling = false;
  255. a_player_repairing = false;
  256.  
  257. //Player self-action handles
  258. dayz_resetSelfActions = {
  259. s_player_equip_carry = -1;
  260. s_player_dragbody = -1;
  261. s_player_fire = -1;
  262. s_player_cook = -1;
  263. s_player_boil = -1;
  264. s_player_fireout = -1;
  265. s_player_butcher = -1;
  266. s_player_packtent = -1;
  267. s_player_packtentinfected = -1;
  268. s_player_fillwater = -1;
  269. s_player_fillwater2 = -1;
  270. s_player_fillfuel = -1;
  271. s_player_grabflare = -1;
  272. s_player_removeflare = -1;
  273. s_player_painkiller = -1;
  274. s_player_studybody = -1;
  275. s_build_Sandbag1_DZ = -1;
  276. s_build_Hedgehog_DZ = -1;
  277. s_build_Wire_cat1 = -1;
  278. s_player_deleteBuild = -1;
  279. //s_player_forceSave = -1;
  280. s_player_flipveh = -1;
  281. s_player_stats = -1;
  282. s_player_sleep = -1;
  283. s_player_fillfuel20 = -1;
  284. s_player_fillfuel5 = -1;
  285. s_player_siphonfuel = -1;
  286. s_player_repair_crtl = -1;
  287. s_player_fishing = -1;
  288. s_player_fishing_veh = -1;
  289. s_player_Drinkfromhands = -1;
  290. s_player_gather = -1;
  291. s_player_debugCheck = -1;
  292. s_player_destorytent = -1;
  293. s_player_attach_bomb = -1;
  294. s_player_upgradestroage = -1;
  295. };
  296. call dayz_resetSelfActions;
  297.  
  298. //Engineering variables
  299. s_player_lastTarget = objNull;
  300. s_player_repairActions = [];
  301.  
  302. //for carry slot since determining mouse pos doesn't work right
  303. mouseOverCarry = false;
  304.  
  305. //Initialize Medical Variables
  306. force_dropBody = false;
  307. r_interrupt = false;
  308. r_doLoop = false;
  309. r_self = false;
  310. r_self_actions = [];
  311. r_drag_sqf = false;
  312. r_action = false;
  313. r_action_unload = false;
  314. r_player_handler = false;
  315. r_player_handler1 = false;
  316. r_player_dead = false;
  317. r_player_unconscious = false;
  318. r_player_infected = false;
  319. //infection from hits
  320. r_player_Sepsis = [false, 0];
  321. r_player_injured = false;
  322. r_player_inpain = false;
  323. r_player_loaded = false;
  324. r_player_cardiac = false;
  325. r_fracture_legs = false;
  326. r_fracture_arms = false;
  327. r_player_vehicle = player;
  328. r_player_blood = 12000;
  329. //Blood Regen
  330. r_player_bloodregen = 0;
  331. //Blood Gain Per Sec
  332. r_player_bloodgainpersec = 0;
  333. //Blood Loss Per Sec
  334. r_player_bloodlosspersec = 0;
  335. //Blood Per Sec (gain - loss)
  336. r_player_bloodpersec = 0;
  337. //blood pools
  338. r_player_bloodpools = [];
  339. //Food Stack
  340. r_player_foodstack = 1;
  341. //player skill
  342. r_player_lowblood = false;
  343. r_player_timeout = 0;
  344. r_player_bloodTotal = r_player_blood;
  345. r_public_blood = r_player_blood;
  346. r_player_bloodDanger = r_player_bloodTotal * 0.2;
  347. r_player_actions = [];
  348. r_handlerCount = 0;
  349. r_action_repair = false;
  350. r_action_targets = [];
  351. r_pitchWhine = false;
  352. r_isBandit = false;
  353. dayz_DisplayGenderSelect = true;
  354. //blood test vars
  355. r_A_watered = false;
  356. r_B_watered = false;
  357. r_D_watered = false;
  358. r_control_watered = false;
  359. r_canClick_resultsCard = false;
  360. r_resultsCard_Clicked = false;
  361. r_water_clicked = false;
  362. r_needleclicked = 0;
  363. r_needleReset = false;
  364. r_control_done = false;
  365. r_antiA_done = false;
  366. r_antiB_done = false;
  367. r_antiD_done = false;
  368. carryClick = false;
  369.  
  370. //INT Nutrition Info
  371. r_player_Nutrition = [0]; //[Calories]
  372. r_player_nutritionMuilpty = 2;
  373.  
  374. //count actions
  375. r_action_count = 0;
  376.  
  377. //ammo routine
  378. r_player_actions2 = [];
  379. r_action2 = false;
  380. r_player_lastVehicle = objNull;
  381. r_player_lastSeat = [];
  382. r_player_removeActions2 = {
  383. if (!isNull r_player_lastVehicle) then {
  384. {
  385. r_player_lastVehicle removeAction _x;
  386. } forEach r_player_actions2;
  387. r_player_actions2 = [];
  388. r_action2 = false;
  389. };
  390. };
  391.  
  392. USEC_woundHit = [ // limbs hit given by arma engine when fnc_usec_damageHandler is called
  393. "",
  394. "body",
  395. "hands",
  396. "legs",
  397. "head_hit"
  398. ];
  399. DAYZ_woundHit = [
  400. [
  401. "body",
  402. "hands",
  403. "legs",
  404. "head_hit"
  405. ],
  406. [ 0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,2,2,3]
  407. ];
  408. DAYZ_woundHit_ok = [
  409. [
  410. "body",
  411. "hands",
  412. "legs"
  413. ],
  414. [0,0,0,0,0,1,1,1,2,2]
  415. ];
  416. USEC_MinorWounds = [
  417. "hands",
  418. "legs"
  419. ];
  420. USEC_woundPoint = [ // translation table USEC_woundHit -> SV suffixes
  421. ["Pelvis","aimpoint"],
  422. ["aimpoint"], //,"RightShoulder","LeftShoulder"
  423. ["lelbow","relbow"],
  424. ["RightFoot","LeftFoot"],
  425. ["neck","pilot"]
  426. ];
  427. USEC_typeOfWounds = [ // used by player_sumMedical, should contains all limbs described in USEC_woundPoint. These limbs statuses are saved by server_playerSync in HIVE if they are bleeding (medical select 8)
  428. "Pelvis",
  429. "aimpoint",
  430. "lelbow","relbow",
  431. "RightFoot","LeftFoot",
  432. "neck","pilot"
  433. ];
  434.  
  435. //Initialize Zombie Variables
  436. dayz_zombieTargetList = [
  437. ["SoldierWB",50],
  438. ["Air",500],
  439. ["LandVehicle",200]
  440. ];
  441. PVDZ_obj_Publish = []; //used for eventhandler to spawn a mirror of players tent
  442. PVCDZ_obj_HideBody = objNull;
  443.  
  444. //DayZ settings
  445. dayz_maxAnimals = 5;
  446. dayz_maxPlants = 3;
  447. dayz_animalDistance = 600;
  448. dayz_plantDistance = 600;
  449.  
  450. dayz_maxMaxModels = 80; // max quantity of Man models (player or Z, dead or 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
  451. dayz_spawnArea = 20000; // radius around player where we can spawn loot & Z
  452. dayz_cantseeDist = 150; // distance from which we can spawn a Z in front of any player without ray-tracing and angle checks
  453. dayz_cantseefov = 70; // half player field-of-view. Visible Z won't be spawned in front of any near players
  454. dayz_canDelete = 300; // Z, further than this distance from its "owner", will be deleted
  455.  
  456. if(isNil "dayz_serversideloot") then {
  457. dayz_serversideloot = false; //enables server side loot spawning.
  458. };
  459. if(isNil "dayz_POIs") then {
  460. dayz_POIs = true; //Enable POI's
  461. };
  462. if(isNil "dayz_ForcefullmoonNights") then {
  463. dayz_ForcefullmoonNights = false; //force full moon nights.
  464. };
  465. if(isNil "dayz_infectiouswaterholes") then {
  466. dayz_infectiouswaterholes = true; //Enable infected waterholes
  467. };
  468.  
  469. if(isNil "dayz_quickSwitch") then {
  470. dayz_quickSwitch = false; //Enable quick weapon switch,
  471. };
  472.  
  473. if(isNil "dayz_bleedingeffect") then {
  474. dayz_bleedingeffect = 3;
  475. };//dayz_bleedingeffect = 3; //1= blood on the ground, 2= partical effect, 3 = both.
  476.  
  477. //init global arrays for Loot Chances
  478. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\loot_init.sqf";
  479.  
  480. //start achievements_init
  481. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\achievements_init.sqf";
  482.  
  483. if(isServer) then {
  484. dayz_players = [];
  485. dead_bodyCleanup = [];
  486. needUpdate_objects = [];
  487. Server_InfectedCamps = [];
  488. //dayz_spawnCrashSite_clutterCutter=0; // helicrash spawn... 0: loot hidden in grass, 1: loot lifted, 2: no grass
  489. //dayz_spawnInfectedSite_clutterCutter=0; // infected base spawn... 0: loot hidden in grass, 1: loot lifted, 2: no grass
  490. dayz_traps = [];
  491. dayz_traps_active = [];
  492. dayz_traps_trigger = [];
  493. //Objects to remove when killed.
  494. DayZ_removableObjects = ["Wire_cat1", "Sandbag1_DZ", "Hedgehog_DZ", "CamoNet_DZ", "Trap_Cans", "TrapTripwireFlare", "TrapBearTrapSmoke", "TrapTripwireGrenade", "TrapTripwireSmoke", "TrapBearTrapFlare"];
  495. //[10416.695, 4198.4634],[7982.2563, 1419.8256],[10795.93, 1419.8263],[7966.083, 4088.7463],[9259.7266, 2746.1985],[5200.5234, 3915.3274],[6494.1665, 2572.7798],[5216.6968, 1246.407],[2564.7244, 3915.3296],[3858.3674, 2572.782],[2580.8977, 1246.4092],[13398.995, 4400.5874],[12242.025, 2948.3196],[13551.842, 1832.2257],[14870.512, 3009.5117],[-178.19415, 1062.4478],[1099.2754, 2388.8206],[-194.36755, 3731.3679],[10394.215, 8322.1719],[7959.7759, 5543.5342],[10773.449, 5543.5342],
  496. dayz_grid =[[7943.6025, 8212.4551],[9237.2461, 6869.9063],[5178.043, 8039.0361],[6471.686, 6696.4883],[5194.2163, 5370.1152],[2542.2439, 8039.0381],[3835.887, 6696.4902],[2558.4172, 5370.1172],[13376.514, 8524.2969],[12219.544, 7072.0273],[13529.361, 5955.9336],[14848.032, 7133.2197],[-200.67474, 5186.1563],[1076.7949, 6512.5283],[-216.84814, 7855.0771],[10293.751, 12197.736],[7859.312, 9419.0996],[10672.988, 9419.0996],[7843.1387, 12088.021],[9136.7822, 10745.474],[5077.5791, 11914.601],[6371.2222, 10572.052],[5093.7524, 9245.6816],[2441.78, 11914.604],[3735.4231, 10572.055],[2457.9534, 9245.6816],[13276.053, 12399.861],[12119.08, 10947.596],[13428.897, 9831.501],[14747.566, 11008.786],[-301.13867, 9061.7207],[976.33112, 10388.096],[-317.31201, 11730.642],[10271.271, 16321.429],[7836.8315, 13542.813],[10650.506, 13542.813],[7820.6582, 16211.718],[9114.3018, 14869.175],[5055.0986, 16038.3],[6348.7417, 14695.758],[5071.272, 13369.392],[2419.2996, 16038.305],[3712.9426, 14695.76],[2435.4729, 13369.392],[13253.568, 16523.553],[12096.6, 15071.295],[13406.416, 13955.209],[14725.089, 15132.486],[-323.61914, 13185.43],[953.85059, 14511.8],[-339.79248, 15854.346]];
  497. dayz_gridsActive = [];
  498. dayz_seedloot = [];
  499. dayz_deseedloot = [];
  500. dayz_ghostPlayers = [];
  501. dayz_activePlayers = [];
  502. dayz_died = [];
  503. };
  504.  
  505. if(!isDedicated) then {
  506. //Establish Location Streaming
  507. _funcGetLocation =
  508. {
  509. dayz_Locations = [];
  510. for "_i" from 0 to ((count _this) - 1) do
  511. {
  512. private ["_location","_config","_locHdr","_position","_size","_type"];
  513. //Get Location Data from config
  514. _config = (_this select _i);
  515. _position = getArray (_config >> "position");
  516. _locHdr = configName _config;
  517. _size = getNumber (_config >> "size");
  518. dayz_Locations set [count dayz_Locations, [_position,_locHdr,_size]];
  519. };
  520. };
  521. _cfgLocation = configFile >> "CfgTownGeneratorChernarus";
  522. _cfgLocation call _funcGetLocation;
  523.  
  524. _funcGetGrid =
  525. {
  526. dayz_GridSystem = [];
  527. for "_i" from 0 to ((count _this) - 1) do
  528. {
  529. private ["_location","_config","_locHdr","_position","_size","_type"];
  530. _config = (_this select _i);
  531. _position = getArray (_config >> "position");
  532. _locHdr = configName _config;
  533. _size = getNumber (_config >> "size");
  534. dayz_GridSystem set [count dayz_GridSystem, [_position,_locHdr,_size]];
  535. };
  536. };
  537. _cfggrid = configFile >> "CfgGrid";
  538. _cfggrid call _funcGetGrid;
  539.  
  540. dayz_buildingMonitor = []; //Buildings to check
  541. dayz_bodyMonitor = [];
  542. dayz_flyMonitor = []; //used for monitor flies
  543. dayz_zedMonitor = [];
  544. dayz_buildingBubbleMonitor = [];
  545. dayz_gridsActive = [];
  546.  
  547. dayz_baseTypes = getArray (configFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
  548.  
  549. //temperature variables
  550. dayz_temperatur = 36; //TeeChange
  551. dayz_temperaturnormal = 36; //TeeChange
  552. dayz_temperaturmax = 42; //TeeChange
  553. dayz_temperaturmin = 27; //TeeChange
  554.  
  555. //player special variables
  556. dayZ_lastPlayerUpdate = 0;
  557. dayz_hunger = 0;
  558. dayz_thirst = 0;
  559. dayz_nutrition = 0;
  560. dayz_preloadFinished = true;
  561. dayz_statusArray = [1,1];
  562. dayz_disAudial = 0;
  563. dayz_disVisual = 0;
  564. dayz_firedCooldown = 0;
  565. dayz_damageCounter = time;
  566. dayz_lastSave = time;
  567. dayz_isSwimming = true;
  568. dayz_currentDay = 0;
  569. dayz_hasLight = false;
  570. dayz_surfaceNoise = 0;
  571. dayz_surfaceType = "None";
  572. dayz_noPenalty = [];
  573. dayz_heavenCooldown = 0;
  574. deathHandled = false;
  575. dayz_firstGroup = group player;
  576. dayz_originalPlayer = player;
  577. dayz_playerName = "Unknown";
  578. dayz_sourceBleeding = objNull;
  579. dayz_clientPreload = false;
  580. dayz_authed = false;
  581. dayz_panicCooldown = 0;
  582. dayz_areaAffect = 3.5;
  583. dayz_monitorPeriod = 0.6; // number of seconds between each player_zombieCheck calls
  584. dayz_heartBeat = false;
  585. //Current local
  586. dayz_spawnZombies = 0;
  587. dayz_swarmSpawnZombies = 0;
  588. //Max local
  589. dayz_maxLocalZombies = 20; // max quantity of Z controlled by local gameclient, used by player_spawnCheck. Below this limit we can spawn Z
  590. //Current NearBy
  591. dayz_CurrentNearByZombies = 0;
  592. //Max NearBy
  593. dayz_maxNearByZombies = 20; // max quantity of Z controlled by local gameclient, used by player_spawnCheck. Below this limit we can spawn Z
  594. //Current total
  595. dayz_currentGlobalZombies = 0;
  596. //Max global zeds.
  597. dayz_maxGlobalZeds = 3000;
  598. //Animals
  599. dayz_currentGlobalAnimals = 0;
  600. dayz_maxGlobalAnimals = 100;
  601. //Plnats
  602. dayz_currentGlobalPlants = 0;
  603. dayz_maxGlobalPlants = 100;
  604. //Loot
  605. r_player_divideinvehicle = 0;
  606. dayz_tickTimeOffset = 0;
  607. dayz_currentWeaponHolders = 0;
  608. dayz_maxMaxWeaponHolders = 9000;
  609. dayz_inVehicle = false;
  610. dayzGearSave = false;
  611. dayz_unsaved = false;
  612. dayz_scaleLight = 0;
  613. dayzDebug = false;
  614. dayzState = -1;
  615. dayz_onBack = "";
  616. dayz_onBackActive = false;
  617. dayz_fishingInprogress = false;
  618. dayz_siphonFuelInProgress = false;
  619. dayz_salvageInProgress = false;
  620. lastSpawned = diag_tickTime;
  621. lastSepsis = 0;
  622. //uiNamespace setVariable ['DAYZ_GUI_display',displayNull];
  623. //if (uiNamespace getVariable ['DZ_displayUI', 0] == 2) then {
  624. // dayzDebug = true;
  625. //};
  626. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement