Credits - Mizzle420420, Fonzy, M0nky, Lystic


call compile preprocessFileLineNumbers "DZ\functions\initFunctions.sqf";
[] spawn {
waitUntil {!isNull player};
n2 = {(findDisplay 3030) displayCtrl _this;};
if (isNil "n3") then {n3 = [];};
n4 =
{
n5 = n5 + ["----------------------",n999,"0","0","0"];
n5 = n5 + ["=>ESP Options<=",n999,"1","0","0"];
n5 = n5 + ["----------------------",n999,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["Player (Simple)",n91,"1","0","0"];
n5 = n5 + ["Player (Full Status)",n11,"1","0","0"];
n5 = n5 + ["Player Bodies",n79,"1","0","0"];
n5 = n5 + ["Zombies",n82,"1","0","0"];
n5 = n5 + ["Animals",n51,"1","0","0"];
n5 = n5 + ["Heli Wrecks",n80,"1","0","0"];
n5 = n5 + ["Vehicles",n49,"1","0","0"];
n5 = n5 + ["All Items",n13,"1","0","0"];
n5 = n5 + ["All Clothing",n32,"1","0","0"];
n5 = n5 + ["Melee Weapons",n48,"1","0","0"];
n5 = n5 + ["Firearms / Grenades",n12,"1","0","0"];
n5 = n5 + ["Ammo / Mags",n28,"1","0","0"];
n5 = n5 + ["Attachments",n29,"1","0","0"];
n5 = n5 + ["Food / Drink",n24,"1","0","0"];
n5 = n5 + ["Medical Supplies",n47,"1","0","0"];
n5 = n5 + ["Vehicle Parts",n50,"1","0","0"];
n5 = n5 + ["BackPacks",n31,"1","0","0"];
n5 = n5 + ["Eyewear",n33,"1","0","0"];
n5 = n5 + ["Headgear",n35,"1","0","0"];
n5 = n5 + ["Masks",n36,"1","0","0"];
n5 = n5 + ["Topwear",n37,"1","0","0"];
n5 = n5 + ["Bottomwear",n38,"1","0","0"];
n5 = n5 + ["Footwear",n39,"1","0","0"];
n5 = n5 + ["Vests",n40,"1","0","0"];
n5 = n5 + ["Gloves",n41,"1","0","0"];
n5 = n5 + ["Books",n42,"1","0","0"];
n5 = n5 + ["Containers (Protector Cases, Ammo Boxes, MedPacks)",n43,"1","0","0"];
n5 = n5 + ["Cookware",n44,"1","0","0"];
n5 = n5 + ["Crafting Materials",n46,"1","0","0"];
n5 = n5 + ["Tents",n72,"1","0","0"];
n5 = n5 + ["Sewing Kits / Can Openers",n73,"1","0","0"];
n5 = n5 + ["Book of Cthulhu",n75,"1","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["---------------------------",n999,"0","0","0"];
n5 = n5 + ["=>Camera Options<=",n999,"1","0","0"];
n5 = n5 + ["---------------------------",n999,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["Free Camera",n58,"0","0","0"];
n5 = n5 + ["Free Camera ESP",n61,"0","0","0"];
n5 = n5 + ["Bullet Camera",n15,"1","0","0"];
n5 = n5 + ["Third Person Camera",n19,"1","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["------------------------",n999,"0","0","0"];
n5 = n5 + ["=>Local Options<=",n999,"1","0","0"];
n5 = n5 + ["------------------------",n999,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["Activate HUD",n95,"1","0","0"];
n5 = n5 + ["Max View Distance",n34,"1","0","0"];
n5 = n5 + ["Time Day / Clear Weather",n16,"1","0","0"];
n5 = n5 + ["Night Light",n17,"1","0","0"];
n5 = n5 + ["No Grass",n18,"1","0","0"];
n5 = n5 + ["No Buildings",n1,"1","0","0"];
n5 = n5 + ["No Collide",n81,"1","0","0"];
n5 = n5 + ["FPS Boost",n98,"1","0","0"];
n5 = n5 + ["No Daze / Bullet Effects",n74,"1","0","0"];
n5 = n5 + ["No Rain Wetness",n59,"1","0","0"];
n5 = n5 + ["No Blur and Full Color",n60,"1","0","0"];
n5 = n5 + ["Stealth Truck",n26,"0","0","0"];
n5 = n5 + ["Take a Shit",n52,"0","0","0"];
n5 = n5 + ["Player Vomit",n76,"0","0","0"];
n5 = n5 + ["Get GUID",n53,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["------------------------",n999,"0","0","0"];
n5 = n5 + ["=>Target Options<=",n999,"1","0","0"];
n5 = n5 + ["------------------------",n999,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["View Gear",n55,"0","0","1"];
n5 = n5 + ["Spectate",n56,"0","0","1"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["-------------------------",n999,"0","0","0"];
n5 = n5 + ["=>Other Options<=",n999,"1","0","0"];
n5 = n5 + ["-------------------------",n999,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["Gun God",n20,"1","0","0"];
n5 = n5 + ["Teleport",n21,"0","0","0"];
n5 = n5 + ["Map Markers",n62,"0","0","0"];
n5 = n5 + ["AutoFill Vehicle Fuel",n63,"1","0","0"];
n5 = n5 + ["Toggle Vehicle Engine",n64,"1","0","0"];
n5 = n5 + ["List All Inventory",n54,"0","0","0"];
n5 = n5 + ["Auto Break Free From Handcuffs",n78,"1","0","0"];
n5 = n5 + ["Force Break Free From Handcuffs",n23,"0","0","0"];
n5 = n5 + ["Script Executor",n25,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["-------------------------",n999,"0","0","0"];
};
n6 =
{
_toggle = _this select 0;
if !(_toggle in n3) then
{
lbSetColor [2, _toggle, [.4, 1, 0, 1]];
n3 = n3 + [_toggle];
}
else
{
lbSetColor [2, _toggle, [.5,.7,0, 1]];
n3 = n3 - [_toggle];
};
};
n7 =
{
_code = n5 select ((lbCurSel 2))*5+1;
_istoggle = n5 select ((lbCurSel 2))*5+2;
_istitle = n5 select ((lbCurSel 2))*5+3;
_isplayer = n5 select ((lbCurSel 2))*5+4;
if (_istitle == "1") exitWith {};
if (_istoggle == "1") then
{
[] spawn _code;
[lbCurSel 2] call n6;
};
if (_isplayer == "1") then
{
if ((lbCurSel 1) >= 0) then
{
[lbtext [1, (lbCurSel 1)]] spawn _code;
}
else
{
hint "Select a player!";
};
};
if ((_istitle == "0") && (_istoggle == "0") && (_isplayer == "0")) then {[] spawn _code;};
};
n8 =
{
_ctrl = 2 call n2;
lbclear _ctrl;
n5 = [];
call n4;
for [{_num = 0}, {_num <= count(n5)-1}, {_num = _num+5}] do
{
_index = _ctrl lbAdd format["%1", n5 select _num];
_togglable = n5 select (_num+2);
_istitle = n5 select (_num+3);
if (_togglable == "1") then
{
if (_index in n3) then
{
_ctrl lbSetColor [(lbsize _ctrl)-1, [.4, 1, 0, 1]];
} else {_ctrl lbSetColor [(lbsize _ctrl)-1, [.5, .7, 0, 1]];};
};
if (_istitle == "1") then {_ctrl lbSetColor [(lbsize _ctrl)-1, [.4, 1, 0, 1.0]];};
};
};
n9 =
{
disableSerialization;
while {!(isNull (findDisplay 3030))} do
{
_count = count (entities "SurvivorBase");
_ctrl = 1 call n2;
lbclear _ctrl;
{
_ctrl lbAdd format ["%1", name _x];
_ctrl lbSetData [(lbsize _ctrl)-1, "1"];
_ctrl lbSetColor [(lbsize _ctrl)-1, [.5, .7, 0, 1.0]];
} forEach (entities "SurvivorBase");
lbSort _ctrl;
sleep 3;
waitUntil {_count != (count (entities "SurvivorBase"))};
};
};
n10 =
{
if (isNull (findDisplay 3030)) then
{
createDialog "RscConfigEditor_Main";
_ctrl = -1 call n2;
_ctrl ctrlSetBackgroundColor [.01,.01,.01,.85];
_ctrl = 3 call n2;
_ctrl ctrlSetText " Necromancy_SA_v3 - Mizzle420420";
_ctrl ctrlSetTextColor [.4,1,0, 1];
_ctrl ctrlSetPosition [SafezoneX, SafezoneY-SafezoneH/2.1, SafezoneW, SafezoneH];
_ctrl ctrlCommit 0;
_ctrl = 2 call n2;
_ctrl ctrlSetEventHandler ["LBDblClick", "call n7;"];
call n8;
[] spawn n9;
};
};
n95 =
{
if (isNil ("n951")) then
{
n951 = 0;
};
if (n951==0) then
{
hint "HUD ON";
n951=1;
}
else
{
hint "HUD OFF";
n951=0;
};
while{n951==1} do
{
0 cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = player;
_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);
_hand = currentWeapon _unit;
if (_hand == "") then
{
_wName = typeof itemInHands _unit;
};
_pp = getpos _unit;
_wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
if(_wName == "") then
{
_wName = _hand;
};
_ctrl ctrlSetPosition [safezonex,safezoney,safezonew,safezoneH];
_text = parseText format ['<t size=''1'' color=''#8DFF00''> [Name: %1] [Pos: %8] [Health: %2%] [Blood: %3%] [Shock: %4%] [Body Temperature: %5%] [Heat Comfort: %6%] [Item In Hands: %7] </t>', name _unit,_health,_blood,_shock,_temp,_heat,_wName,_pp];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlcommit 0;
uisleep 1.5;
};
};
n15 =
{
if (isNil ("n151")) then
{
n151=0;
};
if (n151==0) then
{
n151=1;
player addEventHandler ["Fired",
{
_null = _this spawn
{
_missile = _this select 6;
_cam = "Camera" camCreate (position player);
_cam CameraEffect ["External", "Back"];
waitUntil
{
if (isNull _missile) exitWith {1};
_cam camSetTarget _missile;
_cam camSetRelPos [0,-3,0];
_cam camCommit 0;
};
sleep 0.4;
_cam CameraEffect ["Terminate", "Back"];
camDestroy _cam;
};
}];
hint "Bullet Camera ON";
}
else
{
n151=0;
(vehicle player) removeAllEventHandlers "Fired";
hint "Bullet Camera OFF";
};
};
n16 =
{
0 setrain 0;
0 setOvercast 0;
0 setFog 0;
setDate [2012, 9, 1, 14, 0];
hint "Time Day / Clear Weather";
};
n20 =
{
if (isNil ("n201")) then
{
n201=0;
};
if (n201==0) then
{
onEachFrame
{
player setWeaponReloadingTime [player,currentWeapon player,0];
};
player setUnitRecoilCoefficient 0;
hint "Gun God ON";
n201=1;
}
else
{
player setWeaponReloadingTime [player,currentWeapon player,1];
player setUnitRecoilCoefficient 1;
n201=0;
hint "Gun God OFF";
};
};
n18 =
{
if (isNil ("n181")) then
{
n181=0;
};
if (n181==0) then
{
setTerrainGrid 50.0;
hint "No Grass ON";
n181=1;
}
else
{
setTerrainGrid 12.5;
hint "No Grass OFF";
n181=0;
};
};
n26 =
{
disableSerialization;
closeDialog 0;
if (isNil "n261") then
{
n261 = {
_pos3s = getPos player;
_veh3s = "V3S_Cargo" createVehicleLocal _this;
player action ["getInDriver", _veh3s];
sleep 1;
while {count(player nearObjects ["V3S_Cargo",50]) == 0} do {player action ["getInDriver", _veh3s];};
closeDialog 0;
hint format ["Teleported to: %1", _this];
};
n262 =
{
_ctrl = _this select 0;
{_ctrl drawIcon ["\DZ\ui\data\map\markers\military\triangle_CA.paa", if (_x == player) then {[1,0,1,1]} else {[1,0.7,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";
hint "Doubleclick on the map to Teleport";
_map = (findDisplay 12) displayCtrl 51;
_map ctrlAddEventhandler ["mousebuttondblclick","((_this select 0) posScreenToWorld [_this select 2, _this select 3]) spawn n261"];
_map ctrlAddEventHandler ["Draw", "_this call dmap"];
for "_i" from 0 to 9999 do {
if (_i != 51) then {
((findDisplay 12) displayCtrl _i) ctrlShow false;
};
};
};
n19 = {
if (isNil ("n191")) then
{
n191 = 0;
};
if (n191==0) then
{
onEachFrame {
player switchCamera "External";
};
hint "Third Person Mode ON";
n191=1;
}
else
{
onEachFrame {};
hint "Third Person Mode OFF";
n191=0;
};
};
n23 =
{
actionReleased = player;
publicVariableServer 'actionReleased';
player setCaptive false;
player playAction "cancelAction";
hint "Broke Free";
};
n21 =
{
disableSerialization;
closeDialog 0;
if (isNil "n211") then
{
n211 = {
_pos = getPos player;
_veh = "car_hatchback" createVehicleLocal _this;
player action ["getInDriver", _veh];
sleep 1;
while {count(player nearObjects ["car_hatchback",50]) == 0} do {player action ["getInDriver", _veh];};
deleteVehicle _veh;
closeDialog 0;
hint format ["Teleported to: %1", _this];
};
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";
hint "Double-Click on the Map to Teleport";
_map = (findDisplay 12) displayCtrl 51;
_map ctrlAddEventhandler ["mousebuttondblclick","((_this select 0) posScreenToWorld [_this select 2, _this select 3]) spawn n211"];
_map ctrlAddEventHandler ["Draw", "_this call n212"];
for "_i" from 0 to 9999 do {
if (_i != 51) then {
((findDisplay 12) displayCtrl _i) ctrlShow false;
};
};
};
n91 =
{
n912 =
{
if (isNil 'n911') then {n911 = 0;};
if (n911 == 0) then
{
hint "Player ESP ON";
n911 = 1;
_a = [];
while {n911 == 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 n913;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Player ESP OFF";
n911 = 0;
};
};
n913 =
{
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;
_hand = currentWeapon _unit;
if (_hand == "") then
{
_wName = typeof itemInHands _unit;
};
_wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
if(_wName == "") then {
_wName = _hand;
};
while {(alive _unit) && !(isNull _unit)} do
{
if (n911 == 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.3'' color=''#8DFF00''>%1 (%2m) %3</t>', name _unit, round (player distance _unit), _wName];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n912;
};
n11 =
{
n112 = {
if (isNil 'n111') then {n111 = 0;};
if (n111 == 0) then
{
hint "Player ESP ON";
n111 = 1;
_a = [];
while {n111 == 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 n113;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
}
else
{
hint "Player ESP OFF";
n111 = 0;
};
};
n113 =
{
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 (n111 == 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 n112;
};
n12 =
{
n122 =
{
if (isNil 'n121') then {n121 = 0;};
if (n121 == 0) then
{
hint "Weapon ESP ON";
n121 = 1;
arr1 = [];
while {n121 == 1} do
{
_entities = (allMissionObjects "riflecore") + (allMissionObjects "ShotgunBase") + (allMissionObjects "pistolcore") + (allMissionObjects "FlashGrenade") + (allMissionObjects "GrenadeBase");
{
if !(_x in arr1) then {
arr1 = arr1 + [_x];
[_x] spawn n123;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Weapon ESP OFF";
n121 = 0;
};
};
n123 =
{
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 (n121 == 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.25' color='#00FC97'>%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 n122;
};
n13 =
{
n132 =
{
if (isNil 'n131') then {n131 = 0;};
if (n131 == 0) then
{
hint "All Items ESP ON";
n131 = 1;
arr2 = [];
while {n131 == 1} do
{
_entities = (allMissionObjects "inventorybase");
{
if !(_x in arr2) then {
arr2 = arr2 + [_x];
[_x] spawn n133;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "All Items ESP OFF";
n131 = 0;
};
};
n133 =
{
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 (n131 == 0) exitWith {arr2 = arr2 - [_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.22' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
arr2 = arr2 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n132;
};
n17 =
{
if (isNil "n171") then {n171 = true;};
if (n171) then
{
n172 = "#lightpoint" createVehicleLocal getpos player;
n172 setLightBrightness 1;
n172 setLightAmbient[0.8, 1, 0.2];
n172 setLightColor[.4, 1, 0];
n172 lightAttachObject [player, [10,10,10]];
n171 = false;
hint "Night Light ON";
}
else
{
deleteVehicle n172;
n171 = true;
hint "Night Light OFF";
};
};
n34 =
{
if (isNil ("n341")) then
{
n341 = 0;
};
if (n341==0) then
{
setViewDistance 10000;
hint "Max View Distance ON";
n341=1;
}
else
{
setViewDistance 1000;
hint "Max View Distance OFF";
n341=0;
};
};
n1 =
{
if (isnil ("n1111")) then
{
n1111 = 0;
};
if (n1111 == 0) then
{
hint "No Buildings ON";
n1111 = 1;
}
else
{
hint "No Buildings OFF";
n1111 = 0;
};
while {n1111 == 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 {n1111 == 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;
};
};
n81 =
{
if (isNil ("n811")) then
{
n811 = 0;
};
if (n811==0) then
{
hint "No Collide ON";
n811=1;
}
else
{
hint "No Collide OFF";
n811=0;
};
while{n811==1} do
{
_objects = [];
_list = (getposatl player) nearObjects 50;
{
if !(_x in _objects) then
{
player disableCollisionWith _x;
_objects = _objects + [_x];
};
} forEach _list;
};
while{n811==0} do
{
_objects = [];
_list = (getposatl player) nearObjects 50;
{
if !(_x in _objects) then
{
player enableCollisionWith _x;
_objects = _objects + [_x];
};
} forEach _list;
};
};
n80 =
{
n801 =
{
tardis2 = 1000;
if (isNil 'n802') then
{
n802 = 0;
};
if (n802 == 0) then
{
n802 = 1;
hint "Heli ESP ON";
_a = [];
while {n802 == 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") or (typeof _x == "Land_UH1Y_Wreck") && ((positionCameraToWorld [0,0,0] distance _x) <= tardis2)) then
{
_a = _a + [_x];
[_x] spawn n803;
sleep 1;
};
} forEach _entities;
sleep 2;
};
} else
{
n802 = 0;
hint "Heli ESP OFF";
};
};
n803 =
{
disableSerialization;
if (isNil 'n804') then {n804 = 2733;};
n804 cutRsc ['RscTime', 'PLAIN'];
n804 = n804 + 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 (n802 == 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 n801;
};
n79 =
{
n791 =
{
tarDis2 = 1000;
if (isNil 'n793') then
{
n793 = 0;
};
if (n793 == 0) then
{
n793 = 1;
hint "Body ESP ON";
_a = [];
while {n793 == 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 n792;
sleep 1;
};
} forEach _entities;
sleep 10;
};
} else {
n793 = 0;
hint "Body ESP OFF";
};
};
n792 = {
disableSerialization;
if (isNil 'n794') then {n794 = 2733;};
n794 cutRsc ['RscDynamicText', 'PLAIN'];
n794 = n794 + 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 (n793 == 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 n791;
};
n82 =
{
n822 =
{
if (isNil 'n821') then {n821 = 0;};
if (n821 == 0) then
{
hint "Zombie ESP ON";
n821 = 1;
_a = [];
while {n821 == 1} do
{
_entities = (getpos player) nearObjects ["ZombieBase",850];
{
if ((_x in _a) && !(alive _x)) then {_a = _a - [_x];};
if ((_x != player) && !(_x in _a)) then
{
_a = _a + [_x];
[_x] spawn n823;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Zombie ESP OFF";
n821 = 0;
};
};
n823 =
{
disableSerialization;
if (isNil 'n824') then {n824 = 2733;};
n824 cutRsc ['rscDynamicText', 'PLAIN'];
n824 = n824 + 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 (n821 == 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.2'' color=''#FCFF00''>%1 (Range:%2m)</t>', "Zombie", round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n822;
};
n24 =
{
n243 = {
if (isNil 'n241') then {n241 = 0;};
if (n241 == 0) then
{
hint "Food and Drink ESP ON";
n241 = 1;
arr1 = [];
while {n241 == 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 n242;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Food and Drink ESP OFF";
n241 = 0;
};
};
n242 = {
disableSerialization;
if (isNil 'n244') then {n244 = 2833;};
n244 cutRsc ['rscDynamicText', 'PLAIN'];
n244 = n244 + 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 (n241 == 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='#00FC97'>%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 n243;
};
n28 =
{
n282 =
{
if (isNil 'n281') then {n281 = 0;};
if (n281 == 0) then
{
hint "Ammo ESP ON";
n281 = 1;
n284 = [];
while {n281 == 1} do
{
_entities = (allMissionObjects "MagazineBase") + (allMissionObjects "AmmunitionItemBase") + (allMissionObjects "AmmunitionBoxItemBase") + (allMissionObjects "ArrowsBase");
{
if !(_x in n284) then {
n284 = n284 + [_x];
[_x] spawn n283;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Ammo ESP OFF";
n281 = 0;
};
};
n283 =
{
disableSerialization;
if (isNil 'n285') then {n285 = 2733;};
n285 cutRsc ['rscDynamicText', 'PLAIN'];
n285 = n285 + 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 (n281 == 0) exitWith {n284 = n284 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n284 = n284 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n282;
};
n29 =
{
n292 =
{
if (isNil 'n291') then {n291 = 0;};
if (n291 == 0) then
{
hint "Attachment ESP ON";
n291 = 1;
n295 = [];
while {n291 == 1} do
{
_entities = (allMissionObjects "AttachmentBase") + (allMissionObjects "SuppressorBase") + (allMissionObjects "PoweredOpticBase");
{
if !(_x in n295) then {
n295 = n295 + [_x];
[_x] spawn n293;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Attachment ESP OFF";
n291 = 0;
};
};
n293 =
{
disableSerialization;
if (isNil 'n294') then {n294 = 2733;};
n294 cutRsc ['rscDynamicText', 'PLAIN'];
n294 = n294 + 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 (n291 == 0) exitWith {n295 = n295 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n295 = n295 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n292;
};
n31 =
{
n312 =
{
if (isNil 'n311') then {n311 = 0;};
if (n311 == 0) then
{
hint "BackPack ESP ON";
n311 = 1;
n315 = [];
while {n311 == 1} do
{
_entities = (allMissionObjects "BagBase");
{
if !(_x in n315) then {
n315 = n315 + [_x];
[_x] spawn n313;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "BackPack ESP OFF";
n311 = 0;
};
};
n313 =
{
disableSerialization;
if (isNil 'n314') then {n314 = 2733;};
n314 cutRsc ['rscDynamicText', 'PLAIN'];
n314 = n314 + 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 (n311 == 0) exitWith {n315 = n315 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n315 = n315 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n312;
};
n32 =
{
n322 =
{
if (isNil 'n321') then {n321 = 0;};
if (n321 == 0) then
{
hint "Clothing ESP ON";
n321 = 1;
n325 = [];
while {n321 == 1} do
{
_entities = (allMissionObjects "ClothingBase") + (allMissionObjects "EyewearBase") + (allMissionObjects "Consumable_BandanaBase");
{
if !(_x in n325) then {
n325 = n325 + [_x];
[_x] spawn n323;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Clothing ESP OFF";
n321 = 0;
};
};
n323 =
{
disableSerialization;
if (isNil 'n324') then {n324 = 2733;};
n324 cutRsc ['rscDynamicText', 'PLAIN'];
n324 = n324 + 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 (n321 == 0) exitWith {n325 = n325 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n325 = n325 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n322;
};
n33 =
{
n332 =
{
if (isNil 'n331') then {n331 = 0;};
if (n331 == 0) then
{
hint "Eyewear ESP ON";
n331 = 1;
n335 = [];
while {n331 == 1} do
{
_entities = (allMissionObjects "EyewearBase");
{
if !(_x in n335) then {
n335 = n335 + [_x];
[_x] spawn n333;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Eyewear ESP OFF";
n331 = 0;
};
};
n333 =
{
disableSerialization;
if (isNil 'n334') then {n334 = 2733;};
n334 cutRsc ['rscDynamicText', 'PLAIN'];
n334 = n334 + 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 (n331 == 0) exitWith {n335 = n335 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n335 = n335 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n332;
};
n35 =
{
n352 =
{
if (isNil 'n351') then {n351 = 0;};
if (n351 == 0) then
{
hint "Headgear ESP ON";
n351 = 1;
n355 = [];
while {n351 == 1} do
{
_entities = (allMissionObjects "HeadgearBase");
{
if !(_x in n355) then {
n355 = n355 + [_x];
[_x] spawn n353;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Headgear ESP OFF";
n351 = 0;
};
};
n353 =
{
disableSerialization;
if (isNil 'n354') then {n354 = 2733;};
n354 cutRsc ['rscDynamicText', 'PLAIN'];
n354 = n354 + 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 (n351 == 0) exitWith {n355 = n355 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n355 = n355 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n352;
};
n36 =
{
n362 =
{
if (isNil 'n361') then {n361 = 0;};
if (n361 == 0) then
{
hint "Mask ESP ON";
n361 = 1;
n365 = [];
while {n361 == 1} do
{
_entities = (allMissionObjects "MaskBase");
{
if !(_x in n365) then {
n365 = n365 + [_x];
[_x] spawn n363;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Mask ESP OFF";
n361 = 0;
};
};
n363 =
{
disableSerialization;
if (isNil 'n364') then {n364 = 2733;};
n364 cutRsc ['rscDynamicText', 'PLAIN'];
n364 = n364 + 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 (n361 == 0) exitWith {n365 = n365 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n365 = n365 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n362;
};
n37 =
{
n372 =
{
if (isNil 'n371') then {n371 = 0;};
if (n371 == 0) then
{
hint "Topwear ESP ON";
n371 = 1;
n375 = [];
while {n371 == 1} do
{
_entities = (allMissionObjects "TopwearBase");
{
if !(_x in n375) then {
n375 = n375 + [_x];
[_x] spawn n373;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Topwear ESP OFF";
n371 = 0;
};
};
n373 =
{
disableSerialization;
if (isNil 'n374') then {n374 = 2733;};
n374 cutRsc ['rscDynamicText', 'PLAIN'];
n374 = n374 + 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 (n371 == 0) exitWith {n375 = n375 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n375 = n375 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n372;
};
n38 =
{
n382 =
{
if (isNil 'n381') then {n381 = 0;};
if (n381 == 0) then
{
hint "Bottomwear ESP ON";
n381 = 1;
n385 = [];
while {n381 == 1} do
{
_entities = (allMissionObjects "BottomwearBase");
{
if !(_x in n385) then {
n385 = n385 + [_x];
[_x] spawn n383;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Bottomwear ESP OFF";
n381 = 0;
};
};
n383 =
{
disableSerialization;
if (isNil 'n384') then {n384 = 2733;};
n384 cutRsc ['rscDynamicText', 'PLAIN'];
n384 = n384 + 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 (n381 == 0) exitWith {n385 = n385 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n385 = n385 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n382;
};
n39 =
{
n392 =
{
if (isNil 'n391') then {n391 = 0;};
if (n391 == 0) then
{
hint "Footwear ESP ON";
n391 = 1;
n395 = [];
while {n391 == 1} do
{
_entities = (allMissionObjects "FootwearBase");
{
if !(_x in n395) then {
n395 = n395 + [_x];
[_x] spawn n393;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Footwear ESP OFF";
n391 = 0;
};
};
n393 =
{
disableSerialization;
if (isNil 'n394') then {n394 = 2733;};
n394 cutRsc ['rscDynamicText', 'PLAIN'];
n394 = n394 + 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 (n391 == 0) exitWith {n395 = n395 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n395 = n395 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n392;
};
n40 =
{
n402 =
{
if (isNil 'n401') then {n401 = 0;};
if (n401 == 0) then
{
hint "Vest ESP ON";
n401 = 1;
n405 = [];
while {n401 == 1} do
{
_entities = (allMissionObjects "VestBase");
{
if !(_x in n405) then {
n405 = n405 + [_x];
[_x] spawn n403;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Vest ESP OFF";
n401 = 0;
};
};
n403 =
{
disableSerialization;
if (isNil 'n404') then {n404 = 2733;};
n404 cutRsc ['rscDynamicText', 'PLAIN'];
n404 = n404 + 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 (n401 == 0) exitWith {n405 = n405 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n405 = n405 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n402;
};
n41 =
{
n412 =
{
if (isNil 'n411') then {n411 = 0;};
if (n411 == 0) then
{
hint "Gloves ESP ON";
n411 = 1;
n415 = [];
while {n411 == 1} do
{
_entities = (allMissionObjects "GlovesBase");
{
if !(_x in n415) then {
n415 = n415 + [_x];
[_x] spawn n413;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Gloves ESP OFF";
n411 = 0;
};
};
n413 =
{
disableSerialization;
if (isNil 'n414') then {n414 = 2733;};
n414 cutRsc ['rscDynamicText', 'PLAIN'];
n414 = n414 + 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 (n411 == 0) exitWith {n415 = n415 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n415 = n415 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n412;
};
n42 =
{
n422 =
{
if (isNil 'n421') then {n421 = 0;};
if (n421 == 0) then
{
hint "Book ESP ON";
n421 = 1;
n425 = [];
while {n421 == 1} do
{
_entities = (allMissionObjects "ItemBook");
{
if !(_x in n425) then {
n425 = n425 + [_x];
[_x] spawn n423;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Book ESP OFF";
n421 = 0;
};
};
n423 =
{
disableSerialization;
if (isNil 'n424') then {n424 = 2733;};
n424 cutRsc ['rscDynamicText', 'PLAIN'];
n424 = n424 + 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 (n421 == 0) exitWith {n425 = n425 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n425 = n425 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n422;
};
n43 =
{
n432 =
{
if (isNil 'n431') then {n431 = 0;};
if (n431 == 0) then
{
hint "Container ESP ON";
n431 = 1;
n435 = [];
while {n431 == 1} do
{
_entities = (allMissionObjects "ContainerBase");
{
if !(_x in n435) then {
n435 = n435 + [_x];
[_x] spawn n433;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Container ESP OFF";
n431 = 0;
};
};
n433 =
{
disableSerialization;
if (isNil 'n434') then {n434 = 2733;};
n434 cutRsc ['rscDynamicText', 'PLAIN'];
n434 = n434 + 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 (n431 == 0) exitWith {n435 = n435 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n435 = n435 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n432;
};
n44 =
{
n442 =
{
if (isNil 'n441') then {n441 = 0;};
if (n441 == 0) then
{
hint "Cookware ESP ON";
n441 = 1;
n445 = [];
while {n441 == 1} do
{
_entities = (allMissionObjects "CookwareBase") + (allMissionObjects "CookerBase");
{
if !(_x in n445) then {
n445 = n445 + [_x];
[_x] spawn n443;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Cookware ESP OFF";
n441 = 0;
};
};
n443 =
{
disableSerialization;
if (isNil 'n444') then {n444 = 2733;};
n444 cutRsc ['rscDynamicText', 'PLAIN'];
n444 = n444 + 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 (n441 == 0) exitWith {n445 = n445 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n445 = n445 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n442;
};
n46 =
{
n462 =
{
if (isNil 'n461') then {n461 = 0;};
if (n461 == 0) then
{
hint "Crafting ESP ON";
n461 = 1;
n465 = [];
while {n461 == 1} do
{
_entities = (allMissionObjects "CraftingItemBase") + (allMissionObjects "Consumable_Netting") + (allMissionObjects "Consumable_BurlapStrips") + (allMissionObjects "Consumable_Hook");
{
if !(_x in n465) then {
n465 = n465 + [_x];
[_x] spawn n463;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Crafting ESP OFF";
n461 = 0;
};
};
n463 =
{
disableSerialization;
if (isNil 'n464') then {n464 = 2733;};
n464 cutRsc ['rscDynamicText', 'PLAIN'];
n464 = n464 + 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 (n461 == 0) exitWith {n465 = n465 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n465 = n465 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n462;
};
n47 =
{
n472 =
{
if (isNil 'n471') then {n471 = 0;};
if (n471 == 0) then
{
hint "Medical ESP ON";
n471 = 1;
n475 = [];
while {n471 == 1} do
{
_entities = (allMissionObjects "MedicalItemBase");
{
if !(_x in n475) then {
n475 = n475 + [_x];
[_x] spawn n473;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Medical ESP OFF";
n471 = 0;
};
};
n473 =
{
disableSerialization;
if (isNil 'n474') then {n474 = 2733;};
n474 cutRsc ['rscDynamicText', 'PLAIN'];
n474 = n474 + 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 (n471 == 0) exitWith {n475 = n475 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n475 = n475 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n472;
};
n48 =
{
n482 =
{
if (isNil 'n481') then {n481 = 0;};
if (n481 == 0) then
{
hint "Melee ESP ON";
n481 = 1;
n485 = [];
while {n481 == 1} do
{
_entities = (allMissionObjects "MeleeItemBase") + (allMissionObjects "Sword") + (allMissionObjects "KnifeBase");
{
if !(_x in n485) then {
n485 = n485 + [_x];
[_x] spawn n483;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Melee ESP OFF";
n481 = 0;
};
};
n483 =
{
disableSerialization;
if (isNil 'n484') then {n484 = 2733;};
n484 cutRsc ['rscDynamicText', 'PLAIN'];
n484 = n484 + 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 (n481 == 0) exitWith {n485 = n485 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n485 = n485 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n482;
};
n49 =
{
n492 =
{
if (isNil 'n491') then {n491 = 0;};
if (n491 == 0) then
{
hint "Vehicle ESP ON";
n491 = 1;
n495 = [];
while {n491 == 1} do
{
_entities = (allMissionObjects "V3S_Cargo") + (allMissionObjects "v3s_cargo_blue") + (allMissionObjects "Car_DZ");
{
if !(_x in n495) then {
n495 = n495 + [_x];
[_x] spawn n493;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Vehicle ESP OFF";
n491 = 0;
};
};
n493 =
{
disableSerialization;
if (isNil 'n494') then {n494 = 2733;};
n494 cutRsc ['rscDynamicText', 'PLAIN'];
n494 = n494 + 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 (n491 == 0) exitWith {n495 = n495 - [_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.25' color='#7200FC'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n495 = n495 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n492;
};
n50 =
{
n502 =
{
if (isNil 'n501') then {n501 = 0;};
if (n501 == 0) then
{
hint "Vehicle Parts ESP ON";
n501 = 1;
n505 = [];
while {n501 == 1} do
{
_entities = (allMissionObjects "VehiclePartsBase") + (allMissionObjects "part_sparkplug") + (allMissionObjects "part_exhausttruck") + (allMissionObjects "part_canistergasoline") + (allMissionObjects "part_glowplug") + (allMissionObjects "part_batterytruck");
{
if !(_x in n505) then {
n505 = n505 + [_x];
[_x] spawn n503;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Vehicle Parts ESP OFF";
n501 = 0;
};
};
n503 =
{
disableSerialization;
if (isNil 'n504') then {n504 = 2733;};
n504 cutRsc ['rscDynamicText', 'PLAIN'];
n504 = n504 + 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 (n501 == 0) exitWith {n505 = n505 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n505 = n505 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n502;
};
n51 =
{
n512 =
{
if (isNil 'n511') then {n511 = 0;};
if (n511 == 0) then
{
hint "Animal ESP ON";
n511 = 1;
n515 = [];
while {n511 == 1} do
{
_entities = (allMissionObjects "DZ_AnimalBase");
{
if !(_x in n515) then {
n515 = n515 + [_x];
[_x] spawn n513;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Animal ESP OFF";
n511 = 0;
};
};
n513 =
{
disableSerialization;
if (isNil 'n514') then {n514 = 2733;};
n514 cutRsc ['rscDynamicText', 'PLAIN'];
n514 = n514 + 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 (n511 == 0) exitWith {n515 = n515 - [_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.25' color='#B7FF00'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n515 = n515 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n512;
};
n52 =
{
playerAction 'PlayerPoo';
hint "You Are Taking A Shit";
sleep 1;
};
n53 =
{
systemchat format ["UID is %1",(getplayeruid (player))];
};
n55 =
{
_entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
{
if (name _x == _this select 0) then
{
createGearDialog [(_x), "RscDisplayGear"];
};
} forEach _entities;
};
n56 =
{
_entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
{
if (name _x == _this select 0) 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";}'];
};
n74 =
{
if (isNil ("n741")) then
{
n741 = 0;
};
if (n741 == 0) then
{
"effectDazed" addPublicVariableEventhandler {};
dayz_bulletHit = {};
hint 'No Daze or Bullet Effects ON';
n741 = 1;
}
else
{
"effectDazed" addPublicVariableEventhandler
{
call dayz_bulletHit;
effectDazed = false;
};
hint 'No Daze or Bullet Effects OFF';
n741 = 0;
};
};
n78 =
{
if (isNil ("n781")) then
{
n781 = 0;
};
if (n781 == 0) then
{
hint 'No Restrain ON';
n781 = 1;
}
else
{
hint 'No Restrain OFF';
n781 = 0;
};
while {n781==1} do
{
if (Captive player) then
{
actionReleased = player;
player setCaptive false;
player playAction "cancelAction";
hint "Broke Free";
};
};
};
n76 =
{
playerAction 'PlayerVomit';
hint "Vomiting";
sleep 1;
};
n98 =
{
if (isNil ("n981")) then
{
n981 = 0;
};
if (n981==0) then
{
setViewDistance 600;
hint "n98 ON";
n981=1;
}
else
{
setViewDistance 1500;
hint "n98 OFF";
n981=0;
};
};
n75 =
{
n752 =
{
if (isNil 'n751') then {n751 = 0;};
if (n751 == 0) then
{
hint "Cthulhu ESP ON";
n751 = 1;
n755 = [];
while {n751 == 1} do
{
_entities = (allMissionObjects "itembookthecallofcthulhu");
{
if !(_x in n755) then {
n755 = n755 + [_x];
[_x] spawn n753;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Cthulhu ESP OFF";
n751 = 0;
};
};
n753 =
{
disableSerialization;
if (isNil 'n754') then {n754 = 2733;};
n754 cutRsc ['rscDynamicText', 'PLAIN'];
n754 = n754 + 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 (n751 == 0) exitWith {n755 = n755 - [_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.4' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n755 = n755 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n752;
};
n73 =
{
n732 =
{
if (isNil 'n731') then {n731 = 0;};
if (n731 == 0) then
{
hint "Sewing ESP ON";
n731 = 1;
n735 = [];
while {n731 == 1} do
{
_entities = (allMissionObjects "tool_sewingkit") + (allMissionObjects "tool_leathersewingkit") + (allMissionObjects "tool_canopener");
{
if !(_x in n735) then {
n735 = n735 + [_x];
[_x] spawn n733;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Sewing ESP OFF";
n731 = 0;
};
};
n733 =
{
disableSerialization;
if (isNil 'n734') then {n734 = 2733;};
n734 cutRsc ['rscDynamicText', 'PLAIN'];
n734 = n734 + 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 (n731 == 0) exitWith {n735 = n735 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n735 = n735 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n732;
};
n72 =
{
n722 =
{
if (isNil 'n721') then {n721 = 0;};
if (n721 == 0) then
{
hint "Tent ESP ON";
n721 = 1;
n725 = [];
while {n721 == 1} do
{
_entities = (allMissionObjects "TentMedium_Pitched") + (allMissionObjects "TentLarge_Pitched") + (allMissionObjects "TentMedium_Packed") + (allMissionObjects "TentLarge_Backpack");
{
if !(_x in n725) then {
n725 = n725 + [_x];
[_x] spawn n723;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Tent ESP OFF";
n721 = 0;
};
};
n723 =
{
disableSerialization;
if (isNil 'n724') then {n724 = 2733;};
n724 cutRsc ['rscDynamicText', 'PLAIN'];
n724 = n724 + 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 (n721 == 0) exitWith {n725 = n725 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n725 = n725 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n722;
};
n64 =
{
if (isNil ("n641")) then
{
n641 = 0;
};
if (n641==0) then
{
onEachFrame
{
vehicle player engineOn true;
};
hint "Vehicle Engine ON";
n641=1;
}
else
{
onEachFrame
{
vehicle player engineOn false;
};
hint "Vehicle Engine OFF";
n641=0;
};
};
n63 =
{
if (isNil ("n631")) then
{
n631 = 0;
};
if (n631==0) then
{
onEachFrame
{
vehicle player setfuel 1;
};
hint "Full Vehicle Fuel ON";
n631=1;
}
else
{
onEachFrame
{
vehicle player setfuel 0;
};
hint "Full Vehicle Fuel OFF";
n631=0;
};
};
n62 =
{
closeDialog 0;
for "_j" from 1 to 100 do
{
deleteMarkerLocal ("marker" + str(_j));
};
_start = [1000,2300,0];
_max = 15300;
_i = 1;
_arr = [];
cutText ["Searching for Map Markers (This Will Take a Few Mins) . . .", "BLACK OUT"];
sleep 3;
while {((_start select 0 < _max)) && ((_start select 1 < _max))} do
{
while {(_start select 0 < _max)} do
{
_local = "camera" camCreate _start;
_local cameraEffect ["INTERNAL", "BACK"];
sleep 0.01;
_obj = (allMissionObjects "LandVehicle");
_obj1 = (entities "SurvivorBase");
_obj2 = (allMissionObjects "TentMedium_Pitched") + (allMissionObjects "TentLarge_Pitched") + (allMissionObjects "TentMedium_Packed") + (allMissionObjects "TentLarge_Backpack");
if (count _obj != 0) then
{
{
if !((getPos _x) in _arr) then
{
_marker = createMarkerLocal ["marker" + str(_i), getPos _x];
_marker setMarkerTypeLocal "hd_objective";
_marker setMarkerColorLocal "ColorGreen";
_marker setMarkerSizeLocal [0.5, 0.5];
_marker setMarkerTextLocal (typeOf _x);
_i = _i + 1;
_arr set [count _arr, getPos _x];
};
} forEach _obj;
};
if (count _obj1 != 0) then
{
{
if !((getPos _x) in _arr) then
{
_marker1 = createMarkerLocal ["marker" + str(_i), getPos _x];
_marker1 setMarkerTypeLocal "hd_destroy";
_marker1 setMarkerColorLocal "ColorRed";
_marker1 setMarkerSizeLocal [0.5, 0.5];
_marker1 setMarkerTextLocal (Name _x);
_i = _i + 1;
_arr set [count _arr, getPos _x];
};
} forEach _obj1;
};
if (count _obj2 != 0) then
{
{
if !((getPos _x) in _arr) then
{
_marker2 = createMarkerLocal ["marker" + str(_i), getPos _x];
_marker2 setMarkerTypeLocal "hd_join";
_marker2 setMarkerColorLocal "ColorOrange";
_marker2 setMarkerSizeLocal [0.5, 0.5];
_marker2 setMarkerTextLocal (typeOf _x);
_i = _i + 1;
_arr set [count _arr, getPos _x];
};
} forEach _obj2;
};
camDestroy _local;
_start = [(_start select 0) + 1000, (_start select 1), 0];
};
_start = [1000, (_start select 1) + 1000, 0];
sleep 0.01;
};
player cameraEffect ["TERMINATE", "BACK"];
cutText ["", "BLACK IN"];
hint "Check Map For Markers";
};
n61 =
{
n612 =
{
tarDisFC = 1000;
if (isNil 'n611') then {n611 = 0;};
if (n611 == 0) then
{
hint "Freecam ESP ON";
n611 = 1;
_a = [];
while {n611 == 1} do
{
_pos = getPos BIS_DEBUG_CAM;
_entities = nearestObjects [_pos, ["SurvivorBase","LandVehicle"], 1000];
_count = count _entities;
{
if (((_x in _a) && !(true)) or ((_x in _a) && ((BIS_DEBUG_CAM distance _x) > tarDisFC))) then {_a = _a - [_x];};
if ((_x != BIS_DEBUG_CAM) && (true) && !(_x in _a) && ((BIS_DEBUG_CAM distance _x) <= tarDisFC)) then
{
_a = _a + [_x];
[_x] spawn n613;
sleep 1;
};
} forEach _entities;
sleep 30;
};
}
else
{
hint "Freecam ESP OFF";
n611 = 0;
};
};
n613 =
{
disableSerialization;
if (isNil 'n614') then {n614 = 2933;};
n614 cutRsc ['rscDynamicText', 'PLAIN'];
n614 = n614 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
_unit = _this select 0;
while {(true) && ((BIS_DEBUG_CAM distance _unit) < tarDisFC)} do
{
if (n611 == 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.35' color='#FF1AAA'>%1 - %3 (%2m)</t>", name _unit, round (BIS_DEBUG_CAM distance _unit), typeOf _unit];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.05;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n612;
};
n58 =
{
_ppos = getPosATL cameraOn;
_pX = _ppos select 0;
_pY = _ppos select 1;
_pZ = _ppos select 2;
_local = "camera" camCreate [_pX, _pY, _pZ + 2];
BIS_DEBUG_CAM = _local;
_local camCommand "MANUAL ON";
_local camCommand "INERTIA OFF";
_local cameraEffect ["INTERNAL", "BACK"];
_local camCommand "COMFY ON";
showCinemaBorder false;
BIS_DEBUG_CAM setDir direction (vehicle player);
waitUntil {isNull BIS_DEBUG_CAM};
player cameraEffect ["TERMINATE", "BACK"];
BIS_DEBUG_CAM = nil;
camDestroy _local;
};
n54 =
{
hintc format ["%1",(itemsInInventory (player))];
hintsilent "";
sleep 1;
};
n59 =
{
if (isNil ("n591")) then
{
n591 = 0;
};
if (n591 == 0) then
{
hint 'No Rain Wetness ON';
n591 = 1;
}
else
{
hint 'No Rain Wetness OFF';
n591 = 0;
};
while {n591==1} do
{
rainCheck_bak = rainCheck;
rainCheck = {};
isUnderRoof = {[0,0,0,0]};
0 setrain 0;
};
};
n60 =
{
if (isNil ("n601")) then
{
n601=0;
};
if (n601==0) then
{
n601=1;
hint "No Blur and Full Color ON";
}
else
{
n601=0;
hint "No Blur and Full Color OFF";
};
_realblood = 0;
while {n601==1} do
{
resetCamShake;
_realblood = player getVariable['blood',-1];
player setVariable ['blood',5000];
waitUntil{player getVariable ['blood',-1] != 5000};
};
};
n25 =
{
disableSerialization;
createDialog 'rscdisplaynote';
ctrlSetText[1600,"Execute"];
ctrlSettext[1601,"Clear"];
ctrlSetText[1300,"Executor"];
buttonSetAction[1600,"[] spawn compile (ctrlText 1400)"];
buttonSetAction[1601,"ctrlSetText[1400,""""];"];
hint "Use At Your Own Risk";
};
sleep 1;
while {true} do
{
if (inputAction "NightVision" > 0) then
{
if (isNull (findDisplay 3030)) then
{
[] spawn n10;
};
sleep 0.5;
};
sleep 0.01;
};
};
closeDialog 0;
HintC Format ["Hello %1 Welcome to Necromancy", name Player];
hint "Press 'N'";
[] spawn {
waitUntil {!isNull player};
n2 = {(findDisplay 3030) displayCtrl _this;};
if (isNil "n3") then {n3 = [];};
n4 =
{
n5 = n5 + ["----------------------",n999,"0","0","0"];
n5 = n5 + ["=>ESP Options<=",n999,"1","0","0"];
n5 = n5 + ["----------------------",n999,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["Player (Simple)",n91,"1","0","0"];
n5 = n5 + ["Player (Full Status)",n11,"1","0","0"];
n5 = n5 + ["Player Bodies",n79,"1","0","0"];
n5 = n5 + ["Zombies",n82,"1","0","0"];
n5 = n5 + ["Animals",n51,"1","0","0"];
n5 = n5 + ["Heli Wrecks",n80,"1","0","0"];
n5 = n5 + ["Vehicles",n49,"1","0","0"];
n5 = n5 + ["All Items",n13,"1","0","0"];
n5 = n5 + ["All Clothing",n32,"1","0","0"];
n5 = n5 + ["Melee Weapons",n48,"1","0","0"];
n5 = n5 + ["Firearms / Grenades",n12,"1","0","0"];
n5 = n5 + ["Ammo / Mags",n28,"1","0","0"];
n5 = n5 + ["Attachments",n29,"1","0","0"];
n5 = n5 + ["Food / Drink",n24,"1","0","0"];
n5 = n5 + ["Medical Supplies",n47,"1","0","0"];
n5 = n5 + ["Vehicle Parts",n50,"1","0","0"];
n5 = n5 + ["BackPacks",n31,"1","0","0"];
n5 = n5 + ["Eyewear",n33,"1","0","0"];
n5 = n5 + ["Headgear",n35,"1","0","0"];
n5 = n5 + ["Masks",n36,"1","0","0"];
n5 = n5 + ["Topwear",n37,"1","0","0"];
n5 = n5 + ["Bottomwear",n38,"1","0","0"];
n5 = n5 + ["Footwear",n39,"1","0","0"];
n5 = n5 + ["Vests",n40,"1","0","0"];
n5 = n5 + ["Gloves",n41,"1","0","0"];
n5 = n5 + ["Books",n42,"1","0","0"];
n5 = n5 + ["Containers (Protector Cases, Ammo Boxes, MedPacks)",n43,"1","0","0"];
n5 = n5 + ["Cookware",n44,"1","0","0"];
n5 = n5 + ["Crafting Materials",n46,"1","0","0"];
n5 = n5 + ["Tents",n72,"1","0","0"];
n5 = n5 + ["Sewing Kits / Can Openers",n73,"1","0","0"];
n5 = n5 + ["Book of Cthulhu",n75,"1","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["---------------------------",n999,"0","0","0"];
n5 = n5 + ["=>Camera Options<=",n999,"1","0","0"];
n5 = n5 + ["---------------------------",n999,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["Free Camera",n58,"0","0","0"];
n5 = n5 + ["Free Camera ESP",n61,"0","0","0"];
n5 = n5 + ["Bullet Camera",n15,"1","0","0"];
n5 = n5 + ["Third Person Camera",n19,"1","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["------------------------",n999,"0","0","0"];
n5 = n5 + ["=>Local Options<=",n999,"1","0","0"];
n5 = n5 + ["------------------------",n999,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["Activate HUD",n95,"1","0","0"];
n5 = n5 + ["Max View Distance",n34,"1","0","0"];
n5 = n5 + ["Time Day / Clear Weather",n16,"1","0","0"];
n5 = n5 + ["Night Light",n17,"1","0","0"];
n5 = n5 + ["No Grass",n18,"1","0","0"];
n5 = n5 + ["No Buildings",n1,"1","0","0"];
n5 = n5 + ["No Collide",n81,"1","0","0"];
n5 = n5 + ["FPS Boost",n98,"1","0","0"];
n5 = n5 + ["No Daze / Bullet Effects",n74,"1","0","0"];
n5 = n5 + ["No Rain Wetness",n59,"1","0","0"];
n5 = n5 + ["No Blur and Full Color",n60,"1","0","0"];
n5 = n5 + ["Stealth Truck",n26,"0","0","0"];
n5 = n5 + ["Take a Shit",n52,"0","0","0"];
n5 = n5 + ["Player Vomit",n76,"0","0","0"];
n5 = n5 + ["Get GUID",n53,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["------------------------",n999,"0","0","0"];
n5 = n5 + ["=>Target Options<=",n999,"1","0","0"];
n5 = n5 + ["------------------------",n999,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["View Gear",n55,"0","0","1"];
n5 = n5 + ["Spectate",n56,"0","0","1"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["-------------------------",n999,"0","0","0"];
n5 = n5 + ["=>Other Options<=",n999,"1","0","0"];
n5 = n5 + ["-------------------------",n999,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["Gun God",n20,"1","0","0"];
n5 = n5 + ["Teleport",n21,"0","0","0"];
n5 = n5 + ["Map Markers",n62,"0","0","0"];
n5 = n5 + ["AutoFill Vehicle Fuel",n63,"1","0","0"];
n5 = n5 + ["Toggle Vehicle Engine",n64,"1","0","0"];
n5 = n5 + ["List All Inventory",n54,"0","0","0"];
n5 = n5 + ["Auto Break Free From Handcuffs",n78,"1","0","0"];
n5 = n5 + ["Force Break Free From Handcuffs",n23,"0","0","0"];
n5 = n5 + ["Script Executor",n25,"0","0","0"];
n5 = n5 + ["",n999,"1","0","0"];
n5 = n5 + ["-------------------------",n999,"0","0","0"];
};
n6 =
{
_toggle = _this select 0;
if !(_toggle in n3) then
{
lbSetColor [2, _toggle, [.4, 1, 0, 1]];
n3 = n3 + [_toggle];
}
else
{
lbSetColor [2, _toggle, [.5,.7,0, 1]];
n3 = n3 - [_toggle];
};
};
n7 =
{
_code = n5 select ((lbCurSel 2))*5+1;
_istoggle = n5 select ((lbCurSel 2))*5+2;
_istitle = n5 select ((lbCurSel 2))*5+3;
_isplayer = n5 select ((lbCurSel 2))*5+4;
if (_istitle == "1") exitWith {};
if (_istoggle == "1") then
{
[] spawn _code;
[lbCurSel 2] call n6;
};
if (_isplayer == "1") then
{
if ((lbCurSel 1) >= 0) then
{
[lbtext [1, (lbCurSel 1)]] spawn _code;
}
else
{
hint "Select a player!";
};
};
if ((_istitle == "0") && (_istoggle == "0") && (_isplayer == "0")) then {[] spawn _code;};
};
n8 =
{
_ctrl = 2 call n2;
lbclear _ctrl;
n5 = [];
call n4;
for [{_num = 0}, {_num <= count(n5)-1}, {_num = _num+5}] do
{
_index = _ctrl lbAdd format["%1", n5 select _num];
_togglable = n5 select (_num+2);
_istitle = n5 select (_num+3);
if (_togglable == "1") then
{
if (_index in n3) then
{
_ctrl lbSetColor [(lbsize _ctrl)-1, [.4, 1, 0, 1]];
} else {_ctrl lbSetColor [(lbsize _ctrl)-1, [.5, .7, 0, 1]];};
};
if (_istitle == "1") then {_ctrl lbSetColor [(lbsize _ctrl)-1, [.4, 1, 0, 1.0]];};
};
};
n9 =
{
disableSerialization;
while {!(isNull (findDisplay 3030))} do
{
_count = count (entities "SurvivorBase");
_ctrl = 1 call n2;
lbclear _ctrl;
{
_ctrl lbAdd format ["%1", name _x];
_ctrl lbSetData [(lbsize _ctrl)-1, "1"];
_ctrl lbSetColor [(lbsize _ctrl)-1, [.5, .7, 0, 1.0]];
} forEach (entities "SurvivorBase");
lbSort _ctrl;
sleep 3;
waitUntil {_count != (count (entities "SurvivorBase"))};
};
};
n10 =
{
if (isNull (findDisplay 3030)) then
{
createDialog "RscConfigEditor_Main";
_ctrl = -1 call n2;
_ctrl ctrlSetBackgroundColor [.01,.01,.01,.85];
_ctrl = 3 call n2;
_ctrl ctrlSetText " Necromancy_SA_v3 - Mizzle420420";
_ctrl ctrlSetTextColor [.4,1,0, 1];
_ctrl ctrlSetPosition [SafezoneX, SafezoneY-SafezoneH/2.1, SafezoneW, SafezoneH];
_ctrl ctrlCommit 0;
_ctrl = 2 call n2;
_ctrl ctrlSetEventHandler ["LBDblClick", "call n7;"];
call n8;
[] spawn n9;
};
};
n95 =
{
if (isNil ("n951")) then
{
n951 = 0;
};
if (n951==0) then
{
hint "HUD ON";
n951=1;
}
else
{
hint "HUD OFF";
n951=0;
};
while{n951==1} do
{
0 cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_unit = player;
_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);
_hand = currentWeapon _unit;
if (_hand == "") then
{
_wName = typeof itemInHands _unit;
};
_pp = getpos _unit;
_wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
if(_wName == "") then
{
_wName = _hand;
};
_ctrl ctrlSetPosition [safezonex,safezoney,safezonew,safezoneH];
_text = parseText format ['<t size=''1'' color=''#8DFF00''> [Name: %1] [Pos: %8] [Health: %2%] [Blood: %3%] [Shock: %4%] [Body Temperature: %5%] [Heat Comfort: %6%] [Item In Hands: %7] </t>', name _unit,_health,_blood,_shock,_temp,_heat,_wName,_pp];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlcommit 0;
uisleep 1.5;
};
};
n15 =
{
if (isNil ("n151")) then
{
n151=0;
};
if (n151==0) then
{
n151=1;
player addEventHandler ["Fired",
{
_null = _this spawn
{
_missile = _this select 6;
_cam = "Camera" camCreate (position player);
_cam CameraEffect ["External", "Back"];
waitUntil
{
if (isNull _missile) exitWith {1};
_cam camSetTarget _missile;
_cam camSetRelPos [0,-3,0];
_cam camCommit 0;
};
sleep 0.4;
_cam CameraEffect ["Terminate", "Back"];
camDestroy _cam;
};
}];
hint "Bullet Camera ON";
}
else
{
n151=0;
(vehicle player) removeAllEventHandlers "Fired";
hint "Bullet Camera OFF";
};
};
n16 =
{
0 setrain 0;
0 setOvercast 0;
0 setFog 0;
setDate [2012, 9, 1, 14, 0];
hint "Time Day / Clear Weather";
};
n20 =
{
if (isNil ("n201")) then
{
n201=0;
};
if (n201==0) then
{
onEachFrame
{
player setWeaponReloadingTime [player,currentWeapon player,0];
};
player setUnitRecoilCoefficient 0;
hint "Gun God ON";
n201=1;
}
else
{
player setWeaponReloadingTime [player,currentWeapon player,1];
player setUnitRecoilCoefficient 1;
n201=0;
hint "Gun God OFF";
};
};
n18 =
{
if (isNil ("n181")) then
{
n181=0;
};
if (n181==0) then
{
setTerrainGrid 50.0;
hint "No Grass ON";
n181=1;
}
else
{
setTerrainGrid 12.5;
hint "No Grass OFF";
n181=0;
};
};
n26 =
{
disableSerialization;
closeDialog 0;
if (isNil "n261") then
{
n261 = {
_pos3s = getPos player;
_veh3s = "V3S_Cargo" createVehicleLocal _this;
player action ["getInDriver", _veh3s];
sleep 1;
while {count(player nearObjects ["V3S_Cargo",50]) == 0} do {player action ["getInDriver", _veh3s];};
closeDialog 0;
hint format ["Teleported to: %1", _this];
};
n262 =
{
_ctrl = _this select 0;
{_ctrl drawIcon ["\DZ\ui\data\map\markers\military\triangle_CA.paa", if (_x == player) then {[1,0,1,1]} else {[1,0.7,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";
hint "Doubleclick on the map to Teleport";
_map = (findDisplay 12) displayCtrl 51;
_map ctrlAddEventhandler ["mousebuttondblclick","((_this select 0) posScreenToWorld [_this select 2, _this select 3]) spawn n261"];
_map ctrlAddEventHandler ["Draw", "_this call dmap"];
for "_i" from 0 to 9999 do {
if (_i != 51) then {
((findDisplay 12) displayCtrl _i) ctrlShow false;
};
};
};
n19 = {
if (isNil ("n191")) then
{
n191 = 0;
};
if (n191==0) then
{
onEachFrame {
player switchCamera "External";
};
hint "Third Person Mode ON";
n191=1;
}
else
{
onEachFrame {};
hint "Third Person Mode OFF";
n191=0;
};
};
n23 =
{
actionReleased = player;
publicVariableServer 'actionReleased';
player setCaptive false;
player playAction "cancelAction";
hint "Broke Free";
};
n21 =
{
disableSerialization;
closeDialog 0;
if (isNil "n211") then
{
n211 = {
_pos = getPos player;
_veh = "car_hatchback" createVehicleLocal _this;
player action ["getInDriver", _veh];
sleep 1;
while {count(player nearObjects ["car_hatchback",50]) == 0} do {player action ["getInDriver", _veh];};
deleteVehicle _veh;
closeDialog 0;
hint format ["Teleported to: %1", _this];
};
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";
hint "Double-Click on the Map to Teleport";
_map = (findDisplay 12) displayCtrl 51;
_map ctrlAddEventhandler ["mousebuttondblclick","((_this select 0) posScreenToWorld [_this select 2, _this select 3]) spawn n211"];
_map ctrlAddEventHandler ["Draw", "_this call n212"];
for "_i" from 0 to 9999 do {
if (_i != 51) then {
((findDisplay 12) displayCtrl _i) ctrlShow false;
};
};
};
n91 =
{
n912 =
{
if (isNil 'n911') then {n911 = 0;};
if (n911 == 0) then
{
hint "Player ESP ON";
n911 = 1;
_a = [];
while {n911 == 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 n913;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Player ESP OFF";
n911 = 0;
};
};
n913 =
{
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;
_hand = currentWeapon _unit;
if (_hand == "") then
{
_wName = typeof itemInHands _unit;
};
_wName = getText(configFile >> "cfgWeapons" >> _hand >> "displayName");
if(_wName == "") then {
_wName = _hand;
};
while {(alive _unit) && !(isNull _unit)} do
{
if (n911 == 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.3'' color=''#8DFF00''>%1 (%2m) %3</t>', name _unit, round (player distance _unit), _wName];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n912;
};
n11 =
{
n112 = {
if (isNil 'n111') then {n111 = 0;};
if (n111 == 0) then
{
hint "Player ESP ON";
n111 = 1;
_a = [];
while {n111 == 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 n113;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
}
else
{
hint "Player ESP OFF";
n111 = 0;
};
};
n113 =
{
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 (n111 == 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 n112;
};
n12 =
{
n122 =
{
if (isNil 'n121') then {n121 = 0;};
if (n121 == 0) then
{
hint "Weapon ESP ON";
n121 = 1;
arr1 = [];
while {n121 == 1} do
{
_entities = (allMissionObjects "riflecore") + (allMissionObjects "ShotgunBase") + (allMissionObjects "pistolcore") + (allMissionObjects "FlashGrenade") + (allMissionObjects "GrenadeBase");
{
if !(_x in arr1) then {
arr1 = arr1 + [_x];
[_x] spawn n123;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Weapon ESP OFF";
n121 = 0;
};
};
n123 =
{
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 (n121 == 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.25' color='#00FC97'>%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 n122;
};
n13 =
{
n132 =
{
if (isNil 'n131') then {n131 = 0;};
if (n131 == 0) then
{
hint "All Items ESP ON";
n131 = 1;
arr2 = [];
while {n131 == 1} do
{
_entities = (allMissionObjects "inventorybase");
{
if !(_x in arr2) then {
arr2 = arr2 + [_x];
[_x] spawn n133;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "All Items ESP OFF";
n131 = 0;
};
};
n133 =
{
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 (n131 == 0) exitWith {arr2 = arr2 - [_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.22' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
arr2 = arr2 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n132;
};
n17 =
{
if (isNil "n171") then {n171 = true;};
if (n171) then
{
n172 = "#lightpoint" createVehicleLocal getpos player;
n172 setLightBrightness 1;
n172 setLightAmbient[0.8, 1, 0.2];
n172 setLightColor[.4, 1, 0];
n172 lightAttachObject [player, [10,10,10]];
n171 = false;
hint "Night Light ON";
}
else
{
deleteVehicle n172;
n171 = true;
hint "Night Light OFF";
};
};
n34 =
{
if (isNil ("n341")) then
{
n341 = 0;
};
if (n341==0) then
{
setViewDistance 10000;
hint "Max View Distance ON";
n341=1;
}
else
{
setViewDistance 1000;
hint "Max View Distance OFF";
n341=0;
};
};
n1 =
{
if (isnil ("n1111")) then
{
n1111 = 0;
};
if (n1111 == 0) then
{
hint "No Buildings ON";
n1111 = 1;
}
else
{
hint "No Buildings OFF";
n1111 = 0;
};
while {n1111 == 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 {n1111 == 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;
};
};
n81 =
{
if (isNil ("n811")) then
{
n811 = 0;
};
if (n811==0) then
{
hint "No Collide ON";
n811=1;
}
else
{
hint "No Collide OFF";
n811=0;
};
while{n811==1} do
{
_objects = [];
_list = (getposatl player) nearObjects 50;
{
if !(_x in _objects) then
{
player disableCollisionWith _x;
_objects = _objects + [_x];
};
} forEach _list;
};
while{n811==0} do
{
_objects = [];
_list = (getposatl player) nearObjects 50;
{
if !(_x in _objects) then
{
player enableCollisionWith _x;
_objects = _objects + [_x];
};
} forEach _list;
};
};
n80 =
{
n801 =
{
tardis2 = 1000;
if (isNil 'n802') then
{
n802 = 0;
};
if (n802 == 0) then
{
n802 = 1;
hint "Heli ESP ON";
_a = [];
while {n802 == 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") or (typeof _x == "Land_UH1Y_Wreck") && ((positionCameraToWorld [0,0,0] distance _x) <= tardis2)) then
{
_a = _a + [_x];
[_x] spawn n803;
sleep 1;
};
} forEach _entities;
sleep 2;
};
} else
{
n802 = 0;
hint "Heli ESP OFF";
};
};
n803 =
{
disableSerialization;
if (isNil 'n804') then {n804 = 2733;};
n804 cutRsc ['RscTime', 'PLAIN'];
n804 = n804 + 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 (n802 == 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 n801;
};
n79 =
{
n791 =
{
tarDis2 = 1000;
if (isNil 'n793') then
{
n793 = 0;
};
if (n793 == 0) then
{
n793 = 1;
hint "Body ESP ON";
_a = [];
while {n793 == 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 n792;
sleep 1;
};
} forEach _entities;
sleep 10;
};
} else {
n793 = 0;
hint "Body ESP OFF";
};
};
n792 = {
disableSerialization;
if (isNil 'n794') then {n794 = 2733;};
n794 cutRsc ['RscDynamicText', 'PLAIN'];
n794 = n794 + 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 (n793 == 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 n791;
};
n82 =
{
n822 =
{
if (isNil 'n821') then {n821 = 0;};
if (n821 == 0) then
{
hint "Zombie ESP ON";
n821 = 1;
_a = [];
while {n821 == 1} do
{
_entities = (getpos player) nearObjects ["ZombieBase",850];
{
if ((_x in _a) && !(alive _x)) then {_a = _a - [_x];};
if ((_x != player) && !(_x in _a)) then
{
_a = _a + [_x];
[_x] spawn n823;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Zombie ESP OFF";
n821 = 0;
};
};
n823 =
{
disableSerialization;
if (isNil 'n824') then {n824 = 2733;};
n824 cutRsc ['rscDynamicText', 'PLAIN'];
n824 = n824 + 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 (n821 == 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.2'' color=''#FCFF00''>%1 (Range:%2m)</t>', "Zombie", round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n822;
};
n24 =
{
n243 = {
if (isNil 'n241') then {n241 = 0;};
if (n241 == 0) then
{
hint "Food and Drink ESP ON";
n241 = 1;
arr1 = [];
while {n241 == 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 n242;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Food and Drink ESP OFF";
n241 = 0;
};
};
n242 = {
disableSerialization;
if (isNil 'n244') then {n244 = 2833;};
n244 cutRsc ['rscDynamicText', 'PLAIN'];
n244 = n244 + 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 (n241 == 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='#00FC97'>%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 n243;
};
n28 =
{
n282 =
{
if (isNil 'n281') then {n281 = 0;};
if (n281 == 0) then
{
hint "Ammo ESP ON";
n281 = 1;
n284 = [];
while {n281 == 1} do
{
_entities = (allMissionObjects "MagazineBase") + (allMissionObjects "AmmunitionItemBase") + (allMissionObjects "AmmunitionBoxItemBase") + (allMissionObjects "ArrowsBase");
{
if !(_x in n284) then {
n284 = n284 + [_x];
[_x] spawn n283;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Ammo ESP OFF";
n281 = 0;
};
};
n283 =
{
disableSerialization;
if (isNil 'n285') then {n285 = 2733;};
n285 cutRsc ['rscDynamicText', 'PLAIN'];
n285 = n285 + 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 (n281 == 0) exitWith {n284 = n284 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n284 = n284 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n282;
};
n29 =
{
n292 =
{
if (isNil 'n291') then {n291 = 0;};
if (n291 == 0) then
{
hint "Attachment ESP ON";
n291 = 1;
n295 = [];
while {n291 == 1} do
{
_entities = (allMissionObjects "AttachmentBase") + (allMissionObjects "SuppressorBase") + (allMissionObjects "PoweredOpticBase");
{
if !(_x in n295) then {
n295 = n295 + [_x];
[_x] spawn n293;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Attachment ESP OFF";
n291 = 0;
};
};
n293 =
{
disableSerialization;
if (isNil 'n294') then {n294 = 2733;};
n294 cutRsc ['rscDynamicText', 'PLAIN'];
n294 = n294 + 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 (n291 == 0) exitWith {n295 = n295 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n295 = n295 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n292;
};
n31 =
{
n312 =
{
if (isNil 'n311') then {n311 = 0;};
if (n311 == 0) then
{
hint "BackPack ESP ON";
n311 = 1;
n315 = [];
while {n311 == 1} do
{
_entities = (allMissionObjects "BagBase");
{
if !(_x in n315) then {
n315 = n315 + [_x];
[_x] spawn n313;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "BackPack ESP OFF";
n311 = 0;
};
};
n313 =
{
disableSerialization;
if (isNil 'n314') then {n314 = 2733;};
n314 cutRsc ['rscDynamicText', 'PLAIN'];
n314 = n314 + 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 (n311 == 0) exitWith {n315 = n315 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n315 = n315 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n312;
};
n32 =
{
n322 =
{
if (isNil 'n321') then {n321 = 0;};
if (n321 == 0) then
{
hint "Clothing ESP ON";
n321 = 1;
n325 = [];
while {n321 == 1} do
{
_entities = (allMissionObjects "ClothingBase") + (allMissionObjects "EyewearBase") + (allMissionObjects "Consumable_BandanaBase");
{
if !(_x in n325) then {
n325 = n325 + [_x];
[_x] spawn n323;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Clothing ESP OFF";
n321 = 0;
};
};
n323 =
{
disableSerialization;
if (isNil 'n324') then {n324 = 2733;};
n324 cutRsc ['rscDynamicText', 'PLAIN'];
n324 = n324 + 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 (n321 == 0) exitWith {n325 = n325 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n325 = n325 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n322;
};
n33 =
{
n332 =
{
if (isNil 'n331') then {n331 = 0;};
if (n331 == 0) then
{
hint "Eyewear ESP ON";
n331 = 1;
n335 = [];
while {n331 == 1} do
{
_entities = (allMissionObjects "EyewearBase");
{
if !(_x in n335) then {
n335 = n335 + [_x];
[_x] spawn n333;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Eyewear ESP OFF";
n331 = 0;
};
};
n333 =
{
disableSerialization;
if (isNil 'n334') then {n334 = 2733;};
n334 cutRsc ['rscDynamicText', 'PLAIN'];
n334 = n334 + 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 (n331 == 0) exitWith {n335 = n335 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n335 = n335 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n332;
};
n35 =
{
n352 =
{
if (isNil 'n351') then {n351 = 0;};
if (n351 == 0) then
{
hint "Headgear ESP ON";
n351 = 1;
n355 = [];
while {n351 == 1} do
{
_entities = (allMissionObjects "HeadgearBase");
{
if !(_x in n355) then {
n355 = n355 + [_x];
[_x] spawn n353;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Headgear ESP OFF";
n351 = 0;
};
};
n353 =
{
disableSerialization;
if (isNil 'n354') then {n354 = 2733;};
n354 cutRsc ['rscDynamicText', 'PLAIN'];
n354 = n354 + 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 (n351 == 0) exitWith {n355 = n355 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n355 = n355 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n352;
};
n36 =
{
n362 =
{
if (isNil 'n361') then {n361 = 0;};
if (n361 == 0) then
{
hint "Mask ESP ON";
n361 = 1;
n365 = [];
while {n361 == 1} do
{
_entities = (allMissionObjects "MaskBase");
{
if !(_x in n365) then {
n365 = n365 + [_x];
[_x] spawn n363;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Mask ESP OFF";
n361 = 0;
};
};
n363 =
{
disableSerialization;
if (isNil 'n364') then {n364 = 2733;};
n364 cutRsc ['rscDynamicText', 'PLAIN'];
n364 = n364 + 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 (n361 == 0) exitWith {n365 = n365 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n365 = n365 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n362;
};
n37 =
{
n372 =
{
if (isNil 'n371') then {n371 = 0;};
if (n371 == 0) then
{
hint "Topwear ESP ON";
n371 = 1;
n375 = [];
while {n371 == 1} do
{
_entities = (allMissionObjects "TopwearBase");
{
if !(_x in n375) then {
n375 = n375 + [_x];
[_x] spawn n373;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Topwear ESP OFF";
n371 = 0;
};
};
n373 =
{
disableSerialization;
if (isNil 'n374') then {n374 = 2733;};
n374 cutRsc ['rscDynamicText', 'PLAIN'];
n374 = n374 + 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 (n371 == 0) exitWith {n375 = n375 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n375 = n375 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n372;
};
n38 =
{
n382 =
{
if (isNil 'n381') then {n381 = 0;};
if (n381 == 0) then
{
hint "Bottomwear ESP ON";
n381 = 1;
n385 = [];
while {n381 == 1} do
{
_entities = (allMissionObjects "BottomwearBase");
{
if !(_x in n385) then {
n385 = n385 + [_x];
[_x] spawn n383;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Bottomwear ESP OFF";
n381 = 0;
};
};
n383 =
{
disableSerialization;
if (isNil 'n384') then {n384 = 2733;};
n384 cutRsc ['rscDynamicText', 'PLAIN'];
n384 = n384 + 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 (n381 == 0) exitWith {n385 = n385 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n385 = n385 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n382;
};
n39 =
{
n392 =
{
if (isNil 'n391') then {n391 = 0;};
if (n391 == 0) then
{
hint "Footwear ESP ON";
n391 = 1;
n395 = [];
while {n391 == 1} do
{
_entities = (allMissionObjects "FootwearBase");
{
if !(_x in n395) then {
n395 = n395 + [_x];
[_x] spawn n393;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Footwear ESP OFF";
n391 = 0;
};
};
n393 =
{
disableSerialization;
if (isNil 'n394') then {n394 = 2733;};
n394 cutRsc ['rscDynamicText', 'PLAIN'];
n394 = n394 + 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 (n391 == 0) exitWith {n395 = n395 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n395 = n395 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n392;
};
n40 =
{
n402 =
{
if (isNil 'n401') then {n401 = 0;};
if (n401 == 0) then
{
hint "Vest ESP ON";
n401 = 1;
n405 = [];
while {n401 == 1} do
{
_entities = (allMissionObjects "VestBase");
{
if !(_x in n405) then {
n405 = n405 + [_x];
[_x] spawn n403;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Vest ESP OFF";
n401 = 0;
};
};
n403 =
{
disableSerialization;
if (isNil 'n404') then {n404 = 2733;};
n404 cutRsc ['rscDynamicText', 'PLAIN'];
n404 = n404 + 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 (n401 == 0) exitWith {n405 = n405 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n405 = n405 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n402;
};
n41 =
{
n412 =
{
if (isNil 'n411') then {n411 = 0;};
if (n411 == 0) then
{
hint "Gloves ESP ON";
n411 = 1;
n415 = [];
while {n411 == 1} do
{
_entities = (allMissionObjects "GlovesBase");
{
if !(_x in n415) then {
n415 = n415 + [_x];
[_x] spawn n413;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Gloves ESP OFF";
n411 = 0;
};
};
n413 =
{
disableSerialization;
if (isNil 'n414') then {n414 = 2733;};
n414 cutRsc ['rscDynamicText', 'PLAIN'];
n414 = n414 + 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 (n411 == 0) exitWith {n415 = n415 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n415 = n415 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n412;
};
n42 =
{
n422 =
{
if (isNil 'n421') then {n421 = 0;};
if (n421 == 0) then
{
hint "Book ESP ON";
n421 = 1;
n425 = [];
while {n421 == 1} do
{
_entities = (allMissionObjects "ItemBook");
{
if !(_x in n425) then {
n425 = n425 + [_x];
[_x] spawn n423;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Book ESP OFF";
n421 = 0;
};
};
n423 =
{
disableSerialization;
if (isNil 'n424') then {n424 = 2733;};
n424 cutRsc ['rscDynamicText', 'PLAIN'];
n424 = n424 + 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 (n421 == 0) exitWith {n425 = n425 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n425 = n425 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n422;
};
n43 =
{
n432 =
{
if (isNil 'n431') then {n431 = 0;};
if (n431 == 0) then
{
hint "Container ESP ON";
n431 = 1;
n435 = [];
while {n431 == 1} do
{
_entities = (allMissionObjects "ContainerBase");
{
if !(_x in n435) then {
n435 = n435 + [_x];
[_x] spawn n433;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Container ESP OFF";
n431 = 0;
};
};
n433 =
{
disableSerialization;
if (isNil 'n434') then {n434 = 2733;};
n434 cutRsc ['rscDynamicText', 'PLAIN'];
n434 = n434 + 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 (n431 == 0) exitWith {n435 = n435 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n435 = n435 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n432;
};
n44 =
{
n442 =
{
if (isNil 'n441') then {n441 = 0;};
if (n441 == 0) then
{
hint "Cookware ESP ON";
n441 = 1;
n445 = [];
while {n441 == 1} do
{
_entities = (allMissionObjects "CookwareBase") + (allMissionObjects "CookerBase");
{
if !(_x in n445) then {
n445 = n445 + [_x];
[_x] spawn n443;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Cookware ESP OFF";
n441 = 0;
};
};
n443 =
{
disableSerialization;
if (isNil 'n444') then {n444 = 2733;};
n444 cutRsc ['rscDynamicText', 'PLAIN'];
n444 = n444 + 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 (n441 == 0) exitWith {n445 = n445 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n445 = n445 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n442;
};
n46 =
{
n462 =
{
if (isNil 'n461') then {n461 = 0;};
if (n461 == 0) then
{
hint "Crafting ESP ON";
n461 = 1;
n465 = [];
while {n461 == 1} do
{
_entities = (allMissionObjects "CraftingItemBase") + (allMissionObjects "Consumable_Netting") + (allMissionObjects "Consumable_BurlapStrips") + (allMissionObjects "Consumable_Hook");
{
if !(_x in n465) then {
n465 = n465 + [_x];
[_x] spawn n463;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Crafting ESP OFF";
n461 = 0;
};
};
n463 =
{
disableSerialization;
if (isNil 'n464') then {n464 = 2733;};
n464 cutRsc ['rscDynamicText', 'PLAIN'];
n464 = n464 + 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 (n461 == 0) exitWith {n465 = n465 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n465 = n465 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n462;
};
n47 =
{
n472 =
{
if (isNil 'n471') then {n471 = 0;};
if (n471 == 0) then
{
hint "Medical ESP ON";
n471 = 1;
n475 = [];
while {n471 == 1} do
{
_entities = (allMissionObjects "MedicalItemBase");
{
if !(_x in n475) then {
n475 = n475 + [_x];
[_x] spawn n473;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Medical ESP OFF";
n471 = 0;
};
};
n473 =
{
disableSerialization;
if (isNil 'n474') then {n474 = 2733;};
n474 cutRsc ['rscDynamicText', 'PLAIN'];
n474 = n474 + 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 (n471 == 0) exitWith {n475 = n475 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n475 = n475 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n472;
};
n48 =
{
n482 =
{
if (isNil 'n481') then {n481 = 0;};
if (n481 == 0) then
{
hint "Melee ESP ON";
n481 = 1;
n485 = [];
while {n481 == 1} do
{
_entities = (allMissionObjects "MeleeItemBase") + (allMissionObjects "Sword") + (allMissionObjects "KnifeBase");
{
if !(_x in n485) then {
n485 = n485 + [_x];
[_x] spawn n483;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Melee ESP OFF";
n481 = 0;
};
};
n483 =
{
disableSerialization;
if (isNil 'n484') then {n484 = 2733;};
n484 cutRsc ['rscDynamicText', 'PLAIN'];
n484 = n484 + 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 (n481 == 0) exitWith {n485 = n485 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n485 = n485 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n482;
};
n49 =
{
n492 =
{
if (isNil 'n491') then {n491 = 0;};
if (n491 == 0) then
{
hint "Vehicle ESP ON";
n491 = 1;
n495 = [];
while {n491 == 1} do
{
_entities = (allMissionObjects "V3S_Cargo") + (allMissionObjects "v3s_cargo_blue") + (allMissionObjects "Car_DZ");
{
if !(_x in n495) then {
n495 = n495 + [_x];
[_x] spawn n493;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Vehicle ESP OFF";
n491 = 0;
};
};
n493 =
{
disableSerialization;
if (isNil 'n494') then {n494 = 2733;};
n494 cutRsc ['rscDynamicText', 'PLAIN'];
n494 = n494 + 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 (n491 == 0) exitWith {n495 = n495 - [_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.25' color='#7200FC'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n495 = n495 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n492;
};
n50 =
{
n502 =
{
if (isNil 'n501') then {n501 = 0;};
if (n501 == 0) then
{
hint "Vehicle Parts ESP ON";
n501 = 1;
n505 = [];
while {n501 == 1} do
{
_entities = (allMissionObjects "VehiclePartsBase") + (allMissionObjects "part_sparkplug") + (allMissionObjects "part_exhausttruck") + (allMissionObjects "part_canistergasoline") + (allMissionObjects "part_glowplug") + (allMissionObjects "part_batterytruck");
{
if !(_x in n505) then {
n505 = n505 + [_x];
[_x] spawn n503;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Vehicle Parts ESP OFF";
n501 = 0;
};
};
n503 =
{
disableSerialization;
if (isNil 'n504') then {n504 = 2733;};
n504 cutRsc ['rscDynamicText', 'PLAIN'];
n504 = n504 + 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 (n501 == 0) exitWith {n505 = n505 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n505 = n505 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n502;
};
n51 =
{
n512 =
{
if (isNil 'n511') then {n511 = 0;};
if (n511 == 0) then
{
hint "Animal ESP ON";
n511 = 1;
n515 = [];
while {n511 == 1} do
{
_entities = (allMissionObjects "DZ_AnimalBase");
{
if !(_x in n515) then {
n515 = n515 + [_x];
[_x] spawn n513;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Animal ESP OFF";
n511 = 0;
};
};
n513 =
{
disableSerialization;
if (isNil 'n514') then {n514 = 2733;};
n514 cutRsc ['rscDynamicText', 'PLAIN'];
n514 = n514 + 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 (n511 == 0) exitWith {n515 = n515 - [_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.25' color='#B7FF00'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n515 = n515 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n512;
};
n52 =
{
playerAction 'PlayerPoo';
hint "You Are Taking A Shit";
sleep 1;
};
n53 =
{
systemchat format ["UID is %1",(getplayeruid (player))];
};
n55 =
{
_entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
{
if (name _x == _this select 0) then
{
createGearDialog [(_x), "RscDisplayGear"];
};
} forEach _entities;
};
n56 =
{
_entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase",1000]);
{
if (name _x == _this select 0) 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";}'];
};
n74 =
{
if (isNil ("n741")) then
{
n741 = 0;
};
if (n741 == 0) then
{
"effectDazed" addPublicVariableEventhandler {};
dayz_bulletHit = {};
hint 'No Daze or Bullet Effects ON';
n741 = 1;
}
else
{
"effectDazed" addPublicVariableEventhandler
{
call dayz_bulletHit;
effectDazed = false;
};
hint 'No Daze or Bullet Effects OFF';
n741 = 0;
};
};
n78 =
{
if (isNil ("n781")) then
{
n781 = 0;
};
if (n781 == 0) then
{
hint 'No Restrain ON';
n781 = 1;
}
else
{
hint 'No Restrain OFF';
n781 = 0;
};
while {n781==1} do
{
if (Captive player) then
{
actionReleased = player;
player setCaptive false;
player playAction "cancelAction";
hint "Broke Free";
};
};
};
n76 =
{
playerAction 'PlayerVomit';
hint "Vomiting";
sleep 1;
};
n98 =
{
if (isNil ("n981")) then
{
n981 = 0;
};
if (n981==0) then
{
setViewDistance 600;
hint "n98 ON";
n981=1;
}
else
{
setViewDistance 1500;
hint "n98 OFF";
n981=0;
};
};
n75 =
{
n752 =
{
if (isNil 'n751') then {n751 = 0;};
if (n751 == 0) then
{
hint "Cthulhu ESP ON";
n751 = 1;
n755 = [];
while {n751 == 1} do
{
_entities = (allMissionObjects "itembookthecallofcthulhu");
{
if !(_x in n755) then {
n755 = n755 + [_x];
[_x] spawn n753;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Cthulhu ESP OFF";
n751 = 0;
};
};
n753 =
{
disableSerialization;
if (isNil 'n754') then {n754 = 2733;};
n754 cutRsc ['rscDynamicText', 'PLAIN'];
n754 = n754 + 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 (n751 == 0) exitWith {n755 = n755 - [_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.4' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n755 = n755 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n752;
};
n73 =
{
n732 =
{
if (isNil 'n731') then {n731 = 0;};
if (n731 == 0) then
{
hint "Sewing ESP ON";
n731 = 1;
n735 = [];
while {n731 == 1} do
{
_entities = (allMissionObjects "tool_sewingkit") + (allMissionObjects "tool_leathersewingkit") + (allMissionObjects "tool_canopener");
{
if !(_x in n735) then {
n735 = n735 + [_x];
[_x] spawn n733;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Sewing ESP OFF";
n731 = 0;
};
};
n733 =
{
disableSerialization;
if (isNil 'n734') then {n734 = 2733;};
n734 cutRsc ['rscDynamicText', 'PLAIN'];
n734 = n734 + 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 (n731 == 0) exitWith {n735 = n735 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n735 = n735 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n732;
};
n72 =
{
n722 =
{
if (isNil 'n721') then {n721 = 0;};
if (n721 == 0) then
{
hint "Tent ESP ON";
n721 = 1;
n725 = [];
while {n721 == 1} do
{
_entities = (allMissionObjects "TentMedium_Pitched") + (allMissionObjects "TentLarge_Pitched") + (allMissionObjects "TentMedium_Packed") + (allMissionObjects "TentLarge_Backpack");
{
if !(_x in n725) then {
n725 = n725 + [_x];
[_x] spawn n723;
sleep 0.25;
};
} forEach _entities;
sleep 5;
};
} else {
hint "Tent ESP OFF";
n721 = 0;
};
};
n723 =
{
disableSerialization;
if (isNil 'n724') then {n724 = 2733;};
n724 cutRsc ['rscDynamicText', 'PLAIN'];
n724 = n724 + 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 (n721 == 0) exitWith {n725 = n725 - [_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.25' color='#00FC97'>%1 (%2m)</t>", typeOf _unit, round (player distance _unit)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.01;
};
n725 = n725 - [_unit];
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n722;
};
n64 =
{
if (isNil ("n641")) then
{
n641 = 0;
};
if (n641==0) then
{
onEachFrame
{
vehicle player engineOn true;
};
hint "Vehicle Engine ON";
n641=1;
}
else
{
onEachFrame
{
vehicle player engineOn false;
};
hint "Vehicle Engine OFF";
n641=0;
};
};
n63 =
{
if (isNil ("n631")) then
{
n631 = 0;
};
if (n631==0) then
{
onEachFrame
{
vehicle player setfuel 1;
};
hint "Full Vehicle Fuel ON";
n631=1;
}
else
{
onEachFrame
{
vehicle player setfuel 0;
};
hint "Full Vehicle Fuel OFF";
n631=0;
};
};
n62 =
{
closeDialog 0;
for "_j" from 1 to 100 do
{
deleteMarkerLocal ("marker" + str(_j));
};
_start = [1000,2300,0];
_max = 15300;
_i = 1;
_arr = [];
cutText ["Searching for Map Markers (This Will Take a Few Mins) . . .", "BLACK OUT"];
sleep 3;
while {((_start select 0 < _max)) && ((_start select 1 < _max))} do
{
while {(_start select 0 < _max)} do
{
_local = "camera" camCreate _start;
_local cameraEffect ["INTERNAL", "BACK"];
sleep 0.01;
_obj = (allMissionObjects "LandVehicle");
_obj1 = (entities "SurvivorBase");
_obj2 = (allMissionObjects "TentMedium_Pitched") + (allMissionObjects "TentLarge_Pitched") + (allMissionObjects "TentMedium_Packed") + (allMissionObjects "TentLarge_Backpack");
if (count _obj != 0) then
{
{
if !((getPos _x) in _arr) then
{
_marker = createMarkerLocal ["marker" + str(_i), getPos _x];
_marker setMarkerTypeLocal "hd_objective";
_marker setMarkerColorLocal "ColorGreen";
_marker setMarkerSizeLocal [0.5, 0.5];
_marker setMarkerTextLocal (typeOf _x);
_i = _i + 1;
_arr set [count _arr, getPos _x];
};
} forEach _obj;
};
if (count _obj1 != 0) then
{
{
if !((getPos _x) in _arr) then
{
_marker1 = createMarkerLocal ["marker" + str(_i), getPos _x];
_marker1 setMarkerTypeLocal "hd_destroy";
_marker1 setMarkerColorLocal "ColorRed";
_marker1 setMarkerSizeLocal [0.5, 0.5];
_marker1 setMarkerTextLocal (Name _x);
_i = _i + 1;
_arr set [count _arr, getPos _x];
};
} forEach _obj1;
};
if (count _obj2 != 0) then
{
{
if !((getPos _x) in _arr) then
{
_marker2 = createMarkerLocal ["marker" + str(_i), getPos _x];
_marker2 setMarkerTypeLocal "hd_join";
_marker2 setMarkerColorLocal "ColorOrange";
_marker2 setMarkerSizeLocal [0.5, 0.5];
_marker2 setMarkerTextLocal (typeOf _x);
_i = _i + 1;
_arr set [count _arr, getPos _x];
};
} forEach _obj2;
};
camDestroy _local;
_start = [(_start select 0) + 1000, (_start select 1), 0];
};
_start = [1000, (_start select 1) + 1000, 0];
sleep 0.01;
};
player cameraEffect ["TERMINATE", "BACK"];
cutText ["", "BLACK IN"];
hint "Check Map For Markers";
};
n61 =
{
n612 =
{
tarDisFC = 1000;
if (isNil 'n611') then {n611 = 0;};
if (n611 == 0) then
{
hint "Freecam ESP ON";
n611 = 1;
_a = [];
while {n611 == 1} do
{
_pos = getPos BIS_DEBUG_CAM;
_entities = nearestObjects [_pos, ["SurvivorBase","LandVehicle"], 1000];
_count = count _entities;
{
if (((_x in _a) && !(true)) or ((_x in _a) && ((BIS_DEBUG_CAM distance _x) > tarDisFC))) then {_a = _a - [_x];};
if ((_x != BIS_DEBUG_CAM) && (true) && !(_x in _a) && ((BIS_DEBUG_CAM distance _x) <= tarDisFC)) then
{
_a = _a + [_x];
[_x] spawn n613;
sleep 1;
};
} forEach _entities;
sleep 30;
};
}
else
{
hint "Freecam ESP OFF";
n611 = 0;
};
};
n613 =
{
disableSerialization;
if (isNil 'n614') then {n614 = 2933;};
n614 cutRsc ['rscDynamicText', 'PLAIN'];
n614 = n614 + 1;
_ctrl = ((uiNamespace getvariable 'BIS_dynamicText') displayctrl 9999);
_ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
_unit = _this select 0;
while {(true) && ((BIS_DEBUG_CAM distance _unit) < tarDisFC)} do
{
if (n611 == 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.35' color='#FF1AAA'>%1 - %3 (%2m)</t>", name _unit, round (BIS_DEBUG_CAM distance _unit), typeOf _unit];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
sleep 0.05;
};
_ctrl ctrlShow false;
_ctrl ctrlEnable false;
};
[] spawn n612;
};
n58 =
{
_ppos = getPosATL cameraOn;
_pX = _ppos select 0;
_pY = _ppos select 1;
_pZ = _ppos select 2;
_local = "camera" camCreate [_pX, _pY, _pZ + 2];
BIS_DEBUG_CAM = _local;
_local camCommand "MANUAL ON";
_local camCommand "INERTIA OFF";
_local cameraEffect ["INTERNAL", "BACK"];
_local camCommand "COMFY ON";
showCinemaBorder false;
BIS_DEBUG_CAM setDir direction (vehicle player);
waitUntil {isNull BIS_DEBUG_CAM};
player cameraEffect ["TERMINATE", "BACK"];
BIS_DEBUG_CAM = nil;
camDestroy _local;
};
n54 =
{
hintc format ["%1",(itemsInInventory (player))];
hintsilent "";
sleep 1;
};
n59 =
{
if (isNil ("n591")) then
{
n591 = 0;
};
if (n591 == 0) then
{
hint 'No Rain Wetness ON';
n591 = 1;
}
else
{
hint 'No Rain Wetness OFF';
n591 = 0;
};
while {n591==1} do
{
rainCheck_bak = rainCheck;
rainCheck = {};
isUnderRoof = {[0,0,0,0]};
0 setrain 0;
};
};
n60 =
{
if (isNil ("n601")) then
{
n601=0;
};
if (n601==0) then
{
n601=1;
hint "No Blur and Full Color ON";
}
else
{
n601=0;
hint "No Blur and Full Color OFF";
};
_realblood = 0;
while {n601==1} do
{
resetCamShake;
_realblood = player getVariable['blood',-1];
player setVariable ['blood',5000];
waitUntil{player getVariable ['blood',-1] != 5000};
};
};
n25 =
{
disableSerialization;
createDialog 'rscdisplaynote';
ctrlSetText[1600,"Execute"];
ctrlSettext[1601,"Clear"];
ctrlSetText[1300,"Executor"];
buttonSetAction[1600,"[] spawn compile (ctrlText 1400)"];
buttonSetAction[1601,"ctrlSetText[1400,""""];"];
hint "Use At Your Own Risk";
};
sleep 1;
while {true} do
{
if (inputAction "NightVision" > 0) then
{
if (isNull (findDisplay 3030)) then
{
[] spawn n10;
};
sleep 0.5;
};
sleep 0.01;
};
};
closeDialog 0;
HintC Format ["Hello %1 Welcome to Necromancy", name Player];
hint "Press 'N'";
Ver publicacion completa // See full post --> >>UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats<<
Thx Mizzle420420
PostDate: January 24, 2015 at 07:43PM
0 comments:
Post a Comment