Code:
if (isnil ("runonce")) then
{
runonce = true;
};
if (runonce) then
{
new_queued = compile preprocessFileLineNumbers "\dz\modulesDayZ\scripts\player_queued.sqf";
[] spawn
{
while{true} do
{
waitUntil{!(isNil "clientReady") || !(isNil "clientNew")};
if(isNil "clientReady") then
{
PLAYER_ID = clientNew select 2;
}
else
{
PLAYER_ID = clientReady;
};
};
};
[] spawn
{
diag_log "instant respawn started";
while{true} do
{
player_queued =
{
_id = _this select 0;
_this set[6,0];
systemchat 'Instantly Respawned';
_this call new_queued;
};
};
};
[]spawn
{
while {true}do
{
0 cutRsc['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable['RscTitleStructuredText', displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_ctrl ctrlSetPosition[safezonex, safezoney + 0.9, safezonew, safezoneH];
_ctrl ctrlSetStructuredText parseText "<t color='#848484'>(</t><t color='#8DFF00'>+</t><t color='#848484'>)</t>";
_ctrl ctrlcommit 0;
uiSleep 7;
};
};
[] spawn {
waitUntil{!isNil "clientReady"};
_var = profilenamespace getVariable["Dupe_Body",false];
if(_var) then {
publicVariableServer "clientReady";
sleep 0.2;
publicVariableServer "clientReady";
sleep 0.2;
publicVariableServer "clientReady";
sleep 0.2;
systemchat "DUPING PLAYER BODY!";
};
profilenamespace setVariable["Dupe_Body",false];
saveprofilenamespace;
waitUntil{!isNull player};
};
runonce = false;
JunFunctions = {
disableSerialization;
_Jun_Display = (findDisplay 155);
_jun_editdisplay1 = _Jun_Display displayctrl 1122;
_jun_editdisplay2 = _Jun_Display displayctrl 1002;
_jun_editdisplay3 = _Jun_Display displayctrl 1119;
_jun_editdisplay4 = _Jun_Display displayctrl 1116;
_jun_editdisplay5 = _Jun_Display displayctrl 1118;
_jun_editdisplay6 = _Jun_Display displayctrl 1229;
_jun_editdisplay7 = _Jun_Display displayctrl 1156;
_jun_editdisplay8 = _Jun_Display displayctrl 1000;
call compile toString[99,116,114,108,83,101,116,84,101,120,116,91,49,48,48,48,44,34,73,110,115,97,110,101,32,86,51,46,49,32,66,121,32,74,117,110,34,93,59];
ctrlSetText[109,"Welcome MPGH Users"];
ctrlSetText[1001,""];
_jun_editdisplay1 ctrlSetText "Execute";
_jun_editdisplay3 ctrlSetText "Map";
_jun_editdisplay4 ctrlSetText "View Gear";
_jun_editdisplay5 ctrlSetText "Spectate";
_jun_editdisplay6 ctrlSetText "Dupe Body";
_jun_editdisplay7 ctrlSetText "Relog";
buttonSetAction[1122,"call compile (ctrlText 1113)"];
buttonSetAction[1119,"[] spawn InsaneMap"];
buttonSetAction[1116,"[] spawn ViewGEar"];
buttonSetAction[1118,"[] spawn Spectate"];
buttonSetAction[1229,"[] spawn Dupe_Body"];
buttonSetAction[1156,"[] spawn Click_Me"];
[] spawn Insane_FillMainMenu;
[] spawn FillPlayers;
while{!isNull findDisplay(155)} do {
_jun_editdisplay2 ctrlSetText "Scripts";
sleep 0.2;
_jun_editdisplay8 ctrlsettextcolor [random 1,random 1, random 1,1];
};
};
Dupe_Body = {
profilenamespace setVariable["Dupe_Body",true];
saveprofilenamespace;
systemchat 'Nigga Hit Relog On Menu';
};
Click_Me = {
Endmission 'loser';
};
Spectate = {
_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";}'];
};
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 "";
};
Targetselect =
{
_target = _this select 0;
targetname = _target;
_target2 = "Target = " + _target;
["<t size='1.3' color='#00E0FD'>" + _target2 + "</t>",0,0,0,0,5] spawn Drawit;
};
FillPlayers = {
_entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
{
if ((name _x != "unknown entity") && (alive _x)) then
{
_display = (findDisplay 155);
_control = _display displayCtrl 101;
_control ctrlSetEventHandler ["LBDblClick", "[lbtext [101, (lbCurSel 101)]] spawn Targetselect;"];
_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;
};
ViewGEar = {
_entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
{
if (name _x == targetname) then
{
createGearDialog [(_x), "RscDisplayGear"];
};
} forEach _entities;
};
InsaneMap = {
disableSerialization;
closeDialog 0;
if (isNil "n211") then
{
n212 =
{
_ctrl = _this select 0;
{
_ctrl drawIcon ["\DZ\ui\data\map\markers\military\Start_CA.paa", if (_x == player) then {[0,0,1,1]} else {[1,0,0,1]}, getPos _x, ((1 - ctrlMapScale _ctrl) max 0.2)*30, ((1 - ctrlMapScale _ctrl) max 0.2)*30, getDir _x, "herro", 2];
} forEach (entities "SurvivorBase");
};
};
createDialog "RscDisplayMainMap";
_map = (findDisplay 12) displayCtrl 51;
_map ctrlAddEventHandler ["Draw", "_this call n212"];
for "_i" from 0 to 9999 do
{
if (_i != 51) then
{
((findDisplay 12) displayCtrl _i) ctrlShow false;
};
};
};
ESPMENU = {
_display1 = (findDisplay 155);
_control1 = _display1 displayCtrl 102;
_ESPBUttoInsane1 = _display1 displayCtrl 1222;
_ESPBUttoInsane1 ctrlSetText "Main Scripts";
buttonSetAction[1222,"[] spawn Insane_FillMainMenu"];
_control ctrlSetEventHandler ["LBDblClick", "[lbtext [102, (lbCurSel 102)]] spawn executescript;"];
_ESPItems = (findDisplay 155) displayCtrl 102;
lbClear _ESPItems;
lbAdd [102, "~~~~~~~~~~~~~~ITEM ESP~~~~~~~~~~~~~~"];
lbAdd [102, ""];
lbAdd [102, "FIREARMS"];
lbAdd [102, "MAG ESP"];
lbAdd [102, "LOOSE AMMO ESP"];
lbAdd [102, "MEDICAL ESP"];
lbAdd [102, "FOOD AND DRINK ESP"];
};
Insane_FillMainMenu = {
_display = (findDisplay 155);
_ESPBUtton = _display displayCtrl 1222;
_ESPBUtton ctrlSetText "Item ESP";
buttonSetAction[1222,"[] spawn ESPMENU"];
_control = _display displayCtrl 102;
lbClear _control;
_control ctrlSetEventHandler ["LBDblClick", "[lbtext [102, (lbCurSel 102)]] spawn executescript;"];
lbAdd [102, "~~~~~~~~~~~~~~MAJOR ESP~~~~~~~~~~~~~~"];
lbAdd [102, ""];
lbAdd [102, "PLAYER ESP"];
lbAdd [102, "BODY ESP"];
lbAdd [102, "VEHICLE ESP"];
lbAdd [102, ""];
lbAdd [102, "~~~~~~~~~~~~~~MISC SCRIPTS~~~~~~~~~~~~~~"];
lbAdd [102, ""];
lbAdd [102, "THIRD PERSON"];
lbAdd [102, "CREDITS | HELP"];
lbAdd [102, "NIGHTLIGHT"];
lbAdd [102, "GUN GOD"];
lbAdd [102, "HIDE BUILDINGS"];
lbAdd [102, "BREAK FREE"];
lbAdd [102, "FAST ACTION | INJURED MOVE"];
lbAdd [102, "MAP MARKERS"];
};
executescript = {
_scriptname = _this select 0;
if (_scriptname == "FAST ACTION | INJURED MOVE") then {
if (isnil ("FastAnimations")) then
{
FastAnimations = 0;
};
if (FastAnimations==0) then
{
FastAnimations=1;
systemchat "Player Injured (Fast Animations): On";
playeraction "playerinjuredl";
}
else
{
systemchat "Player Injured (Fast Animations): Off";
playeraction "playerhealthy";
FastAnimations=0;
};
};
if (_scriptname == "HIDE BUILDINGS") then {
if (isnil ("Insane1111")) then
{
Insane1111 = 0;
};
if (Insane1111 == 0) then
{
systemchat "No Buildings ON";
Insane1111 = 1;
}
else
{
systemchat "No Buildings OFF";
Insane1111 = 0;
};
while {Insane1111 == 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 {Insane1111 == 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 == "NIGHTLIGHT") then {
if (isNil "Insane171") then
{
Insane171 = true;
};
if (Insane171) then
{
Insane172 = "#lightpoint" createVehicleLocal getpos player;
Insane172 setLightBrightness 9;
Insane172 setLightAmbient[15, 15, 15];
Insane172 setLightColor[.4, 1, 0];
Insane172 lightAttachObject [player, [0,0,15]];
Insane171 = false;
systemchat "Night Light ON";
}
else
{
deleteVehicle Insane172;
Insane171 = true;
systemchat "Night Light OFF";
};
};
if (_scriptname == "GUN GOD") then {
if (isNil ("Insane201")) then
{
Insane201=0;
};
if (Insane201==0) then
{
player setWeaponReloadingTime [player,currentWeapon player,0];
player setUnitRecoilCoefficient 0;
systemchat "Gun God ON";
Insane201=1;
}
else
{
player setWeaponReloadingTime [player,currentWeapon player,1];
player setUnitRecoilCoefficient 1;
Insane201=0;
systemchat "Gun God OFF";
};
};
if (_scriptname == "BREAK FREE") then {
actionReleased = player;
publicVariableServer 'actionReleased';
player setCaptive false;
player playAction "cancelAction";
systemchat "Broke Free";
};
if (_scriptname == "CREDITS | HELP") then {
closedialog 0;
" Jun - Insane V3
" hintC parsetext "
<t size='2'>Credits:<t/><br/>
<t size='1'><t/><br/>
<t size='1'><t/><br/>
<t size='1'><t/><br/>
<t size='1'>Mizzle For Scripts<t/><br/>
<t size='1'>Fonz For FHaX<t/><br/>
<t size='1'>Lystic For Scripts<t/><br/>
<t size='1'><t/><br/>
<t size='1'><t/><br/>
<t size='1'><t/><br/>
<t size='2'>Help:<t/><br/>
<t size='1'><t/><br/>
<t size='1'><t/><br/>
<t size='1'><t/><br/>
<t size='1'>Double Click On Player Name To Use Gear and<t/><br/>
<t size='1'>Spectate<t/><br/>
<t size='1'>Item ESP is at the Bottom of Menu<t/><br/>
<t size='1'>Updates Are Made by Jun so dont Spam Fini<t/><br/>
<t size='1'>JME Is a whore bag huehuehuehue that copypasta<t/><br/>
<t size='1'><t/><br/>
<t size='1'><t/><br/>
<t size='1'><t/><br/>
";
};
if (_scriptname == "MAP MARKERS") then {
closeDialog 0;
for "_j" from 1 to 100 do
{
deleteMarkerLocal ("marker" + str(_j));
};
_insanevd = viewDistance;
_insanevd2 = objectviewdistance;
setViewDistance 1;
setobjectviewdistance 1;
setTerrainGrid 50;
_insanestart = [1000,2300,0];
_max = 15300;
_insanei = 1;
_u = 1;
_c = 0;
_insanearr = [];
_insanelocal = "camera" camCreate (getPos player);
_insanelocal cameraEffect ["INTERNAL", "BACK"];
systemchat "Scanning for Markers: this will take about 7-10 mins";
while {((_insanestart select 0 < _max)) && ((_insanestart select 1 < _max))} do
{
while {(_insanestart select 0 < _max)} do
{
_insanelocal = "camera" camCreate _insanestart;
_insanelocal cameraEffect ["INTERNAL", "BACK"];
sleep 0.01;
_insaneobj = (allMissionObjects "LandVehicle") + (allMissionObjects "Land_UH1Y_Wreck") + (allMissionObjects "Land_Mi8_Crashed") + (allMissionObjects "land_mh_60wreck");
_insaneobj1 = (entities "SurvivorBase");
_insaneobj2 = (entities "TentMedium_Pitched") + (entities "TentLarge_Pitched") + (allMissionObjects "tentmedium_packed") + (allMissionObjects "tentlarge_backpack");
_insaneobj3 = (allMissionObjects "riflecore") + (allMissionObjects "m_cmag_40rnd") + (allMissionObjects "m_cmag_40rnd_green") + (allMissionObjects "m_cmag_40rnd_black") + (allMissionObjects "m65_jacket_khaki") + (allMissionObjects "m65_jacket_tan");
if (count _insaneobj != 0) then
{
{
if !((getPos _x) in _insanearr) then
{
_insanemark = createMarkerLocal ["marker" + str(_insanei), getPos _x];
_insanemark setMarkerTypeLocal "hd_objective";
_insanemark setMarkerColorLocal "ColorGreen";
_insanemark setMarkerSizeLocal [0.5, 0.5];
_insanemark setMarkerTextLocal (typeOf _x);
_insanei = _insanei + 1;
_insanearr set [count _insanearr, getPos _x];
};
} forEach _insaneobj;
};
if (count _insaneobj1 != 0) then
{
{
if !((getPos _x) in _insanearr) then
{
_insanemark1 = createMarkerLocal ["marker" + str(_insanei), getPos _x];
_insanemark1 setMarkerTypeLocal "hd_destroy";
_insanemark1 setMarkerColorLocal "ColorRed";
_insanemark1 setMarkerSizeLocal [0.5, 0.5];
_insanemark1 setMarkerTextLocal (Name _x);
_insanei = _insanei + 1;
_insanearr set [count _insanearr, getPos _x];
};
} forEach _insaneobj1;
};
if (count _insaneobj2 != 0) then
{
{
if !((getPos _x) in _insanearr) then
{
_insanemark2 = createMarkerLocal ["marker" + str(_insanei), getPos _x];
_insanemark2 setMarkerTypeLocal "hd_join";
_insanemark2 setMarkerColorLocal "ColorOrange";
_insanemark2 setMarkerSizeLocal [0.5, 0.5];
_insanemark2 setMarkerTextLocal (typeOf _x);
_insanei = _insanei + 1;
_insanearr set [count _insanearr, getPos _x];
};
} forEach _insaneobj2;
};
if (count _insaneobj3 != 0) then
{
{
if !((getPos _x) in _insanearr) then
{
_insanemark3 = createMarkerLocal ["marker" + str(_insanei), getPos _x];
_insanemark3 setMarkerTypeLocal "hd_join";
_insanemark3 setMarkerColorLocal "ColorBlue";
_insanemark3 setMarkerSizeLocal [0.5, 0.5];
_insanemark3 setMarkerTextLocal (typeOf _x);
_insanei = _insanei + 1;
_insanearr set [count _insanearr, getPos _x];
};
} forEach _insaneobj3;
};
camDestroy _insanelocal;
_insanestart = [(_insanestart select 0) + 1000, (_insanestart select 1), 0];
};
_insanestart = [1000, (_insanestart select 1) + 1000, 0];
sleep 0.01;
};
setViewDistance _insanevd;
setobjectviewdistance _insanevd2;
camDestroy _insanelocal;
player cameraEffect ["TERMINATE", "BACK"];
systemchat "Map Markers Added";
};
if (_scriptname == "MEDICAL ESP") then {
insanenothake2 =
{
if (isNil 'insanenothake1') then
{
insanenothake1 = 0;
};
if (insanenothake1 == 0) then
{
systemchat "Medical ESP ON";
insanenothake1 = 1;
insanenothake5 = [];
while {insanenothake1 == 1} do
{
_entities = (allMissionObjects "MedicalItemBase");
{
if !(_x in insanenothake5) then
{
insanenothake5 = insanenothake5 + [_x];
[_x] spawn insanenothake3;
sleep 0.3;
};
} forEach _entities;
sleep 5;
};
}
else
{
systemchat "Medical ESP OFF";
insanenothake1 = 0;
};
};
insanenothake3 =
{
disableSerialization;
if (isNil 'insanenothake4') then
{
insanenothake4 = 2733;
};
insanenothake4 cutRsc ['rscDynamicText', 'PLAIN'];
insanenothake4 = insanenothake4 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
_unit = _this select 0;
while {(!isNull _unit) && ((player distance _unit) < 1000)} do
{
if (insanenothake1 == 0) exitWith
{
insanenothake5 = insanenothake5 - [_unit];_ctrl ctrlShow false;_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 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.3' color='#890202'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
insanenothake5 = insanenothake5 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn insanenothake2;
};
if (_scriptname == "FOOD AND DRINK ESP") then {
insanenothake13 =
{
if (isNil 'insanenothake11') then
{
insanenothake11 = 0;
};
if (insanenothake11 == 0) then
{
systemchat "Food and Drink ESP ON";
insanenothake11 = 1;
arr1 = [];
while {insanenothake11 == 1} do
{
_entities = (player nearObjects ["DrinksItemBase",1000]) + (player nearObjects ["FoodItemBase",1000]) + (player nearObjects ["FoodCanned",1000]) + (player nearObjects ["FoodCanned_Closed",1000]) + (player nearObjects ["FruitBase",1000]) + (player nearObjects ["MeatBase ",1000]) + (player nearObjects ["berrybase",1000]);
{
if !(_x in arr1) then
{
arr1 = arr1 + [_x];
[_x] spawn insanenothake12;
sleep 0.3;
};
} forEach _entities;
sleep 5;
};
}
else
{
systemchat "Food and Drink ESP OFF";
insanenothake11 = 0;
};
};
insanenothake12 =
{
disableSerialization;
if (isNil 'insanenothake14') then
{
insanenothake14 = 2833;
};
insanenothake14 cutRsc ['rscDynamicText', 'PLAIN'];
insanenothake14 = insanenothake14 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
_unit = _this select 0;
while {(!isNull _unit) && ((player distance _unit) < 1000)} do
{
if (insanenothake11 == 0) exitWith
{
arr1 = arr1 - [_unit];
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 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.2' color='#890202'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
arr1 = arr1 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn insanenothake13;
};
if (_scriptname == "LOOSE AMMO ESP") then {
insanenothake22 =
{
if (isNil 'insanenothake21') then
{
insanenothake21 = 0;
};
if (insanenothake21 == 0) then
{
systemchat "Ammo ESP ON";
insanenothake21 = 1;
insanenothake24 = [];
while {insanenothake21 == 1} do
{
_entities = (allMissionObjects "AmmunitionItemBase") + (allMissionObjects "AmmunitionBoxItemBase") + (allMissionObjects "ArrowsBase");
{
if !(_x in insanenothake24) then
{
insanenothake24 = insanenothake24 + [_x];
[_x] spawn insanenothake23;
sleep 0.3;
};
} forEach _entities;
sleep 5;
};
}
else
{
systemchat "Ammo ESP OFF";
insanenothake21 = 0;
};
};
insanenothake23 =
{
disableSerialization;
if (isNil 'insanenothake25') then
{
insanenothake25 = 2733;
};
insanenothake25 cutRsc ['rscDynamicText', 'PLAIN'];
insanenothake25 = insanenothake25 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
_unit = _this select 0;
while {(!isNull _unit) && ((player distance _unit) < 1000)} do
{
if (insanenothake21 == 0) exitWith
{
insanenothake24 = insanenothake24 - [_unit];_ctrl ctrlShow false;_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 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.3' color='#890202'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
insanenothake24 = insanenothake24 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn insanenothake22;
};
if (_scriptname == "MAG ESP") then {
insanenothake32 =
{
if (isNil 'insanenothake31') then
{
insanenothake31 = 0;
};
if (insanenothake31 == 0) then
{
systemchat "Ammo ESP ON";
insanenothake31 = 1;
insanenothake34 = [];
while {insanenothake31 == 1} do
{
_entities = (allMissionObjects "MagazineBase");
{
if !(_x in insanenothake34) then
{
insanenothake34 = insanenothake34 + [_x];
[_x] spawn insanenothake33;
sleep 0.3;
};
} forEach _entities;
sleep 5;
};
}
else
{
systemchat "Ammo ESP OFF";
insanenothake31 = 0;
};
};
insanenothake33 =
{
disableSerialization;
if (isNil 'insanenothake35') then
{
insanenothake35 = 2733;
};
insanenothake35 cutRsc ['rscDynamicText', 'PLAIN'];
insanenothake35 = insanenothake35 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
_unit = _this select 0;
while {(!isNull _unit) && ((player distance _unit) < 1000)} do
{
if (insanenothake31 == 0) exitWith
{
insanenothake34 = insanenothake34 - [_unit];_ctrl ctrlShow false;_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 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.3' color='#890202'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
insanenothake34 = insanenothake34 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn insanenothake32;
};
if (_scriptname == "VEHICLE ESP") then {
insanenothake42 =
{
if (isNil 'insanenothake41') then
{
insanenothake41 = 0;
};
if (insanenothake41 == 0) then
{
systemchat "Vehicle ESP ON";
insanenothake41 = 1;
insanenothake45 = [];
while {insanenothake41 == 1} do
{
_entities = (allMissionObjects "V3S_Cargo") + (allMissionObjects "v3s_cargo_blue") + (allMissionObjects "Car_DZ");
{
if !(_x in insanenothake45) then
{
insanenothake45 = insanenothake45 + [_x];
[_x] spawn insanenothake43;
sleep 0.3;
};
} forEach _entities;
sleep 5;
};
}
else
{
systemchat "Vehicle ESP OFF";
insanenothake41 = 0;
};
};
insanenothake43 =
{
disableSerialization;
if (isNil 'insanenothake44') then
{
insanenothake44 = 2733;
};
insanenothake44 cutRsc ['rscDynamicText', 'PLAIN'];
insanenothake44 = insanenothake44 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
_unit = _this select 0;
while {(!isNull _unit) && ((player distance _unit) < 1000)} do
{
if (insanenothake41 == 0) exitWith
{
insanenothake45 = insanenothake45 - [_unit];_ctrl ctrlShow false;_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 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.3' color='#7200FC'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
insanenothake45 = insanenothake45 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn insanenothake42;
};
if (_scriptname == "BODY ESP") then {
insanenothake51 =
{
tarDis2 = 1000;
if (isNil 'insanenothake53') then
{
insanenothake53 = 0;
};
if (insanenothake53 == 0) then
{
insanenothake53 = 1;
systemchat "Body ESP ON";
_a = [];
while {insanenothake53 == 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 insanenothake52;
sleep 1;
};
} forEach _entities;
sleep 10;
};
}
else
{
insanenothake53 = 0;
systemchat "Body ESP OFF";
};
};
insanenothake52 = {
disableSerialization;
if (isNil 'insanenothake54') then
{
insanenothake54 = 2733;
};
insanenothake54 cutRsc ['RscDynamicText', 'PLAIN'];
insanenothake54 = insanenothake54 + 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 (insanenothake53 == 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 insanenothake51;
};
if (_scriptname == "FIREARMS") then {
insanenothake62 =
{
if (isNil 'insanenothake61') then
{
insanenothake61 = 0;
};
if (insanenothake61 == 0) then
{
systemchat "Weapon ESP ON";
insanenothake61 = 1;
arr1 = [];
while {insanenothake61 == 1} do
{
_entities = (allMissionObjects "riflecore") + (allMissionObjects "ShotgunBase") + (allMissionObjects "pistolcore") + (allMissionObjects "FlashGrenade") + (allMissionObjects "GrenadeBase");
{
if !(_x in arr1) then
{
arr1 = arr1 + [_x];
[_x] spawn insanenothake63;
sleep 0.3;
};
} forEach _entities;
sleep 5;
};
}
else
{
systemchat "Weapon ESP OFF";
insanenothake61 = 0;
};
};
insanenothake63 =
{
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 {(!isNull _unit) && ((player distance _unit) < 1000)} do
{
if (insanenothake61 == 0) exitWith
{
arr1 = arr1 - [_unit];_ctrl ctrlShow false;_ctrl ctrlEnable false;
};
_pos = [(getPosATL _unit) select 0, (getPosATL _unit) select 1, ((getPosATL _unit) select 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.3' color='#890202'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
arr1 = arr1 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn insanenothake62;
};
if (_scriptname == "THIRD PERSON") then {
if (isNil ("insanenothake71")) then
{
insanenothake71 = 0;
};
if (insanenothake71==0) then
{
player switchCamera "External";
systemchat "Third Person Mode ON";
insanenothake71=1;
}
else
{
systemchat "Third Person Mode OFF";
insanenothake71=0;
};
};
if (_scriptname == "PLAYER ESP") then {
insanenothake82 =
{
if (isNil 'insanenothake81') then
{
insanenothake81 = 0;
};
if (insanenothake81 == 0) then
{
systemchat "Player ESP ON";
insanenothake81 = 1;
_a = [];
while {insanenothake81 == 1} do
{
_entities = entities "SurvivorBase";
{
if ((_x in _a) && !(alive _x)) then {_a = _a - [_x];};
if ((_x != player) && !(_x in _a)) then
{
_a = _a + [_x];
[_x] spawn insanenothake83;
sleep 0.3;
};
} forEach _entities;
sleep 5;
};
}
else
{
systemchat "Player ESP OFF";
insanenothake81 = 0;
};
};
insanenothake83 =
{
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) && !(isNull _unit)} do
{
if (insanenothake81 == 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;
_blood = round(((_unit getVariable['blood',0])/5000)*100);
_health = round(((_unit getVariable['health',0])/5000)*100);
_shock = round(((_unit getVariable['shock',0])/5000)*100);
_temp = round(((_unit getVariable['bodytemperature',0])/100)*100);
_heat = round(((_unit getVariable['heatcomfort',0])/100)*100);
_UID = (getplayeruid (_unit));
_hand = currentWeapon _unit;
if (_hand == "") then
{
_wName = typeof itemInHands _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.3'' color=''#8DFF00''>%1 (Range:%2m) <br/> [GUID: %9] <br/> [Health: %3%] [Blood: %4%] [Shock: %5%] [Temp: %6%] [Heat: %7%] <br/>In Hands: %8</t>', name _unit, round (player distance _unit),_health,_blood,_shock,_temp,_heat,_wName,_UID];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn insanenothake82;
};
};
systemchat "Dialog Menu Loaded Press H For Open";
if (isNil "_init") then
{
_keys = (findDisplay 46) displayAddEventHandler [
"KeyDown",
"if ((_this select 1) == 35) then
{
[] spawn JunFunctions;
_dialog = createDialog 'RscDisplayDSinterface';
};
false;"];
};
};