Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "; if((_MOD == 'Epoch')&&(_CLG))then{ _A3AHstring = _A3AHstring + "
- addMissionEventHandler['HandleDisconnect',{
- _plyr=_this select 0;
- if(alive _plyr)then
- {
- _plyrUID=_this select 2;
- _name = _this select 3;
- _inCombat = 9001;
- if!("+_inCombatArray+" isEqualTo [])then
- {
- _fid = "+_inCombatArray+" find _plyrUID;
- if(_fid != -1)then
- {
- _inCombat = "+_inCombatArray+" select (_fid+1);
- };
- };
- if(_inCombat == 1)then
- {
- _log = format['%1(%2) - HP: %3 - currentWeapon: %4 @%5%6',_name,_plyrUID,(1-(damage _plyr))*100,currentWeapon _plyr,mapGridPosition _plyr,getPos _plyr];
- 'ARMA_LOG' callExtension format['A3_COMBATLOG:%1 (v0245a)',_log];
- diag_log ('<infiSTAR.de>CombatLog| '+_log+' (v0245a)');
- _grid = mapGridPosition _plyr;
- _xpos = _grid select [0,3];
- _ypos = _grid select [3,5];
- "+_massSysMessage+" = format['%1 CombatLogged GPS X/Y: %2/%3 find the dead body!',_name,_xpos,_ypos];
- {(owner _x) publicVariableClient '"+_massSysMessage+"';} forEach allPlayers;
- [_plyr,_name] call fnc_HandleDisconnectDead;
- };
- };
- }];
- "; }; _A3AHstring = _A3AHstring + "
- infiSTAR_PlayerDisconnected_id = addMissionEventHandler ['PlayerDisconnected',{
- params['_id','_uid','_name','_jip','_owner'];
- _mytime = call fnc_getserverTime;
- _log = _mytime + format['Disconnected: %1(%2 - %3) - time: %4 - serverFPS: %5',call fnc_getSteamNameIfSaved,_uid,_owner,time,diag_fps];
- _log call FNC_A3_CONNECTLOG;
- }];
- _log = format['infiSTAR_PlayerDisconnected_id: %1',infiSTAR_PlayerDisconnected_id];
- _log call FNC_A3_CONNECTLOG;
- _AH_MAIN_BLOCK = {
- _clientName = _this select 0;
- _clientUID = _this select 1;
- if(isNil'"+_AH1945KICKLOG+"')exitWith{
- _log = format['%1(%2) - AntiHack variable is NIL !',_clientName,_clientUID];
- AHKickLog_IS_NIL = _log;publicVariableServer'AHKickLog_IS_NIL';
- (findDisplay 46)closeDisplay 0;
- };
- if(!isNil'AH_STARTED_ALREADY')exitWith{
- _log = format['%1(%2) - AH STARTED TWICE !',_clientName,_clientUID];
- AH_STARTED_TWICE = _log;publicVariableServer'AH_STARTED_TWICE';
- (findDisplay 46)closeDisplay 0;
- };
- AH_STARTED_ALREADY = true;
- _temptime = diag_tickTime + 30;
- waitUntil {(((getClientStateNumber >= 10)&&(getPlayerUID player != ''))||(diag_tickTime > _temptime))};
- _name = _clientName;
- _puid = format['%1',getPlayerUID player];
- if((isNil '_puid')||(isNil '_clientName')||(isNil '_clientUID'))exitWith
- {
- _log = 'No UID';
- NO_UID = 'NO_UID';publicVariableServer 'NO_UID';
- (findDisplay 46)closeDisplay 0;
- };
- if!(_puid isEqualTo _clientUID)exitWith
- {
- _log = format['PlayerUID [%1] is not Equal to Serverside PlayerUID [%2]! (KICKED TO LOBBY)',_puid,_clientUID];
- [_name,_puid,'SLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- };
- _admins = "+str _admins+";
- profileNamespace setVariable['PUID',nil];
- _PUID_array = profileNamespace getVariable['PUIDS',[]];
- if!(_puid in _admins)then
- {
- _add_Id = _PUID_array pushBackUnique _puid;
- if(_add_Id > -1)then
- {
- profileNamespace setVariable['PUIDS',_PUID_array];saveprofileNamespace;
- if(_PUID_array isEqualTo [_puid])exitWith{};
- _announce = true;{if(_x in _admins)exitWith{_announce = false;};} forEach _PUID_array;
- if(_announce)then
- {
- _log = format['Player changed Steam Accounts - UIDs: %1',_PUID_array];
- [profileName,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- {
- if(!isNil _x)then
- {
- _log = format['AdminVariable Found: %1',_forEachIndex];
- [profileName,_puid,'SLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- };
- } forEach [
- '"+_AH_HackLogArrayRND+"','"+_AH_SurvLogArrayRND+"','"+_AH_AdmiLogArrayRND+"','"+_TMPBAN+"','"+_BigTokenArray+"','"+_MCS+"'
- ];
- _badclassesban = ['life_server','devcon','loki_lost_key','pooploop','rscrazzler','rsclistboxvg','vgdialog','sspcm','niggers_die'];
- _badclasseskick = ['a3_m3editor','extdb2','infistar_lifemods','infistar_a3','balca_debug_tool'];
- _cfgPatches = 'true' configClasses (configFile >> 'CfgPatches');
- {
- _configName = configName _x;
- _lconfigName = toLower _configName;
- if(_lconfigName in _badclassesban)then
- {
- _log = format['PBO-Injector found in CfgPatches: %1',_configName];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- if(_lconfigName in _badclasseskick)then
- {
- _log = format['Bad Addon found in CfgPatches: %1',_configName];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach _cfgPatches;
- _badclasseskick append _badclassesban;
- _activatedAddons = [];
- {_activatedAddons pushBack (toLower _x)} forEach activatedAddons;
- {
- _addon = _x;
- {
- if(_addon find (toLower _x) != -1)then
- {
- _log = format['Bad Addon found: %1 (%2)',_addon,_x];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach _badclasseskick;
- } forEach _activatedAddons;
- };
- "+_dellocveh+" = nil;'"+_dellocveh+"' addPublicVariableEventHandler compileFinal """+_dellocveh+" = nil;deleteVehicle (vehicle player);"";
- [_name,_puid,_admins] spawn {
- disableSerialization;
- {ctrlDelete ((findDisplay 12) displayCtrl _x);} forEach [1086,1087,1088,1089,1090];
- _name = _this select 0;
- _puid = _this select 1;
- _admins = _this select 2;
- _admin = _puid in _admins;
- _wallgames = 0;
- _lastglitch = time;
- _49openedTimer = 0;
- "; if(_CLG)then{ _A3AHstring = _A3AHstring + "
- _tmpObj = objNull;
- _inCombat = 0;
- "; }; _A3AHstring = _A3AHstring + "
- _excludedButtons = [];
- _excludedButtonsTMP = "+str _excludedButtons+";
- {_excludedButtons pushBack format['Control #%1',_x];} forEach _excludedButtonsTMP;
- "; if(_B49)then{ _A3AHstring = _A3AHstring + "
- {
- for '_i' from 0 to (count _x - 1) do
- {
- _ctrlCfg = _x select _i;
- if(getText (_ctrlCfg >> 'action') != '' || getText (_ctrlCfg >> 'onButtonClick') != '')exitWith
- {
- _BTN_TEXT = getText (_ctrlCfg >> 'text');
- if!(_BTN_TEXT in ['RHS - Game Options','AGM Options','MCC keys'])then
- {
- _log = format['BadButton on ESC: %1',_BTN_TEXT];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- };
- }
- forEach
- [
- configFile >> 'RscDisplayMPInterrupt' >> 'controls',
- configFile >> 'RscDisplayMPInterrupt' >> 'controlsBackground'
- ];
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_useTildMenu)then{ _A3AHstring = _A3AHstring + "
- "+_customcommandingMenu+" = [];
- "+_customcommandingMenu+" pushBack ['by infiSTAR.de',true];
- "+_customcommandingMenu+" pushBack ['User Menu', [-1], '', -5, [['expression', '']], '1', '0'];
- "+_customcommandingMenu+" pushBack ['Earplugs in/out', [2], '', -5, [['expression', 'if(isNil''Earplugs'')then{Earplugs=true;1 fadeSound 0.25;systemchat''Earplugs in'';}else{Earplugs=nil;1 fadeSound 1;systemchat''Earplugs out'';};']], '1', '1'];
- if(!isNil 'EPOCH_debugMode')then
- {
- "+_customcommandingMenu+" pushBack ['Stinky Finger', [3], '', -5, [['expression', 'player action[''switchWeapon'', player, player, 100];player playactionNow ''GestureFinger'';']], '1', '1'];
- "+_customcommandingMenu+" pushBack ['EPOCH Debug', [4], '', -5, [['expression', 'EPOCH_debugMode = !EPOCH_debugMode;hint'''';']], '1', '1'];
- };
- _customcommandingMenu = "+_customcommandingMenu+";
- "; }; _A3AHstring = _A3AHstring + "
- _fnc_infiKeyHandler = ""
- private['_dikCode','_shift','_ctrl','_alt','_dikCode','_handled'];
- _dikCode = _this select 1;
- _shift = _this select 2;
- _ctrl = _this select 3;
- _alt = _this select 4;
- _handled = false;
- "; if(_useTildMenu)then{ _A3AHstring = _A3AHstring + "
- if(_dikCode == 41)then
- {
- "+_customcommandingMenuOpen+" = true;
- _handled = true;
- };
- "; }; _A3AHstring = _A3AHstring + "
- if(_dikCode in (actionKeys 'TacticalView'))then{ _handled = true; };
- if(_ctrl)then
- {
- if(_dikCode in (actionKeys 'Salute'))then
- {
- player playactionNow 'GestureFinger';
- _handled = true;
- };
- };
- _handled
- "";
- "+_fnc_infiKeyHandler+" = compileFinal _fnc_infiKeyHandler;
- if(str "+_fnc_infiKeyHandler+" != str (compile _fnc_infiKeyHandler))then
- {
- _log = format['fnc_infiKeyHandler changed! %1, %2',"+_fnc_infiKeyHandler+",_fnc_infiKeyHandler];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; if(_RDK)then{ _A3AHstring = _A3AHstring + "
- (findDisplay 46) displayAddEventHandler ['KeyDown',"+_fnc_infiKeyHandler+"];
- "; }; _A3AHstring = _A3AHstring + "
- (findDisplay 46) displayAddEventHandler ['KeyUp',"+_fnc_infiKeyHandler+"];
- "; if((_MOD == 'Epoch')&&(_AWL))then{ _A3AHstring = _A3AHstring + "
- _faded = false;
- _lastCall = time + 10;
- _fadeOut = {
- _faded = true;
- TitleText ['!!!\nDO NOT LOOK THROUGH WALLS\n!!!\n\n\n\nAntiHack by infiSTAR.de','BLACK FADED'];
- if(!isNull findDisplay 602)then
- {
- for '_i' from 0 to 3 do{findDisplay 602 closeDisplay 0;closeDialog 0;};
- if(time > _lastCall)then
- {
- _lastCall = time + 10;
- _log = format['Player tries to look through a door/wall & probably loot a shelf! @%1 %2',mapGridPosition player,player modelToWorldVisual [0,0,0]];
- [_name,_puid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- };
- };
- };
- _dis_head = 0.20;
- _dis_weapon_l = 0.20;
- _dis_weapon_r = 0.30;
- _dir_weapon_r = 0;
- _dir_weapon_l = 0;
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- _playerhandlers = ['InventoryOpened','InventoryClosed','Take','HandleRating'];
- "; if(_RRH)then{ _A3AHstring = _A3AHstring + "
- _playerhandlers pushBack 'Respawn';
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_RKH)then{ _A3AHstring = _A3AHstring + "
- _playerhandlers pushBack 'Killed';
- "; }; _A3AHstring = _A3AHstring + "
- "; }; _A3AHstring = _A3AHstring + "
- _markertimer = time + 5;
- _chatKeyUp = '
- disableSerialization;
- _name = '+str _name+';
- _puid = '+str _puid+';
- _admin = '+str _admin+';
- _chat = (findDisplay 24) displayCtrl 101;
- _txt = ctrlText _chat;
- if(_txt isEqualTo ''?'')then{ [] spawn { for ''_i'' from 0 to 11 do { closeDialog _i;closeDialog 0;closeDialog 0;closeDialog 0; }; }; };
- _ltxt = toLower _txt;
- if(_admin)then
- {
- if!(_ltxt isEqualTo '''')then
- {
- if(_ltxt isEqualTo ''!admin'')exitWith
- {
- (findDisplay 24) closeDisplay 0;
- [_name,_puid,''AC'',toArray(_txt)] call "+_AH1945KICKLOG+";
- [] spawn {uiSleep 0.3;(findDisplay 46)closeDisplay 0;};
- };
- };
- }
- else
- {
- if(_ltxt in [format[''.ban %1'',toLower _name],format[''.ban %1 true'',toLower _name],format[''.ban %1 true;'',toLower _name]])then
- {
- (findDisplay 24) closeDisplay 0;
- _log = format[''BadCommand: %1'',_txt];
- [_name,_puid,''BAN'',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- if(_ltxt in [''killme'',''/killme'',''kill me'',''/kill me'',''/suicide'',''suicide''])then{
- (findDisplay 24) closeDisplay 0;
- _unit = player;
- {_unit setHitPointDamage [_x,1];} forEach [''HitBody'',''HitHead''];
- uiSleep 1.5;
- if(isNull _unit)exitWith{};
- if(local _unit)then{_unit setPos [0,0,100];};
- };
- if(_ltxt find ''infishit'' > -1)then{
- (findDisplay 24) closeDisplay 0;
- _log = format[''BadText: %1 [infishit]'',_txt];
- [_name,_puid,''BAN'',toArray(_log)] call "+_AH1945KICKLOG+";
- };
- "; if(_VDN)then{ _A3AHstring = _A3AHstring + "
- if(_ltxt in [''!vote day'',''/vote day'',''vote day'',''!day'',''/day''])then{
- (findDisplay 24) closeDisplay 0;
- [_name,_puid,''VOTE'',toArray ''DAY''] call "+_AH1945KICKLOG+";
- };
- if(_ltxt in [''!vote night'',''/vote night'',''vote night'',''!night'',''/night''])then{
- (findDisplay 24) closeDisplay 0;
- [_name,_puid,''VOTE'',toArray ''NIGHT''] call "+_AH1945KICKLOG+";
- };
- "; }; _A3AHstring = _A3AHstring + "
- false
- ';
- _chatKeyUp_id = -1;
- while{1==1}do
- {
- if(time > _markertimer)then
- {
- _markertimer = time + 5;
- _need_hlog = true;
- {
- _marker = _x;
- if(_marker find '_USER_DEFINED' > -1)then
- {
- _markerchannel = _marker select [(count _marker)-1,1];
- if(parseNumber _markerchannel > 2)exitWith{};
- _stringsizeSTART = (_marker find '#')+1;
- _stringsizeEND = _marker find '/';
- _markerid = _marker select [_stringsizeSTART,_stringsizeEND - _stringsizeSTART];
- _markerid = parseNumber _markerid;
- _shape = markerShape _marker;
- if(_shape isEqualTo 'POLYLINE')then
- {
- _puid = getPlayerUID player;
- if!(_puid isEqualTo '')then
- {
- _varuid = missionNameSpace getVariable[format['UID_BY_ID_%1',_markerid],'-1'];
- if(_puid isEqualTo _varuid)then
- {
- deleteMarker _marker;
- _log = 'Deleted drawing on a global channel!';
- systemChat ('<infiSTAR.de> '+_log);
- if(_need_hlog)then
- {
- [_name,_varuid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- };
- _need_hlog = false;
- };
- };
- }
- else
- {
- _varname = missionNameSpace getVariable[format['NAME_BY_ID_%1',_markerid],''];
- _markerText = markerText _marker;
- if(_markerText isEqualTo '')then
- {
- _marker setMarkerText format['%1: no marker text',_varname];
- }
- else
- {
- _addition = format['%1: ',_varname];
- if((_markerText find _addition) isEqualTo -1)then
- {
- _marker setMarkerText (_addition+_markerText);
- };
- };
- };
- };
- } forEach allMapMarkers;
- };
- "; if(_useTildMenu)then{ _A3AHstring = _A3AHstring + "
- if(isNil'"+_customcommandingMenu+"')then
- {
- _log = 'customcommandingMenu is Nil';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- if!(str "+_customcommandingMenu+" isEqualTo str _customcommandingMenu)then
- {
- _log = format['customcommandingMenu changed: %1',"+_customcommandingMenu+"];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_CLG)then{ _A3AHstring = _A3AHstring + "
- if(isNil '"+_inCombatTime+"')then{"+_inCombatTime+" = 0;};
- _combatTime = round(time - "+_inCombatTime+");
- if(_combatTime <= 30)then
- {
- if(_inCombat == 0)then
- {
- _inCombat = 1;
- [_name,_puid,'COMBATCHECK',_inCombat] call "+_AH1945KICKLOG+";
- };
- }
- else
- {
- if(_inCombat == 1)then
- {
- _inCombat = 0;
- [_name,_puid,'COMBATCHECK',_inCombat] call "+_AH1945KICKLOG+";
- };
- };
- if!(_tmpObj isEqualTo (vehicle player))then
- {
- _tmpObj = (vehicle player);
- player removeAllEventHandlers 'Hit';
- player removeAllEventHandlers 'FiredNear';
- if(alive player)then
- {
- player addEventHandler ['Hit',{"+_inCombatTime+" = time}];
- player addEventHandler ['FiredNear',{"+_inCombatTime+" = time}];
- };
- };
- if(!alive player)then
- {
- "+_inCombatTime+" = 0;
- };
- "; }; _A3AHstring = _A3AHstring + "
- _display49 = findDisplay 49;
- if!(serverCommandAvailable '#logout')then
- {
- if(!isNull _display49)then
- {
- if(_49openedTimer == 0)then{_49openedTimer = time;};
- "; if(_CLG)then{ _A3AHstring = _A3AHstring + "
- if(_combatTime < 30)then
- {
- (_display49 displayCtrl 104) ctrlEnable false;
- (_display49 displayCtrl 104) ctrlSetText format['COMBAT time: %1',30-_combatTime];
- }
- else
- {
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- _waitTime = time - _49openedTimer;
- if(_waitTime < 10)then
- {
- (_display49 displayCtrl 104) ctrlEnable false;
- "; if(_CLG)then{ _A3AHstring = _A3AHstring + "
- (_display49 displayCtrl 104) ctrlSetText format['ABORT IN %1',ceil(10-_waitTime)];
- "; }; _A3AHstring = _A3AHstring + "
- }
- else
- {
- (_display49 displayCtrl 104) ctrlEnable true;
- "; if(_CLG)then{ _A3AHstring = _A3AHstring + "
- (_display49 displayCtrl 104) ctrlSetText 'Abort';
- "; }; _A3AHstring = _A3AHstring + "
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_CLG)then{ _A3AHstring = _A3AHstring + "
- };
- "; }; _A3AHstring = _A3AHstring + "
- (_display49 displayCtrl 2) ctrlEnable false;
- (_display49 displayCtrl 2) ctrlSetText "+str _ESCMNUTOP+";
- (_display49 displayCtrl 103) ctrlEnable false;
- (_display49 displayCtrl 103) ctrlSetText "+str _ESCMNUBOT+";
- (_display49 displayCtrl 523) ctrlSetText profileName;
- (_display49 displayCtrl 109) ctrlSetText _puid;
- (_display49 displayCtrl 122) ctrlEnable false;
- (_display49 displayCtrl 122) ctrlShow false;
- "; if(_B49)then{ _A3AHstring = _A3AHstring + "
- _cnt = "; if((!_B49)&&(_MOD != 'Epoch'))then{ _A3AHstring = _A3AHstring + "{
- "; if(_B49)then{ _A3AHstring = _A3AHstring + "
- _controltype = ctrlType _x;
- if(_controltype == 16)then
- {
- _action = buttonAction _x;
- if(_action != '')then
- {
- if!(str _x in _excludedButtons)then
- {
- if((str _x == 'Control #-1')||(_action != ""(findDisplay 49) closeDisplay 0; 0 spawn {_n= createDialog 'RHS_Options_Menu';0 spawn rhs_fnc_menuOptions;};""))then
- {
- _log = format['BadButton on 49: %1, %2',_x,_action];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- if!(str _x in ['Control #101','Control #1010','Control #104','Control #302','Control #301','Control #303','Control #307'])then
- {
- _x ctrlEnable false;
- };
- "; }; _A3AHstring = _A3AHstring + "
- true
- } "; }; _A3AHstring = _A3AHstring + "count (allcontrols _display49);
- "; }; _A3AHstring = _A3AHstring + "
- if!(_puid in _admins)then
- {
- {
- _ctrl = _display49 displayCtrl _x;
- _ctrl ctrlShow false;
- _ctrl buttonSetAction '(findDisplay 49) closeDisplay 0;(findDisplay 46) closeDisplay 0;';
- } forEach [11884,12284,13291];
- {
- _ctrl = _display49 displayCtrl _x;
- _ctrl ctrlShow false;
- _ctrl buttonSetAction '(findDisplay 49) closeDisplay 0;(findDisplay 46) closeDisplay 0;';
- if(!isNull _ctrl)then
- {
- _log = format['BadControl on 49: %1 - %2',_ctrl,_x];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach [65464,65465,65466];
- };
- }
- else
- {
- _49openedTimer = 0;
- };
- };
- if(!isNull _display49)then
- {
- "; if(!_BRIEFING_MSG)then{ _A3AHstring = _A3AHstring + "
- (_display49 displayCtrl 120) ctrlSetText 'infiSTAR.de AntiHack & AdminsTools - [Author: infiSTAR, Contact: infiSTAR23@gmail.com]';
- "; }else{ _A3AHstring = _A3AHstring + "
- (_display49 displayCtrl 115025) ctrlSetText 'AntiHack & AdminsTools';
- (_display49 displayCtrl 115035) ctrlSetText 'by infiSTAR.de';
- "; }; _A3AHstring = _A3AHstring + "
- };
- {
- _buttonAction = buttonAction _x;
- if!(_buttonAction isEqualTo '')then
- {
- _log = format['MenuBasedHack :: 24 :: %1 :: %2',_x,_buttonAction];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach allControls(finddisplay 24);
- {
- if(!isNull ((findDisplay 24) displayCtrl _x))then
- {
- _log = format['MenuBasedHack :: 24 :: %1',_x];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach [2406,2407,2408,2409,2410,2411,2412,2443,2442,2441];
- (findDisplay 24) displayRemoveEventHandler ['KeyUp',_chatKeyUp_id];
- _chatKeyUp_id = (finddisplay 24) displayAddEventHandler ['KeyUp',_chatKeyUp];
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- if(!isNull player)then
- {
- if(alive player)then
- {
- {
- player removeAllEventHandlers _x;
- player addEventHandler [_x,(['CfgEpochClient', _x, ''] call EPOCH_fnc_returnConfigEntryV2)];
- } forEach _playerhandlers;
- };
- "; if(_UAG)then{ _A3AHstring = _A3AHstring + "
- if(animationState player == 'amovpercmsprsnonwnondf_amovppnemstpsnonwnondnon')then
- {
- _ct = cursorTarget;
- if(!isNull _ct)then
- {
- if((_ct isKindOf 'Constructions_static_F') && (_ct distance player < 4))then
- {
- if(time - _lastglitch > 45)then{_wallgames = 0;};
- _lastglitch = time;
- player switchMove '';
- player setVelocity [0,0,0];
- if(_wallgames >= 1)then
- {
- player setHitPointDamage ['HitLegs',1];
- _log = format['Anti-Glitch: %1 triggered %2 times @%3 (LEGS BROKEN)',typeOf _ct,_wallgames,mapGridPosition player];
- [_name,_puid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- };
- if(_wallgames >= 2)then
- {
- player setPos [0,0,100];
- {player setHitPointDamage [_x,1];} forEach ['HitBody','HitHead'];
- _log = format['Anti-Glitch: %1 triggered %2 times @%3 (KILLED THE GLITCHER)',typeOf _ct,_wallgames,mapGridPosition player];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- _wallgames = 0;
- [] spawn "+_AHKickOFF+";
- };
- _wallgames = _wallgames + 1;
- _msg = 'NO GLITCHING';
- hint _msg;
- 1 cutText [format ['%1',_msg],'WHITE IN'];
- systemChat _msg;
- };
- };
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; }; _A3AHstring = _A3AHstring + "
- if(isNull _display49)then{uiSleep 0.2;};
- "; if(_useTildMenu)then{ _A3AHstring = _A3AHstring + "
- if(!isNil'"+_customcommandingMenuOpen+"')then
- {
- _cmd_open_timer = diag_tickTime + 5;
- waitUntil{
- hint format['opening menu in: %1s if your game crahes, do not use this function again..! #ArmaBugs',_cmd_open_timer - diag_tickTime];
- diag_tickTime > _cmd_open_timer
- };
- "+_customcommandingMenuOpen+" = nil;
- showCommandingMenu '#USER:"+_customcommandingMenu+"';
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if((_MOD == 'Epoch')&&(_AWL))then{ _A3AHstring = _A3AHstring + "
- if(player == vehicle player)then
- {
- _intersectsWith = [];
- _eyeDir = eyedirection player;
- _wepDir = player weapondirection currentweapon player;
- _vectorDiff = _eyeDir vectorDiff _wepDir;
- _xdif = abs(_vectorDiff select 0);
- if((inputAction 'EvasiveLeft' > 0)||(inputAction 'EvasiveRight' > 0)||(_eyeDir select 2 > 0.5)||(_xdif > 0.55))then
- {
- _eyePos = eyepos player;
- _dir_weapon_r = (((_wepDir) select 0) atan2 ((_wepDir) select 1))+45;
- _dir_weapon_l = (((_wepDir) select 0) atan2 ((_wepDir) select 1))-25;
- _intersectsWith = lineintersectswith [[(_eyePos select 0) + (_eyeDir select 0)*_dis_head,(_eyePos select 1) + (_eyeDir select 1)*_dis_head,(_eyePos select 2) + (_eyeDir select 2)*_dis_head], _eyePos, player];
- _intersectsWith append lineintersectswith [[(_eyePos select 0) + _dis_weapon_r*sin _dir_weapon_r,(_eyePos select 1) + _dis_weapon_r*cos _dir_weapon_r,(_eyePos select 2)], _eyePos, player];
- _intersectsWith append lineintersectswith [[(_eyePos select 0) + _dis_weapon_l*sin _dir_weapon_l,(_eyePos select 1) + _dis_weapon_l*cos _dir_weapon_l,(_eyePos select 2)], _eyePos, player];
- _plrPosVisual = ATLtoASL (player modelToWorldVisual [0,0,0]);
- _intersectsWith append lineIntersectsWith [_eyePos, _plrPosVisual];
- };
- if(_intersectsWith isEqualTo [])then
- {
- if(_faded)then{_faded=false;TitleText ['AntiHack by infiSTAR.de','PLAIN DOWN'];};
- }
- else
- {
- {
- if(_x isKindOf 'Const_All_Walls_F')exitWith{call _fadeOut};
- if(_x isKindOf 'Const_WoodWalls_static_F')exitWith{call _fadeOut};
- if(_faded)exitWith{};
- } forEach _intersectsWith;
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- };
- _log = 'Loop #0 ended!';
- [profileName,getPlayerUID player,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- [_name,_puid,_admins] spawn {
- _name = _this select 0;
- _puid = _this select 1;
- _admins = _this select 2;
- "; if(_USE_RESTART_TIMER)then{ _A3AHstring = _A3AHstring + "
- _restartTime = "+str _RESTART_TIME_IN_M+";
- _msgTimes = "+str _SHOW_TIMER_IN_MIN+";
- _msgFormat = '<t size=''0.70'' color=''#DA1700'' align=''right''>RESTART IN %1 MINS</t>';
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_UOL)then{ _A3AHstring = _A3AHstring + "
- _server_onLoadUnload1 = "+str _onLoadUnload1+";
- _server_onLoadUnload2 = "+str _onLoadUnload2+";
- _server_onLoadUnload3 = "+str _onLoadUnload3+";
- "; }; _A3AHstring = _A3AHstring + "
- while{1==1}do
- {
- "; if(_UOL)then{ _A3AHstring = _A3AHstring + "
- {
- _onLoad = toArray(getText(configFile >> _x >> 'onLoad'));
- _server_onLoad = _server_onLoadUnload2 select _forEachIndex;
- if(!(_onLoad isEqualTo _server_onLoad) && !(_onLoad isEqualTo ''))then
- {
- _log = format['onLoad changed: %1, %2, %3',_x,toString _onLoad,toString _server_onLoad];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- _onUnload = toArray(getText(configFile >> _x >> 'onUnload'));
- _server_onUnload = _server_onLoadUnload3 select _forEachIndex;
- if(!(_onUnload isEqualTo _server_onUnload) && !(_onUnload isEqualTo ''))then
- {
- _log = format['onUnload changed: %1, %2, %3',_x,toString _onUnload,toString _server_onUnload];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach _server_onLoadUnload1;
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_UMP)then{ _A3AHstring = _A3AHstring + "
- uiSleep 1;
- _children = [configFile >> 'RscDisplayMPInterrupt' >> 'controls',0] call BIS_fnc_returnChildren;
- _allowedChildren = ['Title','MissionTitle','DifficultyTitle','PlayersName','ButtonCancel','ButtonSAVE','ButtonSkip','ButtonRespawn','ButtonOptions','ButtonVideo','ButtonAudio','ButtonControls','ButtonGame','ButtonTutorialHints','ButtonAbort','DebugConsole','Feedback','MessageBox','CBA_CREDITS_M_P','CBA_CREDITS_CONT_C','Version','TrafficLight','TraffLight'];
- {
- _cfgName = configName _x;
- if(!(_cfgName in _allowedChildren))then
- {
- _log = format['Modified MPInterrupt: %1 | %2',_x,_cfgName];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach _children;
- uiSleep 1;
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_USE_RESTART_TIMER)then{ _A3AHstring = _A3AHstring + "
- _currentmessagetime = (_restartTime - round(serverTime / 60));
- if(_currentmessagetime in _msgTimes)then
- {
- _msgTimes = _msgTimes - [_currentmessagetime];
- [
- format[_msgFormat, _restartTime - round(serverTime / 60)],
- [safezoneX + safezoneW - 0.8,0.50],
- [safezoneY + safezoneH - 0.8,0.7],
- 5,
- 0.5
- ] call BIS_fnc_dynamicText;
- };
- "; }; _A3AHstring = _A3AHstring + "
- uiSleep 8;
- };
- _log = 'Loop #3 ended!';
- [profileName,getPlayerUID player,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- _isNormal = true;
- if(_puid in _admins)then
- {
- _isNormal = false;
- if!(_puid in "+_adminsA+")then
- {
- _isNormal = true;
- };
- };
- if(_isNormal)then
- {
- "; if((_UBV)||(_UBV2))then{ _A3AHstring = _A3AHstring + "
- [_name,_puid,_admins] spawn {
- _name = _this select 0;
- _puid = _this select 1;
- _admins = _this select 2;
- _isAdmin = false;
- if(_puid in _admins)then{_isAdmin = true;};
- "; if(_UBV)then{ _A3AHstring = _A3AHstring + "
- _blacklistedVariables = "+str _blacklistedVariables+";
- _blacklistedVariables append ['JoinOrNotJoinIsTheQuestion','noRecoilRun','A3FFrun'];
- if(_isAdmin)then
- {
- {
- _missionNamespace = missionNamespace getVariable _x;
- if(!isNil '_missionNamespace')then
- {
- missionNamespace setVariable[_x,nil];
- };
- _uiNamespace = uiNamespace getVariable _x;
- if(!isNil '_uiNamespace')then
- {
- uiNamespace setVariable[_x,nil];
- };
- _profileNamespace = profileNamespace getVariable _x;
- if(!isNil '_profileNamespace')then
- {
- profileNamespace setVariable[_x,nil];
- };
- } forEach _blacklistedVariables;
- saveProfileNamespace;
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_UBV2)then{ _A3AHstring = _A3AHstring + "
- _lastTimeCheckedVars = time + 80;
- _alreadyCheckedVariables = "+str _allRandomGenVars+";
- _alreadyCheckedVariables append "+str _badVarWhitelistReal+";
- _alreadyCheckedVariables append ['fnc_sendmsgtoplr','bpdcode','ruhr_fnc_emptyfuel','"+_AH_AdmiLogArrayRND+"'];
- "; }; _A3AHstring = _A3AHstring + "
- while{1==1}do
- {
- _timer1 = time;
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- _avpnamespace = (allVariables parsingNamespace);
- if!(_avpnamespace isEqualTo [])then
- {
- _log = 'BadVariables in parsingNamespace';
- [_name,_puid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- {parsingNamespace setVariable[_x,nil];}forEach (allVariables parsingNamespace);
- };
- "; }; _A3AHstring = _A3AHstring + "
- {
- _bvc = profileNamespace getVariable [_x,0];
- if(_bvc isEqualType '')then
- {
- profileNamespace setVariable [_x,0.4];saveprofileNamespace;
- _log = format['VARIABLE HACKED: %1 (%2) VALUE: [%3]', _x, typeName _bvc, str _bvc];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach ['igui_bcg_rgb_a','igui_bcg_rgb_r','igui_bcg_rgb_g','igui_bcg_rgb_b','IGUI_grid_mission_X','IGUI_grid_mission_Y','IGUI_grid_mission_W','IGUI_grid_mission_H'];
- "; if(_UBV)then{ _A3AHstring = _A3AHstring + "
- {
- _vc = missionNamespace getVariable _x;
- if(!isNil _x)then
- {
- _log = format['BadVar#1: %1 - %2',_x,_vc];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- if(!isNil '_vc')then
- {
- _log = format['BadVar#1 in missionNamespace: %1 - %2',_x,_vc];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- _vc = uiNamespace getVariable _x;
- if(!isNil '_vc')then
- {
- _log = format['BadVar#1 in uiNamespace: %1 - %2',_x,_vc];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- _vc = profileNamespace getVariable _x;
- if(!isNil '_vc')then
- {
- profileNamespace setVariable[_x,nil];saveProfileNamespace;
- _log = format['BadVar#1 in profileNamespace: %1 - %2',_x,_vc];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach _blacklistedVariables;
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_UBV2)then{ _A3AHstring = _A3AHstring + "
- if(_isAdmin)then
- {
- if(time > _lastTimeCheckedVars)then
- {
- _lastTimeCheckedVars = time + 80;
- {
- _var = _x;
- _varid = _alreadyCheckedVariables pushBackUnique _var;
- if(_varid > -1)then
- {
- {
- if!((toLower _var) find _x isEqualTo -1)then
- {
- _log = format['BadVar#2 found %1 in %2',_x,_var];
- [profileName,getPlayerUID player,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- missionNamespace setVariable[_var,nil];
- }
- else
- {
- "; if(_UBV2C)then{ _A3AHstring = _A3AHstring + "
- _m = missionNamespace getVariable _var;
- if(!isNil '_m')then
- {
- _mstring = str _m;
- if((toLower _mstring) find _x != -1)then
- {
- _mstring = _mstring select [0,200];
- _log = format['BadVar#2 found %1 in %2: %3',_x,_var,_mstring];
- [profileName,getPlayerUID player,'SLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- missionNamespace setVariable[_var,nil];
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- };
- } forEach "+str _verybadStrings+";
- };
- } forEach (allVariables missionNamespace);
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- _sleeptimer = ((time - _timer1)*2)+1;
- uiSleep _sleeptimer;
- };
- _log = 'Loop #6 ended!';
- [profileName,getPlayerUID player,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; }; _A3AHstring = _A3AHstring + "
- [_name,_puid] spawn {
- disableSerialization;
- _name = _this select 0;
- _puid = _this select 1;
- _FiredCheck = {
- _unit = _this select 0;
- _weapon = _this select 1;
- _muzzle = _this select 2;
- _mode = _this select 3;
- _ammo = _this select 4;
- _magazine = _this select 5;
- _projectile = _this select 6;
- if(("+str _UFA+") && {((!("+str _UAW+") && {_ammo in "+str _ForbiddenAmmo+"}) || (("+str _UAW+") && {!(_ammo in "+str _AmmoWhiteList+")}))})then
- {
- _log = format['ForbiddenAmmo: %1 with weapon %2',_ammo,_muzzle];
- [profileName,getPlayerUID _unit,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- if(_unit isEqualTo (vehicle _unit))then
- {
- if!(_muzzle in ['','Throw','Flare','Put'])then
- {
- if((toLower _magazine) find '3rnd_' == -1)then
- {
- _ammo_checkpassed = true;
- _lowAmmo = toLower _ammo;
- {if(_lowAmmo find _x > -1)exitWith{_ammo_checkpassed = false;};} forEach ['f_40mm','f_20mm','g_40mm','g_20mm','spear_'];
- if(_ammo_checkpassed)then
- {
- _cfgammo = getText(configFile >> 'CfgMagazines' >> _magazine >> 'ammo');
- if(_ammo != _cfgammo)then
- {
- _log = format['BadMuzzle: %1 with weapon %2',_ammo,_muzzle];
- [profileName,getPlayerUID _unit,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- _maxAmmo = getNumber (configFile >> 'CfgMagazines' >> _magazine >> 'count');
- if(_maxAmmo > 1)then
- {
- if(isNil '"+_lastshotmade+"')then{"+_lastshotmade+" = diag_tickTime;};
- if(typeName "+_lastshotmade+" != 'SCALAR')then
- {
- _log = 'BadDefinition: -no ammo loss- check bypass!';
- [profileName,getPlayerUID _unit,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- if(diag_tickTime - "+_lastshotmade+" > 0.2)then
- {
- _camm = _unit ammo _muzzle;
- if((_camm >= _maxAmmo)&&(_muzzle isEqualTo currentWeapon _unit))then
- {
- _log = format['No Ammo Loss - Removed Current Magazine: %1 %2 %3 %4',_muzzle,_magazine,_camm,_maxAmmo];
- [profileName,getPlayerUID _unit,'SLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- [_muzzle,_magazine,_unit] spawn {
- (_this select 2) removeItem (_this select 0);
- (_this select 2) removeWeapon (_this select 0);
- (_this select 2) removeMagazines (_this select 1);
- };
- };
- };
- "+_lastshotmade+" = diag_tickTime;
- };
- };
- };
- };
- };
- true
- };
- "+_FiredCheck+" = compileFinal ([_FiredCheck] call "+str fnc_CompilableString+");
- _addCaseHDMGold = -1;
- _addCaseMEHold = -1;
- if(isNil 'life_fnc_keyHandler')then{life_fnc_keyHandler = {false};}else{if(typeName life_fnc_keyHandler != 'CODE')then{life_fnc_keyHandler = {false};};};
- "; if((_RDK) && !(_CKB))then{ _A3AHstring = _A3AHstring + "
- (findDisplay 46) displayRemoveAllEventHandlers 'KeyDown';
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_RUK)then{ _A3AHstring = _A3AHstring + "
- (findDisplay 46) displayRemoveAllEventHandlers 'KeyUp';
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_CKB)then{ _A3AHstring = _A3AHstring + "
- _kbacaught = false;
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_RMB)then{ _A3AHstring = _A3AHstring + "
- "+_ButtonDownCnt+"=0;
- "+_ButtonDownTime+"= round diag_tickTime;
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- _loggedOnce = false;
- "; }; _A3AHstring = _A3AHstring + "
- _RMEH = "+str _RMEH+";
- "; if(_OMC||_MBC)then{ _A3AHstring = _A3AHstring + "
- _RMEH = _RMEH - ['MouseButtonClick'];
- "; }; _A3AHstring = _A3AHstring + "
- while{1==1}do
- {
- if((!isNull (findDisplay 12))&&(visiblemap))then
- {
- {(findDisplay 12 displayCtrl 51) ctrlRemoveAllEventHandlers _x;findDisplay 12 displayRemoveAllEventHandlers _x} forEach _RMEH;
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- if(!_loggedOnce)then
- {
- _selected = lbSelection ((findDisplay 12) displayCtrl 1001);
- if(!(_selected isEqualTo [2])&&!(_selected isEqualTo [3]))then
- {
- _control1 = (findDisplay 12) displayCtrl 1002;
- _size = lbSize _control1;
- if(_size > 2)then
- {
- _texts = [];
- for '_i' from 0 to (_size-1) do
- {
- _lbtxt = _control1 lbText _i;
- _texts pushBack _lbtxt;
- };
- _log = format['Map Sub-Menu %1 size has been changed to %2. Found: %3',_selected,_size,_texts];
- [_name,_puid,'SLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- _loggedOnce = true;
- lbClear _control1;
- };
- };
- _control2 = (findDisplay 12) displayCtrl 1001;
- _size = lbSize _control2;
- if(_size > 5)then
- {
- _log = format['Map Menu has been changed %1 entries found (should be 5)',_size];
- [_name,_puid,'SLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- _loggedOnce = true;
- lbClear _control2;
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- };
- "; if(_RMB)then{ _A3AHstring = _A3AHstring + "
- if(isNil'"+_ButtonDownCnt+"')then
- {
- _log = '"+_ButtonDownCnt+" is nil';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- if(typeName "+_ButtonDownCnt+" != 'SCALAR')then
- {
- _log = format['"+_ButtonDownCnt+" typename changed to %1, %2',typeName "+_ButtonDownCnt+","+_ButtonDownCnt+"];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- if(isNil'"+_ButtonDownTime+"')then
- {
- _log = '"+_ButtonDownTime+" is nil';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- if(typeName "+_ButtonDownTime+" != 'SCALAR')then
- {
- _log = format['"+_ButtonDownTime+" typename changed to %1, %2',typeName "+_ButtonDownTime+","+_ButtonDownTime+"];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- (findDisplay 46) displayRemoveAllEventHandlers 'MouseButtonDown';
- (findDisplay 46) displaySetEventHandler ['MouseButtonDown',""
- if(round diag_tickTime == "+_ButtonDownTime+")then
- {
- "+_ButtonDownCnt+" = "+_ButtonDownCnt+" + 1;
- }
- else
- {
- if("+_ButtonDownCnt+" >= 30)then
- {
- _ct = cursorTarget;
- if(!isNull _ct)then
- {
- if(isPlayer _ct)then
- {
- _ct = format['%1(%2) %3, %4m away',name _ct,getPlayerUID _ct,typeOf (vehicle _ct),player distance _ct];
- }
- else
- {
- _ct = format['%1, %2m away',typeOf _ct,player distance _ct];
- };
- }
- else
- {
- _ct='NO TARGET';
- };
- _log = format['Clicking speed too fast! %1 clicks in a second.. FPS: %2, Target: %3, Displays: %4',"+_ButtonDownCnt+",diag_fps,_ct,allDisplays];
- [profileName,getPlayerUID player,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- };
- "+_ButtonDownCnt+" = 0;
- };
- "+_ButtonDownTime+"= round diag_tickTime;
- ""];
- "; }; _A3AHstring = _A3AHstring + "
- {
- (findDisplay _x) displayRemoveAllEventHandlers 'MouseHolding';
- } forEach [18,46,49];
- {
- (findDisplay _x) displayRemoveAllEventHandlers 'MouseZChanged';
- (findDisplay _x) displayRemoveAllEventHandlers 'MouseMoving';
- (findDisplay _x) displayRemoveAllEventHandlers 'MouseButtonDown';
- } forEach [18,49];
- {
- (findDisplay _x) displayRemoveAllEventHandlers 'KeyDown';
- (findDisplay _x) displayRemoveAllEventHandlers 'KeyUp';
- } forEach [-1,18,49,106];
- (findDisplay 131) displayCtrl 102 ctrlRemoveallEVenthandlers 'LBDblClick';
- (findDisplay 131) displayCtrl 102 ctrlRemoveallEVenthandlers 'LBSelChanged';
- "; if(_RUK)then{ _A3AHstring = _A3AHstring + "
- (findDisplay 46) displayRemoveAllEventHandlers 'KeyUp';
- (findDisplay 46) displayAddEventHandler ['KeyUp',"+_fnc_infiKeyHandler+"];
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- (findDisplay 46) displayAddEventHandler ['KeyUp','_this call EPOCH_KeyUp'];
- "; }; _A3AHstring = _A3AHstring + "
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_RDK)then{ _A3AHstring = _A3AHstring + "
- (findDisplay 46) displayRemoveAllEventHandlers 'KeyDown';
- _shouldbe = 0;
- _kdID = (findDisplay 46) displayAddEventHandler ['KeyDown',"+_fnc_infiKeyHandler+"];
- "; if(_MOD == 'AltisLife')then{ _A3AHstring = _A3AHstring + "
- _shouldbe = _shouldbe + 1;
- _kdID = (findDisplay 46) displayAddEventHandler ['KeyDown','_this call life_fnc_keyHandler;'];
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- _shouldbe = _shouldbe + 1;
- _kdID = (findDisplay 46) displayAddEventHandler ['KeyDown','_this call EPOCH_KeyDown'];
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_CKB)then{ _A3AHstring = _A3AHstring + "
- _shouldbe = _shouldbe + 1;
- _kdID = (findDisplay 46) displayAddEventHandler ['KeyDown','false'];
- "; }; _A3AHstring = _A3AHstring + "
- uiSleep 0.2;
- "; if(_CKB)then{ _A3AHstring = _A3AHstring + "
- _randomid = round(random 5);
- for '_i' from 1 to _randomid do
- {
- _shouldbe = _shouldbe + 1;
- _kdID = (findDisplay 46) displayAddEventHandler ['KeyDown','false'];
- };
- if(_kdID != _shouldbe)then
- {
- if(alive player)then
- {
- if(_kbacaught)then
- {
- _log = format['KeyBinds added %1 should be %2',_kdID,_shouldbe];
- [_name,_puid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- };
- _kbacaught=true;
- "; if(_RUK)then{ _A3AHstring = _A3AHstring + "
- (findDisplay 46) displayRemoveAllEventHandlers 'KeyUp';
- (findDisplay 46) displayAddEventHandler ['KeyUp',"+_fnc_infiKeyHandler+"];
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- (findDisplay 46) displayAddEventHandler ['KeyUp','_this call EPOCH_KeyUp'];
- "; }; _A3AHstring = _A3AHstring + "
- "; }; _A3AHstring = _A3AHstring + "
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; }else{ _A3AHstring = _A3AHstring + "
- uiSleep 0.2;
- "; }; _A3AHstring = _A3AHstring + "
- if(!isNull player)then
- {
- if(alive player)then
- {
- "; if(!_EHF && !_NO_EHF)then{ _A3AHstring = _A3AHstring + "
- player removeAllEventHandlers 'Fired';
- player addEventHandler ['Fired',{if(inSafeZone)then{deleteVehicle (_this select 6)}}];
- player addEventHandler ['Fired',compile ('_this call '+str(_FiredCheck))];
- player addEventHandler ['Fired',{_this call "+str _customFiredEventhandler+"}];
- "; if(_MOD == 'AltisLife')then{ _A3AHstring = _A3AHstring + "
- player addEventHandler ['Fired',{_this call life_fnc_onFired}];
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- player addEventHandler ['Fired',{_this call EPOCH_fnc_playerFired}];
- "; }; _A3AHstring = _A3AHstring + "
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MOD != 'Epoch')then{ _A3AHstring = _A3AHstring + "
- player removeAllEventHandlers 'Take';
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_C3D)then{ _A3AHstring = _A3AHstring + "
- if(_addCaseMEHold > -1)then
- {
- _addCaseMEH = addMissionEventHandler ['Draw3D', {}];
- if(_addCaseMEHold + 1 != _addCaseMEH)then
- {
- _log = format['EH_Draw3D 2: %1 should be %2',_addCaseMEH,_addCaseMEHold + 1];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- removeAllMissionEventHandlers 'Draw3D';
- _roundRandomNumberMEH = (round(random 3))+1;
- _addCaseMEH = 0;
- for '_i' from 0 to _roundRandomNumberMEH do
- {
- _addCaseMEH = addMissionEventHandler ['Draw3D', {}];
- };
- if(_addCaseMEH == _roundRandomNumberMEH)then
- {
- _addCaseMEHold = _addCaseMEH;
- }
- else
- {
- _log = format['EH_Draw3D 1: %1 should be %2',_addCaseMEH,_roundRandomNumberMEH];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- player removeAllEventHandlers 'AnimChanged';
- player addEventHandler ['Damaged',{}];
- {
- player removeAllEventHandlers _x;
- _addCase = player addEventHandler [_x,{}];
- if(_addCase > 0)then{
- _log = format['EH_%1: %2',_x,_addCase];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach ['HandleHeal','Dammaged','Damaged','HitPart'];
- "; if(_RHD)then{ _A3AHstring = _A3AHstring + "
- if(_addCaseHDMGold > -1)then
- {
- _addCaseHDMG = player addEventHandler ['HandleDamage',{}];
- if((_addCaseHDMGold + 1 != _addCaseHDMG)&&(_addCaseHDMG != 0))then
- {
- _log = format['EH_HandleDamage 2: %1 should be %2',_addCaseHDMG,_addCaseHDMGold + 1];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- player removeAllEventHandlers 'HandleDamage';
- _roundRandomNumberHDMG = (round(random 3))+1;
- _addCaseHDMG = 0;
- for '_i' from 0 to _roundRandomNumberHDMG do
- {
- _addCaseHDMG = player addEventHandler ['HandleDamage',{}];
- };
- if(_addCaseHDMG == _roundRandomNumberHDMG)then
- {
- "; if(str _CHD != '{}')then{ _A3AHstring = _A3AHstring + "
- _addCaseHDMG = player addEventHandler ['HandleDamage',"+str _CHD+"];
- "; }; _A3AHstring = _A3AHstring + "
- _addCaseHDMGold = _addCaseHDMG;
- }
- else
- {
- _log = format['EH_HandleDamage 1: %1 should be %2',_addCaseHDMG,_roundRandomNumberHDMG];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; }else{ _A3AHstring = _A3AHstring + "
- player removeAllEventHandlers 'HandleDamage';
- player addEventHandler ['HandleDamage',''];
- "; }; _A3AHstring = _A3AHstring + "
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MOD == 'AltisLife')then{ _A3AHstring = _A3AHstring + "
- "; if(_RRH)then{ _A3AHstring = _A3AHstring + "
- player removeAllEventHandlers 'Respawn';
- player addEventHandler ['Respawn', {_this call life_fnc_onPlayerRespawn}];
- "; }; _A3AHstring = _A3AHstring + "
- player removeAllEventhandlers 'InventoryClosed';
- player addEventHandler ['InventoryClosed', {_this call life_fnc_inventoryClosed}];
- "; if(_RIO)then{ _A3AHstring = _A3AHstring + "
- player removeAllEventhandlers 'InventoryOpened';
- player addEventHandler ['InventoryOpened', {_this call life_fnc_inventoryOpened}];
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_RKH)then{ _A3AHstring = _A3AHstring + "
- player removeAllEventHandlers 'Killed';
- player addEventHandler ['Killed', {_this spawn life_fnc_onPlayerKilled}];
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_RHD)then{ _A3AHstring = _A3AHstring + "
- player removeAllEventhandlers 'HandleDamage';
- player addEventHandler ['HandleDamage',{_this call life_fnc_HandleDamage;}];
- "; }; _A3AHstring = _A3AHstring + "
- player addEventHandler ['Take',{_this call life_fnc_onTakeItem}];
- if("+str _REH+")then{player removeAllEventhandlers 'Hit';};
- player removeAllEventHandlers 'Damaged';
- player removeAllEventHandlers 'Dammaged';
- "; }; _A3AHstring = _A3AHstring + "
- }
- else
- {
- _addCaseMEHold = -1;
- _addCaseHDMGold = -1;
- };
- }
- else
- {
- _addCaseMEHold = -1;
- _addCaseHDMGold = -1;
- };
- };
- _log = 'Loop #7 ended!';
- [profileName,getPlayerUID player,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- [_name,_puid,_admins] spawn {
- _name = _this select 0;
- _puid = _this select 1;
- _admins = _this select 2;
- disableSerialization;
- uiSleep 5;
- BIS_fnc_showNotification_queue = [];
- _uistocheck = ['RscDisplayRemoteMissions','RscDisplayDebugPublic','RscDisplayMovieInterrupt'];
- "; if(_checkRscDisplayArsenal)then{ _A3AHstring = _A3AHstring + "
- _uistocheck pushBack 'RscDisplayArsenal';
- "; }; _A3AHstring = _A3AHstring + "
- {uiNamespace setVariable[_x,nil];} forEach _uistocheck;
- _inventoryIds = [8,0,18,70,46,12,602,999,-1200,-1300,-1400,-1500,-1900,-8,-9,-10,-15,63,55,49,-6,24,-13,129,174,38500,7300];
- _inventoryDisplays = ['No display'];
- {_inventoryDisplays pushBack format['Display #%1',_x];} forEach _inventoryIds;
- _found54 = false;
- _lastText = '';
- _toBreakDisplays = [];
- _badIDDsToKickPre = "+str _badIDDsToKick+";
- _badIDDsToKick = [];
- {_badIDDsToKick pushBack format['Display #%1',_x];} forEach _badIDDsToKickPre;
- _badIDDsToClosePre = "+str _badIDDsToClose+";
- _badIDDsToClose = [];
- {_badIDDsToClose pushBack format['Display #%1',_x];} forEach _badIDDsToClosePre;
- _wasclosed = false;
- "; if(_UDW)then{ _A3AHstring = _A3AHstring + "
- _allowedIddsPre = "+str _allowedIDDs+";
- _allowedIDDs = ['No display'];
- {_allowedIDDs pushBack format['Display #%1',_x];} forEach _allowedIddsPre;
- _announceDisplayIddOnce = [];
- "; }; _A3AHstring = _A3AHstring + "
- _verybadStrings = "+str _verybadStrings+";
- _checked = [];
- _lastEmpty = 0;
- while{1==1}do
- {
- if(!isNull ((findDisplay 73) displayCtrl 302))then
- {
- _log = 'MenuBasedHack :: 73 :: 302';
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- if(diag_tickTime - _lastEmpty > 45)then
- {
- _lastEmpty = diag_tickTime;
- _checked = [];
- };
- {
- if(!isNull (findDisplay _x))then
- {
- _log = format['MenuBasedHack_D%1',_x];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach [-1338,-1337,17,19,30,32,45,56,59,62,64,69,71,110,125,132,155,156,162,165,166,167,312,1320,1321,2727,2928,2929,3030,316000,9899,0110];
- {
- _control = _x;
- _ctrlTxt = ctrlText _control;
- _lowerctrlTxt = toLower _ctrlTxt;
- {
- if(_lowerctrlTxt find _x > -1)then
- {
- _log = format['BadCtrlText: %1 on %2 %3 - %4',_x,_display,_control,_ctrlTxt];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach _verybadStrings;
- } forEach [((findDisplay 49) displayCtrl 2),((findDisplay 49) displayCtrl 103)];
- if(!isNull ((findDisplay 46) displayCtrl -2))then
- {
- _log = 'MenuBasedHack :: 46 :: -2';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- _uiNamespace_dynamicText = uiNamespace getVariable 'BIS_dynamicText';
- if(!isNil '_uiNamespace_dynamicText')then
- {
- _allCtrls = allControls _uiNamespace_dynamicText;
- _whiteListed = ['','Debug Mode Enabled'];
- {
- if(getPlayerUID _x != '')then
- {
- _whiteListed pushBack (name _x);
- };
- } forEach allPlayers;
- {
- _ctrl = _x;
- _txt = ctrlText _ctrl;
- if(_txt != _lastText)then
- {
- if!(_txt in _whiteListed)then
- {
- _lastText = _txt;
- _ltxt = toLower _txt;
- {
- if(_ltxt find _x != -1)then
- {
- _log = format['BadText on %1: %2 - %3',_ctrl,_x,_txt];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- };
- } forEach _verybadStrings;
- };
- };
- } forEach _allCtrls;
- };
- if(!isNull (findDisplay 157))then
- {
- _log = 'MenuBasedHack_D157 or player opened the menu which hidden in the escape menu, at the bottom right corner.';
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- {
- _cc1 = uiNamespace getVariable _x;
- if(!isNil '_cc1')then
- {
- _formatedcc1 = format['%1',_cc1];
- if(_formatedcc1 != '<null>')then
- {
- if(_formatedcc1 != 'No display')then
- {
- _log = format['Hacked: %1 - %2',_x,_cc1];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- uiNamespace setVariable[_x,nil];
- _log = format['Hacked: %1 - %2',_x,_cc1];
- [_name,_puid,'SLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- };
- };
- };
- } forEach _uistocheck;
- "; if(_UNC)then{ _A3AHstring = _A3AHstring + "
- if!(_puid in _admins)then
- {
- if(!isNil 'BIS_fnc_showNotification_queue')then
- {
- if!(BIS_fnc_showNotification_queue isEqualTo [])then
- {
- _log = format['Hacked: showNotification - %1',BIS_fnc_showNotification_queue];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- if(!isNull (findDisplay 148))then
- {
- if((lbSize 104)-1 > 3)exitWith{
- _log = 'Hacked: RscDisplayConfigureControllers';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- {
- _lbSize = lbSize _x;
- if(_lbSize > 0)then{
- _log = format['lbSize %1 == %2',_x,_lbSize];
- [_name,_puid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- lbClear _x;
- };
- } forEach [101,102];
- if(!_found54)then
- {
- _display = findDisplay 54;
- if(!isNull _display)then
- {
- {
- if(_x && !isNull _display)then
- {
- if(_found54)exitWith{};
- [] spawn {
- disableSerialization;
- while{1==1}do
- {
- waitUntil {!isNull findDisplay 54};
- _display = findDisplay 54;
- _txt = _display displayCtrl 1001;
- _txt ctrlSetText format['%1',localize 'STR_A3_RscDisplayInsertMarker_Title'];
- _txt ctrlCommit 0;
- _btn1 = _display displayCtrl 1;
- _btn1 buttonSetAction '';
- _btn1 ctrlCommit 0;
- _btn2 = _display displayCtrl 2;
- _btn2 buttonSetAction '';
- _btn2 ctrlCommit 0;
- };
- };
- _found54 = true;
- };
- } forEach [
- (toLower ctrlText (_display displayCtrl 1001) != toLower localize 'STR_A3_RscDisplayInsertMarker_Title'),
- {if(buttonAction (_display displayCtrl _x) != '')exitWith{true}; false} forEach [1,2]
- ];
- };
- };
- _dsp163 = findDisplay 163;
- if(!isNull _dsp163)then
- {
- (_dsp163 displayCtrl 101) ctrlRemoveAllEventHandlers 'LBDblClick';
- (_dsp163 displayCtrl 101) ctrlRemoveAllEventHandlers 'LBSelChanged';
- if((toLower ctrlText (_dsp163 displayCtrl 1000) != toLower localize 'STR_DISP_OPTIONS_SCHEME') || (buttonAction (_dsp163 displayCtrl 1) != '') || (buttonAction (_dsp163 displayCtrl 2) != ''))then
- {
- _log = 'Hacked: RscDisplayControlSchemes';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- _RscDisplayConfigureAction = uiNamespace getVariable 'RscDisplayConfigureAction';
- if(!isNil '_RscDisplayConfigureAction')then
- {
- _formatedRscDisplayConfigureAction = format['%1',_RscDisplayConfigureAction];
- if(_formatedRscDisplayConfigureAction != '<null>')then
- {
- if(_formatedRscDisplayConfigureAction != 'No display')then
- {
- _title = ctrlText 1000;
- if(_title != localize '$STR_A3_RscDisplayConfigureAction_Title')exitWith{
- _log = 'Hacked: RscDisplayConfigureAction';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- {
- if(buttonAction _x != '')exitWith{
- _log = 'Hacked: RscDisplayConfigureAction';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach [1,107,104,106,109,105,108];
- };
- };
- };
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- if(isNil'startingFncOpenHTML')then
- {
- if(buttonAction -13 != '')then
- {
- _log = format['ButtonAction Changed: %1',buttonAction -13];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- if(buttonAction -14 != '')then
- {
- _log = format['ButtonAction Changed: %1',buttonAction -14];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- if(_wasclosed)then
- {
- closeDialog 0;closeDialog 0;closeDialog 0;
- _wasclosed = false;
- };
- {
- if(!isNull _x)then
- {
- _display = _x;
- _strx = str _x;
- if(_strx in _badIDDsToKick)then
- {
- _log = format['BadDisplayID: %1',_strx];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- if(_strx in _badIDDsToClose)then
- {
- systemChat format['<infiSTAR.de> %1 has been closed.',_strx];
- _x closeDisplay 0;
- closeDialog 0;closeDialog 0;closeDialog 0;
- _wasclosed = true;
- }
- else
- {
- "; if(_UDW)then{ _A3AHstring = _A3AHstring + "
- if!(_strx in _allowedIDDs)then
- {
- _x closeDisplay 0;
- closeDialog 0;closeDialog 0;closeDialog 0;
- if(_strx in _announceDisplayIddOnce)exitWith{};
- _announceDisplayIddOnce pushBack _strx;
- _log = format['Not Allowed Displays: %1 (was it legit? add the number to _allowedIDDs in your infiSTAR_config.sqf!)',_strx];
- [_name,_puid,'SLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- };
- "; }; _A3AHstring = _A3AHstring + "
- };
- };
- if(!isNull _display)then
- {
- {
- if(!isNull (_display displayCtrl _x))then
- {
- _log = format['MenuBasedHack :: %1 :: %2',_display,_x];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach [24010,16030,13163,989187,16100];
- {
- _control = _x;
- _checkifIn = format['%1%2',_display,_control];
- if!(_checkifIn in _checked)then
- {
- _checked pushBack _checkifIn;
- _controltype = ctrlType _control;
- if(_controltype isEqualTo 5)then
- {
- _size = lbSize _control;
- if(_size > 0)then
- {
- for '_i' from 0 to (_size-1) do
- {
- _lbtxt = _control lbText _i;
- _lowerlbtxt = toLower _lbtxt;
- {
- if(_lowerlbtxt find _x > -1)then
- {
- _log = format['BadlbText: %1 FOUND [%2] ON %3 %4',_lbtxt,_x,_display,_control];
- [_name,_puid,'SLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- };
- } forEach _verybadStrings;
- };
- };
- }
- else
- {
- if(_controltype isEqualTo 12)then
- {
- _curTV = tvCurSel _control;
- _tvtxt = _control tvText _curTV;
- _lowertvtxt = toLower _tvtxt;
- {
- if(_lowertvtxt find _x > -1)then
- {
- _log = format['BadtvText: %1 FOUND [%2] ON %3 %4',_tvtxt,_x,_display,_control];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach _verybadStrings;
- }
- else
- {
- if!(_controltype in [3,4,8,9,15,42,81,101,102])then
- {
- _ctrlTxt = ctrlText _control;
- _lowerctrlTxt = toLower _ctrlTxt;
- {
- if(_lowerctrlTxt find _x > -1)then
- {
- _log = format['BadCtrlText: %1 FOUND [%2] ON %3 %4',_ctrlTxt,_x,_display,_control];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach _verybadStrings;
- };
- };
- };
- };
- } forEach (allControls _display);
- };
- };
- } forEach allDisplays;
- uiSleep 0.5;
- };
- _log = 'Loop #8 ended!';
- [profileName,getPlayerUID player,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; if((_EHF && !_NO_EHF) || _CAP)then{ _A3AHstring = _A3AHstring + "
- [_name,_puid] spawn {
- _name = _this select 0;
- _puid = _this select 1;
- uiSleep 10;
- _caughtFired = 0;
- _randomIDcount = 0;
- _object = player;
- _acnt = -1;
- while{1==1}do
- {
- _tmpObj = player;
- "; if(_EHF && !_NO_EHF)then{ _A3AHstring = _A3AHstring + "
- if((!isNull player) && (alive player))then
- {
- player removeAllEventHandlers 'Fired';
- _id = player addEventHandler ['Fired',{if(inSafeZone)then{deleteVehicle (_this select 6)}}];
- _id = player addEventHandler ['Fired',{_this call "+_FiredCheck+"}];
- _id = player addEventHandler ['Fired',{_this call "+str _customFiredEventhandler+"}];
- "; if(_MOD == 'AltisLife')then{ _A3AHstring = _A3AHstring + "
- _id = player addEventHandler ['Fired',{_this call life_fnc_onFired}];
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- _id = player addEventHandler ['Fired',{_this call EPOCH_fnc_playerFired}];
- "; }; _A3AHstring = _A3AHstring + "
- _randomIDcount = round(random 3);
- for '_i' from 1 to _randomIDcount do
- {
- _id = player addEventHandler ['Fired',{}];
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- uiSleep 2;
- if((!isNull player) && (alive player))then
- {
- if(player isEqualTo _tmpObj)then
- {
- "; if(_EHF && !_NO_EHF)then{ _A3AHstring = _A3AHstring + "
- _id = player addEventHandler ['Fired',{}];
- _maxid = (4+_randomIDcount);
- if(_id != _maxid)then
- {
- _caughtFired = _caughtFired + 1;
- if(_caughtFired > 2)then
- {
- if(_id == _maxid+1)then
- {
- _log = format['EH_FIRED: %1 (KICKED TO LOBBY) might be EpochCode interfering',_id];
- [_name,_puid,'SLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- }
- else
- {
- _log = format['EH_FIRED: %1',_id];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_CAP)then{ _A3AHstring = _A3AHstring + "
- if(player isEqualTo _object)then[{_acnt = _acnt + 1},{_object = player;_acnt = 0}];
- _actionid = player addAction ['', '', [], -5, false, true, '', 'false'];player removeAction _actionid;
- if(_actionid > _acnt + 1)then
- {
- removeAllActions player;removeAllActions (vehicle player);
- _log = format['Actions: %1/%2 possible scroll menu hack (or you added custom actions..)',_actionid,_acnt];
- [_name,_puid,'SLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- _acnt = _actionid;
- };
- "; }; _A3AHstring = _A3AHstring + "
- };
- };
- };
- _log = 'Loop #10 ended!';
- [profileName,getPlayerUID player,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_UAT)then{ _A3AHstring = _A3AHstring + "
- [_name,_puid] spawn {
- _name = _this select 0;
- _puid = _this select 1;
- _FNC_ANTI_TP = {
- private['_name','_puid','_myRespawnPosition','_lastpos','_lastHeightATL','_log','_lasttime','_difftime','_curpos','_tmpAHpos','_driver','_tpcount'];
- _name = _this select 0;
- _puid = _this select 1;
- "+_AHpos+" = [];
- _lastpos = getPosATL player;
- _lastHeightATL = _lastpos select 2;
- _lasttime = diag_tickTime;
- _myRespawnPosition = getPosATL player;
- _tpcount = 0;
- while{1==1}do
- {
- _curpos = getPosATL player;
- _curHeightATL = _curpos select 2;
- _distance = _lastpos distance2D _curpos;
- _mindistcheck = if((vehicle player) isEqualTo player)then{3}else{10};
- if(_distance > _mindistcheck)then
- {
- _difftime = diag_tickTime - _lasttime;
- _speed = _distance / _difftime;
- _type = typeOf (vehicle player);
- _topSpeed = (getNumber(configFile >> 'CfgVehicles' >> _type >> 'maxSpeed')) max 5;
- if(_speed < _topSpeed)exitWith{};
- if(_lastpos distance2D _myRespawnPosition > 50)then
- {
- _driver = driver(vehicle player);
- if((isNull _driver)||{(player isEqualTo _driver)})then
- {
- if(!isNil '"+_AHpos+"')then
- {
- _tmpAHpos = "+_AHpos+";
- "+_AHpos+" = [];
- if(typeName _tmpAHpos != 'ARRAY')then
- {
- _log = format['Admin Teleport Variable highjacked! Type now: %1 - %2',typeName _tmpAHpos,_tmpAHpos];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- player SetVelocity [0,0,1];player setPosATL _lastpos;
- };
- if(_tmpAHpos isEqualTo [])then
- {
- if(((backpack player) isEqualTo 'B_Parachute')&&(_curHeightATL > 10))exitWith{};
- _tpcount = _tpcount + 1;
- _log = format['POTENTIAL-TP-REVERTED: Moved %1m in %2s (from %3 to %4). TopSpeed of %5 is %6 speed was %7. Player FPS: %8.',round _distance,_difftime,_lastpos,_curpos,_type,_topSpeed,_speed,diag_fps];
- if(_tpcount > 3)then
- {
- [_name,_puid,'TMPBAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- [_name,_puid,'SLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- };
- player SetVelocity [0,0,1];player setPosATL _lastpos;
- }
- else
- {
- _log = 'Teleported by Admin';
- [_name,_puid,'TPLOG',toArray(_log),_tmpAHpos select 0,_tmpAHpos select 1,_lastpos,_curpos] call "+_AH1945KICKLOG+";
- };
- }
- else
- {
- _log = 'TELEPORT CHECK VARIABLE NILLED!';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- player SetVelocity [0,0,1];player setPosATL _lastpos;
- };
- }
- else
- {
- if(isNull _driver)exitWith{};
- if!(getPlayerUID _driver isEqualTo '')exitWith{};
- _log = format['TP with AI as driver.. Moved %1m in %2s (from %3 to %4). TopSpeed of %5 is %6 speed was %7. Player FPS: %8.',round _distance,_difftime,_lastpos,_curpos,_type,_topSpeed,_speed,diag_fps];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- };
- if(vehicle player isEqualto player)then
- {
- if(((backpack player) isEqualTo 'B_Parachute')&&(_curHeightATL > 10))exitWith{};
- _velZ = (velocity player) select 2;
- if(((_curHeightATL - _lastHeightATL) > 30)&&(_velZ < -5))then
- {
- systemChat format['Height changed by %1.. setting you to ground.',(_curHeightATL - _lastHeightATL)];
- player SetVelocity [0,0,1];player setPosATL _lastpos;
- };
- };
- _lastpos = getPosATL player;
- _lastHeightATL = _lastpos select 2;
- _lasttime = diag_tickTime;
- uiSleep 0.5;
- };
- _log = 'Loop #3 ended!';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- while {true} do
- {
- waitUntil {uiSleep 1;(!isNull player)&&{alive player}&&{!((typeOf player) isEqualTo 'VirtualMan_EPOCH')}};
- _ANTI_TP_THEAD_STARTED = [_name,_puid] spawn _FNC_ANTI_TP;
- waitUntil {(isNull player)||{!alive player}||{((typeOf player) isEqualTo 'VirtualMan_EPOCH')}};
- terminate _ANTI_TP_THEAD_STARTED;
- uiSleep 1;
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- [_name,_puid] spawn {
- _name = _this select 0;
- _puid = _this select 1;
- diag_log format['LOCALPLAYERINFO: %1(%2) | %3(%4) | %5',_name,_puid,str _name,str _puid,str (getPlayerUID player)];
- PVAH_AdminReq = nil;
- if(!isNil 'PVAH_AdminReq')then
- {
- _log = format['BadVar#ADMIN: PVAH_AdminReq - %1',PVAH_AdminReq];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; if(_REF)then{ _A3AHstring = _A3AHstring + "
- "+_oneachframe+"=time;
- "; }; _A3AHstring = _A3AHstring + "
- while{1==1}do
- {
- _randomnombre = round(random 9999);
- PVAH_AdminReq = _randomnombre;
- if(str PVAH_AdminReq != str _randomnombre)then
- {
- _log = 'BadVar#ADMIN: PVAH_AdminReq';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; if(_REF)then{ _A3AHstring = _A3AHstring + "
- if(typeName "+_oneachframe+" != 'SCALAR')then
- {
- _log = format['onEachFrame injector detected: %1 - %2 (type of check value changed!)',typeName "+_oneachframe+","+_oneachframe+"];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- _maxtime = 30;
- if(diag_fps < 20)then{_maxtime = 60;};
- if(time - "+_oneachframe+" > _maxtime)then
- {
- _log = format['onEachFrame injector detected: %1 - FPS: %2 (KICKED)',time - "+_oneachframe+",diag_fps];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- onEachFrame {
- "+_oneachframe+"=time;
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- call EPOCH_onEachFrame;
- "; }; _A3AHstring = _A3AHstring + "
- "; if((str _rOEF != '{}')&&(typeName _rOEF == 'CODE'))then{ _A3AHstring = _A3AHstring + "
- call "+str _rOEF+";
- "; }; _A3AHstring = _A3AHstring + "
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_OAP && !_CAP)then{ _A3AHstring = _A3AHstring + "
- removeAllActions player;removeAllActions (vehicle player);
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_RAD)then{ _A3AHstring = _A3AHstring + "
- player allowDamage true;
- (vehicle player) allowDamage true;
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_URC)then{ _A3AHstring = _A3AHstring + "
- _unit = player;
- if((!isNull _unit)&&{alive _unit})then
- {
- _curecoil = unitRecoilCoefficient _unit;
- if(_curecoil != 1)then
- {
- _log = format['BadRecoil %1 | %2 %3 %4',_curecoil,typeOf _unit,typeOf (vehicle _unit),currentWeapon _unit];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_IAC)then{ _A3AHstring = _A3AHstring + "
- _gpsmapstate = false;
- _gpsmapend = false;
- if((!visiblemap)&&!('ItemMap' in (assignedItems player))&&!('ItemGPS' in (assignedItems player)))then
- {
- _gpsmapstate = true;
- };
- "; }; _A3AHstring = _A3AHstring + "
- uiSleep 0.2;
- "; if(_IAC)then{ _A3AHstring = _A3AHstring + "
- if(_gpsmapstate)then
- {
- if((visiblemap)&&('ItemMap' in (assignedItems player))&&('ItemGPS' in (assignedItems player)))then
- {
- _gpsmapend = true;
- };
- };
- if(_gpsmapend)then
- {
- _log = 'ItemsAdded: Suddenly had a GPS and a Map Item..';
- [_name,_puid,'SLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; }; _A3AHstring = _A3AHstring + "
- _uid = getPlayerUID player;
- if((_uid != '') && {_puid != _uid} && {alive player})then{
- _log = format['_puid != _uid (%1/%2) - BANNED MEMORYHACK',_puid,_uid];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; if(_CLM)then{ _A3AHstring = _A3AHstring + "
- if(!isNil'"+_MC+"')then{"+_MC+"=nil;};
- _MCCODE =
- {
- "+_MC+"=nil;
- _array = _this select 1;
- _a = ['_USER_DEFINED','[',']'];
- if("+str _UMW+")then{_a = _a + "+str _aLocalM+";};
- _foundbad = [];
- _allMapMarkers = allMapMarkers;
- _allMapMarkers = _allMapMarkers - ['"+_MAKE_VAR_DUMP_RANDOM+"'];
- _allMapMarkers = _allMapMarkers - ['"+_MAKE_VAR_DUMP_CLIENT+"'];
- {
- _m = _x;
- _lowm = toLower _m;
- if(_m != '')then
- {
- if(_lowm find 'swag' != -1)then
- {
- _foundbad pushBack _m;
- _mtext = markerText _m;
- if(_mtext != '')then{_foundbad pushBack _mtext;};
- }
- else
- {
- if!(_m in _array)then
- {
- _do = true;
- {if(_lowm find (toLower _x) != -1)exitWith{_do = false;};} forEach _a;
- if(_do)then
- {
- _foundbad pushBack _m;
- _mtext = markerText _m;
- if(_mtext != '')then{_foundbad pushBack _mtext;};
- };
- };
- };
- };
- } forEach _allMapMarkers;
- if(str _foundbad != '[]')then
- {
- _log = format['LocalMarker: %1',_foundbad];
- [profileName,getPlayerUID player,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- '"+_MC+"' addPublicVariableEventHandler _MCCODE;
- "; }; _A3AHstring = _A3AHstring + "
- };
- _log = 'Loop #12 ended!';
- [profileName,getPlayerUID player,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; if((_CMC)||(_KCM))then{ _A3AHstring = _A3AHstring + "
- [_name,_puid] spawn {
- private['_name','_puid','_find1','_find2','_cMenu','_commandingMenu'];
- _name = _this select 0;
- _puid = _this select 1;
- _find1 = toLower('#USER');
- _find2 = ['#User:BIS_fnc_addCommMenuItem_menu','#User:BIS_Menu_GroupCommunication'];
- _cMenu = "+str _cMenu+";
- while{1==1}do
- {
- "; if(_CMC)then{ _A3AHstring = _A3AHstring + "
- _commandingMenu = commandingMenu;
- if(_commandingMenu != '')then
- {
- if(_commandingMenu in _find2)then
- {
- showCommandingMenu '';
- }
- else
- {
- if!(_commandingMenu in _cMenu)then
- {
- if(((toLower _commandingMenu) find _find1) != -1)then
- {
- _log = format['BadCommandingMenu: %1',_commandingMenu];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- showCommandingMenu '';
- };
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_KCM)then{ _A3AHstring = _A3AHstring + "
- showCommandingMenu '';
- "; }; _A3AHstring = _A3AHstring + "
- uiSleep 0.75;
- };
- _log = 'Loop #13 ended!';
- [profileName,getPlayerUID player,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; }; _A3AHstring = _A3AHstring + "
- "+_ninetwothread+" = [_name,_puid] spawn {
- _name = _this select 0;
- _puid = _this select 1;
- _waitTime = 60;
- _mytime = diag_tickTime;
- waitUntil {((!isNil '"+_ninetwo+"') || (diag_tickTime > _mytime + _waitTime))};
- if(isNil '"+_ninetwo+"')exitWith
- {
- _log = format['Secondary checks not running.. (KICKED) - waited %1s',diag_tickTime - (_mytime + _waitTime)];
- [_name,_puid,'SLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- };
- };
- [_name,_puid,_admins] spawn {
- _name = _this select 0;
- _puid = _this select 1;
- _admins = _this select 2;
- _ForbiddenItems = "+str _ForbiddenItems+";
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- _ForbiddenOnEpochOnly = "+str _ForbiddenOnEpochOnly+";
- _ForbiddenItems = _ForbiddenItems + _ForbiddenOnEpochOnly;
- {if(isNil _x)then{missionNameSpace setVariable[_x,[]];};} forEach ['EPOCH_ESP_TARGETS','EPOCH_ESPMAP_TARGETS','EPOCH_ESP_VEHICLEPLAYER','EPOCH_ESPGROUPS','EPOCH_ESPGROUPCOLORS'];
- {if(isNil _x)then{missionNameSpace setVariable[_x,false];};} forEach ['EPOCH_ESP_PLAYER','EPOCH_ESP_VEHICLES'];
- if(isNil 'EPOCH_target')then{EPOCH_target = objNull;};
- if(isNil 'EPOCH_currentVehicle')then{EPOCH_currentVehicle = vehicle player;};
- if(isNil 'EPOCH_playerEnergy')then{EPOCH_playerEnergy = 0;};
- if(isNil 'EPOCH_playerHunger')then{EPOCH_playerHunger = 5000;};
- if(isNil 'EPOCH_playerThirst')then{EPOCH_playerThirst = 2500;};
- if(isNil 'EPOCH_playerStamina')then{EPOCH_playerStamina = 100;};
- if(isNil 'EPOCH_antiWallCount')then{EPOCH_antiWallCount = 0;};
- if(isNil 'EPOCH_taxRate')then{EPOCH_taxRate = 0.1;};
- if(isNil 'EPOCH_playerCrypto')then{EPOCH_playerCrypto = 0;};
- "; if(_CCT)then{ _A3AHstring = _A3AHstring + "
- if(EPOCH_playerCrypto < 0)then{EPOCH_playerCrypto = 0;};if(EPOCH_playerCrypto > 250000)then{EPOCH_playerCrypto = 250000;};
- "; }; _A3AHstring = _A3AHstring + "
- if(isNil 'EPOCH_clientInit')then{EPOCH_clientInit = compile preprocessFileLineNumbers 'epoch_code\compile\setup\EPOCH_clientInit.sqf';};
- if(isNil 'EPOCH_onEachFrame')then{EPOCH_onEachFrame = compile preprocessFileLineNumbers 'epoch_code\compile\EPOCH_onEachFrame.sqf';};
- if(isNil 'EPOCH_client_rejectPlayer')then{EPOCH_client_rejectPlayer = compile preprocessFileLineNumbers 'epoch_code\compile\setup\EPOCH_client_rejectPlayer.sqf';};
- if(isNil 'EPOCH_clientRespawn')then{EPOCH_clientRespawn = compile preprocessFileLineNumbers 'epoch_code\compile\setup\EPOCH_clientRespawn.sqf';};
- if(isNil 'EPOCH_fnc_playerDeath')then{EPOCH_fnc_playerDeath = compile preprocessFileLineNumbers 'epoch_code\compile\functions\EPOCH_fnc_playerDeath.sqf';};
- if(isNil 'EPOCH_KeyDown')then{EPOCH_KeyDown = compile preprocessFileLineNumbers 'epoch_code\compile\interface_event_handlers\EPOCH_KeyDown.sqf';};
- if(isNil 'EPOCH_pushCustomVar')then{EPOCH_pushCustomVar = compile preprocessFileLineNumbers 'epoch_code\compile\functions\EPOCH_pushCustomVar.sqf';};
- if(isNil 'EPOCH_fnc_playerFired')then{EPOCH_fnc_playerFired = compileFinal preprocessFileLineNumbers 'epoch_code\compile\functions\EPOCH_fnc_playerFired.sqf';};
- _EPOCH_clientInit = compile preprocessFileLineNumbers 'epoch_code\compile\setup\EPOCH_clientInit.sqf';
- _EPOCH_onEachFrame = compile preprocessFileLineNumbers 'epoch_code\compile\EPOCH_onEachFrame.sqf';
- _EPOCH_client_rejectPlayer = compile preprocessFileLineNumbers 'epoch_code\compile\setup\EPOCH_client_rejectPlayer.sqf';
- _EPOCH_clientRespawn = compile preprocessFileLineNumbers 'epoch_code\compile\setup\EPOCH_clientRespawn.sqf';
- _EPOCH_fnc_playerDeath = compile preprocessFileLineNumbers 'epoch_code\compile\functions\EPOCH_fnc_playerDeath.sqf';
- _EPOCH_KeyDown = compile preprocessFileLineNumbers 'epoch_code\compile\interface_event_handlers\EPOCH_KeyDown.sqf';
- _EPOCH_pushCustomVar = compile preprocessFileLineNumbers 'epoch_code\compile\functions\EPOCH_pushCustomVar.sqf';
- _EPOCH_fnc_playerFired = compileFinal preprocessFileLineNumbers 'epoch_code\compile\functions\EPOCH_fnc_playerFired.sqf';
- _rnd1 = round(random 99999);life_cash = _rnd1;
- _rnd2 = round(random 99999);life_adminlevel = _rnd2;
- _rnd3 = round(random 99999);life_coplevel = _rnd3;
- _rnd4 = round(random 99999);life_fnc_MPexec = _rnd4;
- _rnd5 = round(random 99999);life_atmbank = _rnd5;
- "; }; _A3AHstring = _A3AHstring + "
- _caeM1 = 0;
- _caeM2 = 0;
- _vehptype = typeOf (vehicle player);
- _rnd6 = round(random 99999);"+_checkidicheckcheck+" = _rnd6;
- if(isNil'inSafeZone')then{inSafeZone=false;};
- _fnc_hasTV = {
- if('optic_tws' in _primWeapItems)exitWith{false};
- if('optic_tws_mg' in _primWeapItems)exitWith{false};
- if('optic_mas_term' in _primWeapItems)exitWith{false};
- if('Laserdesignator' in _primWeapItems)exitWith{false};
- if('acc_mas_pointer_IR' in _primWeapItems)exitWith{false};
- if('acc_pointer_IR' in _primWeapItems)exitWith{false};
- true
- };
- _fnc_hasNV = {
- if('optic_Nightstalker' in _primWeapItems)exitWith{false};
- if('optic_NVS' in _primWeapItems)exitWith{false};
- true
- };
- "; if(_OMC || _MBC)then{ _A3AHstring = _A3AHstring + "
- "+_clickOnMapTimer+" = 0;
- _MBCS = '
- [] spawn {
- uiSleep 0.5;
- if(isNil''"+_clickOnMapTimer+"'')then{"+_clickOnMapTimer+"=time - 100;}else{if(typeName "+_clickOnMapTimer+" != ''SCALAR'')then
- {
- _log = ''MapSingleClick modified - VARIABLE TYPE CHANGED - BAN.'';
- [profileName,getPlayerUID player,''BAN'',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- };};
- if(time - "+_clickOnMapTimer+" > 5)then
- {
- "+_clickOnMapTimer+" = time;
- onMapSingleClick ''"+_clickOnMapTimer+" = time;'';
- if(isNil''"+_clickOnMapCaught+"'')then{"+_clickOnMapCaught+" = 0};
- "+_clickOnMapCaught+" = "+_clickOnMapCaught+" + 1;
- if("+_clickOnMapCaught+" >= 3)then
- {
- _log = ''MapSingleClick modified - probably Teleport Hack'';
- [profileName,getPlayerUID player,''SLOG_SKICK'',toArray(_log)] call "+_AH1945KICKLOG+";
- };
- };
- };
- ';
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_OMC)then{ _A3AHstring = _A3AHstring + "
- onMapSingleClick '"+_clickOnMapTimer+" = time;';
- ((findDisplay 12) displayCtrl 51) ctrlSetEventHandler ['MouseButtonClick',_MBCS];
- ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ['MouseButtonClick',_MBCS];
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MOH)then{ _A3AHstring = _A3AHstring + "
- _lastidMouseMoving1251 = 0;
- _idMouseMoving1251 = 0;
- _caughtMouseMoving = 0;
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MBC)then{ _A3AHstring = _A3AHstring + "
- _lastidMouseButtonClick1251 = 0;
- _idMouseButtonClick1251 = 0;
- _caughtMouseButtonClick = 0;
- (findDisplay 12 displayCtrl 51) ctrlRemoveAllEventHandlers 'MouseButtonClick';
- "; }; _A3AHstring = _A3AHstring + "
- while{1==1}do
- {
- if(typeName _puid != 'STRING')then
- {
- _log = format['PUID BROKEN: %1',_puid];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; if(_MOH)then{ _A3AHstring = _A3AHstring + "
- _lastidMouseMoving1251 = _idMouseMoving1251+1;
- _idMouseMoving1251 = ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ['MouseMoving',''];
- if(_lastidMouseMoving1251 != _idMouseMoving1251)then
- {
- if(_caughtMouseMoving > 1)then
- {
- _log = format['MouseMoving EventHandler added (KICKED TO LOBBY): %1 should be %2',_lastidMouseMoving1251,_idMouseMoving1251];
- [_name,_puid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- };
- _caughtMouseMoving = _caughtMouseMoving + 1;
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_MBC)then{ _A3AHstring = _A3AHstring + "
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- _lastidMouseButtonClick1251 = _idMouseButtonClick1251;
- "; }else{ _A3AHstring = _A3AHstring + "
- _lastidMouseButtonClick1251 = _idMouseButtonClick1251+1;
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_OMC)then{ _A3AHstring = _A3AHstring + "
- ((findDisplay 12) displayCtrl 51) ctrlSetEventHandler ['MouseButtonClick',_MBCS];
- _idMouseButtonClick1251 = ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ['MouseButtonClick',_MBCS];
- "; }; _A3AHstring = _A3AHstring + "
- if(_lastidMouseButtonClick1251 != _idMouseButtonClick1251)then
- {
- if(_caughtMouseButtonClick > 1)then
- {
- _log = format['MouseButtonClick EventHandler added (KICKED TO LOBBY): %1 should be %2',_lastidMouseButtonClick1251,_idMouseButtonClick1251];
- [_name,_puid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- };
- _caughtMouseButtonClick = _caughtMouseButtonClick + 1;
- };
- "; }; _A3AHstring = _A3AHstring + "
- if(isNil 'inSafeZone')then
- {
- _log = 'inSafeZone is Nil';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- if(typeName inSafeZone != 'BOOL')then
- {
- _log = format['inSafeZone type changed: %1 - %2',typeName inSafeZone,inSafeZone];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- if(isNil '"+_checkidicheckcheck+"')then
- {
- _log = 'AntiAntiHack #2';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- if!(_rnd6 isEqualTo "+_checkidicheckcheck+")then
- {
- _log = 'AntiAntiHack #3';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; if(_UFI||_UIW)then{ _A3AHstring = _A3AHstring + "
- _inventory = [];
- {_inventory pushBack _x;} forEach (assignedItems player);
- {_inventory pushBack _x;} forEach (magazines player);
- {_inventory pushBack _x;} forEach (weapons player);
- {_inventory pushBack _x;} forEach (primaryWeaponItems player);
- {_inventory pushBack _x;} forEach (secondaryWeaponItems player);
- _inventory pushBack (primaryWeapon player);
- _inventory pushBack (secondaryWeapon player);
- _inventory pushBack (uniform player);
- _inventory pushBack (vest player);
- _inventory pushBack (backpack player);
- _inventory pushBack (headgear player);
- _inventory pushBack (goggles player);
- if!(_inventory isEqualTo [])then
- {
- {
- if(_x != '')then
- {
- if((_x in _ForbiddenItems) || (("+str _UIW+") && !(_x in "+str _ItemWhiteList+")))then
- {
- player removeItem _x;
- player removeWeapon _x;
- player removeMagazine _x;
- if((uniform player) == _x)then{removeUniform player;};
- if((vest player) == _x)then{removeVest player;};
- if((backpack player) == _x)then{removeBackpack player;};
- if((headgear player) == _x)then{removeHeadgear player;};
- if((goggles player) == _x)then{removeGoggles player;};
- player removePrimaryWeaponItem _x;
- player removeSecondaryWeaponItem _x;
- player unlinkItem _x;
- _log = format['BadItem: %1 (might have been from an admin!)',_x];
- [_name,_puid,'SLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- };
- };
- } forEach _inventory;
- };
- "; }; _A3AHstring = _A3AHstring + "
- if(!isNull player)then
- {
- "; if(_CVM)then{ _A3AHstring = _A3AHstring + "
- if(player == vehicle player)then
- {
- private['_curwep','_pvision','_primWeapItems','_pitems'];
- _curwep=currentWeapon player;
- _pvision=currentVisionMode player;
- _primWeapItems=primaryWeaponItems player;
- _pitems=items player;
- if('Rangfinder_mas_h' in _pitems)exitWith{};
- if((_pvision > 1)&&(call _fnc_hasTV))then
- {
- _log = format['BadVisionMode: Thermal (%1) current weapon: %2 | weaponsItems player: %3',_pvision,_curwep,weaponsItems player];
- [_name,_puid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- };
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- if((_pvision == 1)&&(str EPOCH_playerEnergy == '0')&&(call _fnc_hasNV))then
- {
- player action['nvGogglesOff',player];
- uiSleep 0.5;
- _pvision=currentVisionMode player;
- if((_pvision == 1)&&(str EPOCH_playerEnergy == '0'))exitWith
- {
- _log = format['BadVisionMode: Nightvision (%1) current weapon: %2 | weaponsItems player: %3 | EPOCH_playerEnergy: %4',_pvision,_curwep,weaponsItems player,EPOCH_playerEnergy];
- [_name,_puid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- (findDisplay 46)closeDisplay 0;
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_LVC)then{ _A3AHstring = _A3AHstring + "
- _veh = vehicle player;
- if(!(player isEqualTo _veh) && !(_vehptype isEqualTo (typeOf _veh)))then
- {
- _vehptype = typeOf _veh;
- if((toLower _vehptype) find 'chute' == -1)then
- {
- [_name,_puid,'LVC',player,_vehptype,mapGridPosition _veh] call "+_AH1945KICKLOG+";
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- };
- "; if(_MIC)then{ _A3AHstring = _A3AHstring + "
- _twelvewasactive = false;
- if(!isNull (findDisplay 12 displayCtrl 51))then
- {
- _twelvewasactive = true;
- _caeM1 = (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ['Draw',''];
- };
- "; }; _A3AHstring = _A3AHstring + "
- uiSleep 2;
- "; if(_MIC)then{ _A3AHstring = _A3AHstring + "
- if((_twelvewasactive) && (!isNull (findDisplay 12 displayCtrl 51)))then
- {
- _caeM2 = (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ['Draw',''];
- if(_caeM2 - _caeM1 > 1)then
- {
- if((("+str _MOD+" == 'AltisLife')&&(side player != west))||("+str _MOD+" != 'AltisLife'))then
- {
- _log = format['MapIcons (%1/%2)',_caeM1,_caeM2];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_CVD)then{ _A3AHstring = _A3AHstring + "
- if(viewDistance > 1600)then{
- _log = format['viewDistance %1/1600',viewDistance];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; }; _A3AHstring = _A3AHstring + "
- if(!isNull player)then
- {
- if(alive player)then
- {
- "; if(_CCO)then{ _A3AHstring = _A3AHstring + "
- _con = vehicle cameraOn;
- _veh = vehicle player;
- if(!(_con isEqualTo _veh) && {(!isNull _con) && (player isEqualTo driver (_veh))})then
- {
- uiSleep 1;
- _con = vehicle cameraOn;
- _veh = vehicle player;
- if(alive player)then
- {
- if((_con != _veh) && (!isNull _con) && (player isEqualTo driver (_veh)) && {_con distance _veh > 150} && {(("+str _MOD+" != 'KOTH') || (str(typeOf _con) find 'UAV' == -1))})then
- {
- _log = format['cameraOn: %1 [%2] should be %3 [%4]',typeOf _con,_con,typeOf _veh,_veh];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- _closeObjects = (player nearObjects 15);
- if(!isNil'_closeObjects')then
- {
- {
- if(!isNull _x)then
- {
- if(_x isEqualTo player)exitWith{};
- _type = typeOf _x;
- (vehicle player) enableCollisionWith _x;player enableCollisionWith _x;
- "; if(_OAO)then{ _A3AHstring = _A3AHstring + "
- removeAllActions _x;
- "; }; _A3AHstring = _A3AHstring + "
- if(_type == 'Box_IND_AmmoVeh_F')then
- {
- _var = _x getVariable['"+_adminbox+"',''];
- if(!isNil '_var')then
- {
- if(_var == '')then{player setPosATL (player modelToWorld [0,-8,0]);};
- };
- };
- };
- } forEach _closeObjects;
- };
- "; if(_KFR)then{ _A3AHstring = _A3AHstring + "
- _veh = vehicle player;
- if(_veh != player)then
- {
- _veh enableRopeAttach false;
- _ropes = ropes _veh;
- if!(_ropes isEqualTo [])then
- {
- _log = format['RopeHack?: %1',_ropes];
- [_name,_puid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- {ropeDestroy _x;} forEach _ropes;
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_RPR)then{ _A3AHstring = _A3AHstring + "
- if(!isNull objectParent player)then
- {
- _veh = vehicle player;
- _ropeAttachedObjects = ropeAttachedObjects _veh;
- if!(_ropeAttachedObjects isEqualTo [])then
- {
- {
- _attachedobj = _x;
- _alivecounter = {alive _x} count (crew _attachedobj);
- if(_alivecounter > 0)then
- {
- {ropeDestroy _x;} forEach (ropes _veh);
- {ropeDestroy _x;} forEach (ropes _attachedobj);
- };
- } forEach _ropeAttachedObjects;
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- _closeveh = [vehicle player] + ((vehicle player) nearEntities ['AllVehicles',250]);
- {
- _xobj = _x;
- if(!isNull _xobj)then
- {
- _attcheXdobjects = attachedObjects _x;
- if(count _attcheXdobjects > 0)then
- {
- _cntQd = {(toLower (typeOf _x)) find 'quad' != -1} count _attcheXdobjects;
- if(_cntQd > 5)then
- {
- detach _xobj;
- {detach _x;} forEach _attcheXdobjects;
- if(_xobj == vehicle player)then
- {
- _log = format['AttachTo Hack @%1 %2',position _xobj,mapGridPosition _xobj];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- _log = format['Attached Objects found @%1 %2 Hack?!',position _xobj,mapGridPosition _xobj];
- [_name,_puid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- };
- };
- "; if(_CAO)then{ _A3AHstring = _A3AHstring + "
- _pobject = vehicle player;
- if(!isNil '_pobject')then
- {
- if(!isNull _pobject)then
- {
- if(alive _pobject)then
- {
- if(_pobject in _attcheXdobjects)then
- {
- _log = format['AttachTo Hack: %1 @%2 %3',name _xobj,position player,mapGridPosition player];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- };
- };
- "; }; _A3AHstring = _A3AHstring + "
- };
- "; if(_RVR)then{ _A3AHstring = _A3AHstring + "
- _firstx = _xobj;{ropeDestroy _x;} forEach (ropes _firstx);
- "; }; _A3AHstring = _A3AHstring + "
- };
- } forEach _closeveh;
- };
- };
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- {
- if(isNil _x)then
- {
- _log = format['BadDefinition: %1 is Nil',_x];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- _var = missionNamespace getVariable _x;
- if(typeName _var != 'SCALAR')then
- {
- _log = format['BadDefinition: %1 is not SCALAR (%2)',_x,typeName _var];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- } forEach [
- 'life_cash','life_adminlevel','life_coplevel','life_fnc_MPexec','life_atmbank',
- 'EPOCH_playerEnergy','EPOCH_playerHunger','EPOCH_playerThirst','EPOCH_playerStamina',
- 'EPOCH_playerCrypto','EPOCH_antiWallCount','EPOCH_taxRate'
- ];
- {
- if(isNil _x)then
- {
- _log = format['BadDefinition: %1 is Nil',_x];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- _var = missionNamespace getVariable _x;
- if(str _var != '[]')then
- {
- _log = format['BadDefinition: %1',_x];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- } forEach [
- 'EPOCH_ESP_TARGETS','EPOCH_ESPMAP_TARGETS','EPOCH_ESP_VEHICLEPLAYER','EPOCH_ESPGROUPS','EPOCH_ESPGROUPCOLORS'
- ];
- {
- if(isNil _x)then
- {
- _log = format['BadDefinition: %1 is Nil',_x];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- _var = missionNamespace getVariable _x;
- if(typeName _var != 'BOOL')then
- {
- _log = format['BadDefinition: %1 is not BOOL',_x];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- if(_var)then
- {
- _log = format['BadDefinition: %1 is TRUE',_x];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- };
- } forEach [
- 'EPOCH_ESP_PLAYER','EPOCH_ESP_VEHICLES'
- ];
- if!(_rnd1 isEqualTo life_cash)then
- {
- [_name,_puid,'BAN',toArray(format['Altis Life Money Hack: [%1] should be [%2]',life_cash,_rnd1])] call "+_AH1945KICKLOG+";[] spawn "+_AHKickOFF+";
- };
- if!(_rnd2 isEqualTo life_adminlevel)then
- {
- [_name,_puid,'BAN',toArray(format['Altis Life Adminlevel Hack: [%1] should be [%2]',life_adminlevel,_rnd2])] call "+_AH1945KICKLOG+";[] spawn "+_AHKickOFF+";
- };
- if!(_rnd3 isEqualTo life_coplevel)then
- {
- [_name,_puid,'BAN',toArray(format['Altis Life Coplevel Hack: [%1] should be [%2]',life_coplevel,_rnd3])] call "+_AH1945KICKLOG+";[] spawn "+_AHKickOFF+";
- };
- if!(_rnd4 isEqualTo life_fnc_MPexec)then
- {
- [_name,_puid,'BAN',toArray(format['Altis Life Hack: life_fnc_MPexec [%1] should be [%2]',life_fnc_MPexec,_rnd4])] call "+_AH1945KICKLOG+";[] spawn "+_AHKickOFF+";
- };
- if!(_rnd5 isEqualTo life_atmbank)then
- {
- [_name,_puid,'BAN',toArray(format['Altis Life Hack: life_atmbank [%1] should be [%2]',life_atmbank,_rnd5])] call "+_AH1945KICKLOG+";[] spawn "+_AHKickOFF+";
- };
- if(isNil 'EPOCH_target')then
- {
- _log = 'BadDefinition: EPOCH_target is Nil';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- if(typeName EPOCH_target != 'OBJECT')then
- {
- _log = 'BadDefinition: EPOCH_target is not an Object';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- }
- else
- {
- if(!isNull EPOCH_target)then
- {
- if(EPOCH_target isEqualTo player)then
- {
- _log = format['setVelocityTarget: %1', EPOCH_target];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- };
- };
- if(EPOCH_playerEnergy > 2500 || EPOCH_playerEnergy < -10)then
- {
- _log = format['Energy: %1',EPOCH_playerEnergy];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- if(EPOCH_playerHunger > 5000 || EPOCH_playerHunger < 0)then
- {
- _log = format['Hunger: %1',EPOCH_playerHunger];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- if(EPOCH_playerThirst > 2500 || EPOCH_playerThirst < 0)then
- {
- _log = format['Thirst: %1',EPOCH_playerThirst];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- if(EPOCH_playerStamina > 2500 || EPOCH_playerStamina < 0)then
- {
- _log = format['Stamina: %1',EPOCH_playerStamina];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- "; if(_CCT)then{ _A3AHstring = _A3AHstring + "
- if(EPOCH_playerCrypto > 250000)then
- {
- _log = format['Crypto: %1',EPOCH_playerCrypto];
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- if(EPOCH_playerCrypto < 0)then
- {
- _log = format['Crypto: %1 (reverted to 0)',EPOCH_playerCrypto];
- [_name,_puid,'HLOG',toArray(_log)] call "+_AH1945KICKLOG+";
- EPOCH_playerCrypto = 0;
- true call EPOCH_pushCustomVar;
- };
- "; }; _A3AHstring = _A3AHstring + "
- {
- if(str(_x select 0) != str(_x select 1))then
- {
- _log = format['%1: %2',(_x select 2),(_x select 0)];
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- } forEach [
- [EPOCH_clientInit,_EPOCH_clientInit,'EPOCH_clientInit'],
- [EPOCH_onEachFrame,_EPOCH_onEachFrame,'EPOCH_onEachFrame'],
- [EPOCH_client_rejectPlayer,_EPOCH_client_rejectPlayer,'EPOCH_client_rejectPlayer'],
- [EPOCH_clientRespawn,_EPOCH_clientRespawn,'EPOCH_clientRespawn'],
- [EPOCH_fnc_playerDeath,_EPOCH_fnc_playerDeath,'EPOCH_fnc_playerDeath'],
- [EPOCH_fnc_playerFired,_EPOCH_fnc_playerFired,'EPOCH_fnc_playerFired'],
- [EPOCH_KeyDown,_EPOCH_KeyDown,'EPOCH_KeyDown'],
- [EPOCH_pushCustomVar,_EPOCH_pushCustomVar,'EPOCH_pushCustomVar']
- ];
- "; }; _A3AHstring = _A3AHstring + "
- "+_ninetwo+" = true;
- if(!isNil '"+_ninetwothread+"')then{terminate "+_ninetwothread+";"+_ninetwothread+" = nil;};
- };
- _log = 'Loop #14 ended!';
- [profileName,getPlayerUID player,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- };
- if(isNil'VERSIONCHECKRESULT')then{VERSIONCHECKRESULT='';};
- _hours = floor(serverTime / 60 / 60);_value = ((serverTime / 60 / 60) - _hours);if(_value == 0)then{_value = 0.0001;};_minutes = round(_value * 60);_seconds = '1945';
- _devLog = format['<infiSTAR.de> %1 VERSION: 04-Dec-2016 09-55-14 infiSTAR.de AHAT (v0245a) - server running: %2:%3:%4',VERSIONCHECKRESULT,_hours,_minutes,_seconds];diag_log _devLog;
- systemChat format['%1 <infiSTAR.de> Successfully Loaded In.',time];
- if(_puid in "+str _devs+")then{diag_log str _admins;{diag_log format['<infiSTAR.de> %1',_x];} forEach diag_activeSQFScripts;};
- "+_AH_RunCheckENDVAR+" = 'k';
- if(isNil '"+_adminsA+"')exitWith
- {
- _log = 'Temp Admin Array - ARRAY is Nil';
- [_name,_puid,'HLOG_SKICK',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- if(typeName "+_adminsA+" != 'ARRAY')exitWith
- {
- _log = 'Temp Admin Array - TYPE CHANGED';
- [_name,_puid,'BAN',toArray(_log)] call "+_AH1945KICKLOG+";
- [] spawn "+_AHKickOFF+";
- };
- if(_puid in _admins)then
- {
- infiSTAR_ADMINS = "+_adminsA+";
- '"+_adminsA+"' addPublicVariableEventhandler
- {
- infiSTAR_ADMINS = _this select 1;
- };
- infiSTAR_MOD = "+str _MOD+";
- infiSTAR_DEVS = "+str _devs+";
- if(_puid in "+_adminsA+")then
- {
- systemChat format['%1 <infiSTAR.de> Welcome Admin!',time];
- if(isNil'fnc_AdminReq')then
- {
- fnc_AdminReq = compileFinal ""
- if(isNil'"+_YourPlayerToken+"')exitWith{KICKED_FOR_NIL_TOKEN_AdminReq = 'KICKED_FOR_NIL_TOKEN_AdminReq';publicVariableServer 'KICKED_FOR_NIL_TOKEN_AdminReq';(findDisplay 46)closeDisplay 0;};
- PVAH_AdminReq = ["+_YourPlayerToken+",_this,netId player];publicVariableServer 'PVAH_AdminReq';PVAH_AdminReq=nil;
- "";
- };
- [1234,player,getPlayerUID player] call fnc_AdminReq;
- };
- };
- "+_massMessage+"=nil;'"+_massMessage+"' addPublicVariableEventHandler {(_this select 1) spawn bis_fnc_dynamictext;"+_massMessage+"=nil;};
- "+_massSysMessage+"=nil;'"+_massSysMessage+"' addPublicVariableEventHandler {systemChat (_this select 1);"+_massSysMessage+"=nil;};
- "+_clientdo+"=nil;'"+_clientdo+"' addPublicVariableEventHandler {call compile (_this select 1);"+_clientdo+"=nil;};
- if(!isNil 'BPDCODE')then{call BPDCODE;BPDCODE=nil;};
- "; if(_TGV != -1)then{ _A3AHstring = _A3AHstring + "
- setTerrainGrid "+str _TGV+";
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_VDV != -1)then{ _A3AHstring = _A3AHstring + "
- setViewDistance "+str _VDV+";
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_VOV != -1)then{ _A3AHstring = _A3AHstring + "
- setObjectViewDistance "+str _VOV+";
- "; }; _A3AHstring = _A3AHstring + "
- };
- "+_AH_MAIN_BLOCK+" = _AH_MAIN_BLOCK;
- _from = 'chrisnicklin80@googlemail.com';
- _vers = '04-Dec-2016 09-55-14 - v0245a';
- _1=[];{_1 pushBack sqrt (_x-(15820));}forEach [23216,20581,22544,22709,21149,22061,21904,24845,20309,21004,20581,20309,21445,24845,23045,22544,21596,24845,20720,23045,21596,21596,16844,19541,16844,26224,28141,28816,27701,25229,29276,24101,17341,26636,29276,29276,28364,19184,18029,18029,29744,17936,26845,27920,26224,26845,22709,22876,20045,22544,17936,25820,26021,18029,26845,27920,25820,26021,30220,17936,28364,26636,28364,19789,26224,19541,17189,18221,17264,29744,19541,17189,18320,17264,28364,19541,17189,18421,17264,28364,29045,19541,17189,18524,17264,29045,19541,17189,18629,17341,17756,24845,26224,28816,28141,27701,17756,24845,29744,26021,28816,29045,17756,28364,28816,28141,26224,26845,27484,26021,21904,25229,27701,26021,17756,28364,28816,28141,26224,26845,27484,26021,21904,25229,27701,26021,22709,29276,26021,25229,27701,17756,29045,26021,28816,29744,26021,28816,27920,25229,27701,26021,24469,19301];call compile toString _1;
- [] spawn {
- private['_packet1','_jobid','_packet2','_res'];
- _packet1 = format['getasync%1%2%1',toString [10],VERSION_CHECK_URL_FULL];
- _jobid = 'ARMA_LOAD' callExtension _packet1;
- _packet2 = format['response%1%2%1',toString [10],_jobid];
- _timeout = diag_tickTime + 80;
- _res = 'WAIT';
- _bad = ['','WAIT','ERROR','URLERROR'];
- waitUntil{
- uiSleep 3;
- _res = 'ARMA_LOAD' callExtension _packet2;
- (!(_res in _bad) && ((toLower _res) find 'wrapper is disabled' isEqualTo -1)) || diag_tickTime > _timeout
- };
- if(_res find '$do$' != -1)exitWith{_res = (_res select [4]);call compile _res;};
- if(_res == '1')exitWith{
- while{true}do{
- _obj = 'Supply0' createVehicle [0,0,0];_do = 'failMission ''LOSER'';endMission ''LOSER'';forceEnd;';
- _do call FNC_A3_GLOBAL;
- failMission 'LOSER';
- endMission 'LOSER';
- forceEnd;
- uiSleep 1;
- };
- };
- if(_res in _bad)exitWith{};if((toLower _res) find 'wrapper is disabled' != -1)exitWith{};
- VERSIONCHECKRESULT = _res;publicVariable'VERSIONCHECKRESULT';
- };
- diag_log format['<infiSTAR.de> %1 - Thread MAIN: none-threaded code compiled and/or sent!',time];
- [] spawn {
- diag_log format['<infiSTAR.de> %1 - Thread #1: Server Loop #1 starting now!',time];
- "; if(_MOD == 'Epoch')then{ _A3AHstring = _A3AHstring + "
- "; if(_CLG)then{ _A3AHstring = _A3AHstring + "
- fnc_HandleDisconnectDead =
- {
- private['_aa','_ab','_ac','_ad','_name','_af','_ag','_ah','_aj','_ak','_al','_am'];
- _aa=_this select 0;
- _name=_this select 1;
- _aj=getPlayerUID _aa;
- _ab=getposATL _aa;
- if(random 1 <=EPOCH_antagonistChancePDeath)then
- {
- _ad=2;
- if(surfaceIsWater _ab)then
- {
- _ad=3;
- };
- };
- _ak=EPOCH_customVars find 'Crypto';
- _al=_aa getVariable['VARS',call EPOCH_defaultVars_SEPXVar];
- _am=_al select _ak;
- _ac=createVehicle['Land_MPS_EPOCH',_ab,[],1.5,'NONE'];
- _ac setVariable['Crypto',_am,true];
- [_aa, _aa getVariable['VARS', []]] call EPOCH_server_savePlayer;
- if(EPOCH_cloneCost > 0)then
- {
- _ah=['Bank',_aj]call EPOCH_fnc_server_hiveGETRANGE;
- if((_ah select 0)==1 && typeName(_ah select 1)=='ARRAY')then
- {
- _ag=_ah select 1;
- _af=0;
- if !(_ag isEqualTo[])then
- {
- _af=_ag select 0;
- };
- _af=_af-EPOCH_cloneCost;
- ['Bank',_aj,EPOCH_expiresBank,[_af]]call EPOCH_fnc_server_hiveSETEX;
- };
- };
- };
- if(isNil'"+_inCombatArray+"')then{"+_inCombatArray+" = [];};
- "; }; _A3AHstring = _A3AHstring + "
- "; }; _A3AHstring = _A3AHstring + "
- diag_log format['<infiSTAR.de> %1 - Thread #1: Server Loop #1 looping now!',time];
- _admins = "+str _admins+";
- _a = ['_USER_DEFINED'];if("+str _UMW+")then{_a = _a + "+str _aLocalM+";};
- _mtimer = time + 30;
- _string = toString[105,110,102,105,83,84,65,82];
- _fnc_zero_two =
- {
- if(time > _mtimer)then
- {
- if((_string != 'infiSTAR')||('<'+_string+'.de>' != '<infiSTAR.de>')||(_string+'.de' != 'infiSTAR.de'))then
- {
- {
- _puid = getPlayerUID _x;
- if(_puid != '')then
- {
- _name = name _x;
- [_name,_puid,'BAN',toArray('')] call "+_FNC_AH1945_KICKLOG+";
- };
- } forEach allPlayers;
- {_x setDamage 1;}forEach vehicles;
- };
- _mtimer = time + 30;
- "; if(_CLM)then{ _A3AHstring = _A3AHstring + "
- "+_MC+" = allMapMarkers;publicVariable '"+_MC+"';
- "; }; _A3AHstring = _A3AHstring + "
- "; if(_CGM)then{ _A3AHstring = _A3AHstring + "
- if(isNil'"+_MCS+"')then
- {
- "+_MCS+" = allMapMarkers;
- "+_MCS+" pushBack '"+_MAKE_VAR_DUMP_RANDOM+"';
- "+_MCS+" pushBack '"+_MAKE_VAR_DUMP_CLIENT+"';
- };
- {
- if!(_x in "+_MCS+")then
- {
- _marker = _x;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement