Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2015
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 123.27 KB | None | 0 0
  1. _puid = _this select 0;_name = _this select 1;
  2. j2U0I552k258U552i9o1I7u3o = true;
  3. diag_log (format['infiSTAR.de - randvar1 created randvar27a (%1)',time]);
  4. [] spawn {
  5. _version = productVersion select 3;
  6. if(_version < 103718) then
  7. {
  8. uiSleep 3;
  9. _log1 = format['BadVersion: %1 - install newer arma2oa beta!',_version];
  10. hint _log1;
  11. cutText [_log1,'PLAIN DOWN'];
  12. uiSleep 5;
  13. call v2p7J0i4Z4A2k9v6k558Z;
  14. _log2 = format['BadVersion: %1 (has to be a newer arma2oa beta - disconnected)',_version];
  15. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  16. [_name,getPlayerUID player,'SLOG',toArray (_log2)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  17. };
  18. };
  19. if !(_puid in ["76561198031499135","76561198004111275","76561198052866101","76561197960280023","76561198145620376","76561198152111329","76561198031499135","76561198004111275","76561198052866101","76561198084854983","76561197960280023","76561198072359932","76561198115029610","76561198145620376","76561197970619017","76561198147383455","76561197961261313","76561197967539931","76561198019865758","76561198071370946","76561198039983273","76561198028959735","76561198057394584","76561198012767651","76561197983388281","76561198033588007"]) then
  20. {
  21. [_name,_puid] spawn {
  22. _name = _this select 0;_puid = _this select 1;
  23. _dayz_spaceInterrupt = dayz_spaceInterrupt;
  24. disableSerialization;
  25. [_name,_puid] spawn {
  26. _name = _this select 0;_puid = _this select 1;
  27. sleep 25;
  28. if(isNil 'd5A5R4f454p1I1Q3k1v5t9A') then {
  29. (findDisplay 46) closeDisplay 0;
  30. _log = 'Menu Checks are broken!';
  31. [_name,_puid,'SLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  32. };
  33. };
  34. uiNamespace setVariable ['RscDisplayRemoteMissions',nil];
  35. while {1 == 1} do
  36. {
  37. _btnAbort = (findDisplay 49) displayCtrl 104;
  38. _btnAbortTXT = toLower (ctrlText _btnAbort);
  39. _btnAbortTXTA = toArray _btnAbortTXT;
  40. _btnAbortTXTA resize 8;
  41. _btnAbortTXTA;
  42. _btnAbortTXT = toString _btnAbortTXTA;
  43. if(_btnAbortTXT in ['jay menu']) then
  44. {
  45. call v2p7J0i4Z4A2k9v6k558Z;
  46. _log = 'naughty little kid.. no chocolate for you! (Jay Menu detected)';
  47. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  48. };
  49.  
  50. if(true) then
  51. {
  52. _map = ((findDisplay 12) displayCtrl 51);
  53. {_map ctrlRemoveAllEventHandlers _x;} forEach ['onMouseButtonDblClick','MouseButtonClick','MouseButtonDown','MouseButtonUp','Draw','MouseMoving'];
  54. {
  55. if !(isNull (findDisplay _x)) then
  56. {
  57. (findDisplay _x) displayRemoveAllEventHandlers 'MouseZChanged';
  58. (findDisplay _x) displayRemoveAllEventHandlers 'MouseMoving';
  59. (findDisplay _x) displayRemoveAllEventHandlers 'mouseholding';
  60. if !(_x in [-1,106]) then
  61. {
  62. (findDisplay _x) displayRemoveAllEventHandlers 'MouseButtonDown';
  63. (findDisplay _x) displayRemoveAllEventHandlers 'MouseButtonUp';
  64. };
  65. (findDisplay _x) displayRemoveAllEventHandlers 'KeyDown';
  66. (findDisplay _x) displayRemoveAllEventHandlers 'KeyUp';
  67. (findDisplay _x) displayAddEventHandler ['KeyUp','_this call q8v6A8Q7t2u3t6U7p5R6Q'];
  68. };
  69. } forEach [-1,12,18,49,106,129];
  70. _display46 = (findDisplay 46);
  71. if(!isNull _display46) then
  72. {
  73. _display46 displayRemoveAllEventHandlers 'MouseButtonDown';
  74. _display46 displayRemoveAllEventHandlers 'MouseButtonUp';
  75. _display46 displayRemoveAllEventHandlers 'MouseZChanged';
  76. _display46 displayRemoveAllEventHandlers 'KeyUp';
  77. _display46 displayAddEventHandler ['KeyUp','_this call q8v6A8Q7t2u3t6U7p5R6Q'];
  78. _pos = getPos player;
  79. _posZ = _pos select 2;
  80. _veh = vehicle player;
  81. if((_posZ < 15) || (_veh != player)) then
  82. {
  83. if(!(_veh isKindOf 'ParachuteBase') && !(_veh isKindOf 'BIS_Steerable_Parachute')) then
  84. {
  85. _display46 displayRemoveAllEventHandlers 'mousemoving';
  86. _display46 displayRemoveAllEventHandlers 'mouseholding';
  87. _display46 displayRemoveAllEventHandlers 'KeyDown';
  88. dayz_spaceInterruptq8v6A8Q7t2u3t6U7p5R6Q = _dayz_spaceInterrupt;
  89. _display46 displayAddEventHandler ['KeyDown','_this call dayz_spaceInterruptq8v6A8Q7t2u3t6U7p5R6Q'];
  90. };
  91. };
  92. };
  93. }
  94. else
  95. {
  96. _display46 = (findDisplay 46);
  97. if(!isNull _display46) then
  98. {
  99. _display46 displayRemoveAllEventHandlers 'KeyUp';
  100. _display46 displayAddEventHandler ['KeyUp','_this call q8v6A8Q7t2u3t6U7p5R6Q'];
  101. };
  102. };
  103. _cc1 = uiNamespace getVariable 'RscDisplayRemoteMissions';
  104. if(!isNil '_cc1') then
  105. {
  106. if(_cc1 != '<null>') then
  107. {
  108. _log = format['MenuBasedHack_RscDisplayRemoteMissions: %1',_cc1];
  109. call v2p7J0i4Z4A2k9v6k558Z;
  110. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  111. };
  112. };
  113. if(!isNull ((findDisplay 64) displayCtrl 101)) then
  114. {
  115. call v2p7J0i4Z4A2k9v6k558Z;
  116. [_name,_puid,'BAN',toArray ('Active Menu: 64 ctrl 101')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  117. };
  118. if(!isNull ((findDisplay 49) displayCtrl 0)) then
  119. {
  120. call v2p7J0i4Z4A2k9v6k558Z;
  121. [_name,_puid,'BAN',toArray ('Active Menu: 49 ctrl 0')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  122. };
  123. if( (lbSelection ((findDisplay 12) displayCtrl 1001)) select 0 == 1 && ((lbSize ((findDisplay 12) displayCtrl 1002)) > 2 )) then
  124. {
  125. call v2p7J0i4Z4A2k9v6k558Z;
  126. [_name,_puid,'BAN',toArray ('YOLO Menu')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  127. };
  128. if(!isNull (findDisplay 420420)) then
  129. {
  130. _state = true;
  131. {
  132. if((!isNull _x) && (alive _x) && (getPlayerUID _x == '') && !(_x isKindOf 'zZombie_Base') && !(_x isKindOf 'CAAnimalBase')) exitWith
  133. {
  134. _state = false;
  135. };
  136. } forEach (player nearEntities ['Man',5]);
  137. if(_state) then
  138. {
  139. (findDisplay 420420) closeDisplay 0;
  140. closeDialog 0;closeDialog 0;closeDialog 0;
  141. };
  142. };
  143. if(!isNull (findDisplay 41144)) then
  144. {
  145. _stateD = false;
  146. _stateV = false;
  147. if(isNil 'dayz_selectedDoor') then {_stateD = true;} else {if(isNull dayz_selectedDoor) then {_stateD = true;};};
  148. if(isNil 'dayz_selectedVault') then {_stateV = true;} else {if(isNull dayz_selectedVault) then {_stateV = true;};};
  149. if((_stateD) && (_stateV)) then
  150. {
  151. (findDisplay 41144) closeDisplay 0;
  152. closeDialog 0;closeDialog 0;closeDialog 0;
  153. };
  154. };
  155. if(!isNull (findDisplay 148)) then
  156. {
  157. if((lbSize 104)-1 > 3) then
  158. {
  159. call v2p7J0i4Z4A2k9v6k558Z;
  160. _log = 'MenuBasedHack_MenuBasedHack_RscDisplayConfigureControllers';
  161. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  162. };
  163. };
  164. if(lbSize 109 > 2) then
  165. {
  166. call v2p7J0i4Z4A2k9v6k558Z;
  167. _log = format['bad lbSize 109 - %1',lbSize 109];
  168. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  169. };
  170. _fbd = 'no';{if(!isNull (findDisplay _x)) exitWith {_fbd = str _x;};} forEach [17,64,155,156,162,1001,2929,3030,125,69,19,71,45,132,32,165,157,2727,30,9899,0110,110];
  171. if(_fbd != 'no') then
  172. {
  173. call v2p7J0i4Z4A2k9v6k558Z;
  174. _log = format['Active Menu: %1',_fbd];
  175. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  176. };
  177. {if(!isNull (findDisplay _x)) then {(findDisplay _x) closeDisplay 0;closeDialog 0;};} forEach [148];
  178. uiSleep 0.01;
  179. if(true) then
  180. {
  181. _break = true;
  182. _ALLOWED_Dialogs = [-1,106,2200,6900,6901,6902,6903,420420,41144,420000,420001,420002,420003,420004,420005,81000,20001,20002,20003,20004,20005,20006,118338,118339,711197];
  183. for '_d' from 0 to (count _ALLOWED_Dialogs) - 1 do
  184. {
  185. _id = _ALLOWED_Dialogs select _d;
  186. if(!isNull (findDisplay _id)) exitWith {_break = false;};
  187. };
  188. if((_break) && !(ctrlEnabled 1900)) then
  189. {
  190. closeDialog 0;closeDialog 0;closeDialog 0;
  191. }
  192. else
  193. {
  194. if(!isNull (findDisplay 106)) then
  195. {
  196. if(!(ctrlEnabled 6902) && (lbSize ((findDisplay 106) displayCtrl 105) < 1)) then
  197. {
  198. closeDialog 0;closeDialog 0;closeDialog 0;
  199. };
  200. };
  201. };
  202.  
  203. _display = findDisplay 106;
  204. if(!isNull _display) then
  205. {
  206. _chck = _display displayCtrl 101;
  207. _txt = ctrlText _chck;
  208. _txtA = toArray _txt;
  209. _cntA = count _txtA;
  210. if(_cntA < 3) then
  211. {
  212. closeDialog 0;
  213. for '_close' from 0 to 25 do {uiSleep 0.1;closeDialog 0;};
  214. _log = format['Gear Menu: %1',_txt];
  215. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  216. };
  217. for '_y' from -10 to 8888 do
  218. {
  219. if !(_y in [0,8,12,18,46,70,106,2200]) then
  220. {
  221. if(!isNull (findDisplay _y)) then
  222. {
  223. closeDialog 0;
  224. for '_close' from 0 to 25 do {uiSleep 0.1;closeDialog 0;};
  225. if(_y in [843]) then
  226. {
  227. call v2p7J0i4Z4A2k9v6k558Z;
  228. };
  229. };
  230. };
  231. };
  232. };
  233. };
  234. uiSleep 0.3;
  235. if(true) then
  236. {
  237. buttonSetAction [12004,'[(lbCurSel 12001)] call TraderDialogBuy;((ctrlParent (_this select 0)) closeDisplay 9000);'];
  238. buttonSetAction [12005,'[(lbCurSel 12001)] call TraderDialogSell;((ctrlParent (_this select 0)) closeDisplay 9000);'];
  239. };
  240. buttonSetAction [104,''];
  241. d5A5R4f454p1I1Q3k1v5t9A = true;
  242. };
  243. };
  244. [_name,_puid] spawn {
  245. _name = _this select 0;_puid = _this select 1;
  246. player_weaponFiredNearv1p3I4I3f5U2f5m7J9i = player_weaponFiredNear;
  247. rdhv1p3I4I3f5U2f5m7J9i = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_damageHandler.sqf';
  248. checkdamagev1p3I4I3f5U2f5m7J9i =
  249. {
  250. private['_damage'];
  251. _damage = _this select 2;
  252.  
  253. if((str fnc_usec_damageHandler == '{}') || (str fnc_usec_damageHandler != str rdhv1p3I4I3f5U2f5m7J9i)) then
  254. {
  255. _state = true;
  256. {
  257. if((!isNull _x) && (alive _x) && (getPlayerUID _x == '') && !(_x isKindOf 'zZombie_Base') && !(_x isKindOf 'CAAnimalBase')) exitWith
  258. {
  259. _state = false;
  260. };
  261. } forEach ((getPos player) nearEntities ['Man',300]);
  262. if(_state) then
  263. {
  264. fnc_usec_damageHandler = rdhv1p3I4I3f5U2f5m7J9i;
  265. };
  266. };
  267. _this call fnc_usec_damageHandler;
  268. if(str fnc_usec_damageHandler != '{}') then
  269. {
  270. if((_damage > 0.4) && (player == vehicle player)) then
  271. {
  272. if(isNil 'DMGv1p3I4I3f5U2f5m7J9i') then
  273. {
  274. DMGv1p3I4I3f5U2f5m7J9i = true;
  275. if(isNil 'r_player_blood') then { r_player_blood = -500; } else { if(typeName r_player_blood != 'SCALAR') then { r_player_blood = -500;YOLO = true; }; };
  276. if(r_player_blood == 12000) then
  277. {
  278. [] spawn {
  279. uiSleep 2;
  280. if(isNil 'r_player_blood') then { r_player_blood = -500; } else { if(typeName r_player_blood != 'SCALAR') then { r_player_blood = -500;YOLO = true; }; };
  281. if(r_player_blood == 12000) then
  282. {
  283. _log = format['No Blood loss! %1',r_player_blood];
  284. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  285. [_name,getPlayerUID player,'SLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  286. if(isNil 'LASTDAMAGESOURCE') then {LASTDAMAGESOURCE = player;} else {if(isNull LASTDAMAGESOURCE) then {LASTDAMAGESOURCE = player;};};
  287. [LASTDAMAGESOURCE,'shotheavy'] spawn player_death;
  288. player setHit['Body',1];
  289. };
  290. DMGv1p3I4I3f5U2f5m7J9i = nil;
  291. };
  292. }
  293. else
  294. {
  295. [r_player_blood] spawn {
  296. _tempBlood = _this select 0;
  297. uiSleep 1;
  298. if(isNil 'r_player_blood') then { r_player_blood = -500; } else { if(typeName r_player_blood != 'SCALAR') then { r_player_blood = -500;YOLO = true; }; };
  299. if(((r_player_blood == _tempBlood) || (r_player_blood > _tempBlood)) && (r_player_blood > 3000)) then
  300. {
  301. r_player_blood = r_player_blood - ((random 800) + (random 800) + 500);
  302. _tmp = r_player_blood;
  303. uiSleep 0.5;
  304. if(isNil 'r_player_blood') then { r_player_blood = -500; } else { if(typeName r_player_blood != 'SCALAR') then { r_player_blood = -500;YOLO = true; }; };
  305. if(r_player_blood > _tmp) then
  306. {
  307. _log = format['Blood should be %1 but is %2..',_tmp,r_player_blood];
  308. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  309. [_name,getPlayerUID player,'SLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  310. };
  311. };
  312. DMGv1p3I4I3f5U2f5m7J9i = nil;
  313. };
  314. };
  315. };
  316. };
  317. };
  318. };
  319. fnc_STAR_damageHandlerv1p3I4I3f5U2f5m7J9i =
  320. {
  321. private['_unit','_hit','_damage','_source','_ammo'];
  322. _unit = _this select 0;
  323. _hit = _this select 1;
  324. _damage = _this select 2;
  325. _source = _this select 3;
  326. _ammo = _this select 4;
  327.  
  328.  
  329. if ( (_ammo in ['HelicopterExploSmall','HelicopterExploBig','SmallSecondary']) &&
  330. {
  331. ({damage _x > 0.9} count((getposATL (vehicle _unit)) nearEntities [['Air','LandVehicle','Ship'],15]) == 0) &&
  332. (count nearestObjects [getPosATL (vehicle _unit), ['TrapItems'], 30] == 0)
  333. }
  334. )exitWith{if(player==vehicle player)then{player setVelocity [0,0,0];};0};
  335.  
  336.  
  337. _exit = false;
  338. _exitWith = 0;
  339. if(!isNull _source)then
  340. {
  341. LASTDAMAGESOURCE = _source;
  342. if((vehicle _source) isKindOf 'Tank')exitWith{_exitWith = 1};
  343. if((_damage <= 99) && (_damage > 0.1) && (_source distance player < 1000))exitWith{_exitWith = 1};
  344. if((((_damage > 99) && ((vehicle _source) isKindOf 'Man')) || (_damage > 12000))&&(vehicle _source != vehicle player))exitWith{_exitWith = 0};
  345.  
  346. _sPUID = getPlayerUID _source;
  347. if(_sPUID != '') then
  348. {
  349. _name = 'DEAD';if((alive _source)&&(getPlayerUID _source != '')) then {_name = name _source;};
  350. _sNAME = _name;
  351. _dist = _source distance player;
  352. if((_dist > 5000) && (_damage > 0.2)) then
  353. {
  354. _exit = true;
  355. _exitWith = 0;
  356.  
  357. _dist1 = player distance [-7245.38,19535.4,0];
  358. _dist2 = _source distance [-7245.38,19535.4,0];
  359. if(isNil 'deathHandled') then { deathHandled = true; } else { if(typeName deathHandled != 'BOOL') then { deathHandled = true;YOLO = true; }; };
  360. if((_dist1 > 2500) && (_dist2 > 2500) && (_sPUID != '') && (getPlayerUID player != '') && (alive player) && (!deathHandled)) then
  361. {
  362. _weapon = currentWeapon (vehicle _source);
  363. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  364. _log = format['Hit %1(%2) @%3 from %4 (%5m) with Weapon: %6 (%7 Damage) %8',_name,getPlayerUID player,getPosATL player,getPosATL _source,_dist,_weapon,_damage,_ammo];
  365. [_sNAME,_sPUID,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  366. };
  367. };
  368. };
  369. };
  370. if((_exit)&&(_exitWith==0))exitWith{0};
  371. if((_exit)&&(_exitWith!=0))exitWith{_this call checkdamagev1p3I4I3f5U2f5m7J9i;_damage};
  372.  
  373. _this call checkdamagev1p3I4I3f5U2f5m7J9i;
  374. };
  375. infi_firedv1p3I4I3f5U2f5m7J9i =
  376. {
  377. private['_cwep','_muzzle','_projectile'];
  378. _cwep = _this select 1;
  379. _muzzle = _this select 4;
  380. _projectile = _this select 6;
  381. if((_muzzle isKindOf 'Melee') || (_muzzle isKindOf ('Bol' +'tSteel')) || (_muzzle isKindOf 'WoodenArrow') || (_muzzle isKindOf 'GrenadeHand') || (_muzzle isKindOf 'ThrownObjects') || (_muzzle isKindOf 'RoadFlare') || (_muzzle isKindOf 'ChemLight')) exitWith {};
  382. _cmag = currentMagazine player;
  383. if(!(_cwep in ['','Throw','Flare','Put']) && !(_projectile in ['','PipeBomb']) && (player == vehicle player)) then
  384. {
  385. _cfgmuzzle = getText(configFile >> 'CfgMagazines' >> _cmag >> 'ammo');
  386. if(_muzzle != _cfgmuzzle) then
  387. {
  388. player removeMagazines _cmag;
  389. player removeWeapon _cwep;
  390. };
  391.  
  392. _maxAmmo = getNumber (configFile >> 'CfgMagazines' >> _cmag >> 'count');
  393. if(_maxAmmo > 1) then
  394. {
  395. [_maxAmmo,_cwep,_cmag] spawn {
  396. uiSleep 0.2;
  397. _maxAmmo = _this select 0;
  398. _cwep = _this select 1;
  399. _cmag = _this select 2;
  400. _camm = player ammo _cwep;
  401. if(_camm == _maxAmmo) then
  402. {
  403. player removeMagazine _cmag;
  404. call v2p7J0i4Z4A2k9v6k558Z;
  405. _log = format['No Ammo Loss - Removed Current Magazine: %1 %2 %3 %4',_cwep,_cmag,_camm,_maxAmmo];
  406. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  407. [_name,getPlayerUID player,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  408. };
  409. };
  410. };
  411.  
  412. _swep = '';
  413. {
  414. if((getNumber (configFile >> 'CfgWeapons' >> _x >> 'Type')) == 2) exitWith
  415. {
  416. _swep = _x;
  417. };
  418. } forEach (weapons player);
  419. if(_cwep == _swep) then
  420. {
  421. _spd = speed _projectile;
  422. if(_spd >= 1800) then
  423. {
  424. player removeMagazines _cmag;
  425. player removeWeapon _cwep;
  426. };
  427. };
  428. };
  429. };
  430. fnc_animchangedv1p3I4I3f5U2f5m7J9i =
  431. {
  432. if((_this select 1) in ['smk_urbanproneright','smk_prone_to_urbanprone_right','smk_urbanproneleft','smk_prone_to_urbanprone_left']) then
  433. {
  434. if((nearestObject [player,'Plastic_Pole_EP1_DZ']) distance player < 75) then
  435. {
  436. [objNull, player, rswitchMove,''] call RE;
  437. player playActionNow 'stop';
  438. _log = 'Can not use urbanprone near Plot Poles!';
  439. hint _log;
  440. systemChat _log;
  441. };
  442. };
  443. };
  444. _death = compile preprocessFileLineNumbers 'maca134\compile\player_death.sqf';
  445. while {1 == 1} do
  446. {
  447. player_death = _death;
  448. player allowDamage true;
  449. vehicle player allowDamage true;
  450. player removeAllEventHandlers 'Damaged';
  451. player removeAllEventHandlers 'Dammaged';
  452. player removeAllEventHandlers 'AnimDone';
  453. player removeAllEventHandlers 'AnimStateChanged';
  454. player removeAllEventHandlers 'Hit';
  455. player removeAllEventHandlers 'FiredNear';
  456. player addEventHandler ['FiredNear',{_this call player_weaponFiredNearv1p3I4I3f5U2f5m7J9i} ];
  457. player removeAllEventHandlers 'HandleDamage';
  458. player addEventHandler ['HandleDamage',{_this call fnc_STAR_damageHandlerv1p3I4I3f5U2f5m7J9i} ];
  459. player removeAllEventHandlers 'AnimChanged';
  460. player addEventHandler ['AnimChanged', {_this call fnc_animchangedv1p3I4I3f5U2f5m7J9i}];
  461. player removeAllEventHandlers 'Respawn';
  462. player addEventHandler ['Respawn', {_id = [] spawn player_death}];
  463. player removeAllEventHandlers 'Killed';
  464. player addEventHandler ['Killed', {if(isNil 'LASTDAMAGESOURCE') then {LASTDAMAGESOURCE = player;} else {if(isNull LASTDAMAGESOURCE) then {LASTDAMAGESOURCE = player;};};_id = [LASTDAMAGESOURCE,'shotheavy'] spawn player_death}];
  465. player removeAllEventHandlers 'Fired';
  466. player addEventHandler ['Fired', {
  467. _this call player_fired;
  468. _this call infi_firedv1p3I4I3f5U2f5m7J9i;
  469. if(isNil 'inSafeZone') then { inSafeZone = false; } else { if(typeName inSafeZone != 'BOOL') then { inSafeZone = false;YOLO = true; }; };
  470. if(inSafeZone) then {deleteVehicle (nearestObject [_this select 0,_this select 4]);};
  471. }];
  472. uiSleep 0.5;
  473. };
  474. };
  475. [_puid,_name] spawn {
  476. _puid = _this select 0;
  477. _name = _this select 1;
  478. _mPos = [-7245.38,19535.4,0];
  479. _spawnPos = _mPos;
  480. dayz_spawnPos = getPosATL player;
  481. _spawnPos = getPosATL player;
  482. _zombieCheck = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_zombieCheck.sqf';
  483. _zombieAttack = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_zombieAttack.sqf';
  484. disableSerialization;
  485. _idMouseMoving1251 = 0;
  486. _idMouseMoving1251loops = 0;
  487. while {1 == 1} do
  488. {
  489. _lastidMouseMoving1251 = _idMouseMoving1251;
  490. _idMouseMoving1251 = ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ['MouseMoving',''];
  491. _idMouseMoving1251loops = _idMouseMoving1251loops + 1;
  492. if(_idMouseMoving1251loops > 2) then
  493. {
  494. if(_lastidMouseMoving1251+1 != _idMouseMoving1251) then
  495. {
  496. _log = format['MouseMoving added EventHandler to Map!: %1 should be %2',_lastidMouseMoving1251+1,_idMouseMoving1251];
  497. call v2p7J0i4Z4A2k9v6k558Z;
  498. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  499. };
  500. };
  501. if !(true) then
  502. {
  503. if((ctrlEnabled ((uiNameSpace getVariable 'BIS_dynamicText') displayctrl 9999)) || (ctrlShown ((uiNameSpace getVariable 'BIS_dynamicText') displayctrl 9999))) then
  504. {
  505. call v2p7J0i4Z4A2k9v6k558Z;
  506. [_name,_puid,'BAN',toArray ('dynamicText CHECK 1')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  507. };
  508. if(str(uiNameSpace getVariable 'BIS_dynamicText') != 'No Display') then
  509. {
  510. call v2p7J0i4Z4A2k9v6k558Z;
  511. [_name,_puid,'BAN',toArray ('dynamicText CHECK 2')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  512. };
  513. };
  514. if(!isNil 'dayz_temperatur') then
  515. {
  516. if(dayz_temperatur > 42) then
  517. {
  518. dayz_temperatur = 37;
  519. uiSleep 2;
  520. if(dayz_temperatur > 42) then
  521. {
  522. call v2p7J0i4Z4A2k9v6k558Z;
  523. _log = format['dayz_temperatur: %1',dayz_temperatur];
  524. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  525. };
  526. };
  527. };
  528.  
  529. {
  530. _ctrlID = _x;
  531. _control = ((uiNameSpace getVariable 'DAYZ_GUI_display') displayctrl _ctrlID);
  532. _txt = ctrlText _control;
  533. if((_txt != '') && (ctrlShown _control)) then
  534. {
  535. _txtArr = toArray _txt;
  536. if !(46 in _txtArr) then
  537. {
  538. _control ctrlShow false;
  539. call v2p7J0i4Z4A2k9v6k558Z;
  540. _log = format['BadContent: id %1 txt %2',_ctrlID,_txt];
  541. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  542. };
  543. };
  544. } forEach [1203,1204,1205,1206,1300,1301,1302,1303,1305,1306,1307];
  545.  
  546. uiSleep 2;
  547. _pPos = getPosATL player;
  548. _noSafeZone = true;
  549. {
  550. if(!isNull _x) then
  551. {
  552. if(!alive _x) then
  553. {
  554. _cip = _x getVariable['a2f4A0Z1m3m8z5z3A6k1x',''];
  555. if(_cip == '') then
  556. {
  557. deleteVehicle _x;
  558. };
  559. };
  560. };
  561. if((!isNull _x) && (alive _x) && (getPlayerUID _x == '') && !(_x isKindOf 'zZombie_Base') && !(_x isKindOf 'CAAnimalBase')) exitWith
  562. {
  563. _noSafeZone = false;
  564. };
  565. } forEach (_pPos nearEntities ['Man',400]);
  566.  
  567. if(false) then
  568. {
  569. if(_noSafeZone) then
  570. {
  571. if(isNil 'player_zombieCheck') then
  572. {
  573. call v2p7J0i4Z4A2k9v6k558Z;
  574. [_name,_puid,'BAN',toArray ('zombieCheck broken')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  575. }
  576. else
  577. {
  578. if(str player_zombieCheck != str _zombieCheck) then
  579. {
  580. uiSleep 2;
  581. if(str player_zombieCheck != str _zombieCheck) then
  582. {
  583. call v2p7J0i4Z4A2k9v6k558Z;
  584. [_name,_puid,'HLOG',toArray ('zombieCheck changed')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  585. };
  586. };
  587. };
  588. if(isNil 'player_zombieAttack') then
  589. {
  590. call v2p7J0i4Z4A2k9v6k558Z;
  591. [_name,_puid,'BAN',toArray ('zombieAttack broken')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  592. }
  593. else
  594. {
  595. if(str player_zombieAttack != str _zombieAttack) then
  596. {
  597. uiSleep 2;
  598. if(str player_zombieAttack != str _zombieAttack) then
  599. {
  600. call v2p7J0i4Z4A2k9v6k558Z;
  601. [_name,_puid,'HLOG',toArray ('zombieAttack changed')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  602. };
  603. };
  604. };
  605. };
  606. };
  607.  
  608. if(!isNil 'PVDZE_veh_Publish2') then
  609. {
  610. _ap = PVDZE_veh_Publish2 select 5;
  611. _cUID = getPlayerUID _ap;
  612. _check = _cUID in ['',_puid];
  613. if(!_check) then
  614. {
  615. call v2p7J0i4Z4A2k9v6k558Z;
  616. _nameAP = 'DEAD';if((alive _ap)&&(getPlayerUID _ap != '')) then {_nameAP = name _ap;};
  617. _log = format['Trying to frame %1(%2)',_nameAP,_cUID];
  618. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  619. };
  620. if(true) then
  621. {
  622. _cPos = (PVDZE_veh_Publish2 select 1) select 1;
  623. if(_noSafeZone) then
  624. {
  625. {
  626. if((!isNull _x) && (alive _x) && (getPlayerUID _x == '') && !(_x isKindOf 'zZombie_Base') && !(_x isKindOf 'CAAnimalBase')) exitWith
  627. {
  628. _noSafeZone = false;
  629. };
  630. } forEach (_cPos nearEntities ['Man',200]);
  631. if(_noSafeZone) then
  632. {
  633. call v2p7J0i4Z4A2k9v6k558Z;
  634. _log = format['Purchase without Trader (C): PlayerPos %1 %2 - VehiclePos %3 %4 - %5',mapGridPosition _pPos,_pPos,mapGridPosition _cPos,_cPos,PVDZE_veh_Publish2];
  635. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  636. };
  637. };
  638. };
  639. };
  640. };
  641. };
  642. [_name,_puid] spawn {
  643. _name = _this select 0;_puid = _this select 1;
  644. diag_log format['LOCALPLAYERINFO: %1(%2) | %3(%4) | %5',_name,_puid,str _name,str _puid,str (getPlayerUID player)];
  645. while {1 == 1} do
  646. {
  647. _pos = [0,0,0];
  648. _pos = getPos player;
  649. {
  650. if(!isNull _x) then
  651. {
  652. if(local _x) then
  653. {
  654. deleteVehicle _x;
  655. call v2p7J0i4Z4A2k9v6k558Z;
  656. _log = format['FunctionsManager found near player @%1 %2 (BANNED)',_pos,mapGridPosition _pos];
  657. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  658. }
  659. else
  660. {
  661. call v2p7J0i4Z4A2k9v6k558Z;
  662. _log = format['FunctionsManager found near player @%1 %2 (KICKED)',_pos,mapGridPosition _pos];
  663. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  664. };
  665. };
  666. true
  667. } count(_pos nearEntities ['FunctionsManager',50]);
  668. if(true) then
  669. {
  670. if(true) then
  671. {
  672. if(isNil 's_player_removeActions') then {s_player_removeActions = [];};
  673. if(isNil 's_player_repairActions') then {s_player_repairActions = [];};
  674. if(isNil 'r_player_actions') then {r_player_actions = [];};
  675. if(isNil 'r_player_actions2') then {r_player_actions2 = [];};
  676. if(isNil 's_player_parts') then {s_player_parts = [];};
  677. if(isNil 's_player_combi') then {s_player_combi = [];};
  678. if(isNil 's_player_lockunlock') then {s_player_lockunlock = [];};
  679. if(isNil 's_vehicle_lockunlock') then {s_vehicle_lockunlock = [];};
  680. _tempRemoveAction = vehicle player addAction ['', '', [], 1, false, true, '', 'false'];
  681. _startRemove = _tempRemoveAction - 10;
  682. _endRemove = _tempRemoveAction + 99;
  683.  
  684. _dayzActionsStr = ["DonorSkins","wardrobe","s_player_maintain_area","s_player_maintain_area_preview","BTC_SganciaActionId","BTC_liftActionId","BTC_liftHudId","dayz_myLiftVehicle","s_player_heli_detach","dayz_myCursorTarget","s_player_craftZombieBait","s_player_butcher_human","s_player_makeBomb","s_player_zombieShield","s_player_upgrademoto","s_player_smeltRecipes","null","churchie_check","churchie_defuse","churchie_rig_veh","player_Cannibalism","s_player_fillfuel210","s_player_knockout","s_player_upgradegyro","ActionMenu","manatee_craft_menu","manatee_craft_menu_wea","manatee_craft_menu_sur","manatee_craft_menu_ind","s_player_craftZombieBaitBomb","horror_traders","s_player_takeOwnership","s_siphon","s_player_suicide","silver_myCursorTarget","stow_vehicle","menu_Worker2","neutral","menu_RU_Citizen1","menu_RU_Citizen4","menu_TK_CIV_Takistani04_EP1","menu_RU_Villager3","menu_RU_Functionary1","menu_Doctor","menu_Dr_Hladik_EP1","menu_Profiteer4","menu_Worker3","menu_Pilot_EP1","menu_RU_Citizen3","menu_CIV_EuroMan02_EP1","menu_Rita_Ensler_EP1","menu_RU_WorkWoman5","menu_RU_WorkWoman1","menu_Woodlander1","menu_Woodlander3","menu_Rocker4","menu_CIV_EuroMan01_EP1","Tow_settings_action_heliporter","Tow_settings_action_heliport_larguer","Tow_settings_action_deplacer_objet","Tow_settings_action_relacher_objet","Tow_settings_action_selectionner_objet_charge","Tow_settings_action_charger_selection","Tow_settings_action_charger_deplace","Tow_settings_action_selectionner_objet_remorque","Tow_settings_action_remorquer_selection","Tow_settings_action_remorquer_deplace","Tow_settings_action_detacher","Tow_settings_action_contenu_vehicule","Tow_settings_dlg_CV_titre","Tow_settings_dlg_CV_btn_decharger","Tow_settings_dlg_CV_btn_fermer","s_player_makePLBomb","s_player_stats","s_player_deploybike","s_player_packbike","s_player_deploygyro","s_player_upgradebike","nul","s_player_equip_carry","s_player_showname","s_player_showname1","s_player_smeltItems","s_building_snapping","s_player_downgrade_build","s_player_debug","s_player_calldog","s_player_speeddog","s_player_movedog","s_player_followdog","s_player_warndog","s_player_barkdog","s_player_trackdog","s_player_staydog","s_player_waterdog","s_player_feeddog","s_player_tamedog","s_player_repair_crtl","s_player_towing","s_player_fillgen","s_player_maint_build","s_player_fuelauto2","s_player_fuelauto","s_player_information","s_player_upgrade_build","s_player_packvault","s_player_unlockvault","s_player_checkGear","s_player_lockUnlock_crtl","s_player_deleteBuild","s_player_pzombiesfeed","s_player_pzombiesattack","s_player_pzombiesvision","s_player_callzombies","s_player_removeflare","s_player_fishing_veh","s_player_forceSave","s_player_fillfuel20","s_player_fillfuel5","s_player_lockvault","s_player_dragbody","s_player_packFdp","s_player_otkdv","s_player_isCruse","s_player_cnbb","bis_fnc_halo_action","s_player_rest","s_player_flipvehiclelight","s_player_flipvehicleheavy","s_player_1bupd","s_halo_action","s_player_smelt_scrapmetal","s_player_grabflare","s_player_fishing","s_player_smelt_engineparts","s_player_smelt_fueltank","s_player_smelt_windscreenglass","s_player_smelt_mainrotoraryparts","s_player_smelt_wheel","s_player_smelt_jerrycan","s_player_siphonfuel","s_player_flipveh","s_player_fillfuel","s_player_dropflare","s_player_butcher","s_player_cook","s_player_boil","s_player_fireout","s_player_packtent","s_player_sleep","s_player_studybody","NORRN_dropAction","s_player_selfBloodbag","s_clothes","s_player_holderPickup","s_player_gather","s_player_recipeMenu","s_player_deleteCamoNet","s_player_netCodeObject","s_player_codeRemoveNet","s_player_enterCode","s_player_codeObject","s_player_codeRemove","s_player_disarmBomb","unpackRavenAct","disassembleRavenAct","launchRavenAct","strobeRavenResetAct","strobeRavenTestAct","batteryLevelCheckRavenAct","batteryRechargeRavenAct","mavBaseStationActionName_00","mavBaseStationActionName_001","mavBaseStationActionName_01","mavBaseStationActionName_02","mavBaseStationActionName_03","mavBaseStationActionName_04","s_player_dance","s_player_igniteTent","s_player_clothes","s_player_scrollBandage","STR_R3F_LOG_action_heliporter","STR_R3F_LOG_action_heliport_larguer","s_vehicle_lockUnlock_crtl","STR_R3F_LOG_action_relacher_objet","STR_R3F_LOG_action_deplacer_objet","STR_R3F_LOG_action_remorquer_deplace","STR_R3F_LOG_action_selectionner_objet_remorque","STR_R3F_LOG_action_detacher","STR_R3F_LOG_action_charger_deplace","STR_R3F_LOG_action_selectionner_objet_charge","STR_R3F_LOG_action_remorquer_selection","STR_R3F_LOG_action_charger_selection","STR_R3F_LOG_action_contenu_vehicule","STR_R3F_ARTY_action_ouvrir_dlg_SM","s_player_removeActions","s_player_repairActions","r_player_actions","r_player_actions2","s_player_parts","s_player_combi","s_player_parts","s_player_lockunlock","s_vehicle_lockunlock","s_player_toggleSnap","s_player_toggleSnapSelect","s_player_toggleSnapSelectPoint","s_player_baseDoor","s_player_downgrade_build","s_player_infoStand","s_player_laptop","s_take_cash","s_smelt_coins","vehicle_smoke_id","s_smelt_bars","s_smelt_10bars","s_bank_dialog","s_givemoney_dialog","s_player_heliEvacAction","s_mechanic_dialog","s_building_snapping","vehicle_door_id","s_player_showname","s_player_showname1","s_mtraders_dialog","s_dumpcargo_action","s_player_plotpole_dialog","s_player_plotpole_message","s_player_heli_lift","s_player_autorefuel","s_player_watercannabis","s_player_destroycannabis","s_player_harvestcannabis","s_player_lockunlock","s_vehicle_lockunlock","s_player_toggleSnap","s_player_toggleSnapSelect","s_player_toggleSnapSelectPoint"];
  685. _dayzActions = [];
  686. {
  687. private ['_var'];
  688. if(!isNil _x) then
  689. {
  690. _var = compile _x;
  691. _y = call _var;
  692. if(typeName _y == 'SCALAR') then
  693. {
  694. if !(_y in _dayzActions) then
  695. {
  696. _dayzActions set [count _dayzActions,_y];
  697. };
  698. };
  699. if(typeName _y == 'ARRAY') then
  700. {
  701. {
  702. if !(_x in _dayzActions) then
  703. {
  704. _dayzActions set [count _dayzActions,_x];
  705. };
  706. } forEach _y;
  707. };
  708. };
  709. true
  710. } count _dayzActionsStr;
  711.  
  712. for '_i' from _startRemove to _endRemove do
  713. {
  714. if !(_i in _dayzActions) then
  715. {
  716. player removeAction _i;
  717. vehicle player removeAction _i;
  718. if(!isNull cursorTarget) then {cursorTarget removeAction _i;};
  719. };
  720. };
  721. };
  722. if !(true) then
  723. {
  724. _tmpV = vehicle player;
  725. _tmpRAV = _tmpV addAction ['', '', [], 1, false, true, '', 'false'];
  726. };
  727. uiSleep 0.2;
  728. if !(true) then
  729. {
  730. _tmpV1 = vehicle player;
  731. _tmpRAV1 = _tmpV1 addAction ['', '', [], 1, false, true, '', 'false'];
  732. _dif = _tmpRAV1 - _tmpRAV;
  733. _cnt = 11;
  734. if(isNull cursorTarget) then {_cnt = 9;};
  735. if((_dif > _cnt) && (_tmpV == _tmpV1)) then
  736. {
  737. if(isNil 'ACTIONv1p3I4I3f5U2f5m7J9i') then
  738. {
  739. [_dif] spawn {
  740. ACTIONv1p3I4I3f5U2f5m7J9i = true;
  741. for '_i' from -10 to 199 do
  742. {
  743. player removeAction _i;
  744. vehicle player removeAction _i;
  745. if(!isNull cursorTarget) then {cursorTarget removeAction _i;};
  746. };
  747. _log = format['To many actions: %1 - (turn off action check if false positive)',_this select 0];
  748. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  749. [_name,getPlayerUID player,'SLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  750. uiSleep 1.5;
  751. ACTIONv1p3I4I3f5U2f5m7J9i = nil;
  752. };
  753. };
  754. }
  755. else
  756. {
  757. _tmpV removeAction _tmpRAV; _tmpV removeAction _tmpRAV1;
  758. _tmpV1 removeAction _tmpRAV; _tmpV1 removeAction _tmpRAV1;
  759. };
  760. };
  761. };
  762. if((!isNil 'BIS_MENU_GroupCommunication') && (commandingMenu in ['#User:BIS_MENU_GroupCommunication'])) then
  763. {
  764. _tmp = BIS_MENU_GroupCommunication;
  765. showcommandingMenu '';
  766. for '_i' from 0 to (count _tmp)-1 do
  767. {
  768. _selected = _tmp select _i;
  769. if(count _selected > 4) then
  770. {
  771. _log = format['BIS_MENU_GroupCommunication: %1',_selected select 4 select 0 select 1];
  772. [_name,_puid,'SLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  773. };
  774. };
  775. player removeWeapon 'ItemRadio';
  776. BIS_MENU_GroupCommunication = nil;
  777. };
  778. if(true) then
  779. {
  780. _commandingMenu = commandingMenu;
  781. if(_commandingMenu != '') then
  782. {
  783. _A = toArray _commandingMenu;
  784. _A resize 6;
  785. _A;
  786. _short = toString _A;
  787. if(!(_commandingMenu in ["","RscMainMenu","RscMoveHigh","#WATCH","#WATCH0","RscWatchDir","RscDisplayClassSelecter","RscDisplayGenderSelect","RscDisplaySpawnSelecter","RscWatchMoreDir","#GETIN","RscStatus","RscCombatMode","RscFormations","RscTeam","RscSelectTeam","RscReply","RscCallSupport","#ACTION","#CUSTOM_RADIO","RscRadio","RscGroupRootMenu","BTC_Hud","BankDialog","GivePlayerDialog","SCTraderDialog","SCTraderDialogNew","RscDisplayPassword"]) || (true)) then
  788. {
  789. showcommandingMenu '';
  790. if(_short in ['#USER:']) then
  791. {
  792. call v2p7J0i4Z4A2k9v6k558Z;
  793. _log = format['BadcommandingMenu: %1',_commandingMenu];
  794. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  795. };
  796. };
  797. };
  798. };
  799. if(true) then {
  800. if(isNil 'playableUnits') then {playableUnits = [player];} else {
  801. if(typeName playableUnits != 'ARRAY') then {playableUnits = [player];YOLO = true;} else {
  802. if(str playableUnits == '[]') then {
  803. call v2p7J0i4Z4A2k9v6k558Z;
  804. _log = format['FNCbroken: playableUnits - %1',playableUnits];
  805. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  806. };
  807. };
  808. };
  809. if(isNil 'allUnits') then {allUnits = [player];} else {
  810. if(typeName allUnits != 'ARRAY') then {allUnits = [player];YOLO = true;} else {
  811. if(str allUnits == '[]') then {
  812. call v2p7J0i4Z4A2k9v6k558Z;
  813. _log = format['FNCbroken: allUnits - %1',allUnits];
  814. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  815. };
  816. };
  817. };
  818. if(isNil 'vehicles') then {vehicles = [];} else {if(typeName vehicles != 'ARRAY') then {vehicles = [];YOLO = true;};};
  819. entities = 'no';
  820. allMissionObjects = 'no';
  821. }
  822. else
  823. {
  824. if(!isNil 'playableUnits') then {
  825. call v2p7J0i4Z4A2k9v6k558Z;
  826. _log = format['FNCbroken: playableUnits - %1',playableUnits];
  827. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  828. };
  829. if(!isNil 'allUnits') then {
  830. call v2p7J0i4Z4A2k9v6k558Z;
  831. _log = format['FNCbroken: allUnits - %1',allUnits];
  832. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  833. };
  834. };
  835. PV_hackerL0og = nil;PV_SurveillanceLog = nil;PV_writeAdmin_log_ARRAY = nil;
  836. uiSleep 0.2;
  837. player hideObject false;
  838. (vehicle player) hideObject false;
  839. };
  840. };
  841. [] spawn {
  842. {_x hideObject true;} forEach (allMissionObjects 'Foodbox0');
  843. _mPos = [-7245.38,19535.4,0];
  844. _maxx = 650;
  845. _RAI = true;
  846. _watched = ["PipeBomb","NVGoggles","Binocular_Vector","Binocular","Skin_Camo1_DZ","Skin_Sniper1_DZ","ItemMap","ItemGPS","PartWoodPile","glock17_EP1","revolver_EP1","revolver_gold_EP1","30Rnd_556x45_G36","30Rnd_556x45_Stanag","Sa61_EP1","UZI_EP1","UZI_SD_EP1","Colt1911","M9","M9SD","Makarov","MakarovSD","ItemMatchbox","ItemEtool","ItemAntibiotic","ItemBandage","ItemBloodbag","ItemEpinephrine","ItemHeatPack","ItemMorphine","ItemPainkiller","ItemWire","ItemKeyKit","Sa58V_RCO_EP1","AK_107_pso","AK_107_GL_pso","SVD_CAMO","SVD","30Rnd_762x39_AK47","30Rnd_545x39_AKSD","DMR","DMR_DZ","30Rnd_556x45_StanagSD","20Rnd_556x45_Stanag","30Rnd_556x45_G36SD","10Rnd_762x54_SVD","ChainSaw","ChainSawB","ChainSawG","ChainSawP","ChainSawR","AKS_GOLD","Pecheneg_DZ","AK_74","AKS_74_kobra","AKS_74_pso","bizon_silenced","G36_C_SD_eotech","G36a","M4A1_Aim_camo","M4A1_HWS_GL","M4A1_RCO_GL","M4A1","Mk_48_DZ","M8_carbineGL","M8_compact","M16A2GL","M16A4","M16A4_ACG","M8_sharpshooter","M24","ItemSodaCoke","17Rnd_9x19_glock17","ItemCompass","30Rnd_9x19_UZI_SD","M8_carbine","FoodCanBakedBeans","FoodCanFrankBeans","ItemSodaPepsi","ItemSodaMdew","BAF_AS50_scoped","BAF_AS50_TWS","PMC_AS50_scoped","PMC_AS50_TWS","BAF_AS50_scoped_Large","BAF_AS50_TWS_Large","PMC_AS50_scoped_Large","PMC_AS50_TWS_Large","SCAR_L_STD_EGLM_TWS","M110_TWS_EP1","ItemCore","M136","Javelin","Stinger","RPG7V","Strela","Igla","RPG18","MetisLauncher","SMAW","BAF_NLAW_Launcher"];
  847. uiSleep 5;
  848. _player_useAttchment =
  849. {
  850. private['_item','_onLadder','_hasmeditem','_config','_text','_id'];
  851. _item = _this;
  852. call gear_ui_init;
  853. _onLadder = (getNumber (configFile >> 'CfgMovesMaleSdr' >> 'States' >> (animationState player) >> 'onLadder')) == 1;
  854. _config = configFile >> 'CfgMagazines' >> _item;
  855. _removeWeapon = getText (_config >> 'oringal');
  856. _addWeapon = getText (_config >> 'weapon');
  857. _text = getText (_config >> 'displayName');
  858. _hasitem = _item in magazines player;
  859. if(!_hasitem) exitWith { cutText [localize 'str_missingAttachment', 'PLAIN DOWN']};
  860. if(_onLadder) exitWith { cutText [localize 'str_player_21', 'PLAIN DOWN'] };
  861. if(_removeWeapon in (weapons player)) then
  862. {
  863. player removeMagazine _item;
  864. player removeWeapon _removeWeapon;
  865. _pos = player modelToWorld [0,1,0];
  866. _obj = createVehicle ['WeaponHolder', _pos, [], 1, 'CAN_COLLIDE'];
  867. _obj addWeaponCargo [_addWeapon,1];
  868. if(vehicle player != player) then
  869. {
  870. _display = findDisplay 106;
  871. _display closeDisplay 0;
  872. };
  873. }
  874. else
  875. {
  876. closedialog 0;
  877. uiSleep 0.2;
  878. cutText [format[ localize 'str_missingweapon', _text, _removeWeapon] , 'PLAIN DOWN']
  879. };
  880. };
  881. while {1 == 1} do
  882. {
  883. player_useAttchment = _player_useAttchment;
  884.  
  885. _posP = getPosATL (vehicle player);
  886. _posPG = [_posP select 0,_posP select 1,0];
  887. _state = true;
  888. {
  889. if((!isNull _x) && (alive _x) && (getPlayerUID _x == '') && !(_x isKindOf 'zZombie_Base') && !(_x isKindOf 'CAAnimalBase')) exitWith
  890. {
  891. _state = false;
  892. };
  893. } forEach (_posPG nearEntities ['CAManBase',25]);
  894. if(_state) then
  895. {
  896. _nearestObjects = (nearestObjects [player, ['All'], 15]);
  897. _crew = [];
  898. if(vehicle player != player) then
  899. {
  900. {_crew = _crew + [_x];} forEach (crew vehicle player);
  901. _nearestObjects = _nearestObjects + [vehicle player];
  902. _nearestObjects = _nearestObjects + _crew;
  903. };
  904. _itemsNear = [];
  905. {
  906. if(!isNull _x) then
  907. {
  908. _object = _x;
  909. _pos = getPosATL _object;
  910. _cntfnd = 0;
  911. _curInventory = [];
  912. _curCargo = [];
  913. _type = typeOf _object;
  914.  
  915. _LD = ['Land_DZE_GarageWoodDoorLocked','Land_DZE_LargeWoodDoorLocked','Land_DZE_WoodDoorLocked','CinderWallDoorLocked_DZ','CinderWallDoorSmallLocked_DZ'];
  916. if(isNil 'DZE_DoorsLocked') then {DZE_DoorsLocked = [];};
  917. if(typeName DZE_DoorsLocked != 'ARRAY') then {DZE_DoorsLocked = [];YOLO = true;};
  918. if(_type in (DZE_DoorsLocked+_LD)) then
  919. {
  920. _do =
  921. {
  922. _latch = 0;
  923. _door = 0;
  924. _hinge = 0;
  925. {
  926. if(_x == 'Open_latch') then
  927. {
  928. _latch = _object animationPhase _x;
  929. };
  930. if(_x == 'Open_hinge') then
  931. {
  932. _hinge = _object animationPhase _x;
  933. };
  934. if(_x == 'Open_door') then
  935. {
  936. _door = _object animationPhase _x;
  937. };
  938. } forEach ['Open_latch','Open_hinge','Open_door'];
  939. if(((_latch == 0) && (_hinge == 0)) && (_door == 1)) then
  940. {
  941. [_object] spawn {
  942. _object = _this select 0;
  943. for '_closedoor' from 0 to 15 do
  944. {
  945. {_object animate [_x,0];} forEach ['Open_hinge','Open_latch','Lights_1','Lights_2','Open_door','DoorR','LeftShutter','RightShutter'];
  946. uiSleep 0.1;
  947. };
  948. };
  949. };
  950. };
  951. call _do;
  952. if(!isNil 'dayz_selectedDoor') then
  953. {
  954. if(!isNull dayz_selectedDoor) then
  955. {
  956. _object = dayz_selectedDoor;
  957. call _do;
  958. };
  959. };
  960. };
  961.  
  962. if(_object isKindOf 'Man') then
  963. {
  964. if((getPlayerUID _object == '') && (player distance _mPos > 500) && (_object distance _mPos > 500)) then
  965. {
  966. _cip = _object getVariable['a2f4A0Z1m3m8z5z3A6k1x',''];
  967. if(_cip == '') then
  968. {
  969. _wepsBOT = weapons _object;
  970. _cwepsBOT = count _wepsBOT;
  971. _magsBOT = magazines _object;
  972. _cmagsBOT = count _magsBOT;
  973. _cntBOT = _cwepsBOT+_cmagsBOT;
  974. if(_cntBOT > 50) then
  975. {
  976. deleteVehicle _object;
  977. call v2p7J0i4Z4A2k9v6k558Z;
  978. _log = format['Gear-Bot?: %1 - (%2 @%3) - %4-%5',_cntBOT,_type,_pos,_wepsBOT,_magsBOT];
  979. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  980. [_name,getPlayerUID player,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  981. };
  982. };
  983. if(!isNull _object) then
  984. {
  985. if(isNil 'dayz_firstGroup') then
  986. {
  987. call v2p7J0i4Z4A2k9v6k558Z;
  988. _log = format['dayz_firstGroup: %1',dayz_firstGroup];
  989. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  990. [_name,getPlayerUID player,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  991. };
  992. _units = units dayz_firstGroup;
  993. if(_object in _units) then
  994. {
  995. deleteVehicle _object;
  996. };
  997. };
  998. };
  999. };
  1000.  
  1001. if(!isNull _object) then
  1002. {
  1003. _curInventory = ((weapons _object)+(magazines _object));
  1004. if((_object isKindOf 'CAManBase') && (!alive _object)) then
  1005. {
  1006. _skin_object = format['Skin_%1',_type];
  1007. _curInventory = _curInventory + [_skin_object];
  1008. };
  1009. _bagX = unitBackpack _object;
  1010. if(!isNull _bagX) then
  1011. {
  1012. _pUBM = (getMagazineCargo _bagX) select 0;
  1013. _curInventory = _curInventory + _pUBM;
  1014. _pUBW = (getWeaponCargo _bagX) select 0;
  1015. _curInventory = _curInventory + _pUBW;
  1016. _curInventory;
  1017. };
  1018. {_itemsNear = _itemsNear + [_x];} forEach _curInventory;
  1019.  
  1020. _infiSTAR = ((getWeaponCargo _object)+(getMagazineCargo _object));
  1021. if(str(_infiSTAR) != '[[],[],[],[]]') then
  1022. {
  1023. {_cntfnd = _cntfnd + _x;} forEach ((_infiSTAR select 1)+(_infiSTAR select 3));
  1024. {_curCargo = _curCargo + [_x];} forEach (_infiSTAR select 0);
  1025. {_curCargo = _curCargo + [_x];} forEach (_infiSTAR select 2);
  1026. {_itemsNear = _itemsNear + [_x];} forEach _curCargo;
  1027. };
  1028. if(_type in ['WeaponHolder']) then
  1029. {
  1030. _wpnsInObjT = _infiSTAR select 0;
  1031. _wpnsInObjC = _infiSTAR select 1;
  1032. {
  1033. if(_x > 30) then
  1034. {
  1035. _wpnT = _wpnsInObjT select _forEachIndex;
  1036. _log = format['WeaponHolder with %1 %2s looks suspicious',_x,_wpnT];
  1037. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  1038. [_name,getPlayerUID player,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1039. };
  1040. } forEach _wpnsInObjC;
  1041. };
  1042.  
  1043. if(true) then
  1044. {
  1045. if(_type == 'Foodbox0') then
  1046. {
  1047. _object hideObject true;
  1048. (findDisplay 106) closeDisplay 0;
  1049. }
  1050. else
  1051. {
  1052. _ctypes = ['MedBox0','AmmoBoxSmall_556','AmmoBoxSmall_762','FoodBox2','FoodBox3'];
  1053. if(_type in _ctypes) then
  1054. {
  1055. _BRLCD = 'xoxo';_BRLCD = _object getVariable['BRLCD','xoxo'];
  1056. if(_BRLCD in ['xoxo']) then
  1057. {
  1058. _dirBox = getDir _object;
  1059. _posBox = getPosATL _object;
  1060. deleteVehicle _object;
  1061.  
  1062. _object = createVehicle [_type,_posBox,[],0,'CAN_COLLIDE'];
  1063. _object setPosATL _posBox;
  1064. _object setDir _dirBox;
  1065. _object setVariable['BRLCD','kk',true];
  1066. player reveal _object;
  1067. };
  1068. };
  1069. _cntfndW = 0;
  1070. {_cntfndW = _cntfndW + _x;} forEach (_infiSTAR select 1);
  1071. _characterID = '0';_characterID = _object getVariable['CharacterID','0'];
  1072. if((_cntfnd > 10) || ((_type in _ctypes) && (_cntfndW > 1))) then
  1073. {
  1074. if((_type in _ctypes) || (_characterID == '0')) then
  1075. {
  1076. _fine = ['WeaponHolder','WeaponHolder_ItemVault','GraveDZE','CAManBase','TentStorageDomed2','GunRack_DZ','WoodCrate_DZ'];
  1077. if !((_type in _fine) || (_type isKindOf 'Bag_Base_EP1') || (_object isKindOf 'WeaponHolder') || (_object isKindOf 'LandVehicle') || (_object isKindOf 'Air') || (_object isKindOf 'Ship')) then
  1078. {
  1079. _afid = _infiSTAR select 2;
  1080. if(count _afid > 0) then
  1081. {
  1082. _fid = _afid find 'ItemBriefcase100oz';
  1083. if(_fid > -1) then
  1084. {
  1085. _acfid = _infiSTAR select 3;
  1086. _cfid = _acfid select _fid;
  1087. if(_cfid >= 3) then
  1088. {
  1089. _object setPosATL [_pos select 0,_pos select 1,(_pos select 2)+45];
  1090. };
  1091. };
  1092. };
  1093. };
  1094. };
  1095. };
  1096. if((_cntfnd > _maxx) && !(_type in ['WeaponHolder','Wooden_shed_DZ','VaultStorage','StorageShed_DZ','ArmoredSUV_PMC','ArmoredSUV_PMC_DZE','SeaFox'])) then
  1097. {
  1098. if(_object isKindOf 'static') then
  1099. {
  1100. _object hideObject true;
  1101. _object setPosATL [_pos select 0,_pos select 1,(_pos select 2)+45];
  1102.  
  1103. _log = format['MaxCargo exceeded: %1 | %2 | @%3 %4 | %5 | %6',_type,_cntfnd,mapGridPosition _pos,_pos,_characterID,_infiSTAR];
  1104. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  1105. [_name,getPlayerUID player,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1106. }
  1107. else
  1108. {
  1109. if(_cntfnd > _maxx + 100) then
  1110. {
  1111. {if(!isNull _x) then {_x action ['eject',_object];};} forEach (crew _object);
  1112. _object hideObject true;
  1113. _object setPosATL [_pos select 0,_pos select 1,(_pos select 2)+45];
  1114.  
  1115. _log = format['MaxCargo exceeded: %1 | %2 | @%3 %4 | %5 | %6',_type,_cntfnd,mapGridPosition _pos,_pos,_characterID,_infiSTAR];
  1116. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  1117. [_name,getPlayerUID player,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1118. };
  1119. };
  1120. };
  1121. };
  1122. };
  1123. };
  1124. };
  1125. } forEach _nearestObjects;
  1126.  
  1127. _typePlr = typeOf player;
  1128. _invPLR = ((weapons player)+(magazines player));
  1129. _invPLR = _invPLR + [primaryWeapon player];
  1130. _invPLR = _invPLR + [currentWeapon player];
  1131. _invPLR = _invPLR + [(format['Skin_%1',_typePlr])];
  1132. _bagPlr = unitBackpack player;
  1133. if(!isNull _bagPlr) then
  1134. {
  1135. _pUBMPLR = (getMagazineCargo _bagPlr) select 0;
  1136. _invPLR = _invPLR + _pUBMPLR;
  1137. _pUBWPLR = (getWeaponCargo _bagPlr) select 0;
  1138. _invPLR = _invPLR + _pUBWPLR;
  1139. _invPLR;
  1140. };
  1141. if(isNil 'DayZ_onBack') then {DayZ_onBack = '';};
  1142. if(!isNil 'DZE_Lock_Door') then {DayZ_onBack = '';};
  1143. _TMP_onBack = DayZ_onBack;
  1144.  
  1145. uiSleep 0.5;
  1146.  
  1147. _inv_plrNEW = ((weapons player)+(magazines player));
  1148. _inv_plrNEW = _inv_plrNEW + [primaryWeapon player];
  1149. _inv_plrNEW = _inv_plrNEW + [currentWeapon player];
  1150. _newbag = unitBackpack player;
  1151. if(!isNull _newbag) then
  1152. {
  1153. if(str _bagPlr == str _newbag) then
  1154. {
  1155. _pUBM__pIrN = (getMagazineCargo _newbag) select 0;
  1156. _inv_plrNEW = _inv_plrNEW + _pUBM__pIrN;
  1157. _pUBW_plrN = (getWeaponCargo _newbag) select 0;
  1158. _inv_plrNEW = _inv_plrNEW + _pUBW_plrN;
  1159. _inv_plrNEW;
  1160. };
  1161. };
  1162. if(isNil 'DayZ_onBack') then {DayZ_onBack = '';};
  1163. if(!isNil 'DZE_Lock_Door') then {DayZ_onBack = '';};
  1164. _allowed = [DayZ_onBack,_TMP_onBack,'Throw','Flare','Put'];
  1165.  
  1166. _allIHave = [];
  1167. {
  1168. if !(_x in _allIHave) then
  1169. {
  1170. _allIHave = _allIHave + [_x];
  1171. };
  1172. } forEach (_invPLR+_allowed+_itemsNear);
  1173. _foundbad = [];
  1174. if !((currentWeapon player) in _allIHave) then
  1175. {
  1176. if !((currentWeapon player) in _foundbad) then
  1177. {
  1178. _foundbad = _foundbad + [(currentWeapon player)];
  1179. };
  1180. };
  1181. if !((primaryWeapon player) in _allIHave) then
  1182. {
  1183. if !((primaryWeapon player) in _foundbad) then
  1184. {
  1185. _foundbad = _foundbad + [(primaryWeapon player)];
  1186. };
  1187. };
  1188. _swep = '';
  1189. {
  1190. if((getNumber (configFile >> 'CfgWeapons' >> _x >> 'Type')) == 2) exitWith
  1191. {
  1192. _swep = _x;
  1193. };
  1194. } forEach (weapons player);
  1195. {
  1196. if(((_x in _watched) || (_x == currentWeapon player) || (_x == primaryWeapon player) || (_x == _swep)) && !(_x in _allIHave)) then
  1197. {
  1198. if !(_x in _foundbad) then
  1199. {
  1200. _foundbad = _foundbad + [_x];
  1201. };
  1202. };
  1203. } forEach _inv_plrNEW;
  1204. if(count _foundbad > 0) then
  1205. {
  1206. {
  1207. _Iarray = toArray _x;
  1208. _Iarray resize 5;
  1209. _Iarray;
  1210. _short = toString _Iarray;
  1211. if(_short in ['Melee']) then
  1212. {
  1213. _foundbad = _foundbad - [_x];
  1214. };
  1215. } forEach _foundbad;
  1216. };
  1217.  
  1218. _ItemsAdded = [];
  1219. {
  1220. if !(_x in _ItemsAdded) then
  1221. {
  1222. _ItemsAdded = _ItemsAdded + [_x];
  1223. };
  1224. } forEach _foundbad;
  1225. _ItemsAdded = _ItemsAdded - ['Put'];
  1226. _ItemsAdded = _ItemsAdded - [''];
  1227. if(count _ItemsAdded > 0) then
  1228. {
  1229. if(_RAI) then
  1230. {
  1231. {
  1232. [_x] spawn {
  1233. _y = _this select 0;
  1234. for '_i' from 0 to ({_x == _y} count (weapons player)) do {player removeWeapon _y;};
  1235. player removeMagazines _y;
  1236. for '_w' from 0 to 10 do {uiSleep 0.1;player removeWeapon _y;player removeMagazines _y;};
  1237. };
  1238. } forEach _ItemsAdded;
  1239. };
  1240. };
  1241. }
  1242. else
  1243. {
  1244. uiSleep 0.25;
  1245. };
  1246. };
  1247. };
  1248. [] spawn {
  1249. while {1 == 1} do
  1250. {
  1251. _inv = [];
  1252. _inv = _inv + (magazines player);
  1253. _inv = _inv + (weapons player);
  1254. if(!isNull (unitBackpack player)) then
  1255. {
  1256. _BW = (getWeaponCargo unitBackpack player) select 0;
  1257. _BM = (getMagazineCargo unitBackpack player) select 0;
  1258. _inv = _inv + _BW + _BM;
  1259. };
  1260. if(isNil 'DayZ_onBack') then {DayZ_onBack = '';};
  1261. if(!isNil 'DZE_Lock_Door') then {DayZ_onBack = '';};
  1262. _inv = _inv + [DayZ_onBack];
  1263.  
  1264. {
  1265. if((_x in _inv) && (_x != '')) then
  1266. {
  1267. [_x] spawn {
  1268. _y = _this select 0;
  1269. for '_i' from 0 to ({_x == _y} count (weapons player)) do {player removeWeapon _y;};
  1270. player removeMagazines _y;
  1271. for '_w' from 0 to 10 do {uiSleep 0.1;player removeWeapon _y;player removeMagazines _y;};
  1272. };
  1273. if(player distance [-7245.38,19535.4,0] > 500) then
  1274. {
  1275. [] spawn {
  1276. player setDamage 5;
  1277. deleteVehicle player;
  1278. };
  1279.  
  1280. call v2p7J0i4Z4A2k9v6k558Z;
  1281. _log = format['BadItem: %1',_x];
  1282. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  1283. [_name,getPlayerUID player,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1284. };
  1285. };
  1286. } forEach (["ItemMap_Debug","ItemCore","Laserdesignator"] + ['FakeWeapon','RocketPods','GyroGrenadeLauncher','FFARLauncher','FFARLauncher_12','Rifle','M16_base',
  1287. 'HandGunBase','Put','M240_veh','M240_veh_2','M240_veh_MG_Nest','PKT','PKT_MG_Nest','PKT_veh','DT_veh','M2',
  1288. 'M3P','DSHKM','KORD','KPVT','M168','M197','AZP85','2A14','GAU12','2A42','M242','GAU8','2A38M','AGS30','AGS17',
  1289. 'MK19','M119','M256','D30','D81','ZiS_S_53','2A46M','FFARLauncher_14','CamelGrenades','57mmLauncher',
  1290. '57mmLauncher_64','57mmLauncher_128','80mmLauncher','S8Launcher','MissileLauncher','SidewinderLaucher',
  1291. 'SidewinderLaucher_F35','SidewinderLaucher_AH1Z','AT5Launcher','AT5LauncherSingle','2A46MRocket','AT10LauncherSingle',
  1292. 'AT11LauncherSingle','AT13LauncherSingle','TOWLauncher','TOWLauncherSingle','HellfireLauncher','VikhrLauncher',
  1293. 'BombLauncher','BombLauncherF35','BombLauncherA10','SEARCHLIGHT','CarHorn','BikeHorn','TruckHorn','TruckHorn2',
  1294. 'SportCarHorn','MiniCarHorn','R73Launcher','R73Launcher_2','Ch29Launcher','Ch29Launcher_Su34','2A70Rocket','2A70',
  1295. 'AT6Launcher','AT9Launcher','AT2Launcher','HeliBombLauncher','AirBombLauncher','Mk82BombLauncher','Mk82BombLauncher_6',
  1296. 'StingerLaucher','StingerLauncher_twice','AALauncher_twice','Igla_twice','MaverickLauncher','9M311Laucher',
  1297. 'WeaponExplosive','M252','2B14','MeleeWeapon','m8_base','PKT_2','PKT_3','SidewinderLaucher_AH64','M230','BAF_L2A1',
  1298. 'BAF_M240_veh','BAF_L7A2','BAF_L94A1','BAF_static_GMG','BAF_GMG','CTWS','CRV7_PG','CRV7_HEPD','CRV7_FAT','M621','M68',
  1299. 'D10','PKTBC','PKTBC_veh','SGMT','HellfireLauncher_AH6','StingerLaucher_4x','M242BC','M240BC_veh','M2BC','MK19BC',
  1300. 'M120','GrenadeLauncher_EP1','SCAR_Base','SCAR_L_Base','SCAR_H_Base','PKT_high_AI_dispersion','PKT_high_AI_dispersion_tank',
  1301. 'AGS30_heli','M32_heli','CZ805_A1_ACR','CZ805_A1_GL_ACR','CZ805_B_GL_ACR','2A42_AI','ATKMK44_ACR_AI','M242_AI','M242BC_AI',
  1302. 'CTWS_AI','M256_AI','M68_AI','D81_AI','2A46M_AI','D81CZ_AI','D10_AI','ZiS_S_53_AI','ATKMK44_ACR','D81CZ','2A72','ItemMap_Debug',
  1303. 'CMFlareLauncher','FlareLauncher','GRAD','GSh23L','GSh23L_L39','GSh301','GSh302','M134','M134_2','MLRS',
  1304. 'SmokeLauncher','SPG9','TwinM134','TwinVickers','YakB']);
  1305. uiSleep 15;
  1306. };
  1307. };
  1308. [] spawn {
  1309. private ['_maxdist','_lastVeh','_curVeh','_lastPos','_curPos','_worldspace','_spawnPos'];
  1310. _spawnPos = [-7245.38,19535.4,0];
  1311. dayz_spawnPos = getPosATL player;
  1312. _spawnPos = getPosATL player;
  1313. _TPC = 0;
  1314. n5t0Z7U8f2p1U5A8I2Q4Z=diag_tickTime;
  1315. while {1 == 1} do
  1316. {
  1317. if(true) then
  1318. {
  1319. if(typeName n5t0Z7U8f2p1U5A8I2Q4Z != 'SCALAR') then
  1320. {
  1321. call v2p7J0i4Z4A2k9v6k558Z;
  1322. _log = 'onEachFrame injector detected';
  1323. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  1324. [_name,getPlayerUID player,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1325. };
  1326. if(diag_tickTime - n5t0Z7U8f2p1U5A8I2Q4Z > 20) then
  1327. {
  1328. call v2p7J0i4Z4A2k9v6k558Z;
  1329. _log = format['onEachFrame injector detected - %1 (either lag spike on client or ESP Hack/Godmoe.. bad things..)',diag_tickTime - n5t0Z7U8f2p1U5A8I2Q4Z];
  1330. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  1331. [_name,getPlayerUID player,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1332. };
  1333. onEachFrame {n5t0Z7U8f2p1U5A8I2Q4Z=diag_tickTime;onMapSingleClick '';};
  1334. };
  1335. onMapSingleClick '';
  1336. if(true) then {
  1337. _lastVeh = vehicle player;
  1338. _lastPos = getPosATL player;
  1339. _lastPosZ = [_lastPos select 0,_lastPos select 1,0];
  1340. if !(_lastVeh isKindOf 'Air') then
  1341. {
  1342. _vel = velocity _lastVeh;
  1343. if(_vel select 2 > 10) then
  1344. {
  1345. _velNew = [_vel select 0,_vel select 1,0];
  1346. _lastVeh SetVelocity _velNew;
  1347. _lastVeh setPosATL _lastPosZ;
  1348. };
  1349. };
  1350. uiSleep 0.35;
  1351. _curVeh = vehicle player;
  1352. _curPos = getPosATL player;
  1353. _distance1 = floor(_lastPosZ distance [_curPos select 0,_curPos select 1,0]);
  1354. _maxdist = 120;
  1355. if(_curVeh isKindOf 'Man') then
  1356. {
  1357. _maxdist = 100;
  1358. if(_curVeh == player) then
  1359. {
  1360. _speed = abs (speed player);
  1361. if(_speed <= 0.1) then {_maxdist = 3;};
  1362. };
  1363. };
  1364. if(_curVeh isKindOf 'Air') then {_maxdist = 750;};
  1365. if(_curVeh isKindOf 'LandVehicle') then {_maxdist = 400;};
  1366. if(_curVeh isKindOf 'Ship') then {_maxdist = 400;};
  1367. if(_distance1 > _maxdist) then
  1368. {
  1369. if((str _lastVeh == str _curVeh) && ([-7245.38,19535.4,0] distance _curPos < 350)) then
  1370. {
  1371. player setPosATL _lastPos;
  1372. };
  1373. if((str _lastVeh == str _curVeh) && {(player == driver _curVeh) || (isNull driver _curVeh)}) then
  1374. {
  1375. if([-7245.38,19535.4,0] distance _lastPos > 350) then
  1376. {
  1377. if([-7245.38,19535.4,0] distance _curPos > 350) then
  1378. {
  1379. if(_spawnPos distance _lastPos > 25) then
  1380. {
  1381. if(_spawnPos distance _curPos > 25) then
  1382. {
  1383. player setVectorUp [0,0,1];
  1384. player setVelocity [0,0,0];
  1385. if(isNil 'h1z4A7v4p6Z1J6x2Q8f') then
  1386. {
  1387. h1z4A7v4p6Z1J6x2Q8f = [];
  1388. }
  1389. else
  1390. {
  1391. if(typeName h1z4A7v4p6Z1J6x2Q8f != 'ARRAY') then
  1392. {
  1393. call v2p7J0i4Z4A2k9v6k558Z;
  1394. _log = format['Admin Teleport Variable highjacked! Type now: %1',typeName h1z4A7v4p6Z1J6x2Q8f];
  1395. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  1396. [_name,getPlayerUID player,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1397. };
  1398. };
  1399. if(str h1z4A7v4p6Z1J6x2Q8f != '[]') then
  1400. {
  1401. _tmpAHpos = h1z4A7v4p6Z1J6x2Q8f;_tmpAHpos resize 2;h1z4A7v4p6Z1J6x2Q8f = [];
  1402. _log = format['Admin %1 Teleport: %2(%3) to %4(%5)',_tmpAHpos,mapGridPosition _lastPos,_lastPos,mapGridPosition _curPos,_curPos];
  1403. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  1404. [_name,getPlayerUID player,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1405. }
  1406. else
  1407. {
  1408. if(_distance1 < 10) then
  1409. {
  1410. player setPosATL _lastPos;
  1411. }
  1412. else
  1413. {
  1414. if(_TPC > 0) then
  1415. {
  1416. player setPosATL _lastPos;
  1417. if(_TPC >= 3) then {call v2p7J0i4Z4A2k9v6k558Z;};
  1418. _log = format['Player Teleport: %1 to %2 (%3m) | %4 | %5 to %6',mapGridPosition _lastPos,mapGridPosition _curPos,_distance1,typeOf _curVeh,_lastPos,_curPos];
  1419. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  1420. [_name,getPlayerUID player,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1421. };
  1422. if(((_curVeh isKindOf 'ParachuteBase') || (_curVeh isKindOf 'BIS_Steerable_Parachute')) && ((floor (_curPos select 2)) > 35)) then
  1423. {
  1424. _curVeh setPosATL _lastPosZ;
  1425. if(!isNull _curVeh) then {deleteVehicle _curVeh;};
  1426. _log = 'Player to fast with Parachute (Teleport?) put to Ground.';
  1427. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  1428. [_name,getPlayerUID player,'SLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1429. }
  1430. else
  1431. {
  1432. _TPC = _TPC + 1;
  1433. };
  1434. };
  1435. };
  1436. };
  1437. };
  1438. };
  1439. };
  1440. };
  1441. };
  1442. }else{uiSleep 0.35;};
  1443. };
  1444. };
  1445. if !(false) then
  1446. {
  1447. if(true) then {
  1448. [] spawn {
  1449. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  1450. preProcessFileLineNumbers 'scan completed, bad content was not found. bad';
  1451. _sa = ['Settings##.ini'];
  1452. for '_i' from 0 to 333 do { _sa = _sa + [(format['Settings%1.ini',_i])]; };
  1453. _m = [(format['%1\tele.sqf',_name]),(format['%1\DefaultMenu.sqf',_name]),(format['%1\initmenu.sqf',_name]),(format['%1\Startup.sqf',_name])];
  1454. _farray =
  1455. [
  1456. 'oefexec.dll','stdafx.h','whippy\execute.sqf','MSSM\main.sqf','ScriptName.sqf','RommelV1\Rexecv1.sqf',
  1457. 'whippymenu\execute.sqf','ArmA2OAHackUCReleasebyCriibyy_[www.unknowncheats.me]_.dll','ArmA2OAHackUCReleasebyCriibyy.dll',
  1458. 'Mystic.sqf','debug_console','Xenos.exe','Xenos64.exe','hoen\sttart.sqf','hoen\compile\re.sqf',
  1459. 'freddiesexternalmenu\freddies_active.sqf','freddiesexternalmenuv8\freddies_active.sqf','Menu_Scripts\menu\menu_generate.sqf',
  1460. 'infiSTAR_[www.unknowncheats.me]_.dll','Missions\infiSTAR_[www.unknowncheats.me]_.dll','Deluxe_97\Deluxe.sqf',
  1461. 'Expansion\infiSTAR_[www.unknowncheats.me]_.dll','dll\infiSTAR_[www.unknowncheats.me]_.dll',
  1462. 'infiSTAR.dll','Missions\infiSTAR.dll','Expansion\infiSTAR.dll','dll\infiSTAR.dll',
  1463. 'VGLoader.exe','Missions\VGLoader.exe','Expansion\VGLoader.exe','dll\VGLoader.exe',
  1464. 'vgupdater.exe','Missions\vgupdater.exe','Expansion\vgupdater.exe','dll\vgupdater.exe',
  1465. '0100100110\start.sqf','Missions\0100100110\start.sqf','Expansion\0100100110\start.sqf','dll\0100100110\start.sqf',
  1466. '0100100110\Starts.sqf','Missions\0100100110\Starts.sqf','Expansion\0100100110\Starts.sqf','dll\0100100110\Starts.sqf',
  1467. 'epoch\epochMain.sqf','Missions\epoch\epochMain.sqf','Expansion\epoch\epochMain.sqf','dll\epoch\epochMain.sqf',
  1468. 'Hack-Dayz.exe','Missions\Hack-Dayz.exe','Expansion\Hack-Dayz.exe','dll\Hack-Dayz.exe','TM\keymenu.sqf',
  1469. 'DayZZ.exe','Missions\DayZZ.exe','Expansion\DayZZ.exe','dll\DayZZ.exe','OTHER\scripts\fly.sqf','TM\clearvar.sqf',
  1470. 'scrFuckOffInfistar1\start.sqf','epoch\targetall\fuckserver.sqf','boooooooobies.sqf','infiSTAR_GOLD\Startup.sqf',
  1471. 'settings26\init.sqf','settings26\start.sqf','settings26\load.sqf','settings26\go.sqf','Arma 2 OA Battleye Bypass.exe',
  1472. 'scroll\startmain.sqf','Exta_files\scrollMain.sqf','players\egeg.sqf','DCv3\dc.sqf','Supplys\giveloadout.sqf',
  1473. 'runme.dll','Missions\runme.dll','Expansion\runme.dll','dll\runme.dll','Scripts\runme.dll',
  1474. 'NR.exe','Missions\NR.exe','Expansion\NR.exe','dll\NR.exe','Scripts\NR.exe','wuat\start3.sqf',
  1475. 'activator_NR.exe','Missions\activator_NR.exe','Expansion\activator_NR.exe','dll\activator_NR.exe','Scripts\activator_NR.exe',
  1476. 'MedMen.exe','Missions\MedMen.exe','Expansion\MedMen.exe','dll\MedMen.exe','Scripts\MedMen.exe',
  1477. 'SpawnTool.exe','Missions\SpawnTool.exe','Expansion\SpawnTool.exe','dll\SpawnTool.exe','Scripts\SpawnTool.exe',
  1478. 'HVMRuntm.dll','Missions\HVMRuntm.dll','Expansion\HVMRuntm.dll','dll\HVMRuntm.dll','Scripts\HVMRuntm.dll',
  1479. 'D-DayZ.dll','Missions\D-DayZ.dll','Expansion\D-DayZ.dll','dll\D-DayZ.dll','Scripts\D-DayZ.dll',
  1480. 'ss3.dll','Missions\ss3.dll','Expansion\ss3.dll','dll\ss3.dll','Scripts\ss3.dll','epoch.sqf','epoch2.sqf','fixed.exe',
  1481. 'Scripts\darky.sqf','Scripts\explo.sqf','Scripts\explode_all.sqf','Scripts\explode.sqf','@Dayz_Namalsk\menu.sqf','@Dayz_Namalsk\HP.sqf',
  1482. 'Dayz_Namalsk\menu.sqf','Dayz_Namalsk\HP.sqf','youtube.dll','vg\Run.sqf','rus\mission_settings\create.sqf',
  1483. 'vg\Custommenu.sqf','vg\RunAH.sqf','vg\Startup.sqf','vg\exec.sqf','scr\Run.sqf','scr\Custommenu.sqf','scr\RunAH.sqf',
  1484. 'uhx_menu_first_ed\menu\logoblue.paa','Expansion\beta\dll\RayHook.dll','RayHook.dll','scr\Startup.sqf','scr\ahbypass.sqf',
  1485. 'cset.sqf','crawdaunt\crawdaunt.sqf','hangender\start.sqf','Scripts\ajmenu.sqf','wuat\screen.sqf','TM\menu.sqf','TM\screen.sqf',
  1486. 'Scripts\menu.sqf','crinkly\keymenu.sqf','ASM\startup.sqf','RSTMU\scr\startMenu.sqf','scr\startMenu.sqf','scr\STrial.sqf',
  1487. 'wuat\vet@start.sqf','TM\keybind.sqf','startup.sqf','start.sqf','startupMenu.sqf','xTwisteDx\menu.sqf','wuat\start.sqf','TM\startmenu.sqf',
  1488. 'infiSTAR_Menu\setup\startup.sqf','startMenu.sqf','custom.sqf','WiglegHacks\mainmenu.sqf','bowenisthebest.sqf',
  1489. 'Scripts\Menu_Scripts\empty.sqf','@mymod\Scripts\ajmenu.sqf','i_n_f_i_S_T_A_R___Menu\setup\scrollmenu.sqf',
  1490. 'yolo\w4ssup YoloMenu v2.sqf','Menus\infiSTAR_SEVEN\startup.sqf','Menus\battleHIGH_Menu\startup.sqf',
  1491. 'Missions\Menus\battleHIGH_Menu\startup.sqf','infiSTAR_EIGHT\startup.sqf','infiSTAR_SSH\startup.sqf',
  1492. 'TM\start.sqf','TM\DemonicMenu.sqf','Scripts\screen.sqf','Scripts\start.sqf','i_n_f_i_S_T_A_R___Menu\list.sqf',
  1493. 'battleHIGH_Menu\startup.sqf','infiSTAR_SEVEN\startup.sqf','Scripts\list.sqf','Scripts\mah.sqf','Menu\start.sqf',
  1494. 'Menu\startup.sqf','i_n_f_i_S_T_A_R.sqf','infiSTAR_Confin3d_edit\infiSTAR.sqf','infiSTAR_Confin3d_edit\startup.sqf',
  1495. 'YoloMenu Updated v6.sqf','Scripts\YoloMenu Updated v6.sqf','Scripts\startmenu.sqf','run.sqf','tm\starthack.sqf',
  1496. 'ASM\_for_keybinds\mystuff.sqf','wookie_wuat\startup.sqf','gc_menu\starten.sqf','sigdumper.dll','sigdumper.exe',
  1497. 'yolo\YoloMenu Updated v6.sqf','dll\Project1_[www.unknowncheats.me]_.exe','Scripts\Project1_[www.unknowncheats.me]_.exe',
  1498. 'gc_menu\uitvoeren.sqf','scr_wasteland\menu\initmenu.sqf','exec.sqf','infiSTAR_chewSTAR_Menu\infiSTAR_chewSTAR.sqf',
  1499. 'infiSTAR_chewSTAR_Menu\scrollmenu\addweapon.sqf','Demonic Menu\scr\startMenu.sqf','Demonic Menu\TM\STARTMENU.sqf',
  1500. 'scr\scr\keybinds.sqf','DayZLegendZ Scripts\mah.sqf','Pickled Menu 3.0\Scripts\ajmenu.sqf','invisible.sqf',
  1501. '@mHlopchik\Menu_Scripts\menu\keybind\funmenu','RustleSTAR_Menu\menu\initmenu.sqf','RustleSTAR_Menu\setup\startup.sqf',
  1502. 'Scripts\mpghmenu.sqf','DevCon.pbo','DayZLegendZ Scripts\startMenu.sqf','DayZLegendZ Scripts\mah.sqf','EASYTM\start.sqf',
  1503. 'TotalInjector.exe','Rusterl.exe','drhack.dll','drhack.exe','DayZ-Injector emulated by vovanre.exe','dayz-injector.sqf',
  1504. 'DayZ-Injector.dll','HackMenu.exe','d3d199.dll','Scintilla.dll','DayZ-Injector.dll','DayZ-Injector v0.4.exe','CFF-Hook.sqf',
  1505. 'CFF-Hook.dll','skriptexecuter2.exe','PEWPEWPEWPEW.dll','Injector.exe','@SPX\Spawn Weapon.sqf','@SPX\3b.sqf','MK\Scripts\startup.sqf',
  1506. 'Obama Drone 0.5.2.1.exe','NewDayZ.dll','dll\MyHack.dll','Radar_NewR.exe','YoloHack.dll','BESecureJect.exe','YoloMenu.sqf',
  1507. 'hidden.exe','ssl3.dll','DayZNavigator.exe','Spawner.exe','EmptyDll.dll','yolo\startup.sqf','script loader Warrock.exe','infiSTAR.sqf',
  1508. 'VX DAYZ.exe','CE_Engine-v5.exe','kenhack\alltome.sqf','kenhack\SM\AH6X_DZ.sqf','kenhack\veshi.sqf','skriptexecuter2.ini','lcc.exe',
  1509. 'scripts\new.sqf','new.sqf','Dayz Hack v 1.0.exe','dayz cheat\lcc.exe','Scripts\@Hak_script\1.GLAVNOYE\000.sqf','cheater.sqf',
  1510. '@Hak_script\1.GLAVNOYE\000.sqf','scripts\2dmap.sqf','2dmap.sqf','scripts\addweapon.sqf','addweapon.sqf','scripts\ammo 2.sqf',
  1511. 'ammo 2.sqf','DayZ-Injector v.0.2.2.exe','DayZ AimJunkies.exe','CheatDayZUniversal.exe','DayZ Private AIM,MAP,WH v1.2.exe',
  1512. 'AimJunkies.exe','FABISDayZLauncher.exe','gluemenu.sqf','DayZ Item spawner.exe','Dayz AIM ESP Shield.exe','ChernoNuke.sqf',
  1513. 'Scripts\Menu_Scripts\ChernoNuke.sqf','Menu_Scripts\ChernoNuke.sqf','Nuke.sqf','Scripts\Menu_Scripts\NWAFNuke.sqf',
  1514. 'NWAFNuke.sqf','Scripts\Menu_Scripts\newsbanner.sqf','newsbanner.sqf','Scripts\Menu_Scripts\ElektroNuke.sqf',
  1515. 'ElektroNuke.sqf','Scripts\Nuke.sqf','Scripts\different_AK\AKS-74 Kobra.sqf','Scripts\ESP\esp_TEST.sqf',
  1516. 'ESP\esp_TEST.sqf','esp_TEST.sqf','esp.sqf','Scripts\GodMode.sqf','GodMode.sqf','Scripts\God mode 1.sqf',
  1517. 'God mode 1.sqf','MapHack.sqf','infiSTAR_chewSTAR_Menu\all_misc\nukes\nuke.sqf','@Hak_script\1.Teleport.sqf',
  1518. 'TheBatmanHack v2.6.exe','X-ray.exe','Project1.exe','Dayz injector-by vovan.exe','explode_all.sqf','explode.sqf',
  1519. 'Ubu5Ukg3.sqf','customizethis.sqf','Z__i_n_f_i_S_T_A_R__Z\Run.sqf','Missions\infiSTAR_SEVEN\startup.sqf',
  1520. 'Missions\infiSTAR_SSH\startup.sqf','renamethis.sqf','round2\runthis.sqf','safe scripts\gm.sqf','scr\exec.sqf',
  1521. 'Scripts\exec.sqf','scrollz\tp.sqf','ShadowyFaze\exec.sqf','infiSTAR_BLACK\Startup.sqf','lol.sqf','teststartup.sqf',
  1522. 'infiSTAR_NEW\Startup.sqf','DayZ_Settings.txt','Optix_DayZ_Auto.txt','ldr.cnf','Custom_folder\scrollmenu\Click to Tp.sqf',
  1523. 'Aspire Menu v.0.5\ALL TEH SCRIPTS!\esp.sqf','Aspire Menu v.0.5\ALL TEH SCRIPTS!\heal.sqf','SpawnTool.exe','LoganNZL\LoganNZL@execute.sqf',
  1524. 'LoganNZL\LoganNZL@start.sqf','LoganNZL@start.sqf','nightsuck.sqf','Project1_[www.unknowncheats.me]_.exe','wuat\RUN.sqf',
  1525. 'Missions\Project1_[www.unknowncheats.me]_.exe','Expansion\Project1_[www.unknowncheats.me]_.exe','wuat\Scripts.txt','wuat\start1.sqf',
  1526. 'GiveItTheDLL.exe','Missions\GiveItTheDLL.exe','Expansion\GiveItTheDLL.exe','dll\GiveItTheDLL.exe','Scripts\GiveItTheDLL.exe',
  1527. 'spawner.dll','Missions\spawner.dll','Expansion\spawner.dll','dll\spawner.dll','Scripts\spawner.dll','wuat\scripts\runMagicaly.sqf',
  1528. 'inject.bat','Missions\inject.bat','Expansion\inject.bat','dll\inject.bat','Scripts\inject.bat','wuat\screen2.sqf','wuat\standalonemenu.sqf',
  1529. 'spawner\GiveItTheDLL.exe','spawner\Missions\GiveItTheDLL.exe','spawner\Expansion\GiveItTheDLL.exe','spawner\dll\GiveItTheDLL.exe','spawner\Scripts\GiveItTheDLL.exe',
  1530. 'spawner\spawner.dll','spawner\Missions\spawner.dll','spawner\Expansion\spawner.dll','spawner\dll\spawner.dll','spawner\Scripts\spawner.dll',
  1531. 'spawner\inject.bat','spawner\Missions\inject.bat','spawner\Expansion\inject.bat','spawner\dll\inject.bat','spawner\Scripts\inject.bat',
  1532. 'infiSTAR_SSH\setup\startup.sqf','Supplys\BBstart.sqf','TM\666.sqf','vscripts\Startup.sqf','Ronnie\Startup.sqf','MyScripts\cargo.sqf',
  1533. 'BE\update.sqf','ScriptBasic.sqf','ScriptTelePlayer.sqf','Deluxe.sqf','Moving_Gun_Menu\start.sqf',
  1534. 'WRMoney.sqf','allover_[www.unknowncheats.me]_.dll','allover.dll','WhippyMenu\keybindfz.sqf','WhippyMenu\SqfFiles\esp.sqf',
  1535. 'WhippyMenu\SqfFiles\destroyb.sqf','WhippyMenu\SqfFiles\setviewdistance500m.sqf','WhippyMenu\SqfFiles\night.sqf','WhippyMenu\SqfFiles\unlock.sqf',
  1536. 'initFunctions.sqf','tbb4malloc_bi.dll','PRaZ\start.sqf','jh\Action.sqf','ArmA2OA_Extars\BB_menu_BB.sqf'
  1537. ]+_m+_sa;
  1538. while {1 == 1} do
  1539. {
  1540. _c = 0;
  1541. {
  1542. _c = _c + 1;
  1543. if(_c >= 10) then
  1544. {
  1545. _c = 0;
  1546. uiSleep 0.5;
  1547. };
  1548. _f = preprocessFileLineNumbers _x;
  1549. if(_f != '') then
  1550. {
  1551. call v2p7J0i4Z4A2k9v6k558Z;
  1552. _log = format['BadFile: %1 - %2',_x,_f];
  1553. [_name,getPlayerUID player,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1554. };
  1555. uiSleep 0.01;
  1556. true
  1557. } count _farray;
  1558. uiSleep 600;
  1559. };
  1560. };
  1561. };
  1562. };
  1563. p651I5A4U7Q8k8p9J3u4Q9Q9f = {
  1564. _bkey = _this select 0;
  1565.  
  1566. _log = format['<infiSTAR.de>: You have pressed a forbidden Key! (%1)',_bkey];
  1567. cutText [_log,'WHITE IN'];
  1568. hint _log;
  1569. systemchat _log;
  1570. for '_start' from 0 to 5 do {disableUserInput true;};
  1571. if(false) then
  1572. {
  1573. _log = format['BadKey: %1',_bkey];
  1574. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  1575. [_name,getPlayerUID player,'SLOG_BK',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1576. };
  1577. uiSleep 10;
  1578. for '_stop' from 0 to 5 do {disableUserInput false;};
  1579. };
  1580. if(false) then
  1581. {
  1582. q8v6A8Q7t2u3t6U7p5R6Q = {
  1583. _key = _this select 1;
  1584. _shift = _this select 2;
  1585. _ctrl = _this select 3;
  1586. _alt = _this select 4;
  1587. _handled = false;
  1588. if(_key == 207) then {[] spawn fnc_debugX0;};
  1589. _handled
  1590. };
  1591. }
  1592. else
  1593. {
  1594. q8v6A8Q7t2u3t6U7p5R6Q = {
  1595. _key = _this select 1;
  1596. _shift = _this select 2;
  1597. _ctrl = _this select 3;
  1598. _alt = _this select 4;
  1599. _handled = false;
  1600. _fnc_punish_combatlog =
  1601. {
  1602. _isInCombat = player getVariable['startcombattimer',0];
  1603. if(str _isInCombat != '0') then
  1604. {
  1605. [player,'sick'] spawn player_death;
  1606. player setHit['Body',1];
  1607. };
  1608. };
  1609. if(_key == 207) then {[] spawn fnc_debugX0;};
  1610. if(true) then {
  1611. if(_key == 60) then {['AdminMenu Key'] spawn p651I5A4U7Q8k8p9J3u4Q9Q9f;};
  1612. switch (_key) do {
  1613. case 0xC7 : {['Home - Known to start HackMenus'] spawn p651I5A4U7Q8k8p9J3u4Q9Q9f;};
  1614. case 0x3B : {['F1 - Known to start HackMenus'] spawn p651I5A4U7Q8k8p9J3u4Q9Q9f;};
  1615. case 0x3C : {['F2 - Known to start HackMenus'] spawn p651I5A4U7Q8k8p9J3u4Q9Q9f;};
  1616. case 0x3D : {['F3 - Known to start HackMenus'] spawn p651I5A4U7Q8k8p9J3u4Q9Q9f;};
  1617. default {};
  1618. };
  1619. if(_shift) then
  1620. {
  1621. if(_key == 0x19) then {['Shift + P to CombatLog'] spawn p651I5A4U7Q8k8p9J3u4Q9Q9f;call _fnc_punish_combatlog;};
  1622. };
  1623. if(_alt) then
  1624. {
  1625. if(_key == 0x57) then {['ALT-F11'] spawn p651I5A4U7Q8k8p9J3u4Q9Q9f;};
  1626. if(_key == 0x3E) then {['ALT-F4 to CombatLog'] spawn p651I5A4U7Q8k8p9J3u4Q9Q9f;call _fnc_punish_combatlog;};
  1627. };
  1628. };
  1629. _handled
  1630. };
  1631. if(false) then
  1632. {
  1633. [] spawn {
  1634. _voicecount = 0;
  1635. while {1 == 1} do
  1636. {
  1637. if(!isNull findDisplay 63) then
  1638. {
  1639. _ctrlText = ctrlText (findDisplay 63 displayCtrl 101);
  1640. _chID = switch _ctrlText do {
  1641. case localize 'STR_GLOBAL_CHANNEL' : {0};
  1642. case localize 'STR_SIDE_CHANNEL' : {1};
  1643. default {['',-1]};
  1644. };
  1645. if((!isNull findDisplay 55) && (_chID in [0,1])) then
  1646. {
  1647. _msg = '<infiSTAR.de>: NO VOICE ON SIDE/GLOBAL!';
  1648. hint _msg;
  1649. 1 cutText [format ['%1',_msg],'PLAIN DOWN'];
  1650. systemchat _msg;
  1651.  
  1652. _voicecount = _voicecount + 1;
  1653. if(_voicecount > 2) then {findDisplay 46 closeDisplay 0;};
  1654. };
  1655. };
  1656. uiSleep 0.5;
  1657. };
  1658. };
  1659. };
  1660. };
  1661. [_name,_puid] spawn {
  1662. _name = _this select 0;_puid = _this select 1;
  1663. _FTG = 25;
  1664. while {1 == 1} do
  1665. {
  1666. _ltxt = lbtext [12001,0];
  1667. if(!isNil 'TraderItemList') then
  1668. {
  1669. if(typeName TraderItemList == 'CODE') then
  1670. {
  1671. call v2p7J0i4Z4A2k9v6k558Z;
  1672. _log = format['Active Menu: Trader Menu - not near a Trader! #1 - %1 @%2',_ltxt,getPosATL player];
  1673. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1674. };
  1675. };
  1676.  
  1677. _cwep = currentWeapon player;
  1678. if(_cwep != '') then
  1679. {
  1680. _cammo = player ammo _cwep;
  1681. if(abs _cammo > 100000) then
  1682. {
  1683. call v2p7J0i4Z4A2k9v6k558Z;
  1684. _log = format['AmmoCheck: %1',_cammo];
  1685. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1686. };
  1687. };
  1688. if(true) then
  1689. {
  1690. if(str(unitRecoilCoefficient player) != str(1)) then
  1691. {
  1692. call v2p7J0i4Z4A2k9v6k558Z;
  1693. [_name,_puid,'BAN',toArray ('NoRecoil')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1694. };
  1695. vehicle player setUnitRecoilCoefficient 1;
  1696. player setUnitRecoilCoefficient 1;
  1697. };
  1698. setTerrainGrid _FTG;
  1699. BIS_fnc_spawnCrew = {};
  1700. BIS_fnc_spawnGroup = {};
  1701. BIS_fnc_help = {};
  1702. bis_fnc_3Dcredits = {};
  1703. BIS_fnc_crows = {};
  1704. bis_fnc_customGPS = {};
  1705. bis_fnc_destroyCity = {};
  1706. BIS_fnc_dirIndicator = {};
  1707. bis_fnc_spawnvehicle = {};
  1708. BIS_fnc_spawnEnemy = {};
  1709. BIS_fnc_AAN = {};
  1710. bis_fnc_taskPatrol = {};
  1711. bis_fnc_taskDefend = {};
  1712. BIS_fnc_taskAttack = {};
  1713. BIS_fnc_supplydrop = {};
  1714. BIS_fnc_spotter = {};
  1715. BIS_fnc_listPlayers = {};
  1716. bis_fnc_customGPSvideo = {};
  1717. if(isNil 'deathHandled') then { deathHandled = true; } else { if(typeName deathHandled != 'BOOL') then { deathHandled = true;YOLO = true; }; };
  1718. if(deathHandled) then
  1719. {
  1720. [] spawn {
  1721. uiSleep 35;
  1722. player setVariable['combattimeout',0, true];
  1723. (findDisplay 46) closeDisplay 0;
  1724. };
  1725. };
  1726. if(isNil 'r_player_blood') then { r_player_blood = -500; } else { if(typeName r_player_blood != 'SCALAR') then { r_player_blood = -500;YOLO = true; }; };
  1727. _r_player_blood = r_player_blood;
  1728. if(_r_player_blood > 12750) then
  1729. {
  1730. if(_r_player_blood > 14500) then
  1731. {
  1732. r_player_blood = -500;
  1733. call v2p7J0i4Z4A2k9v6k558Z;
  1734.  
  1735. _log = format['To much Blood: %1 should be max 12000',_r_player_blood];
  1736. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1737. }
  1738. else
  1739. {
  1740. r_player_blood = 12000;
  1741. _log = format['To much Blood: %1 should be max 12000',_r_player_blood];
  1742. [_name,_puid,'SLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1743. };
  1744. };
  1745. if((deathHandled) && (r_player_blood > 0)) then
  1746. {
  1747. r_player_blood = -500;
  1748. uiSleep 1;
  1749. if(isNil 'r_player_blood') then { r_player_blood = -500; } else { if(typeName r_player_blood != 'SCALAR') then { r_player_blood = -500;YOLO = true; }; };
  1750. if(r_player_blood > 0) then
  1751. {
  1752. if(alive player) then
  1753. {
  1754. if(isNil 'LASTDAMAGESOURCE') then {LASTDAMAGESOURCE = player;} else {if(isNull LASTDAMAGESOURCE) then {LASTDAMAGESOURCE = player;};};
  1755. [LASTDAMAGESOURCE,'shotheavy'] spawn player_death;
  1756. player setHit['Body',1];
  1757. };
  1758. call v2p7J0i4Z4A2k9v6k558Z;
  1759. [_name,_puid,'HLOG',toArray ('Godmode')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1760. };
  1761. };
  1762. if(isNil 'r_player_blood') then { r_player_blood = -500; } else { if(typeName r_player_blood != 'SCALAR') then { r_player_blood = -500;YOLO = true; }; };
  1763. if((!deathHandled) && (r_player_blood < 0)) then
  1764. {
  1765. if(alive player) then
  1766. {
  1767. if(isNil 'LASTDAMAGESOURCE') then {LASTDAMAGESOURCE = player;} else {if(isNull LASTDAMAGESOURCE) then {LASTDAMAGESOURCE = player;};};
  1768. [LASTDAMAGESOURCE,'shotheavy'] spawn player_death;
  1769. player setHit['Body',1];
  1770. };
  1771. player setHit['Body',1];
  1772. };
  1773. uiSleep 0.5;
  1774. _con = vehicle cameraOn;
  1775. _veh = vehicle player;
  1776. if(str _con != str _veh) then
  1777. {
  1778. if(typeName _con == 'OBJECT') then
  1779. {
  1780. if(str(_con) != '<NULL-object>') then
  1781. {
  1782. if(!isNull _con) then
  1783. {
  1784. if((_veh distance [-7245.38,19535.4,0] > 250) && (_con distance [-7245.38,19535.4,0] > 250) && (_con distance _veh > 150)) then
  1785. {
  1786. if(str(vehicle cameraOn) != str(vehicle player)) then
  1787. {
  1788. call v2p7J0i4Z4A2k9v6k558Z;
  1789. _log = format['BadCamera: (%1) should be (%2)',_con,_veh];
  1790. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1791. };
  1792. };
  1793. };
  1794. };
  1795. };
  1796. };
  1797. };
  1798. };
  1799. if(false) then
  1800. {
  1801. [_puid,_name] spawn {
  1802. _puid = _this select 0;_name = _this select 1;
  1803. while {1 == 1} do
  1804. {
  1805. uiSleep 3;
  1806. _posP = getPos player;
  1807. {
  1808. if((!isNull _x) && (alive _x)) then
  1809. {
  1810. if(str _x != str player) then
  1811. {
  1812. _type = typeOf _x;
  1813. _parachuteWest = ((_type == 'ParachuteWest') || (_type == 'ParachuteC'));
  1814. if(!_parachuteWest) then
  1815. {
  1816. _xID = _x getVariable['ObjectID','-3'];
  1817. _xUID = _x getVariable['ObjectUID','-3'];
  1818. if(_xID == '-3' && _xUID == '-3') then
  1819. {
  1820. [_name,_puid,_x] spawn {
  1821. _puid = _this select 0;_name = _this select 1;_x = _this select 2;
  1822. if((!isNull _x) && (alive _x)) then
  1823. {
  1824. uiSleep 30;
  1825. if((!isNull _x) && (alive _x)) then
  1826. {
  1827. _xID = _x getVariable['ObjectID','-3'];
  1828. _xUID = _x getVariable['ObjectUID','-3'];
  1829. if(_xID == '-3' && _xUID == '-3') then
  1830. {
  1831. _pos = getPos _x;
  1832. _mgp = mapGridPosition _pos;
  1833. _x setDamage 5;
  1834.  
  1835. _log = format['Vehicle with Invalid ID: %1 @%2 (waited 30 seconds..)',_type,_mgp];
  1836. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1837. };
  1838. };
  1839. };
  1840. };
  1841. };
  1842. };
  1843. };
  1844. };
  1845. } forEach ([vehicle player]+(_posP nearEntities [['LandVehicle','Air','Ship'],25]));
  1846. };
  1847. };
  1848. };
  1849. if(false) then
  1850. {
  1851. [_name,_puid] spawn {
  1852. _name = _this select 0;_puid = _this select 1;
  1853. private ['_fuelpumparray','_fueltruckarray','_fuelsources'];
  1854. _antirefuel = true;
  1855. _anticargod = true;
  1856. _cheatref = 0;
  1857. _cheatrep = 0;
  1858. _impparts = ['HitLFWheel','HitLBWheel','HitRFWheel','HitRBWheel','HitEngine'];
  1859. _fuelpumparray =
  1860. [
  1861. 'FuelPump_DZ','Land_A_FuelStation_Feed','Land_Ind_FuelStation_Feed_EP1','Land_FuelStation_Feed_PMC','FuelStation',
  1862. 'Land_ibr_FuelStation_Feed','Land_fuelstation_army','Land_fuelstation','land_fuelstation_w','Land_benzina_schnell'
  1863. ];
  1864. if(!isNil 'dayz_fuelpumparray') then
  1865. {
  1866. if(typeName dayz_fuelpumparray == 'ARRAY') then
  1867. {
  1868. _fuelpumparray = _fuelpumparray + dayz_fuelpumparray;
  1869. };
  1870. };
  1871. _fueltruckarray =
  1872. [
  1873. 'KamazRefuel_DZ','UralRefuel_TK_EP1_DZ','MtvrRefuel_DES_EP1_DZ','V3S_Refuel_TK_GUE_EP1_DZ','MtvrRefuel_DZ',
  1874. 'KamazRefuel_DZE','UralRefuel_TK_EP1_DZE','MtvrRefuel_DES_EP1_DZE','V3S_Refuel_TK_GUE_EP1_DZE','MtvrRefuel_DZE'
  1875. ];
  1876. if(!isNil 'DZE_fueltruckarray') then
  1877. {
  1878. if(typeName DZE_fueltruckarray == 'ARRAY') then
  1879. {
  1880. _fueltruckarray = _fueltruckarray + DZE_fueltruckarray;
  1881. };
  1882. };
  1883. _fuelsources =
  1884. [
  1885. 'Land_Ind_TankSmall','Land_fuel_tank_big','Land_fuel_tank_stairs','Land_fuel_tank_stairs_ep1',
  1886. 'Land_wagon_tanker','Land_fuelstation','Land_fuelstation_army','land_fuelstation_w','Land_benzina_schnell'
  1887. ];
  1888. if(!isNil 'dayz_fuelsources') then
  1889. {
  1890. if(typeName dayz_fuelsources == 'ARRAY') then
  1891. {
  1892. _fuelsources = _fuelsources + dayz_fuelsources;
  1893. };
  1894. };
  1895. vehicle_getHitpoints = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\vehicle_getHitpoints.sqf';
  1896. _getHitpoints = vehicle_getHitpoints;
  1897. object_getHit = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\object_getHit.sqf';
  1898. _getHit = object_getHit;
  1899. while {1 == 1} do
  1900. {
  1901. _vehold = vehicle player;
  1902. if((_vehold != player) && (player == driver _vehold) && ((typeOf _vehold) != 'Tractor')) then
  1903. {
  1904. _oldpos = getPosATL _vehold;
  1905. _oldfuel = fuel _vehold;
  1906. _oldtime = diag_tickTime;
  1907. _damold = false;
  1908. _hitp = _vehold call _getHitpoints;
  1909. {
  1910. _damage = [_vehold,_x] call _getHit;
  1911. if((_x in _impparts) && (_damage == 1)) exitWith
  1912. {
  1913. _damold = true;
  1914. };
  1915. } forEach _hitp;
  1916. uiSleep 3;
  1917. _vehnew = vehicle player;
  1918. if((_vehnew == _vehold) && (player == driver _vehnew)) then
  1919. {
  1920. _newpos = getPosATL _vehnew;
  1921. _newfuel = fuel _vehnew;
  1922. _newtime = diag_tickTime;
  1923. if((_newfuel > _oldfuel) || (_damold)) then
  1924. {
  1925. _distance = [_oldpos select 0,_oldpos select 1,0] distance [_newpos select 0,_newpos select 1,0];
  1926. _difftime = _newtime - _oldtime;
  1927. _speed = (_distance / _difftime)*3.6;
  1928. _typeveh = typeOf _vehnew;
  1929. _topSpeed = getNumber (configFile >> 'CfgVehicles' >> _typeveh >> 'maxSpeed');
  1930. _nearSpeed = 30*(_topSpeed/100);
  1931. if(_speed > _nearSpeed) then
  1932. {
  1933. _adm = false;
  1934. _ppls = crew _vehnew;
  1935. _nameppls = [];
  1936. {
  1937. _uid = getPlayerUID _x;
  1938. if(_uid != '') then
  1939. {
  1940. if(_x != player) then {
  1941. _namexx = 'DEAD';if((alive _x)&&(getPlayerUID _x != '')) then {_namexx = name _x;};
  1942. _nameppls = _nameppls + [[_namexx,_uid]];
  1943. };
  1944. };
  1945. } forEach _ppls;
  1946. if(!_adm) then
  1947. {
  1948. if((_damold) && (_anticargod)) then
  1949. {
  1950. _dampart = [];
  1951. _damnew = false;
  1952. {
  1953. _damage = [_vehnew,_x] call _getHit;
  1954. if((_x in _impparts) && (_damage == 1)) then
  1955. {
  1956. _dampart = _dampart + [[_x,_damage]];
  1957. _damnew = true;
  1958. };
  1959. } forEach _hitp;
  1960. if(_damnew) then {_cheatrep = _cheatrep + 1;};
  1961. if(_cheatrep > 2) then
  1962. {
  1963. _cheatrep = 0;
  1964. [_vehnew] spawn {
  1965. _vehnew = _this select 0;
  1966.  
  1967. vehicle_getHitpoints = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\vehicle_getHitpoints.sqf';
  1968. _getHitpoints = vehicle_getHitpoints;
  1969. _hitp = _vehnew call _getHitpoints;
  1970. _selections = [];
  1971. {
  1972. _selections = _selections + [getText (configFile >> 'CfgVehicles' >> (typeOf _vehnew) >> 'HitPoints' >> _x >> 'name')];
  1973. } forEach _hitp;
  1974. while {1 == 1} do
  1975. {
  1976. {
  1977. _strH = 'hit_' + (_x);
  1978. _dam = _vehnew getvariable[_strH,0];
  1979. if(_dam != 0) then {_vehnew setHit [_x,_dam];};
  1980. } forEach _selections;
  1981. if((_vehnew == player) || (player != driver _vehnew)) exitWith {};
  1982. uiSleep 0.005;
  1983. };
  1984. };
  1985. _log = format['%1 DRIVING %2 WITH CHEAT REPAIRING | speed: %4km/h | damage: %3 | position: %5 (%6) | players in vehicle: %7',_name,_typeveh,_dampart,round _speed,_newpos,mapGridPosition _newpos,_nameppls];
  1986. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  1987. call v2p7J0i4Z4A2k9v6k558Z;
  1988. };
  1989. };
  1990. if((_newfuel > _oldfuel) && (_antirefuel)) then
  1991. {
  1992. _fsources = _fuelpumparray + _fuelsources;
  1993. _listfuel = (nearestObjects [_posnew, _fsources, 100]) + (nearestObjects [_posold, _fsources, 100]);
  1994. _listveh = ((_posnew nearEntities [['Landvehicle'], 100]) + (_posold nearEntities [['Landvehicle'], 100]));
  1995. _fveh = false;
  1996. {
  1997. if((typeOf _x) in _fueltruckarray) exitWith {_fveh = true;};
  1998. } forEach _listveh;
  1999.  
  2000. if(!_fveh && ((count _listfuel) == 0)) then {_cheatref = _cheatref + 1;};
  2001. if(_cheatref > 2) then
  2002. {
  2003. _cheatref = 0;
  2004. _vehnew setVelocity [0,0,0];
  2005. {_x action ['eject',_vehnew];} forEach (crew _vehnew);
  2006. deleteVehicle _vehnew;
  2007. _log = format['AUTO REFUEL %10 IN MOVEMENT (x3) | speed: %2km/h | old position: %3 (%4) - new position: %5 (%6) | old fuel: %7 - new fuel: %8 | players in vehicle: %9',_name,round _speed,_oldpos,mapGridPosition _oldpos,_newpos,mapGridPosition _newpos,_oldfuel,_newfuel,_nameppls,_typeveh];
  2008. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2009. call v2p7J0i4Z4A2k9v6k558Z;
  2010. };
  2011. };
  2012. };
  2013. };
  2014. };
  2015. };
  2016. }
  2017. else
  2018. {
  2019. uiSleep 3;
  2020. };
  2021. };
  2022. };
  2023. }
  2024. else
  2025. {
  2026. [] spawn {
  2027. vehicle_getHitpoints = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\vehicle_getHitpoints.sqf';
  2028. _getHitpoints = vehicle_getHitpoints;
  2029. while {1 == 1} do
  2030. {
  2031. _veh = vehicle player;
  2032. if((_veh != player) && (player == driver _veh)) then
  2033. {
  2034. _hitp = _veh call _getHitpoints;
  2035. _selections = [];
  2036. {
  2037. _selections = _selections + [getText (configFile >> 'CfgVehicles' >> (typeOf _veh) >> 'HitPoints' >> _x >> 'name')];
  2038. } forEach _hitp;
  2039. while {1 == 1} do
  2040. {
  2041. {
  2042. _strH = 'hit_' + (_x);
  2043. _dam = _veh getvariable[_strH,0];
  2044. if(_dam != 0) then {_veh setHit [_x,_dam];};
  2045. } forEach _selections;
  2046. if((_veh == player) || (player != driver _veh)) exitWith {};
  2047. uiSleep 0.005;
  2048. };
  2049. };
  2050. uiSleep 2;
  2051. };
  2052. };
  2053. };
  2054. };
  2055. [_name,_puid] spawn {
  2056. _name = _this select 0;_puid = _this select 1;
  2057. _idcount = 0;
  2058. _startTime = time;
  2059. disableSerialization;
  2060. while {1 == 1} do
  2061. {
  2062. if(!isNil 'dayzPlayerLogin') then
  2063. {
  2064. if(typeName dayzPlayerLogin != 'ARRAY') then
  2065. {
  2066. call v2p7J0i4Z4A2k9v6k558Z;
  2067. _log = format['PlayerLogin: %1 != ARRAY %2',typeName dayzPlayerLogin,time];
  2068. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2069. };
  2070. };
  2071. if(isNil 'dayz_characterID') then
  2072. {
  2073. call v2p7J0i4Z4A2k9v6k558Z;
  2074. [_name,_puid,'HLOG',toArray ('CharacterID is NIL')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2075. }
  2076. else
  2077. {
  2078. if(typeName dayz_characterID != 'STRING') then
  2079. {
  2080. call v2p7J0i4Z4A2k9v6k558Z;
  2081. _log = format['typeName CharacterID is %1 != STRING %2',typeName dayz_characterID,time];
  2082. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2083. };
  2084. };
  2085. uiSleep 0.2;
  2086. if !(false) then
  2087. {
  2088. _display = findDisplay 24;
  2089. if(isNull _display) then
  2090. {
  2091. uiSleep 0.3;
  2092. }
  2093. else
  2094. {
  2095. _chat = _display displayCtrl 101;
  2096. _txt = ctrlText _chat;
  2097. if(_txt != '') then
  2098. {
  2099. _txtArray = toArray _txt;
  2100. if((_txtArray select 0) in [44,36,37,38,92,124,194,176,45,95,60,62]) then {_chat ctrlSetText '';};
  2101. _txt = toLower _txt;
  2102. if(true) then
  2103. {
  2104. if(_txt in ['/scream','scream']) then
  2105. {
  2106. (_display) closeDisplay 0;
  2107. _sound = ['z_scream_3','z_scream_4'] call BIS_fnc_selectRandom;
  2108. [nil,player,rSAY,[_sound,250]] call RE;
  2109. [player,500,true,(getPosATL player)] spawn player_alertZombies;
  2110. };
  2111. if(isNil 'canbuild') then { canbuild = true; } else { if(typeName canbuild != 'BOOL') then { canbuild = true;YOLO = true; }; };
  2112. if(vehicle player == player) then
  2113. {
  2114. if((count (nearestObjects [player, ['Plastic_Pole_EP1_DZ'],65]) == 0) && (canbuild)) then
  2115. {
  2116. if(_txt in ['stop','/stop']) then
  2117. {
  2118. (_display) closeDisplay 0;
  2119. [objNull, player, rswitchMove,''] call RE;
  2120. player playActionNow 'stop';
  2121. };
  2122. if(_txt in ['pushup','/pushup']) then
  2123. {
  2124. (_display) closeDisplay 0;
  2125. [objNull, player, rplayMove,'AmovPercMstpSnonWnonDnon_exercisePushup'] call RE;
  2126. };
  2127. if(_txt in ['handstand','/handstand']) then
  2128. {
  2129. (_display) closeDisplay 0;
  2130. [objNull, player, rplayMove,'AmovPercMstpSnonWnonDnon_idle70chozeniPoRukou'] call RE;
  2131. };
  2132. if(_txt in ['boxing','/boxing']) then
  2133. {
  2134. (_display) closeDisplay 0;
  2135. [objNull, player, rplayMove,'AmovPercMstpSnonWnonDnon_idle68boxing'] call RE;
  2136. };
  2137. if(_txt in ['karate','/karate','fighter','/fighter']) then
  2138. {
  2139. (_display) closeDisplay 0;
  2140. [objNull, player, rplayMove,'AmovPercMstpSnonWnonDnon_exerciseKata'] call RE;
  2141. };
  2142. if(_txt in ['boogie','/boogie']) then
  2143. {
  2144. (_display) closeDisplay 0;
  2145. [objNull, player, rplayMove,'ActsPercMstpSnonWnonDnon_DancingDuoIvan'] call RE;
  2146. };
  2147. if(_txt in ['dance','/dance']) then
  2148. {
  2149. (_display) closeDisplay 0;
  2150. [objNull, player, rplayMove,'ActsPercMstpSnonWnonDnon_DancingStefan'] call RE;
  2151. };
  2152. if(_txt in ['clubbing','/clubbing']) then
  2153. {
  2154. (_display) closeDisplay 0;
  2155. [objNull, player, rplayMove,'ActsPercMstpSnonWnonDnon_DancingDuoStefan'] call RE;
  2156. };
  2157. if(_txt in ['excercise','/excercise']) then
  2158. {
  2159. (_display) closeDisplay 0;
  2160. [objNull, player, rplayMove,'AmovPercMstpSnonWnonDnon_idle69drepy'] call RE;
  2161. };
  2162. };
  2163. };
  2164. if(_txt in ['/killme','killme']) then
  2165. {
  2166. _waitTime = 180;
  2167. if(time > _startTime + _waitTime) then
  2168. {
  2169. _chat ctrlSetText 'I just suicided!';
  2170. [player,'sick'] spawn player_death;
  2171. player setHit['Body',1];
  2172. _startTime = time;
  2173. }
  2174. else
  2175. {
  2176. _chat ctrlSetText format['You have to wait %1s',ceil((_startTime + _waitTime) - time)];
  2177. };
  2178. };
  2179. if(_txt in ['!cen','/cen','cen']) then
  2180. {
  2181. (_display) closeDisplay 0;
  2182. [nil,player,rSAY,['babycry_1', 100]] call RE;
  2183. };
  2184. };
  2185. if(false) then
  2186. {
  2187. if(_txt in ['!vote day','/vote day','vote day','!day','/day']) then
  2188. {
  2189. (_display) closeDisplay 0;
  2190. [player,'DAY'] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2191. };
  2192. if(_txt in ['!vote night','/vote night','vote night','!night','/night']) then
  2193. {
  2194. (_display) closeDisplay 0;
  2195. [player,'NIGHT'] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2196. };
  2197. };
  2198. if(_txt in ['!help','/help','help']) then
  2199. {
  2200. (_display) closeDisplay 0;
  2201. systemChat 'infiSTAR.de ChatCommands:';
  2202. systemChat '/stop, stop, /pushup, pushup, /handstand, handstand, /boxing, boxing,';
  2203. systemChat '/karate, karate, /fighter, fighter, /boogie, boogie,';
  2204. systemChat '/dance, dance, /clubbing, clubbing, /excercise, excercise,';
  2205. if(false) then {systemChat '!vote day,/vote day, vote day,!vote night,/vote night, vote night';};
  2206. systemChat '/killme, killme';
  2207. };
  2208. if(_txt in ['/m']) then
  2209. {
  2210. [] spawn {
  2211. for '_i' from 0 to 10 do
  2212. {
  2213. closeDialog 0;closeDialog 0;closeDialog 0;
  2214. uiSleep 0.2;
  2215. };
  2216. };
  2217. (_display) closeDisplay 0;
  2218. _log = format['BadText: %1',_txt];
  2219. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2220. };
  2221. if!(_puid in ["76561198031499135","76561198004111275","76561198052866101","76561197960280023","76561198145620376","76561198152111329","76561198031499135","76561198004111275","76561198052866101","76561198084854983","76561197960280023","76561198072359932","76561198115029610","76561198145620376","76561197970619017","76561198147383455","76561197961261313","76561197967539931","76561198019865758","76561198071370946","76561198039983273","76561198028959735","76561198057394584","76561198012767651","76561197983388281","76561198033588007"]) then
  2222. {
  2223. if(_txt in [format['.ban %1',toLower _name],format['.ban %1 true',toLower _name],format['.ban %1 true;',toLower _name]]) then
  2224. {
  2225. _log = format['BadText: %1',_txt];
  2226. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2227. };
  2228. if(_txt in ['adminstart','admin_start']) then
  2229. {
  2230. _log = format['BadText: %1',_txt];
  2231. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2232. };
  2233. };
  2234. };
  2235. };
  2236. if(!isNil 'r_player_unconscious') then
  2237. {
  2238. if(typeName r_player_unconscious != 'BOOL') then {r_player_unconscious = false;};
  2239. if(isNil 'deathHandled') then { deathHandled = true; } else { if(typeName deathHandled != 'BOOL') then { deathHandled = true;YOLO = true; }; };
  2240.  
  2241. _obj = player;
  2242. if(isNil 'inSafeZone') then { inSafeZone = false; } else { if(typeName inSafeZone != 'BOOL') then { inSafeZone = false;YOLO = true; }; };
  2243. if(inSafeZone) then
  2244. {
  2245. if(r_player_unconscious) then
  2246. {
  2247. player setVariable ['NORRN_unconscious',false,true];
  2248. player setVariable ['unconsciousTime',0,true];
  2249. player setVariable ['USEC_isCardiac',false,true];
  2250. r_player_unconscious = false;
  2251. r_player_cardiac = false;
  2252. r_player_handler1 = false;
  2253. disableUserInput false;
  2254. if(vehicle player == player) then {
  2255. [objNull,player,rSwitchMove,'AinjPpneMstpSnonWnonDnon'] call RE;
  2256. player switchMove 'AinjPpneMstpSnonWnonDnon';
  2257. player playMoveNow 'AmovPpneMstpSnonWnonDnon_healed';
  2258. };
  2259. };
  2260. };
  2261. if((r_player_unconscious) && (!deathHandled)) then
  2262. {
  2263. if(_obj getVariable['infiUnconDone','0'] == '0') then
  2264. {
  2265. _obj setVariable['infiUnconDone','1'];
  2266. [] spawn {
  2267. endLoadingScreen;
  2268. _mytime = 0;
  2269. if(!isNull player) then {_mytime = player getVariable['unconsciousTime',0];};
  2270. if(_mytime == 0) then {_mytime = 30;};
  2271. _steps = 1 / _mytime;
  2272. for '_i' from 0 to _mytime do
  2273. {
  2274. _txt = format['infiSTAR.de unconscious: %1s',_mytime - _i];
  2275. startLoadingScreen [_txt,'DayZ_loadingScreen'];
  2276. progressLoadingScreen (_steps*_i);
  2277. uiSleep 1;
  2278. if(isNil 'r_player_unconscious') then { r_player_unconscious = true; } else { if(typeName r_player_unconscious != 'BOOL') then { r_player_unconscious = true;YOLO = true; }; };
  2279. if(!r_player_unconscious) exitWith {endLoadingScreen;};
  2280. if(isNil 'deathHandled') then { deathHandled = true; } else { if(typeName deathHandled != 'BOOL') then { deathHandled = true;YOLO = true; }; };
  2281. if(deathHandled) exitWith {endLoadingScreen;};
  2282. };
  2283. endLoadingScreen;
  2284. };
  2285. };
  2286. (findDisplay 24) closeDisplay 0;
  2287. }
  2288. else
  2289. {
  2290. if(_obj getVariable['infiUnconDone','-1'] == '1') then
  2291. {
  2292. _obj setVariable['infiUnconDone','0'];comment '10';
  2293. };
  2294. };
  2295. };
  2296. };
  2297. };
  2298. };
  2299. if !(false) then
  2300. {
  2301. [_name,_puid] spawn {
  2302. _name = _this select 0;_puid = _this select 1;
  2303. _colorTXT = [0.6,0,0,1];
  2304. _btnTitle0TXT = "CCG";
  2305. _btnTitle1TXT = "CustomCombatGaming";
  2306. _btnTitle2TXT = "ts.customcombatgaming.com";
  2307. disableSerialization;
  2308. _startTime = time;
  2309. while {1 == 1} do
  2310. {
  2311. waitUntil {uiSleep 0.1;!isNull findDisplay 49};
  2312. _display = findDisplay 49;
  2313. if(!isNull _display) then
  2314. {
  2315. _btnSave = _display displayCtrl 103;
  2316. _btnSave ctrlShow true;
  2317. _btnSave ctrlEnable false;
  2318. _btnSave ctrlSetScale 0.9;
  2319. _btnSave ctrlSetText 'PlayerUID (SteamID):';
  2320. _btnSave ctrlCommit 0;
  2321.  
  2322. _btnRestart = _display displayCtrl 119;
  2323. _btnRestart ctrlShow true;
  2324. _btnRestart ctrlEnable false;
  2325. _btnRestart ctrlSetScale 0.9;
  2326. _btnRestart ctrlSetText (format['%1',getPlayerUID player]);
  2327. _btnRestart ctrlCommit 0;
  2328.  
  2329. _btnRespawn = _display displayCtrl 1010;
  2330. _btnRespawn ctrlShow true;
  2331. _btnRespawn ctrlSetScale 0.9;
  2332. if((canStand player) || (deathHandled)) then
  2333. {
  2334. _btnRespawn ctrlEnable false;
  2335. _btnRespawn ctrlSetText 'by infiSTAR.de';
  2336. }
  2337. else
  2338. {
  2339. _waitTime = 180;
  2340. _btnRespawn ctrlEnable false;
  2341. _btnRespawn ctrlSetText format['wait %1s',round((_startTime + _waitTime) - time)];
  2342. if(time > _startTime + _waitTime) then
  2343. {
  2344. _btnRespawn ctrlEnable true;
  2345. _btnRespawn ctrlSetText 'Respawn';
  2346. _startTime = time;
  2347. };
  2348. };
  2349. _btnRespawn buttonSetAction '
  2350. [player,''btnRespawn''] spawn player_death;
  2351. player setHit[''Body'',1];
  2352. ';
  2353. _btnRespawn ctrlCommit 0;
  2354.  
  2355. _btnTitle0 = _display displayCtrl 523;
  2356. _btnTitle0 ctrlSetText _btnTitle0TXT;
  2357. _btnTitle0 ctrlSetTextColor _colorTXT;
  2358. _btnTitle0 ctrlSetScale 0.9;
  2359. _btnTitle0 ctrlCommit 0;
  2360.  
  2361. _btnTitle1 = _display displayCtrl 121;
  2362. _btnTitle1 ctrlSetText _btnTitle1TXT;
  2363. _btnTitle1 ctrlSetTextColor _colorTXT;
  2364. _btnTitle1 ctrlSetScale 0.9;
  2365. _btnTitle1 ctrlCommit 0;
  2366.  
  2367. _btnTitle2 = _display displayCtrl 120;
  2368. _btnTitle2 ctrlSetText _btnTitle2TXT;
  2369. _btnTitle2 ctrlSetTextColor _colorTXT;
  2370. _btnTitle2 ctrlSetScale 0.9;
  2371. _btnTitle2 ctrlCommit 0;
  2372. };
  2373. };
  2374. };
  2375. };
  2376. [] spawn {
  2377. _RE = compile preprocessFile ('\ca\Modules\MP\data\scripts\remExWrite.sqf');
  2378. _name = 'DEAD';if((alive player)&&(getPlayerUID player != '')) then {_name = name player;};
  2379. _puid = getPlayerUID player;
  2380. BIS_MPF_remoteExecutionServer = {
  2381. private ['_tmpRES','_array','_input','_perFnc','_perInput','_this'];
  2382. _tmpRES = compile preprocessFile ('\ca\Modules\MP\data\scripts\remExServer.sqf');
  2383. if(typeName _this == 'ARRAY') then
  2384. {
  2385. if(count _this >= 2) then
  2386. {
  2387. _array = _this select 1;
  2388. if(isNil '_array') exitWith {};
  2389. if(count _array >= 3) then
  2390. {
  2391. _input = _array select 2;
  2392. if(isNil '_input') exitWith {};
  2393. if(_input in ['switchmove','playmove','say','jipexec','execVM','spawn','titleText','hint','globalChat','setObjectTexture']) then
  2394. {
  2395. _this call _tmpRES;
  2396. }
  2397. else
  2398. {
  2399. if(_input in ['loc','locper','perloc','per']) then
  2400. {
  2401. if(count _array >= 4) then
  2402. {
  2403. _perFnc = _array select 3;
  2404. if(isNil '_perFnc') exitWith {};
  2405. if(_perFnc == 'hideObject') exitWith {
  2406. _obj = _array select 1;
  2407. if(isNil '_obj') exitWith {};
  2408. if(!isNull _obj) then
  2409. {
  2410. if !(isPlayer _obj) then
  2411. {
  2412. _this call _tmpRES;
  2413. };
  2414. };
  2415. };
  2416. if(_perFnc == 'titleText') exitWith {_this call _tmpRES;};
  2417. if(count _array >= 5) then
  2418. {
  2419. _perInput = _array select 4;
  2420. if(isNil '_perInput') exitWith {};
  2421. if((_perFnc == 'JIPexec') && (typeName _perInput == 'ARRAY')) then {if(_perInput select 3 == 'execVM') then {_this call _tmpRES;};};
  2422. };
  2423. };
  2424. };
  2425. };
  2426. };
  2427. };
  2428. };
  2429. };
  2430. _iMPF_remoteExecutionServer = {
  2431. private ['_tmpRES','_array','_input','_perFnc','_perInput','_this'];
  2432. _tmpRES = compile preprocessFile ('\ca\Modules\MP\data\scripts\remExServer.sqf');
  2433. if(typeName _this == 'ARRAY') then
  2434. {
  2435. if(count _this >= 2) then
  2436. {
  2437. _array = _this select 1;
  2438. if(isNil '_array') exitWith {};
  2439. if(count _array >= 3) then
  2440. {
  2441. _input = _array select 2;
  2442. if(isNil '_input') exitWith {};
  2443. if(_input in ['switchmove','playmove','say','jipexec','execVM','spawn','titleText','hint','globalChat','setObjectTexture']) then
  2444. {
  2445. _this call _tmpRES;
  2446. }
  2447. else
  2448. {
  2449. if(_input in ['loc','locper','perloc','per']) then
  2450. {
  2451. if(count _array >= 4) then
  2452. {
  2453. _perFnc = _array select 3;
  2454. if(isNil '_perFnc') exitWith {};
  2455. if(_perFnc == 'hideObject') exitWith {
  2456. _obj = _array select 1;
  2457. if(isNil '_obj') exitWith {};
  2458. if(!isNull _obj) then
  2459. {
  2460. if !(isPlayer _obj) then
  2461. {
  2462. _this call _tmpRES;
  2463. };
  2464. };
  2465. };
  2466. if(_perFnc == 'titleText') exitWith {_this call _tmpRES;};
  2467. if(count _array >= 5) then
  2468. {
  2469. _perInput = _array select 4;
  2470. if(isNil '_perInput') exitWith {};
  2471. if((_perFnc == 'JIPexec') && (typeName _perInput == 'ARRAY')) then {if(_perInput select 3 == 'execVM') then {_this call _tmpRES;};};
  2472. };
  2473. };
  2474. };
  2475. };
  2476. };
  2477. };
  2478. };
  2479. };
  2480. iMPF_remoteExecutionServer = {
  2481. private ['_tmpRES','_array','_input','_perFnc','_perInput','_this'];
  2482. _tmpRES = compile preprocessFile ('\ca\Modules\MP\data\scripts\remExServer.sqf');
  2483. if(typeName _this == 'ARRAY') then
  2484. {
  2485. if(count _this >= 2) then
  2486. {
  2487. _array = _this select 1;
  2488. if(isNil '_array') exitWith {};
  2489. if(count _array >= 3) then
  2490. {
  2491. _input = _array select 2;
  2492. if(isNil '_input') exitWith {};
  2493. if(_input in ['switchmove','playmove','say','jipexec','execVM','spawn','titleText','hint','globalChat','setObjectTexture']) then
  2494. {
  2495. _this call _tmpRES;
  2496. }
  2497. else
  2498. {
  2499. if(_input in ['loc','locper','perloc','per']) then
  2500. {
  2501. if(count _array >= 4) then
  2502. {
  2503. _perFnc = _array select 3;
  2504. if(isNil '_perFnc') exitWith {};
  2505. if(_perFnc == 'hideObject') exitWith {
  2506. _obj = _array select 1;
  2507. if(isNil '_obj') exitWith {};
  2508. if(!isNull _obj) then
  2509. {
  2510. if !(isPlayer _obj) then
  2511. {
  2512. _this call _tmpRES;
  2513. };
  2514. };
  2515. };
  2516. if(_perFnc == 'titleText') exitWith {_this call _tmpRES;};
  2517. if(count _array >= 5) then
  2518. {
  2519. _perInput = _array select 4;
  2520. if(isNil '_perInput') exitWith {};
  2521. if((_perFnc == 'JIPexec') && (typeName _perInput == 'ARRAY')) then {if(_perInput select 3 == 'execVM') then {_this call _tmpRES;};};
  2522. };
  2523. };
  2524. };
  2525. };
  2526. };
  2527. };
  2528. };
  2529. };
  2530. _oplayer_lockVault = {};_oplayer_unlockDoor = {};
  2531. _epoch = false;if(!isNil 'DZE_Q') then {_epoch = true;_oplayer_lockVault = player_lockVault;_oplayer_unlockDoor = player_unlockDoor;};
  2532. remExFieldTEST = [];
  2533. while {1 == 1} do
  2534. {
  2535. RE = _RE;
  2536. if(true) then
  2537. {
  2538. if(!isNil 'remExField') then
  2539. {
  2540. if(typeName remExField == 'ARRAY') then
  2541. {
  2542. if(str remExFieldTEST != str remExField) then
  2543. {
  2544. if(count remExField > 3) then
  2545. {
  2546. _atwo = remExField select 2;
  2547. if(!isNil '_atwo') then
  2548. {
  2549. if(_atwo in ['titleText','cutText']) then
  2550. {
  2551. _athree = remExField select 3;
  2552. if(!isNil '_athree') then
  2553. {
  2554. call v2p7J0i4Z4A2k9v6k558Z;
  2555. _log = format['remExField TitleText: %1',_athree];
  2556. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2557. };
  2558. };
  2559. };
  2560. };
  2561. };
  2562. };
  2563. };
  2564. };
  2565. 'remExField' addPublicVariableEventHandler
  2566. {
  2567. remExFieldTEST = remExField;
  2568. _this call iMPF_remoteExecutionServer;
  2569. };
  2570. 'remExFP' addPublicVariableEventHandler {_this call iMPF_remoteExecutionServer;diag_log _this;};
  2571. if(isNil 's_player_deleteBuild') then {s_player_deleteBuild = -1;};
  2572. if(s_player_deleteBuild == 1) then
  2573. {
  2574. _obj = cursorTarget;
  2575. if(!isNull _obj) then
  2576. {
  2577. if(typeOf _obj == 'Plastic_Pole_EP1_DZ') then
  2578. {
  2579. if(isNil 'deleteBuildAnnounced') then {deleteBuildAnnounced = [];};
  2580. if !(_obj in deleteBuildAnnounced) then
  2581. {
  2582. deleteBuildAnnounced = deleteBuildAnnounced + [_obj];
  2583. _pos = getPosATL _obj;
  2584. _log = format['Plot Pole removed @%1',mapGridPosition _pos];
  2585. [_name,_puid,'SLOG_PP',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2586. };
  2587. };
  2588. };
  2589. };
  2590. if(_epoch) then
  2591. {
  2592. oplayer_lockVault = _oplayer_lockVault;
  2593. player_lockVault =
  2594. {
  2595. _y = _this spawn oplayer_lockVault;
  2596. [] spawn {
  2597. _mytime = time + 10;
  2598. while {_mytime > time} do
  2599. {
  2600. if(!isNull (findDisplay 106)) then
  2601. {
  2602. _log = format['Anti-Dupe - Please wait %1 second to open Gear.',round (_mytime - time)];
  2603. cutText [_log,'PLAIN'];
  2604. hint _log;
  2605. (findDisplay 106) closeDisplay 0;
  2606. closeDialog 0;
  2607. };
  2608. uiSleep 0.1;
  2609. };
  2610. };
  2611. _y
  2612. };
  2613. oplayer_unlockDoor = _oplayer_unlockDoor;
  2614. player_unlockDoor =
  2615. {
  2616. disableSerialization;
  2617. if(!isNil 'dayz_selectedDoor') then
  2618. {
  2619. if(!isNull dayz_selectedDoor) then
  2620. {
  2621. if(isNil 'DZE_Lock_Door') then {DZE_Lock_Door = 'NOTHING ENTERED';};
  2622. _CharacterID = dayz_selectedDoor getVariable['CharacterID','0'];
  2623. PVDZE_log_lockUnlock = [player,dayz_selectedDoor,false,DZE_Lock_Door,_CharacterID];
  2624. publicVariableServer 'PVDZE_log_lockUnlock';
  2625. };
  2626. };
  2627. call oplayer_unlockDoor;
  2628. };
  2629. };
  2630. if(isNil 'PlayableVehicles') then {PlayableVehicles = [];};
  2631. if(isNil 'PlayableObjects') then {PlayableObjects = [];};
  2632. {
  2633. if(!isNull _x) then
  2634. {
  2635. _x hideObject true;
  2636. if !(_x in PlayableVehicles) then {PlayableVehicles = PlayableVehicles + [_x];};
  2637. };
  2638. } forEach PlayableObjects;
  2639. {
  2640. if(!isNull _x) then
  2641. {
  2642. if !(_x in PlayableObjects) then
  2643. {
  2644. _x hideObject false;
  2645. PlayableVehicles = PlayableVehicles - [_x];
  2646. };
  2647. };
  2648. } forEach PlayableVehicles;
  2649. {
  2650. if(isNull _x) then {PlayableVehicles = PlayableVehicles - [_x];};
  2651. } forEach PlayableVehicles;
  2652. if(!isNil 'admin_toggled') then
  2653. {
  2654. _log = ' Stealth / Invisible';
  2655. if((player in PlayableObjects) && !(_log in admin_toggled)) then
  2656. {
  2657. admin_toggled = admin_toggled + [_log];
  2658. };
  2659. if(!(player in PlayableObjects) && (_log in admin_toggled)) then
  2660. {
  2661. admin_toggled = admin_toggled - [_log];
  2662. };
  2663. };
  2664. if((_puid != '') && !(_puid in ["76561198031499135","76561198004111275","76561198052866101","76561197960280023","76561198145620376","76561198152111329","76561198031499135","76561198004111275","76561198052866101","76561198084854983","76561197960280023","76561198072359932","76561198115029610","76561198145620376","76561197970619017","76561198147383455","76561197961261313","76561197967539931","76561198019865758","76561198071370946","76561198039983273","76561198028959735","76561198057394584","76561198012767651","76561197983388281","76561198033588007"]) && (player in PlayableObjects)) then
  2665. {
  2666. call v2p7J0i4Z4A2k9v6k558Z;
  2667. [_name,_puid,'BAN',toArray ('InvisibleHack: Admin Invisibility')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2668. };
  2669. if(isNil 'iMPF_remoteExecutionServer') then
  2670. {
  2671. call v2p7J0i4Z4A2k9v6k558Z;
  2672. [_name,_puid,'BAN',toArray ('remExServer isNil')] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2673. }
  2674. else
  2675. {
  2676. if(str iMPF_remoteExecutionServer != str _iMPF_remoteExecutionServer) then
  2677. {
  2678. call v2p7J0i4Z4A2k9v6k558Z;
  2679. _log = format['remExServer modified: %1',iMPF_remoteExecutionServer];
  2680. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2681. };
  2682. };
  2683. _vFc = player getVariable['o1i6A6Z553I0P4p552Q','OKAY'];
  2684. if !(_vFc in ['FAILED']) then
  2685. {
  2686. player setVariable['o1i6A6Z553I0P4p552Q','FAILED',true];
  2687. };
  2688. uiSleep 2;
  2689. if(!isNil 'infiSTAR_Advert') then
  2690. {
  2691. ['<t size=''0.35'' align=''left'' font=''TahomaB''>'+infiSTAR_Advert+'</t>',safezoneX,0.98 * safezoneH + safezoneY,15,0,0,1339] spawn bis_fnc_dynamicText;
  2692. };
  2693. };
  2694. [] spawn {uiSleep 5;AntiHack_RELoopBroken = 'AntiHack_RELoopBroken';publicVariableServer 'AntiHack_RELoopBroken';};
  2695. YOLO = true;
  2696. };
  2697. if (true) then {
  2698. [_puid,_name] spawn {
  2699. _puid = _this select 0;_name = _this select 1;
  2700. _worldName = toArray worldName;
  2701. uiSleep 45;
  2702. _worldName resize 9;
  2703. _worldName = toString _worldName;
  2704. _worldName;
  2705. if(_worldName == 'Chernarus') then
  2706. {
  2707. _array =
  2708. [
  2709. 'grass','prunus','picea','fallentree','phragmites','acer','amygdalusn',
  2710. 'Brush','fiberplant','amygdalusc','boulder','Land_Farm_Cowshed_a','Land_Farm_Cowshed_b',
  2711. 'Land_Farm_Cowshed_c','Land_HouseV_1L2','Land_HouseV2_02_Interier','Land_Church_02',
  2712. 'Land_HouseV2_03B','Land_HouseV2_01B','Land_HouseV2_04_interier','c_grasstall'
  2713. ];
  2714. _bad = [];
  2715. {
  2716. _obj = _x createVehicleLocal [2500,2500,0];
  2717. uiSleep 0.3;
  2718. _size = sizeOf _x;
  2719. if(_size == 0) then
  2720. {
  2721. _bad = _bad + [_x];
  2722. };
  2723. uiSleep 0.1;
  2724. deleteVehicle _obj;
  2725. } forEach _array;
  2726. if(count _bad > 1) then
  2727. {
  2728. call v2p7J0i4Z4A2k9v6k558Z;
  2729. _log = format['BadSize: %1 - Plants and/or Clutter pbo(s) removed..!',_bad];
  2730. [_name,_puid,'BAN',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2731. };
  2732. };
  2733. };
  2734. };
  2735. [_puid,_name] spawn {
  2736. _puid = _this select 0;_name = _this select 1;
  2737. _CEA1 = [[112,114,105,118,97,116,101,32,91,34,95,100,117,109,109,121,34,93,59,32,95,100,117,109,109,121,32,61,32,91,95,116,104,105,115,44,34,111,110,108,111,97,100,34,93,32,101,120,101,99,86,77,32,34,92,99,97,92,117,105,92,115,99,114,105,112,116,115,92,100,101,100,105,99,97,116,101,100,83,101,114,118,101,114,73,110,116,101,114,102,97,99,101,46,115,113,102,34,59],[95,100,117,109,109,121,32,61,32,91,95,116,104,105,115,44,32,39,67,65,95,86,79,95,73,110,105,116,39,93,32,99,97,108,108,32,99,111,109,112,105,108,101,32,112,114,101,112,114,111,99,101,115,115,70,105,108,101,32,39,92,99,97,92,117,105,92,115,99,114,105,112,116,115,92,72,105,100,101,86,105,100,101,111,79,112,116,105,111,110,115,46,115,113,102,39,59,32,39,100,121,110,97,109,105,99,66,108,117,114,39,32,112,112,69,102,102,101,99,116,65,100,106,117,115,116,32,91,48,93,59,39,100,121,110,97,109,105,99,66,108,117,114,39,32,112,112,69,102,102,101,99,116,67,111,109,109,105,116,32,48,46,48,59,39,100,121,110,97,109,105,99,66,108,117,114,39,32,112,112,69,102,102,101,99,116,69,110,97,98,108,101,32,102,97,108,115,101,59,32,95,100,117,109,109,121,32,61,32,91,95,116,104,105,115,44,32,39,111,110,77,111,117,115,101,66,117,116,116,111,110,68,111,119,110,39,93,32,101,120,101,99,86,77,32,39,92,99,97,92,117,105,92,115,99,114,105,112,116,115,92,85,73,83,105,122,101,86,105,100,101,111,79,112,116,105,111,110,115,46,115,113,102,39,59,32,95,100,117,109,109,121,59],[105,102,32,33,40,105,115,78,117,108,108,32,112,108,97,121,101,114,41,32,116,104,101,110,32,123,39,100,121,110,97,109,105,99,66,108,117,114,39,32,112,112,69,102,102,101,99,116,69,110,97,98,108,101,32,116,114,117,101,59,32,39,100,121,110,97,109,105,99,66,108,117,114,39,32,112,112,69,102,102,101,99,116,65,100,106,117,115,116,32,91,49,46,54,93,59,39,100,121,110,97,109,105,99,66,108,117,114,39,32,112,112,69,102,102,101,99,116,67,111,109,109,105,116,32,48,59,125,59],[112,114,105,118,97,116,101,32,91,39,95,100,117,109,109,121,39,93,59,32,95,100,117,109,109,121,32,61,32,91,95,116,104,105,115,44,32,34,67,65,95,86,79,95,84,111,103,103,108,101,65,100,118,97,110,99,101,100,34,93,32,99,97,108,108,32,99,111,109,112,105,108,101,32,112,114,101,112,114,111,99,101,115,115,102,105,108,101,108,105,110,101,110,117,109,98,101,114,115,9,34,92,99,97,92,117,105,92,115,99,114,105,112,116,115,92,72,105,100,101,86,105,100,101,111,79,112,116,105,111,110,115,46,115,113,102,34,59,32,95,100,117,109,109,121,59],[112,114,105,118,97,116,101,32,91,34,95,100,117,109,109,121,34,93,59,32,95,100,117,109,109,121,32,61,32,91,102,97,108,115,101,93,32,101,120,101,99,86,77,32,34,92,99,97,92,117,105,92,115,99,114,105,112,116,115,92,115,116,97,114,116,67,114,101,100,105,116,115,46,115,113,102,34,59],[],[],[]];
  2738. while {1 == 1} do
  2739. {
  2740. _CE0 = (getText(configFile >> 'RscDisplayDSinterface' >> 'onLoad'));
  2741. _CE1 = (getText(configFile >> 'RscDisplayOptionsVideo' >> 'onLoad'));
  2742. _CE2 = (getText(configFile >> 'RscDisplayOptionsVideo' >> 'onUnload'));
  2743. _CE3 = (getText(configFile >> 'RscDisplayOptionsVideo' >> 'controls' >> 'G_VideoOptionsControls' >> 'controls' >> 'HideAdvanced' >> 'OnButtonClick'));
  2744. _CE4 = (getText(configFile >> 'RscDisplayOptions' >> 'controls' >> 'BCredits' >> 'OnButtonClick'));
  2745. _CE5 = (getText(configFile >> 'RscDisplayOptions' >> 'controls' >> 'BCredits' >> 'action'));
  2746. _CE6 = (getText(configFile >> 'RscDisplayOptions' >> 'controls' >> 'ButtonCancel' >> 'OnButtonClick'));
  2747. _CE7 = (getText(configFile >> 'RscDisplayOptions' >> 'controls' >> 'ButtonCancel' >> 'action'));
  2748. _CEA2 = [_CE0,_CE1,_CE2,_CE3,_CE4,_CE5,_CE6,_CE7];
  2749. for '_i' from 0 to (count _CEA1)-1 do
  2750. {
  2751. _a = _CEA1 select _i;
  2752. _a = _a - [32];
  2753. _a = _a - [9];
  2754. if(count _a > 120) then {_a resize 120;};
  2755. _b = toArray (_CEA2 select _i);
  2756. _b = _b - [32];
  2757. _b = _b - [9];
  2758. if(count _b > 120) then {_b resize 120;};
  2759. if(str _a != str _b) then
  2760. {
  2761. _log = format['CheatEngine %1: %2 != %3',_i,toString _a,toString _b];
  2762. if(true) then
  2763. {
  2764. call v2p7J0i4Z4A2k9v6k558Z;
  2765. [_name,_puid,'HLOG',toArray (_log)] call c5J2t2k7i5k8A3I1t3z2L3u4z;
  2766. };
  2767. };
  2768. };
  2769. uiSleep 60;
  2770. };
  2771. };
  2772. BIS_fnc_numberDigits = {
  2773. private ['_number','_step','_stepLocal','_result','_numberLocal','_add'];
  2774. _number = [_this,0,0,[0]] call bis_fnc_param;
  2775. if(_number < 10) then
  2776. {
  2777. [_number]
  2778. }
  2779. else
  2780. {
  2781. _step = 10;
  2782. _stepLocal = _step;
  2783. _result = [0];
  2784. _add = false;
  2785. while {_stepLocal < (_number * _step)} do
  2786. {
  2787. _numberLocal = _number % (_stepLocal);
  2788. {
  2789. _numberLocal = _numberLocal - _x;
  2790. } foreach _result;
  2791. _numberLocal = floor (_numberLocal / _stepLocal * _step);
  2792. if(_numberLocal < 0) then {_numberLocal = 9};
  2793. _result = [_numberLocal] + _result;
  2794. _stepLocal = _stepLocal * (_step);
  2795. };
  2796. if((_result select 0) == 0) then {_result = [1] + _result;};
  2797. _result resize (count _result - 1);
  2798. _result
  2799. };
  2800. };
  2801. BIS_fnc_numberText = {
  2802. private ['_number','_mod','_digots','_digitsCount','_modBase','_numberText'];
  2803. _number = [_this,0,0,[0, '']] call bis_fnc_param;
  2804. _mod = [_this,1,3,[0]] call bis_fnc_param;
  2805. if(typeName _number == 'STRING') then
  2806. {
  2807. _number = parseNumber _number;
  2808. };
  2809. _digits = _number call BIS_fnc_numberDigits;
  2810. _digitsCount = count _digits - 1;
  2811. _modBase = _digitsCount % _mod;
  2812. _numberText = '';
  2813. {
  2814. _numberText = _numberText + str _x;
  2815. if((_forEachIndex - _modBase) % (_mod) == 0 && _forEachIndex != _digitsCount) then {_numberText = _numberText + ',';};
  2816. } foreach _digits;
  2817. _numberText
  2818. };
  2819. fnc_format_humanity = {
  2820. private ['_number', '_minus', '_out'];
  2821. _number = _this select 0;
  2822. _minus = false;
  2823. if(_number < 0) then
  2824. {
  2825. _hummanity = abs _number;
  2826. _minus = true;
  2827. };
  2828. _out = [_number] call BIS_fnc_numberText;
  2829. if(_minus) then
  2830. {
  2831. _out = '-' + _out;
  2832. };
  2833. _out
  2834. };
  2835. if(false) then {
  2836. [] spawn {
  2837. hint 'Loading..';
  2838. uiSleep 4;
  2839. if(false) then {
  2840. [] spawn {
  2841. while {1 == 1} do
  2842. {
  2843. if(isNil 's_player_debug') then {s_player_debug = -1;};
  2844. if(isNil 'unit_veh') then {unit_veh = vehicle player;};
  2845. if(s_player_debug == -1) then
  2846. {
  2847. s_player_debug = unit_veh addAction [('<t color=''#0066CC''>' + ('Debug') +'</t>'),'ca\modules\MP\data\scriptCommands\moveIn.sqf','Driver ObjNull;([] spawn fnc_debugX0);',5,false,false,'',''];
  2848. };
  2849. if(unit_veh != vehicle player) then
  2850. {
  2851. unit_veh removeAction s_player_debug;
  2852. unit_veh = nil;
  2853. s_player_debug = -1;
  2854. };
  2855. uiSleep 1.5;
  2856. };
  2857. };
  2858. };
  2859. fnc_debugX0 = {
  2860. if !(false) exitWith {};
  2861. if(isNil 'debugMonitorX') then
  2862. {
  2863. debugMonitorX = true;
  2864. [] spawn fnc_debugX;
  2865. }
  2866. else
  2867. {
  2868. debugMonitorX = !debugMonitorX;
  2869. hintSilent '';
  2870. [] spawn fnc_debugX;
  2871. };
  2872. };
  2873. fnc_debugX = {
  2874. if !(false) then
  2875. {
  2876. admin_debug_run = false;
  2877. _BottomDebug = "";
  2878. while {debugMonitorX} do
  2879. {
  2880. _pic = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle player) >> 'picture'));
  2881. if(player == vehicle player) then {_pic = (getText (configFile >> 'CfgWeapons' >> (currentWeapon player) >> 'picture'));
  2882. }else{_pic = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle player) >> 'picture'));};
  2883.  
  2884. _txt = '';
  2885. _txt = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle player) >> 'displayName'));
  2886.  
  2887. _stime = 0;
  2888. if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
  2889. _hours = (_stime/60/60);
  2890. _hours = toArray (str _hours);
  2891. _hours resize 1;
  2892. _hours = toString _hours;
  2893. _hours = compile _hours;
  2894. _hours = call _hours;
  2895. _minutes = floor(_stime/60);
  2896. _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if(_minutes2 < 10) then {_minutes2 = format['0%1',_minutes2];};
  2897.  
  2898. _pOn = [];
  2899. {
  2900. if(!isNull _x) then
  2901. {
  2902. if(getPlayerUID _x != '') then
  2903. {
  2904. _y = _x;
  2905. if(isPlayer _y) then
  2906. {
  2907. {
  2908. if(!((getPlayerUID _x) in _pOn) && (isPlayer _x)) then
  2909. {
  2910. _pOn = _pOn + [getPlayerUID _x];
  2911. };
  2912. } forEach (crew _y);
  2913. };
  2914. };
  2915. };
  2916. } forEach ([0,0,0] nearEntities ['AllVehicles', 10000000]);
  2917. _pOn = count _pOn;
  2918.  
  2919. _humanity = player getVariable['humanity',0];
  2920. if(_humanity > 999999) then
  2921. {
  2922. _humanity = [_humanity] call fnc_format_humanity;
  2923. _humanity = toArray _humanity;
  2924. _humanity = _humanity - [44];
  2925. _humanity = toString _humanity;
  2926. };
  2927.  
  2928. _timertext = 'UPTIME: ';
  2929. if(!isNil 'infiSTAR_UPTIMER') then
  2930. {
  2931. _timertext = 'Restart in: ';
  2932. _stime = 0;
  2933. if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
  2934. _upTimeLeft = infiSTAR_UPTIMER - _stime;
  2935. if(_upTimeLeft > 0) then
  2936. {
  2937. _hours = (_upTimeLeft/60/60);
  2938. _hours = toArray (str _hours);
  2939. _hours resize 1;
  2940. _hours = toString _hours;
  2941. _hours = compile _hours;
  2942. _hours = call _hours;
  2943. _minutes = floor(_upTimeLeft/60);
  2944. _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if(_minutes2 < 10) then {_minutes2 = format['0%1',_minutes2];};
  2945. }
  2946. else
  2947. {
  2948. _hours = '0';
  2949. _minutes2 = '00';
  2950. };
  2951. };
  2952.  
  2953.  
  2954. hintSilent parseText format["
  2955. <t size='1' font='Bitstream' align='Center' >[%1]</t><br/>
  2956. <t size='0.8' font='Bitstream' align='Center' >Players Online: %12</t><br/>
  2957. <img size='4.75' image='%4'/><br/>
  2958. <t size='1' font='Bitstream' align='left' color='#CC0000'>Blood: </t><t size='1' font='Bitstream' align='right'>%2</t><br/>
  2959. <t size='1' font='Bitstream' align='left' color='#0066CC'>Humanity: </t><t size='1' font='Bitstream' align='right'>%3</t><br/>
  2960. <br/>
  2961. <t size='1' font='Bitstream' align='left' color='#FFBF00'>Zombie Kills: </t><t size='1' font='Bitstream' align='right'>%9</t><br/>
  2962. <t size='1' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='1' font='Bitstream' align='right'>%10</t><br/>
  2963. <t size='1' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='1' font='Bitstream' align='right'>%11</t><br/>
  2964. <br/>
  2965. <t size='1' font='Bitstream' align='left' color='#FFBF00'>%13</t><t size='1' font='Bitstream' align='right'>%5h %6min</t><br/>
  2966. <t size='1' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='1' font='Bitstream' align='right'>%8</t><br/>
  2967. <t size='1' font='Bitstream' align='Center' color='#CC0000'>%7</t>
  2968. ",
  2969. _txt,
  2970. (r_player_blood),
  2971. _humanity,
  2972. _pic,
  2973. _hours,
  2974. _minutes2,
  2975. _BottomDebug,
  2976. (round diag_fps),
  2977. (player getVariable['zombieKills', 0]),
  2978. (player getVariable['humanKills', 0]),
  2979. (player getVariable['banditKills', 0]),
  2980. _pOn,
  2981. _timertext
  2982. ];
  2983. uiSleep 1;
  2984. };
  2985. };
  2986. };
  2987. [] spawn fnc_debugX0;
  2988. };
  2989. };
  2990. [] spawn {
  2991. uiSleep 5;
  2992. ["CCG","CustomCombatGaming","ts.customcombatgaming.com"] spawn BIS_fnc_infoText;
  2993. if !(false) then
  2994. {
  2995. uiSleep 5;
  2996. ['AntiHack &','AdminTools by','infiSTAR.de'] spawn BIS_fnc_infoText;
  2997. };
  2998. };
  2999. if !(false) then
  3000. {
  3001. systemChat '<infiSTAR.de>: Successfully Loaded In.';
  3002. if(false) then {systemChat '<infiSTAR.de>: -END- key toggles the debugmonitor';};
  3003. diag_log format['infiSTAR.de - 08-04-2015-v1401 - Successfully Loaded on Client ID10 (%1)',time];
  3004. }
  3005. else
  3006. {
  3007. diag_log format['Successfully Loaded on Client ID10 (%1)',time];
  3008. };
  3009. d8H6f1k7t458U0u7z8p3H = true;
  3010. diag_log (format['infiSTAR.de - randvar1 created randvar27 (%1)',time]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement