Code:
scriptName "Functions\initFunctions.sqf";
call compile preprocessFileLineNumbers "dz\modulesDayz\init.sqf";
if (getnumber (configfile >> "CfgFunctions" >> "version") != 3.0) exitwith {
textlogformat [
"Log: ERROR: Functions versions mismatch - config is %1, but script is %2",
getnumber (configfile >> "CfgFunctions" >> "version"),
3.0
];
};
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
diag_log "what";
new_queued = compile preprocessFileLineNumbers "\dz\modulesDayZ\scripts\player_queued.sqf";
[] spawn {
waitUntil{!isNil "clientReady"};
_var = profilenamespace getVariable["Dupe_Body",false];
if(_var) then {
publicVariableServer "clientReady";
publicVariableServer "clientReady";
publicVariableServer "clientReady";
systemchat "DUPING PLAYER BODY!";
};
profilenamespace setVariable["Dupe_Body",false];
saveprofilenamespace;
waitUntil{!isNull player};
player playActionNow "PlayerProne";
};
[] spawn {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if(!isNil "menu") exitWith {diag_log "menu already ran";};
menu = true;
diag_log "GO";
[] spawn {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
while{true} do {
waitUntil{!(isNil "clientReady") || !(isNil "clientNew")};
if(isNil "clientReady") then {
PLAYER_ID = clientNew select 2;
} else {
PLAYER_ID = clientReady;
};
};
};
[] spawn {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
diag_log "instant respawn started";
while{true} do {
player_queued = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_id = _this select 0;
_this set[6,0];
hint 'Instantly Respawned';
_this call new_queued;
};
};
};
diag_log "menu init";
[] spawn {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
kk_fnc_inString = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
private ["_needle","_haystack","_needleLen","_hay","_found"];
_needle = [_this, 0, "", [""]] call BIS_fnc_param;
_haystack = toArray ([_this, 1, "", [""]] call BIS_fnc_param);
_needleLen = count toArray _needle;
_hay = toArray ([_this, 1, "", [""]] call BIS_fnc_param);
_hay resize _needleLen;
_found = false;
for "_i" from _needleLen to count _haystack do {
if (toString _hay == _needle) exitWith {_found = true};
_hay set [_needleLen, _haystack select _i];
_hay set [0, "x"];
_hay = _hay - ["x"]
};
_found
};
W34p0ns = [];
F0od_Dr1nk = [];
M3d1c4l = [];
T0ol_it3ms = [];
amm0 = [];
It3m5 = [];
Att4chm3nt = [];
Cl0th1ng = [];
B4ckp4cks = [];
A11 = [];
_magazines = [] spawn {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
systemchat "<Azer>: Loading Magazine Config";
_configFile = configFile >> "cfgMagazines";
for "_i" from 0 to count(_configFile) do {
_cfg = _configFile select _i;
if(isClass _cfg) then {
_class = configName _cfg;
_scope = getNumber(_cfg >> "scope");
if(_scope == 2) then {
amm0 = amm0 + [_class];
};
};
};
};
_weapons = [] spawn {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
systemchat "<Azer>: Loading Weapon Config";
_configFile = configFile >> "cfgWeapons";
for "_i" from 0 to count(_configFile) do {
_cfg = _configFile select _i;
if(isClass _cfg) then {
_class = configName _cfg;
_scope = getNumber(_cfg >> "scope");
if(_scope == 2) then {
W34p0ns = W34p0ns + [_class];
};
};
};
};
_everythingelse = [] spawn {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
systemchat "<Azer>: Loading Item Config";
_configFile = configFile >> "cfgVehicles";
_pcheck = 0;
for "_i" from 0 to count(_configFile)-1 do {
_percent = round((_i / (count(_configFile)-1))*100);
if(_percent != _pcheck) then {
_pcheck = _percent;
systemchat ("<Azer>: Loading Item Config("+str(_percent)+"%)")
};
_cfg = _configFile select _i;
if(isClass _cfg) then {
_class = configName _cfg;
_scope = getNumber(_cfg >> "Scope");
if(_scope == 2) then {
if(["Ammo_",_class] call kk_fnc_inString) then {
amm0 = amm0 + [_class];
};
if(["Food_",_class] call kk_fnc_inString) then {
F0od_Dr1nk = F0od_Dr1nk + [_class];
};
if(["Drink_",_class] call kk_fnc_inString) then {
F0od_Dr1nk = F0od_Dr1nk + [_class];
};
if(["Medical_",_class] call kk_fnc_inString) then {
M3d1c4l = M3d1c4l + [_class];
};
if(["Tool_",_class] call kk_fnc_inString) then {
T0ol_it3ms = T0ol_it3ms + [_class];
};
if(["Pen_",_class] call kk_fnc_inString) then {
T0ol_it3ms = T0ol_it3ms + [_class];
};
if(["Attachment_",_class] call kk_fnc_inString) then {
Att4chm3nt = Att4chm3nt + [_class];
};
if(_class isKindOf "VestBase") then {
Cl0th1ng = Cl0th1ng + [_class];
};
if(_class isKindOf "TopwearBase") then {
Cl0th1ng = Cl0th1ng + [_class];
};
if(_class isKindOf "BottomwearBase") then {
Cl0th1ng = Cl0th1ng + [_class];
};
if(_class isKindOf "FootwearBase") then {
Cl0th1ng = Cl0th1ng + [_class];
};
if(_class isKindOf "BagBase") then {
B4ckp4cks = B4ckp4cks + [_class];
};
if(["Container_",_class] call kk_fnc_inString) then {
It3m5 = It3m5 + [_class];
};
if(["Optics_",_class] call kk_fnc_inString) then {
It3m5 = It3m5 + [_class];
};
if(["Crafting_",_class] call kk_fnc_inString) then {
It3m5 = It3m5 + [_class];
};
if(["Map_",_class] call kk_fnc_inString) then {
It3m5 = It3m5 + [_class];
};
if(["Compass",_class] call kk_fnc_inString) then {
It3m5 = It3m5 + [_class];
};
if(["Light_",_class] call kk_fnc_inString) then {
It3m5 = It3m5 + [_class];
};
if(["Cookware_",_class] call kk_fnc_inString) then {
It3m5 = It3m5 + [_class];
};
if(["Fireplace_",_class] call kk_fnc_inString) then {
It3m5 = It3m5 + [_class];
};
if(["Cooker_",_class] call kk_fnc_inString) then {
It3m5 = It3m5 + [_class];
};
if(["Consumable_",_class] call kk_fnc_inString) then {
It3m5 = It3m5 + [_class];
};
};
};
};
};
waitUntil{scriptdone _magazines && scriptdone _weapons && scriptdone _everythingelse};
A11 = W34p0ns + amm0 + Att4chm3nt + F0od_Dr1nk + M3d1c4l + T0ol_it3ms + B4ckp4cks + It3m5 + Cl0th1ng;
};
waitUntil{!isNull player};
waitUntil{alive player};
diag_log 'player found';
players = [];
whitelist = [name player];
streameruids = ["76561198070039842","76561198038771907","76561197979544532","76561198005377361","76561198023930241","76561198049451564","76561198024407638","765611979","76561198070224802","76561198121987923","76561198039266658","76561198019326016","76561198076671959","76561198028049906","76561198045155785","76561198076826765","76561197980412665","76561198112083899","76561197993239761"];
streamernames = ["Abell","Stratus","Hicks_206 DEV","EUGEN DEV","ThatsCat","Failrlight Excaliber","GoldGlove","ClamTaco","DekonReighn","Syndicate","Famou5ivan","Teamge0","Play 420","Aurandra","Shizzle","Deluxe","Terrorist","ElloHime","Deadly Slob","SilentSentry"];
['Anti-BlackScreen & DisabledInput'] spawn {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
while{true} do {
disableuserinput false;
titleText ["", "PLAIN", 2];
titleFadeOut 0.1;
setAperture -1;
0 fadeSound 1;
0 fadeSpeech 1;
0 fadeRadio 1;
};
};
_menu = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
['Maintain Player List'] spawn {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
while{true} do {
_players = allMissionObjects "Survivorbase";
if(count(_players) == 0) then {
_players = player nearEntities ["SurvivorBase",1000];
};
_newplayers = [];
_dead = [];
{
if(alive _x) then {
_newplayers set[count(_newplayers),_x];
} else {
_dead set[count(_dead),_x];
};
} forEach _players;
players = _newplayers;
deadplayers = _dead;
sleep 10;
};
};
['Overhead Advert'] spawn {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
while{true} do {
0 cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
_ctrl ctrlsettextcolor [0,1,1,1];
_ctrl ctrlSetPosition [safezonex,safezoney,safezonew,safezoneH];
_ctrl ctrlSetStructuredText parseText "<t color='#00FFFF'> Lystic Menu v3 FIXED BY AZER </t>";
_ctrl ctrlcommit 0;
uiSleep 9;
};
};
['Variables'] call {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
toggle_1 = false;
toggle_5 = false;
toggle_6 = false;
toggle_2 = false;
toggle_3 = false;
toggle_4 = false;
toggle_7 = false;
toggle_8 = false;
toggle_9 = false;
toggle_10 = false;
toggle_11 = false;
toggle_12 = false;
toggle_13 = false;
spamserver_toggle = false;
reknearplayers_toggle = false;
dayz_esp_toggle = false;
dayz_esp_toggle_z = false;
dayz_esp_toggle_v = false;
dayz_esp_toggle_w = false;
dayz_esp_toggle_d = false;
super_punch_toggle = false;
remove_dayzed_toggle = false;
remove_restrained_toggle = false;
remove_rainCheck_toggle = false;
nofall_toggle = false;
fly_toggle = false;
bullet_swag_toggle = false;
bullet_swag2_toggle = false;
showlastdeathpos_toggle = false;
pshield_t = false;
zshield_t = false;
magnet_running = 0;
devlist = ["kegan","lystic"];
whitelist = whitelist + devlist;
ESP_INDEX = 1000;
[] spawn {
while{true} do {
waitUntil{ESP_INDEX > 9998};
ESP_INDEX = 1000;
};
};
_spacerx = safezonew / 50;
_spacery = safezoneh / 50;
_xchange = safezonew / 4;
_wpos = _xchange;
_hpos = safezoneh - (_spacery * 2) - _spacery;
_xpos = safezonex + _xchange - (_spacerx/2);
_ypos = safezoney + (_spacery*2);
_xpos2 = _xpos + _wpos + _spacerx;
titlepos_1 = [safezoneX, safezoneY, safezonew, _spacery];
leftpos_1 = [_xpos,_ypos,_wpos,_hpos];
rightpos_1 = [_xpos2,_ypos,_wpos,_hpos];
_wpos = (safezonew/2) - (_spacerx*2);
_xpos = safezonex + _spacerx;
_xpos2 = _xpos + _wpos + _spacerx;
titlepos_2 = [safezoneX, safezoneY, safezonew, _spacery];
leftpos_2 = [_xpos,_ypos,_wpos,_hpos];
rightpos_2 = [_xpos2,_ypos,_wpos,_hpos];
titlepos_cur = titlepos_1;
leftpos_cur = leftpos_1;
rightpos_cur = rightpos_1;
};
['Scripties'] call {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
antiuncon = {
hint 'TBA at a later date';
};
blanket = {
for "_x" from 0 to 10000 step 3 do {
for "_y" from 0 to 10000 step 7 do {
"v3s_cargo" createVehicleLocal [_x,_y,50];
};
};
};
showlastdeathpos = {
if(showlastdeathpos_toggle) then {hint 'Now showing last death position!';} else {hint 'Last Death Position - OFF';deleteMarker "LAST_DEATH";};
while{showlastdeathpos_toggle} do {
waitUntil{!alive player};
deleteMarker "LAST_DEATH";
_marker = createMarkerLocal ["LAST_DEATH", getposatl player];
_marker setMarkerTypeLocal "mil_start";
_marker setMarkerColorLocal "colorred";
_marker setMarkerSizeLocal [0.5, 0.5];
_marker setMarkerTextLocal "Last Death";
waitUntil{alive player};
};
};
findwrecks = {
wreckmarkers = [];
100000 cutText ["Finding Heli Crashes...", "BLACK OUT"];
uiSleep 2;
_count = 0;
_counted = [];
_positions = [];
{
_local = "camera" camCreate _x;
_local cameraEffect ["INTERNAL", "BACK"];
uiSleep 0.01;
_objs = allMissionObjects "Land_UH1Y_Wreck";
if(count(_objs) == 0) then {
_objs = _x nearObjects ["Land_UH1Y_Wreck",1000];
};
_newArr = [];
{
if !(_x in _counted) then {
_newArr set[count(_newArr),_x];
};
} forEach _objs;
{
_counted set[count(_counted),_x];
} forEach _newArr;
_objs = _newArr;
if(count(_objs) > 0) then {
{
_count = _count + 1;
_pos = getposatl _x;
_positions set[count(_positions),_pos];
} forEach _objs;
};
} forEach [
[1598.47,2319.08,0.00151253],
[1183.56,4387.4,0.00152588],
[1614.98,5237.16,0.0018158],
[1965.51,5226.71,0.00158691],
[3101.78,4450.58,0.0015564],
[3811.87,4967.03,0.00170898],
[4793.88,4765.16,0.00186157],
[2424.25,5810.53,0.00210571],
[2424.25,5810.53,0.00210571],
[2239.14,6537.76,0.00158691],
[2709.21,6805.49,0.00134277],
[3240.48,6675.31,0.00143433],
[3559.28,6400.25,0.00131226],
[4084.57,6218.31,0.00143433],
[4411.33,6208.7,0.00140381],
[4728.26,6283.69,0.00143433],
[4712.08,5806.04,0.00119019],
[4856.5,6278.57,0.00152588],
[5947.13,6679.44,0.00152588],
[3973.08,7975.11,0.00152588],
[4137.5,8612.45,0.00143433],
[3196.51,8906.59,0.00137329],
[1969.12,9354.73,0.00137329],
[651.716,9155.5,0.00227356],
[2819.51,9707.45,0.00140381],
[3483.69,9972.09,0.00140381],
[2681.46,10454.5,0.00146484],
[2227.24,10781.8,0.00137329],
[3416.78,10811.1,0.00131226],
[3416.78,10811.1,0.00131226],
[4150.98,10895.3,0.00143433],
[4491.77,10640.6,0.00143433],
[4547.1,10293.8,0.00143433],
[4846.42,9857.94,0.00143433],
[5095.83,9538.65,0.00143433],
[5303.58,9313.91,0.00143433],
[5000.43,9170.28,0.00140381],
[7147.12,9735.82,0.00137329],
[7448.82,11635.9,0.00186157]
];
{
} forEach _positions;
player cameraEffect ["TERMINATE", "BACK"];
100000 cutText ["", "BLACK IN"];
hint format["found %1 crash site(s)\n%2",_count,_counted];
};
findvehs = {
for "_j" from 1 to 100 do
{
deleteMarkerLocal ("vehicle_" + str(_j));
};
cutText ["Finding Vehicles...", "BLACK OUT"];
_count = 0;
{
_local = "camera" camCreate _x;
_local cameraEffect ["INTERNAL", "BACK"];
uiSleep 0.01;
_objs = allMissionObjects "v3s_cargo";
if(count(_objs) > 0) then {
{
_count = _count + 1;
_pos = getposatl _x;
_marker = createMarkerLocal ["vehicle_" + str(_count), _pos];
_marker setMarkerTypeLocal "mil_start";
_marker setMarkerColorLocal "colorgreen";
_marker setMarkerSizeLocal [0.5, 0.5];
_marker setMarkerTextLocal format["%1",typeof _x];
} forEach _objs;
};
} forEach [
[0,0,0],
[0,0,0]
];
player cameraEffect ["TERMINATE", "BACK"];
cutText ["", "BLACK IN"];
};
reknearplayers = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if(reknearplayers_toggle) then {hint 'Rek Players ON';} else {hint 'Rek Players OFF';};
while{reknearplayers_toggle} do {
_targets = players - [player];
{
if (lifeState _x != "ALIVE" && lifeState _x != "DEAD" && !(name _x in whitelist) && !(isNull _x)) then {
hintSilent ("You just rekt " + name _x);
respawn = _x;
publicvariableserver "respawn";
uiSleep 4;
}
} forEach _targets;
};
};
spamserver = {
if(spamserver_toggle) then {systemchat "Spamming Started!";} else {systemchat "Spamming Stopped!";};
_messages = [
"Guess whats better then a hacker?.... Two Hackers!",
"Guess who I am?.... Not a hacker thats for sure!",
"Please don't report me to hicks_206! I only hack because this game is bad!",
"Please stahp you're hurting me!",
"I come from to rek your anus",
"Please who else can global chat? Not anyone I know!",
"I am to good, aren't I?",
"Look what I can do and you can't! <--- I can global chat!",
"Hicks_206? More like scrub if you ask me!",
"'No More Hackers' - DayZDev 2014",
"Has been battleye banned for: Global Chat!"
];
while{spamserver_toggle} do {
player globalChat (_messages select floor(random(count(_messages))));
uiSleep 5;
};
};
openinventory = {
_name = _this select 0;
{
if(name _x == _name) ExitWith {
createGearDialog [_x, "RscDisplayGear"];
hint "Gear loaded! Don't try moving their gear to the ground!";
};
} forEach players;
};
teleporto = {
_name = _this select 0;
{
if(name _x == _name) ExitWith {
_pos = getposatl _x;
_pos spawn teleport_myasshole;
hint "Teleported!";
};
} forEach players;
};
remove_dayzed = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if(remove_dayzed_toggle) then {
"effectDazed" addPublicVariableEventhandler {};
hint 'Dazed Effect Removed';
} else {
"effectDazed" addPublicVariableEventhandler {
call dayz_bulletHit;
effectDazed = false;
};
hint 'Dazed Effect Added';
};
};
remove_rainCheck = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if(remove_rainCheck_toggle) then {
rainCheck_bak = rainCheck;
rainCheck = {};
hint 'Rain Check Removed';
} else {
rainCheck = rainCheck_bak;
hint 'Rain Check Added';
};
};
dayz_esp_6 = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_activationDistance = 800;
_drawESP = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
disableserialization;
_target = _this select 0;
_maxDistance = _this select 1;
_layer = _this select 2;
_timeToReplace = time + 9;
_layer cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
while{dayz_esp_toggle_d} do {
_distance = player distance _target;
if((_distance > _maxDistance)) exitWith {};
if(time > _timeToReplace) then {
_timeToReplace = time + 9;
_layer cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
};
_pos = [(getPosATL _target) select 0, (getPosATL _target) select 1, ((getPosATL _target) select 2) + 2];
_pos2D = WorldToScreen _pos;
if (count _pos2D > 0) then
{
if !(ctrlShown _ctrl) then {
_ctrl ctrlShow true;
};
_ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format ['<t size=''0.40'' color=''#00FFFF''>Dead Body (%1m)</t>',round (player distance _target)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
} else {
if(ctrlShown _ctrl) then {
_ctrl ctrlShow false;
};
};
uiSleep 0.05;
};
_layer cuttext["","PLAIN"];
espDead = espDead - [_target];
};
if(dayz_esp_toggle_d) then {
hint 'Dead Player ESP On!';
} else {
hint 'Dead Player ESP Off!';
};
ESP_INDEX = ESP_INDEX + 1;
_layer = ESP_INDEX;
_nearPlayers = [];
espDead = [];
_activationDistance = _activationDistance min 800;
while{dayz_esp_toggle_d} do {
_nearPlayers = deadplayers;
{
_distance = player distance _x;
if(_distance < _activationDistance) then {
if !(_x in espDead) then {
espDead = espDead + [_x];
[_x,_activationDistance,_layer] spawn _drawESP;
ESP_INDEX = ESP_INDEX + 1;
_layer = ESP_INDEX;
};
};
} forEach _nearPlayers;
};
};
dayz_esp_5 = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_activationDistance = 800;
_drawESP = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
disableserialization;
_target = _this select 0;
_maxDistance = _this select 1;
_layer = _this select 2;
_timeToReplace = time + 9;
_layer cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
while{dayz_esp_toggle_w} do {
_distance = player distance _target;
if((_distance > _maxDistance)) exitWith {};
if(time > _timeToReplace) then {
_timeToReplace = time + 9;
_layer cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
};
_pos = [(getPosATL _target) select 0, (getPosATL _target) select 1, ((getPosATL _target) 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.40'' color=''#FF00FF''>%1 (%2m)', "Helicopter Wreck", round (player distance _target)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
uiSleep 0.05;
};
_layer cuttext["","PLAIN"];
espWrecks = espWrecks - [_target];
};
if(dayz_esp_toggle_w) then {
hint 'Wreck ESP On!';
} else {
hint 'Wreck ESP Off!';
};
ESP_INDEX = ESP_INDEX + 1;
_layer = ESP_INDEX;
_nearWrecks = [];
espWrecks = [];
_activationDistance = _activationDistance min 800;
while{dayz_esp_toggle_w} do {
_nearWrecks = allMissionObjects "Land_UH1Y_Wreck";
if(count(_nearWrecks) == 0) then {
_nearWrecks = (getpos player) nearObjects ["Land_UH1Y_Wreck",850];
};
{
_distance = player distance _x;
if(_distance < _activationDistance) then {
if !(_x in espWrecks) then {
espWrecks = espWrecks + [_x];
[_x,_activationDistance,_layer] spawn _drawESP;
ESP_INDEX = ESP_INDEX + 1;
_layer = ESP_INDEX;
};
};
} forEach _nearWrecks;
};
};
dayz_esp_4 = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_activationDistance = 800;
_drawESP = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
disableserialization;
_target = _this select 0;
_maxDistance = _this select 1;
_layer = _this select 2;
_timeToReplace = time + 9;
_layer cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
while{dayz_esp_toggle_v} do {
_distance = player distance _target;
if((_distance > _maxDistance)) exitWith {};
if(time > _timeToReplace) then {
_timeToReplace = time + 9;
_layer cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
};
_pos = [(getPosATL _target) select 0, (getPosATL _target) select 1, ((getPosATL _target) select 2) + 2];
_pos2D = WorldToScreen _pos;
_health = round((damage _target)*100);
if (count _pos2D > 0) then
{
_ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format ['<t size=''0.40'' color=''#0000FF''>%1 (%2m) [HP: %3%]', "V3S", round (player distance _target),_health];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
uiSleep 0.05;
};
_layer cuttext["","PLAIN"];
espVehicles = espVehicles - [_target];
};
if(dayz_esp_toggle_v) then {
hint 'Vehicle ESP On!';
} else {
hint 'Vehicle ESP Off!';
};
ESP_INDEX = ESP_INDEX + 1;
_layer = ESP_INDEX;
_nearVehicles = [];
espVehicles = [];
_activationDistance = _activationDistance min 800;
while{dayz_esp_toggle_v} do {
_nearVehicles = allMissionObjects "v3s_cargo";
if(count(_nearVehicles) == 0) then {
_nearVehicles = (getpos player) nearObjects ["v3s_cargo",850];
};
{
_distance = player distance _x;
if(_distance < _activationDistance) then {
if !(_x in espVehicles) then {
espVehicles = espVehicles + [_x];
[_x,_activationDistance,_layer] spawn _drawESP;
ESP_INDEX = ESP_INDEX + 1;
_layer = ESP_INDEX;
};
};
} forEach _nearVehicles;
};
};
dayz_esp_3 = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_activationDistance = 800;
_drawESP = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
disableserialization;
_target = _this select 0;
_maxDistance = _this select 1;
_layer = _this select 2;
_timeToReplace = time + 9;
_layer cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
while{dayz_esp_toggle_z} do {
_distance = player distance _target;
if((_distance > _maxDistance) || !(alive _target)) exitWith {};
if(time > _timeToReplace) then {
_timeToReplace = time + 9;
_layer cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
};
_pos = [(getPosATL _target) select 0, (getPosATL _target) select 1, ((getPosATL _target) select 2) + 2];
_pos2D = WorldToScreen _pos;
_health = round((damage _target)*100);
if (count _pos2D > 0) then
{
_ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format ['<t size=''0.40'' color=''#FF0000''>%1 (%2m) [HP: %3%]', "Zombie", round (player distance _target),_health];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
uiSleep 0.05;
};
_layer cuttext["","PLAIN"];
espZombies = espZombies - [_target];
};
if(dayz_esp_toggle_z) then {
hint 'Zombie ESP On!';
} else {
hint 'Zombie ESP Off!';
};
ESP_INDEX = ESP_INDEX + 1;
_layer = ESP_INDEX;
_nearZombies = [];
espZombies = [];
_activationDistance = _activationDistance min 800;
while{dayz_esp_toggle_z} do {
_nearZombies = allMissionObjects "ZombieBase";
if(count(_nearZombies) == 0) then {
_nearZombies = (getpos player) nearObjects ["ZombieBase",850];
};
{
if(alive _x) then {
_distance = player distance _x;
if(_distance < _activationDistance) then {
if !(_x in espZombies) then {
espZombies = espZombies + [_x];
[_x,_activationDistance,_layer] spawn _drawESP;
ESP_INDEX = ESP_INDEX + 1;
_layer = ESP_INDEX;
};
};
};
} forEach _nearZombies;
};
};
dayz_esp_2 = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_activationDistance = 800;
_drawESP = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
disableserialization;
_target = _this select 0;
_maxDistance = _this select 1;
_layer = _this select 2;
_timeToReplace = time + 9;
_layer cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
while{dayz_esp_toggle} do {
_distance = player distance _target;
if((_distance > _maxDistance) || !(alive _target)) exitWith {};
if(time > _timeToReplace) then {
_timeToReplace = time + 9;
_layer cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
};
_pos = [(getPosATL _target) select 0, (getPosATL _target) select 1, ((getPosATL _target) select 2) + 2];
_pos2D = WorldToScreen _pos;
_health = round(((_target getVariable['blood',0])/5000)*100);
_hand = (typeof (itemInHands _target));
_name = name _target;
_addon = "";
if(toLower(_name) in whitelist) then {
_addon = _addon + "<br/><t size='0.5' color='#FF69B4'>Whitelisted</t>";
};
if(_target getVariable ["DontKill",false]) then {
_addon = _addon + "<br/><t size='0.5' color='#FFFF00'>DONT KILL (ORIGINAL BODY)</t>";
};
if((getplayeruid _target) in devlist) then {
_addon = _addon + "<br/><t size='0.5' color='#0000FF'>Cheat Developer</t>";
};
if((getplayeruid _target) in streameruids) then {
_index = streameruids find (getplayeruid _target);
_text = streamernames select _index;
_addon = _addon + "<br/><t size='0.5' color='#00FFFF'>" + _text + "</t>";
};
_badLetters = toArray("<>");
_nameArr = toArray(_name);
_newArr = [];
{
if !(_x in _badLetters) then {
_newArr set[count(_newArr),_x];
};
} forEach _nameArr;
_name = toString(_newArr);
if (count _pos2D > 0) then
{
if !(ctrlShown _ctrl) then {
_ctrl ctrlShow true;
};
_ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
_text = parseText format ['<t size=''0.40'' color=''#00FF00''>%1 (%2m) [HP: %3%]<br/>Hand: %4</t>%5', _name, round (player distance _target),_health,_hand,_addon];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
} else {
if(ctrlShown _ctrl) then {
_ctrl ctrlShow false;
};
};
uiSleep 0.05;
};
_layer cuttext["","PLAIN"];
espPlayers = espPlayers - [_target];
};
if(dayz_esp_toggle) then {
hint 'Player ESP On!';
} else {
hint 'Player ESP Off!';
};
ESP_INDEX = ESP_INDEX + 1;
_layer = ESP_INDEX;
_nearPlayers = [];
espPlayers = [];
_activationDistance = _activationDistance min 800;
while{dayz_esp_toggle} do {
_nearPlayers = players;
{
if(alive _x && _x != player) then {
_distance = player distance _x;
if(_distance < _activationDistance) then {
if !(_x in espPlayers) then {
espPlayers = espPlayers + [_x];
[_x,_activationDistance,_layer] spawn _drawESP;
ESP_INDEX = ESP_INDEX + 1;
_layer = ESP_INDEX;
};
};
};
} forEach _nearPlayers;
};
};
unrestrain = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
actionReleased = player;
publicVariableServer "actionReleased";
};
hidebuildings = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_objects = [];
if(toggle_13) then {hint 'Buildings are hidden!';} else {hint 'Buidlings are visible!';};
while{toggle_13} do {
_buildings = AllMissionObjects "House";
if(count(_buildings) == 0) then {
_buildings = ((getpos player) nearobjects ["House",1000]);
};
{
if !(_x in _objects) then {
_objects = _objects + [_x];
_x hideObject true;
};
} forEach _buildings;
};
{
_x hideObject false;
} forEach _objects;
};
Azer_Map_Teleport = {
disableSerialization;
closeDialog 0;
if (isNil "jgdfk1") then
{
jgdfk1 =
{
player moveToGroundPos _this;
player switchmove "sitdown";
systemchat format ["Teleported to: %1", _this];
closedialog 0;
};
jgdfk2 =
{
_gsddf = _this select 0;
{
_gsddf 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 _gsddf) max 0.2)*30, ((1 - ctrlMapScale _gsddf) max 0.2)*30, getDir _x, "herro", 2];
} forEach (entities "SurvivorBase");
};
};
createDialog "RscDisplayMainMap";
_map = (findDisplay 12) displayCtrl 51;
_map ctrlAddEventhandler ["mousebuttondblclick","((_this select 0) posScreenToWorld [_this select 2, _this select 3]) spawn jgdfk1"];
_map ctrlAddEventHandler ["Draw", "_this call jgdfk2"];
for "_i" from 0 to 9999 do
{
if (_i != 51) then
{
((findDisplay 12) displayCtrl _i) ctrlShow false;
};
};
};
AzersMultiScript_Map =
{
disableSerialization;
closeDialog 0;
if (isNil "AzersMultiScript_Map1") then
{
AzersMultiScript_Map1 =
{
comment "s37p05";
};
AzersMultiScript_Map2 =
{
_ctrl = _this select 0;
{
_ctrl drawIcon ["\DZ\ui\data\map\markers\military\Start_CA.paa", if (_x == player) then {[0,0,1,1]} else {[1,0,0,1]}, getPos _x, ((1 - ctrlMapScale _ctrl) max 0.2)*30, ((1 - ctrlMapScale _ctrl) max 0.2)*30, getDir _x, "herro", 2];
} forEach (entities "SurvivorBase");
};
};
createDialog "RscDisplayMainMap";
_map = (findDisplay 12) displayCtrl 51;
_map ctrlAddEventhandler ["mousebuttondblclick","((_this select 0) posScreenToWorld [_this select 2, _this select 3]) spawn AzersMultiScript_Map1"];
_map ctrlAddEventHandler ["Draw", "_this call AzersMultiScript_Map2"];
for "_i" from 0 to 9999 do
{
if (_i != 51) then
{
((findDisplay 12) displayCtrl _i) ctrlShow false;
};
};
};
Azer_MapScan =
{
closeDialog 0;
createDialog "RscDisplayMainMap";
sleep 2;
for "_j" from 1 to 100 do
{
deleteMarkerLocal ("marker" + str(_j));
};
_Azer_VD = viewDistance;
_Azer_OVD = 1000;
setViewDistance 1;
setobjectviewdistance 1;
_Azer_Start = [1000,2300,0];
_Azer_max = 15300;
_Azer_i = 1;
_Azer_u = 1;
_Azer_c = 0;
_Azer_arr = [];
_Azer_local = "camera" camCreate (getPos player);
_Azer_local cameraEffect ["INTERNAL", "BACK"];
systemchat "AzersMultiScript: Scanning Map for Markers, This May Take a Few Minutes";
sleep 2;
systemchat "AzersMultiScript: It is Normal for a Map to Display while this Happens";
sleep 2;
systemchat "AzersMultiScript: Do Not Alt-Tab or Leave the map, Stay in-game it will Close Automatically";
sleep 2;
systemchat "AzersMultiScript: Stay in-game the map will Close Automatically";
sleep 2;
while {((_Azer_Start select 0 < _Azer_max)) && ((_Azer_Start select 1 < _Azer_max))} do
{
while {(_Azer_Start select 0 < _Azer_max)} do
{
_Azer_local = "camera" camCreate _Azer_Start;
_Azer_local cameraEffect ["INTERNAL", "BACK"];
_Azer_obj = (allMissionObjects "car");
_Azer_obj1 = (entities "SurvivorBase");
_Azer_obj2 = (allMissionObjects "TentMedium_Pitched") + (allMissionObjects "TentLarge_Pitched") + (allMissionObjects "tentcar_Pitched") + (allMissionObjects "tentmedium_packed") + (allMissionObjects "tentlarge_backpack") + (allMissionObjects "tentcar_packed");
_Azer_obj3 = (allMissionObjects "Land_Mi8_Crashed") + (allMissionObjects "Land_UH1Y_Wreck") + (allMissionObjects "Land_Volha_police_DayZ");
if (count _Azer_obj != 0) then
{
{
if !((getPos _x) in _Azer_arr) then
{
_Azer_mark = createMarkerLocal ["marker" + str(_Azer_i), getPos _x];
_Azer_mark setMarkerTypeLocal "hd_objective";
_Azer_mark setMarkerColorLocal "ColorGreen";
_Azer_mark setMarkerSizeLocal [0.5, 0.5];
_Azer_mark setMarkerTextLocal (typeOf _x);
_Azer_i = _Azer_i + 1;
_Azer_arr set [count _Azer_arr, getPos _x];
};
} forEach _Azer_obj;
};
if (count _Azer_obj1 != 0) then
{
{
if !((getPos _x) in _Azer_arr) then
{
_Azer_mark1 = createMarkerLocal ["marker" + str(_Azer_i), getPos _x];
_Azer_mark1 setMarkerTypeLocal "hd_end";
_Azer_mark1 setMarkerColorLocal "ColorRed";
_Azer_mark1 setMarkerSizeLocal [0.5, 0.5];
_Azer_mark1 setMarkerTextLocal (Name _x);
_Azer_i = _Azer_i + 1;
_Azer_arr set [count _Azer_arr, getPos _x];
};
} forEach _Azer_obj1;
};
if (count _Azer_obj2 != 0) then
{
{
if !((getPos _x) in _Azer_arr) then
{
_Azer_mark2 = createMarkerLocal ["marker" + str(_Azer_i), getPos _x];
_Azer_mark2 setMarkerTypeLocal "hd_dot";
_Azer_mark2 setMarkerColorLocal "ColorOrange";
_Azer_mark2 setMarkerSizeLocal [0.5, 0.5];
_Azer_mark2 setMarkerTextLocal (typeOf _x);
_Azer_i = _Azer_i + 1;
_Azer_arr set [count _Azer_arr, getPos _x];
};
} forEach _Azer_obj2;
};
if (count _Azer_obj3 != 0) then
{
{
if !((getPos _x) in _Azer_arr) then
{
_Azer_mark3 = createMarkerLocal ["marker" + str(_Azer_i), getPos _x];
_Azer_mark3 setMarkerTypeLocal "hd_dot";
_Azer_mark3 setMarkerColorLocal "ColorBlue";
_Azer_mark3 setMarkerSizeLocal [0.5, 0.5];
_Azer_mark3 setMarkerTextLocal (typeOf _x);
_Azer_i = _Azer_i + 1;
_Azer_arr set [count _Azer_arr, getPos _x];
};
} forEach _Azer_obj3;
};
camDestroy _Azer_local;
_Azer_Start = [(_Azer_Start select 0) + 1000, (_Azer_Start select 1), 0];
_Azer_percent = round((_Azer_u / 15)*100);
if (_Azer_percent != _Azer_c) then
{
_Azer_c = _Azer_percent;
systemchat "AzersMultiScript: Searching For Markers..";
};
};
_Azer_u = _Azer_u + 1;
_Azer_Start = [1000, (_Azer_Start select 1) + 1000, 0];
sleep 0.01;
};
setViewDistance _Azer_VD;
setObjectViewDistance _Azer_OVD;
camDestroy _Azer_local;
player cameraEffect ["TERMINATE", "BACK"];
systemchat "AzersMultiScript: Map Scan Finished";
closeDialog 0;
};
firetrail = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
player setVariable ["fire",toggle_12];
if(toggle_12) then {hint 'You are on fire!';} else {hint 'You are no longer on fire!';};
player spawn event_fnc_fireplaceFire;
};
thirdperson = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if(toggle_11) then {
onEachFrame {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
player switchCamera "External";
};
hint 'Third Person Mode - ON';
} else {
onEachFrame {};
player switchCamera "Internal";
hint 'Third Person Mode - OFF';
};
};
fastshoot = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if(toggle_8) then {hint "FAST FIRE ON!";} else {hint "FAST FIRE OFF!";};
while{toggle_8} do {
player setWeaponReloadingTime [player,currentWeapon player,0];
sleep 0.001;
};
};
ffive6 =
{
_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";}'];
};
noblurandfullcolor = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if(toggle_9) then {HINT "NO BLUR + FULL COLOR ON";} else {HINT "NO BLUR + FULL COLOR OFF";};
_realblood = 0;
while{toggle_9} do {
resetCamShake;
_realblood = player getVariable['blood',-1];
player setVariable ['blood',5000];
waitUntil{player getVariable ['blood',-1] != 5000};
};
};
lysticrecoil = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if(toggle_10) then {
player setUnitRecoilCoefficient 0;
hint 'No Recoil - ON';
} else {
player setUnitRecoilCoefficient 1;
hint 'No Recoil - OFF';
};
};
addwhitelist = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_name = _this select 0;
if !(tolower(_name) in whitelist) then {
whitelist = whitelist + [tolower(_name)];
};
hint format["%1 has been whitelisted!",_name];
};
killme = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_unit = player;
_pos = getposatl player;
_pos set[2,(_pos select 2) + 10];
_veh = "v3s_cargo" createVehicleLocal (_pos);
_veh setposatl _pos;
};
executer = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
closedialog 0;
sleep 0.1;
createdialog 'rscdisplaynote';
sleep 0.2;
disableSerialization;
ctrlSetText[1600,'Execute'];
ctrlSettext[1601,'Clear'];
ctrlSetText[1300,'Bowens Script Executer'];
buttonSetAction[1600,'_text = (ctrlText 1400);[] spawn compile _text;'];
buttonSetAction[1601,'ctrlsetText[1400,''''];'];
};
timeday = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if (isnil ("loop1")) then {loop1 = 0;};
if (loop1==0) then {loop1=1;cutText [format["Enabled Loop"], "PLAIN DOWN"];hint "Enabled Loop";}else
{loop1=0;cutText [format["Disabled Loop"], "PLAIN DOWN"];hint "Disabled Loop";};
while {loop1==1} do
{
setDate [2012, 9, 1, 14, 0];
sleep 4;
};
};
infammo = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if (isnil ("infammoON")) then
{
infammoON = 0;
};
if (infammoON==0) then
{
systemchat "Infinite Ammo ON!";
infammoON=1;
}
else
{
infammoON=0;
systemchat "Infinite Ammo OFF!";
};
sCode = " while {infammoON==1} do{(vehicle player) setVehicleAmmo 1;sleep 0.1;};";
[] spawn compile sCode;
};
nocollide = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if(toggle_4) then {hint "NO COLLIDE ON";} else {hint "NO COLLIDE OFF";};
_objects = [];
while{toggle_4} do {
_list = (getposatl player) nearObjects 50;
{
if !(_x in _objects) then {
player disableCollisionWith _x;
_objects = _objects + [_x];
};
} forEach _list;
sleep 10;
};
{
player enableCollisionWith _x;
_objects = _objects - [_x];
} forEach _objects;
};
AzersMultiScript_NoBuildings =
{
if (isnil ("n1111")) then
{
n1111 = 0;
};
if (n1111 == 0) then
{
systemchat "AzersMultiScript: No Buildings Activated";
n1111 = 1;
}
else
{
systemchat "AzersMultiScript: No Buildings Deactivated";
n1111 = 0;
};
[] spawn
{
while {n1111 == 1} do
{
_Azer_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 _Azer_entities;
sleep 5;
};
while {n1111 == 0} do
{
_Azer_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 _Azer_entities;
sleep 5;
};
};
};
removegrass = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if(toggle_5) then {
setTerrainGrid 50.0;hint "Terrain Hack ON";
} else {
setTerrainGrid 12.5;hint "Terrain Hack OFF";
};
};
ffjiushiba =
{
if (isNil ("ffjiushiba1")) then
{
ffjiushiba1 = 0;
};
if (ffjiushiba1==0) then
{
setViewDistance 600;
hint "ffjiushiba ON";
ffjiushiba1=1;
}
else
{
setViewDistance 1500;
hint "ffjiushiba OFF";
ffjiushiba1=0;
};
};
norestrain = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
"actionRestrained" addPublicVariableEventHandler {};
};
nowet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
rainCheck = {};
isUnderRoof = {[0,0,0,0]};
hint "No Longer Wet From Rain!";
};
dupebody = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
profilenamespace setVariable["Dupe_Body",true];
saveprofilenamespace;
hint 'Please rejoin the server to dupe your body';
};
Azer_Executer =
{
createDialog 'RscDisplayInventoryNote';
ctrlSetText[1300,"AZER's SQF Executer"];
ctrlSetText[1600,"Execute"];
ctrlSettext[1601,"Clear"];
ctrlSetText[1400,profileNamespace getVariable ['TotallyNotAScriptExecuturHistory','']];
buttonSetAction[1600,"profileNamespace setVariable ['TotallyNotAScriptExecuturHistory',(ctrlText 1400)];call compile (ctrlText 1400)"];
buttonSetAction[1601,"ctrlSetText[1400,''];profileNamespace setVariable ['TotallyNotAScriptExecuturHistory','']"];
};
magnet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_objects = _this select 1;
_prefix = _this select 0;
call compile format["if(isNil '%1_esp') then {%1_esp = [];};",_prefix];
_activationDistance = 800;
_drawESP = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
disableserialization;
_target = _this select 0;
_maxDistance = _this select 1;
_layer = _this select 2;
_prefix = _this select 3;
_type = _this select 4;
_timeToReplace = time + 9;
_layer cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
while{call compile format["%1_esp_t",_prefix]} do {
_distance = player distance _target;
if((_distance > _maxDistance) || !(alive _target)) exitWith {};
if(time > _timeToReplace) then {
_timeToReplace = time + 9;
_layer cutRsc ['RscTitleStructuredText', 'PLAIN'];
_display = uinamespace getvariable ['RscTitleStructuredText',displaynull];
_ctrl = _display displayctrl 9999;
_ctrl ctrlShow true;
_ctrl ctrlEnable true;
_ctrl ctrlSetFade 0;
};
_pos = [(getPosATL _target) select 0, (getPosATL _target) select 1, ((getPosATL _target) 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.40'' color=''#FFFF00''>%1 (%2m)</t>', _type, round (player distance _target)];
_ctrl ctrlSetStructuredText _text;
_ctrl ctrlCommit 0;
};
uiSleep 0.05;
};
_layer cuttext["","PLAIN"];
call compile format["%1_esp = %1_esp - [_target];",_prefix];
};
if(call compile format["%1_esp_t",_prefix]) then {
hint format['%1 ESP On!'];
magnet_running = magnet_running + 1;
} else {
hint format['%1 ESP Off!'];
magnet_running = magnet_running - 1;
};
ESP_INDEX = ESP_INDEX + 1;
_layer = ESP_INDEX;
_activationDistance = _activationDistance min 800;
while{call compile format["%1_esp_t",_prefix]} do {
_nearLoot = [];
{
_loot = allMissionObjects _x;
if(count(_loot) == 0) then {
_loot = ((getposatl player) nearObjects [_x,850]);
};
_nearLoot = _nearLoot + _loot;
} forEach _objects;
{
_distance = player distance _x;
if(_distance < _activationDistance) then {
call compile format ["
if !(_x in %1_esp) then {
%1_esp = %1_esp + [_x];
[_x,_activationDistance,_layer,'%1','%2'] spawn _drawESP;
ESP_INDEX = ESP_INDEX + 1;
_layer = ESP_INDEX;
};
",_prefix,typeof _x];
};
} forEach _nearLoot;
};
};
cmagnet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
["Clothing",Cl0th1ng] spawn magnet;
};
amagnet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
["All",A11] spawn magnet;
};
attachmentmagnet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
["Attachment",Att4chm3nt] spawn magnet;
};
imagnet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
["Item",It3m5] spawn magnet;
};
ammomagnet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
["Ammo",amm0] spawn magnet;
};
wmagnet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
["Weapons",W34p0ns] spawn magnet;
};
fmagnet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
["FoodNGrapeDrank",F0od_Dr1nk] spawn magnet;
};
mmagnet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
["Medical",M3d1c4l] spawn magnet;
};
tmagnet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
["Tool",T0ol_it3ms] spawn magnet;
};
bmagnet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
["Backpack",B4ckp4cks] spawn magnet;
};
remwhitelist = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_name = _this select 0;
if (tolower(_name) in whitelist) then {
whitelist = whitelist - [tolower(_name)];
};
hint format["%1 has been unwhitelisted",_name];
};
disableeffects = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
hint 'Bullet Hit Effects Have Been Removed';
dayz_bulletHit = {};
};
noweather = {
0 setovercast 0;
0 setrain 0;
hint 'Weather Cleared!';
};
};
['Functions'] call {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
loadmain = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
cheatlist = menuheader + menumain;
[] spawn fillCheats;
};
loadmagnet = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if(count(A11) == 0) then { hint 'Item ESP will NOT work until all items have been loaded!';};
cheatlist = menuheader + menumagnet;
[] spawn fillCheats;
};
loadtarget = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
cheatlist = menuheader + menutarget;
[] spawn fillCheats;
};
loadmarkers = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
cheatlist = menuheader + mapmenu;
[] spawn fillCheats;
};
loaditems = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_array = [];
_types = [];
cheatlist = menuheader + _array;
[] call fillCheats;
hint '1';
{
_items = ((getposatl player) nearObjects [_x,850]);
{
_type = typeof _x;
if !(_type in _types) then {
_pos = getposatl _x;
_code = compile format["%1 spawn teleport_myasshole; hint 'you are a wizard harry';",_pos];
_arr = ["TP TO: " + _type,_code,false,"",""];
_array set[count(_array),_arr];
_types set[count(_types),_type];
};
} forEach _items;
} forEach B4ckp4cks;
cheatlist = menuheader + _array;
[] call fillCheats;
hint '2';
{
_items = ((getposatl player) nearObjects [_x,850]);
{
_type = typeof _x;
if !(_type in _types) then {
_pos = getposatl _x;
_code = compile format["%1 spawn teleport_myasshole; hint 'you are a wizard harry';",_pos];
_arr = ["TP TO: " + _type,_code,false,"",""];
_array set[count(_array),_arr];
_types set[count(_types),_type];
};
} forEach _items;
} forEach Att4chm3nt;
cheatlist = menuheader + _array;
[] call fillCheats;
hint '3';
{
_items = ((getposatl player) nearObjects [_x,850]);
{
_type = typeof _x;
if !(_type in _types) then {
_pos = getposatl _x;
_code = compile format["%1 spawn teleport_myasshole; hint 'you are a wizard harry';",_pos];
_arr = ["TP TO: " + _type,_code,false,"",""];
_array set[count(_array),_arr];
_types set[count(_types),_type];
};
} forEach _items;
} forEach W34p0ns;
cheatlist = menuheader + _array;
[] call fillCheats;
hint '4';
{
_items = ((getposatl player) nearObjects [_x,850]);
{
_type = typeof _x;
if !(_type in _types) then {
_pos = getposatl _x;
_code = compile format["%1 spawn teleport_myasshole; hint 'you are a wizard harry';",_pos];
_arr = ["TP TO: " + _type,_code,false,"",""];
_array set[count(_array),_arr];
_types set[count(_types),_type];
};
} forEach _items;
} forEach Cl0th1ng;
cheatlist = menuheader + _array;
[] call fillCheats;
hint '5';
{
_items = ((getposatl player) nearObjects [_x,850]);
{
_type = typeof _x;
if !(_type in _types) then {
_pos = getposatl _x;
_code = compile format["%1 spawn teleport_myasshole; hint 'you are a wizard harry';",_pos];
_arr = ["TP TO: " + _type,_code,false,"",""];
_array set[count(_array),_arr];
_types set[count(_types),_type];
};
} forEach _items;
} forEach T0ol_it3ms;
cheatlist = menuheader + _array;
[] call fillCheats;
hint '6';
{
_items = ((getposatl player) nearObjects [_x,850]);
{
_type = typeof _x;
if !(_type in _types) then {
_pos = getposatl _x;
_code = compile format["%1 spawn teleport_myasshole; hint 'you are a wizard harry';",_pos];
_arr = ["TP TO: " + _type,_code,false,"",""];
_array set[count(_array),_arr];
_types set[count(_types),_type];
};
} forEach _items;
} forEach F0od_Dr1nk;
cheatlist = menuheader + _array;
[] call fillCheats;
hint '7';
{
_items = ((getposatl player) nearObjects [_x,850]);
{
_type = typeof _x;
if !(_type in _types) then {
_pos = getposatl _x;
_code = compile format["%1 spawn teleport_myasshole; hint 'you are a wizard harry';",_pos];
_arr = ["TP TO: " + _type,_code,false,"",""];
_array set[count(_array),_arr];
_types set[count(_types),_type];
};
} forEach _items;
} forEach It3m5;
cheatlist = menuheader + _array;
[] call fillCheats;
hint '8';
};
loadvehicles = {
if(isNil "veh_menu") then {
veh_menu = [];
_cfg = configFile >> "cfgVehicles";
for "_i" from 0 to count(_cfg)-1 do {
_class = _cfg select _i;
if(isClass _class) then {
_type = configName _class;
if(_type isKindOf "LandVehicle" || _type isKindOf "Air" || _type isKindOf "Ship" || _type isKindOf "Boat" || _type isKindOf "Sea") then {
_scope = getNumber(_class >> "scope");
if(_scope == 2) then {
veh_menu set[count(veh_menu),["Spawn: " + _type, compile format["hint 'Spawning %1'; '%1' createVehicleLocal (position player);",_type],"",""]];
};
};
};
};
};
cheatlist = menuheader + veh_menu;
[] call fillCheats;
};
currentCheatMenu = "";
fillCheats = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
disableSerialization;
if(!isNull (findDisplay 3030)) then {
_display = (findDisplay 3030);
_left = _display displayctrl 1;
_counter = 0;
lbClear _left;
{
_left lbAdd (_x select 0);
if((_x select 2)) then {
_bool= call compile (_x select 3);
if(_bool) then {
_left lbSetColor [_counter,[0,1,0,1]];
} else {
_left lbSetColor [_counter,[1,0,0,1]];
};
} else {
_left lbSetColor [_counter,[1,1,1,1]];
};
_counter = _counter + 1;
} forEach cheatList;
_left ctrlCommit 0;
};
};
dbClicked = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
disableserialization;
_index = _this;
_item = cheatlist select _index;
_text = _item select 0;
_cmd = _item select 1;
_isToggle = _item select 2;
_toggleVar = _item select 3;
_classname = _item select 4;
if(_isToggle) then {
call compile format["%1 = !%1",_toggleVar];
_bool= call compile _toggleVar;
if(_bool) then {
lbSetColor [1,_index,[0,1,0,1]];
} else {
lbSetColor [1,_index,[1,0,0,1]];
};
};
if(_classname != "") then {
if !(_classname in A11) then {
currentCheatMenu = _classname;
};
if(_classname == "target") then {
_classname = lbText[2,lbCurSel 2];
};
[_classname] spawn _cmd;
} else {
[] spawn _cmd;
};
systemChat ("<Azer>: Executed " + _text);
};
refreshPlayers = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
disableSerialization;
if(!isNull (findDisplay 3030)) then {
_display = (findDisplay 3030);
_sel = lbCurSel _list;
_right = _display displayctrl 2;
lbClear _right;
_list = players;
{
_right lbAdd (name _x);
} forEach _list;
if(_list > _sel) then {
_right lbSetCurSel _sel;
};
_right ctrlRemoveAllEventHandlers "KeyDown";
_right ctrlCommit 0;
};
};
guipos_2 = {
disableserialization;
_display = (findDisplay 3030);
titlepos_cur = titlepos_2;
leftpos_cur = leftpos_2;
rightpos_cur = rightpos_2;
_title = _display displayCtrl 3;
_title ctrlsetposition titlepos_cur;
_left = _display displayctrl 1;
_left ctrlsetposition leftpos_cur;
_right = _display displayctrl 2;
_right ctrlsetposition rightpos_cur;
_title ctrlcommit 1;
_left ctrlcommit 1;
_right ctrlcommit 1;
};
guipos_1 = {
disableserialization;
_display = (findDisplay 3030);
titlepos_cur = titlepos_1;
leftpos_cur = leftpos_1;
rightpos_cur = rightpos_1;
_title = _display displayCtrl 3;
_title ctrlsetposition titlepos_cur;
_left = _display displayctrl 1;
_left ctrlsetposition leftpos_cur;
_right = _display displayctrl 2;
_right ctrlsetposition rightpos_cur;
_title ctrlcommit 1;
_left ctrlcommit 1;
_right ctrlcommit 1;
};
loadMenu = {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
systemChat "<Azer>: Loading GUI...";
createDialog "RscConfigEditor_Main";
disableSerialization;
waitUntil{!isNull (findDisplay 3030)};
sleep 0.1;
_display = (findDisplay 3030);
_background = _display displayCtrl -1;
_background ctrlSetBackgroundColor [0,0,0,0.5];
_background ctrlCommit 0;
_title = _display displayCtrl 3;
_text = "Lystic Menu v3 FIXED BY AZER | ";
for "_i" from 1 to 10 do {
_text = _text + _text;
};
_title ctrlSetText _text;
[_title] spawn {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
disableSerialization;
_ctrl = _this select 0;
_increasing = true;
_count = 0;
while{!isNull findDisplay(3030)} do {
_ctrl ctrlsettextcolor [random 1,random 1, random 1,1];
_ctrl ctrlCommit 0;
sleep 0.1;
};
};
_title ctrlSetBackgroundColor [0,0,0,1];
_title ctrlSetPosition titlepos_cur;
_title ctrlCommit 0;
_left = _display displayctrl 1;
_left ctrlsetposition leftpos_cur;
_left ctrlRemoveAllEventHandlers "LBSelChanged";
_left ctrlRemoveAllEventHandlers "LBDblClick";
_left ctrlRemoveAllEventHandlers "MouseButtonDown";
_left ctrlRemoveAllEventHandlers "KeyDown";
_left ctrlAddEventHandler ["LBDblClick","_fnc_scriptName = if (isnil ""_fnc_scriptName"") then {""Functions Init""} else {_fnc_scriptName};(_this select 1) spawn dbClicked;"];
_left ctrlCommit 0;
_right = _display displayctrl 2;
_right ctrlsetposition rightpos_cur;
_right ctrlCommit 0;
[] spawn loadmain;
[] spawn {
while{!isNull findDisplay(3030)} do {
[] spawn refreshPlayers;
sleep 15;
};
};
systemChat "<Azer>: Ready!";
};
};
['Menus'] call {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
menuheader = [
["-- Main Menu --",loadmain,false,"",""],
["-- Target Menu --",loadtarget,false,"",""],
["-- ESP Menu --",loadmagnet,false,"",""],
["-- Marker Menu --",loadmarkers,false,"",""],
["-- Near Item Menu --",loaditems,false,"",""],
["-- Vehicle Menu --",loadvehicles,false,"",""]
];
menumain = [
["Azer's Executer",Azer_Executer,false,"",""],
["Disable Hit Effects",disableeffects,false,"",""],
["Unrestrain Yourself",unrestrain,false,"",""],
["DUPE PLAYER BODY",dupebody,false,"",""],
["Remove Weather",noweather,false,"",""],
["[GUI] Wide Design",guipos_2,false,"",""],
["[GUI] Slim Design",guipos_1,false,"",""],
["Open Map",AzersMultiScript_Map,false,"",""],
["Map Scanner",Azer_MapScan,false,"",""],
["Map Teleport",Azer_Map_Teleport,false,"",""],
["Show Last Death Position (On Map)",showlastdeathpos,true,"showlastdeathpos_toggle",""],
["Removed Dayzed Effect",remove_dayzed,true,"remove_dayzed_toggle",""],
["Remove Rain Check",remove_rainCheck,true,"remove_rainCheck_toggle",""],
["Kill Unconscious Players",reknearplayers,true,"reknearplayers_toggle",""],
["Hide Buildings",AzersMultiScript_NoBuildings,true,"toggle_13",""],
["Fire Trail",firetrail,true,"toggle_12",""],
["Third Person",thirdperson,true,"toggle_11",""],
["No Grass",removegrass,true,"toggle_5",""],
["No Recoil",lysticrecoil,true,"toggle_10",""],
["Fast Shoot",fastshoot,true,"toggle_8",""],
["FPS Boost",ffjiushiba,true,"toggle_8",""],
["Time Day",timeday,true,"toggle_3",""]
];
menutarget = [
["View Inventory",openinventory,false,"","target"],
["Spectate",ffive6,false,"","target"],
["Teleport To",teleporto,false,"","target"]
];
mapmenu = [
["Show Player Markers",{},true,"show_playerMarkers",""],
["Show Self Marker",{},true,"show_selfMarker",""],
["Show Direction Arrows",{},true,"show_playerDirs",""]
];
menumagnet = [
["Player ESP",dayz_esp_2,true,"dayz_esp_toggle",""],
["Dead Player ESP",dayz_esp_6,true,"dayz_esp_toggle_d",""],
["Zombie ESP",dayz_esp_3,true,"dayz_esp_toggle_z",""],
["Vehicle ESP",dayz_esp_4,true,"dayz_esp_toggle_v",""],
["Heli Crash ESP",dayz_esp_5,true,"dayz_esp_toggle_w",""],
["========= Item ESP ========= ",{},false,"",""],
["All Item ESP",amagnet,true,"All_esp_t",""],
["Clothin ESP",cmagnet,true,"Clothing_esp_t",""],
["Attachment ESP",attachmentmagnet,true,"Attachment_esp_t",""],
["Item ESP",imagnet,true,"Item_esp_t",""],
["Ammo ESP",ammomagnet,true,"Ammo_esp_t",""],
["Weapon ESP",wmagnet,true,"Weapons_esp_t",""],
["Food & Drink ESP",fmagnet,true,"FoodNGrapeDrank_esp_t",""],
["Medical ESP",mmagnet,true,"Medical_esp_t",""],
["Tool ESP",tmagnet,true,"Tool_esp_t",""],
["Backpack ESP",bmagnet,true,"Backpack_esp_t",""]
];
{
if(_x select 2) then {
call compile format["%1 = false",_x select 3];
};
} forEach menumagnet;
show_playerMarkers = false;
show_selfMarker = false;
show_playerDirs = false;
};
['WTS TP'] call {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
(findDisplay 46) displayAddEventHandler ['KeyDown','
if((_this select 1) == 0x27) then {
[] spawn {
_dir = getdir player;
_pos = screenToWorld [0.5,0.5];
_pos call teleport_myasshole;
player setDir _dir;
};
};
'];
};
['Map & Teleport'] call {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
teleport_myasshole = {
_targetPos = _this;
_CAR = "v3s_cargo" createVehicleLocal _targetPos;
_CAR setposatl _targetpos;
_CAR hideobject true;
_CAR spawn {
waituntil{vehicle player != player};
player action ["Eject",_this];
};
player action ["GetInDriver",_CAR];
};
changeme_russia =
{
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
_array = _this select 0;
_penis = _array select 1;
_penis2 = _array select 2;
_display = (findDisplay 12);
_control = _display displayCtrl 51;
_WorldCoord = _control ctrlMapScreenToWorld [_penis,_penis2];
[_WorldCoord select 0, _WorldCoord select 1, 1] spawn teleport_myasshole;
hint str [_WorldCoord select 0, _WorldCoord select 1, 1];
};
wreckmarkers = [];
draw_markers =
{
_ctrl = _this select 0;
_plrs = players - [player];
if(show_playerMarkers) then {
[_ctrl,_plrs,[1,0,0,1],true] call draw_icons;
if(show_playerDirs) then {
[_ctrl,_plrs,[1,0,0,1]] call draw_arrows;
};
};
if(show_selfMarker) then {
[_ctrl,[player],[0,1,0,1],true] call draw_icons;
if(show_playerDirs) then {
[_ctrl,[player],[0,1,0,1]] call draw_arrows;
};
};
};
draw_icons = {
_ctrl = _this select 0;
_objs = _this select 1;
_color = _this select 2;
_isPlayer = _this select 3;
{
_obj = _x;
_text = typeof _obj;
if(_isPlayer) then {
_text = name _obj;
};
_ctrl drawIcon [
"\DZ\ui\data\map\markers\military\triangle_CA.paa",
_color,
getposatl _obj,
((1 - ctrlMapScale _ctrl) max 0.2)*30,
((1 - ctrlMapScale _ctrl) max 0.2)*30,
getdir _obj,
typeof _obj,
2
];
} forEach _objs;
};
draw_arrows = {
_ctrl = _this select 0;
_objs = _this select 1;
_color = _this select 2;
{
_obj = _x;
_ctrl drawArrow [getposatl _obj, _obj modelToWorld [0,10,0], _color];
} forEach _objs;
};
open_map = {
createdialog "RscDisplayMainMap";
waitUntil {!(isNull (findDisplay 12))};
for "_i" from 100 to 5000 do {
ctrlShow [_i, false];
};
_display = (findDisplay 12);
_control = _display displayCtrl 51;
_control ctrlSetEventHandler ["MouseButtonDblClick","[_this] spawn changeme_russia;"];
_control ctrlSetEventHandler ["draw","_this call draw_markers;"];
};
SWAG = (findDisplay 46) displayAddEventHandler ['KeyDown', '
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if ((_this select 1) == 0x4C) then
{
call open_map;
};'];
};
['Display Keybind'] spawn {
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
(findDisplay 46) displayAddEventHandler ["KeyDown",'
_fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
if((_this select 1) == 210) then {
if(isNull (findDisplay 3030)) then {
[] spawn loadMenu;
};
};
false
'];
while{true} do {
waitUntil{inputAction "networkStats" > 0};
if(isNull (findDisplay 3030)) then {
[] spawn loadMenu;
};
waitUntil{inputAction "networkStats" == 0};
};
};
hint parseText "Lystic Menu v3 fixed by AZER Loaded<br/><t size='0.8'>press INSERT to Open the Menu</t>";
systemChat "<Azer>: Menu Injected!";
closedialog 0;
};
[] spawn _menu;
};
private ["_this","_headerNoDebug","_headerSaveScriptMap","_headerLogScriptMap","_headerSystem","_debug","_headerDefault","_fncCompile","_recompile"];
_headerNoDebug = "
_fnc_scriptNameParentTemp = if !(isnil '_fnc_scriptName') then {_fnc_scriptName} else {'%1'};
private ['_fnc_scriptNameParent'];
_fnc_scriptNameParent = _fnc_scriptNameParentTemp;
_fnc_scriptNameParentTemp = nil;
private ['_fnc_scriptName'];
_fnc_scriptName = '%1';
scriptname _fnc_scriptName;
";
_headerSaveScriptMap = "
_fnc_scriptMapTemp = if !(isnil '_fnc_scriptMap') then {_fnc_scriptMap} else {[]};
private ['_fnc_scriptMap'];
_fnc_scriptMap = _fnc_scriptMapTemp + [_fnc_scriptName];
_fnc_scriptMapTemp = nil;
";
_headerLogScriptMap = "
_this call {
private '_fnc_scriptMapText';
_fnc_scriptMapText = '';
{
_fnc_scriptMapText = _fnc_scriptMapText + ' >> ' + _x;
} foreach _fnc_scriptMap;
textlogformat ['%2',_fnc_scriptMapText,_this];
};
";
_headerSystem = "
private ['_fnc_scriptNameParent'];
_fnc_scriptNameParent = if !(isnil '_fnc_scriptName') then {_fnc_scriptName} else {'%1'};
scriptname '%1';
";
_headerNone = "";
_debug = uinamespace getvariable ["bis_fnc_initFunctions_debugMode",0];
_headerDefault = switch _debug do {
default {
_headerNoDebug
};
case 1: {
_headerNoDebug + _headerSaveScriptMap
};
case 2: {
_headerNoDebug + _headerSaveScriptMap + _headerLogScriptMap
};
};
_fncCompile = {
private ["_fncVar","_fncMeta","_fncPath","_fncHeader","_fncExt","_header","_debugMessage"];
_fncVar = _this select 0;
_fncMeta = _this select 1;
_fncPath = _fncMeta select 0;
_fncExt = _fncMeta select 1;
_fncHeader = _fncMeta select 2;
switch _fncExt do {
case ".sqf": {
_header = switch (_fncHeader) do {
case -1: {
_headerNone
};
case 1: {
_headerSystem
};
default {
_headerDefault
}
};
_debugMessage = "Log: [Functions]%1 | %2";
compile (
format [_header,_fncVar,_debugMessage] + preprocessfilelinenumbers _fncPath
);
};
case ".fsm": {
compile format ["_this execfsm '%1';",_fncPath];
};
default {0}
};
};
if (isnil "_this") then {_this = [];};
if (typename _this != typename []) then {_this = [_this];};
_recompile = if (count _this > 0) then {_this select 0} else {0};
if (typename _recompile == typename "") exitwith {
private ["_fnc","_fncMeta","_headerType","_var"];
_fnc = uinamespace getvariable _recompile;
if !(isnil "_fnc") then {
_fncMeta = _recompile call (uinamespace getvariable "bis_fnc_functionMeta");
_headerType = if (count _this > 1) then {_this select 1} else {0};
_var = [_recompile,[_recompile,_fncMeta,_headerType] call _fncCompile];
uinamespace setvariable _var;
missionnamespace setvariable _var;
if (isnil "_functions_listRecompile") then {
textlogformat ["Log: [Functions]: %1 recompiled with meta %2",_recompile,_fncMeta];
};
} else {
_fncError = uinamespace getvariable "bis_fnc_error";
if !(isnil "_fncError") then {
["%1 is not a function.",_recompile] call _fncError;
} else {
textlogformat ["Log: [Functions]: ERROR: %1 is not a function.",_recompile];
};
};
};
private ["_functions_list","_functions_listForced","_functions_listForcedStart","_functions_listRecompile","_file","_cfgSettings","_listConfigs","_recompileNames"];
_functions_list = uinamespace getvariable ["bis_functions_list",[]];
_functions_listForced = uinamespace getvariable ["bis_functions_listForced",[]];
_functions_listForcedStart = [];
_functions_listRecompile = uinamespace getvariable ["bis_functions_listRecompile",[]];
if (typename _recompile != typename 1) then {
_recompile = if (count _functions_list > 0) then {3} else {0};
};
if (_recompile == 0 && !isnil {missionnamespace getvariable "bis_fnc_init"}) exitwith {};
if (_recompile == 0 && !isnil {uinamespace getvariable "bis_fnc_init"}) then {_recompile = 3;};
_file = gettext (configfile >> "cfgFunctions" >> "file");
_cfgSettings = [
[ configfile, _file, 1 ],
[ campaignconfigfile, "functions", 0 ],
[ missionconfigfile, "functions", 0 ]
];
_listConfigs = switch _recompile do {
case 0: {
[0,1,2];
};
case 1: {
_functions_list = [];
uinamespace setvariable ["bis_functions_list",_functions_list];
_functions_listForced = [];
uinamespace setvariable ["bis_functions_listForced",_functions_listForced];
_functions_listRecompile = [];
uinamespace setvariable ["bis_functions_listRecompile",_functions_listRecompile];
[0,1,2];
};
case 2: {
[0];
};
case 3: {
[1,2];
};
};
for "_t" from 0 to (count _listConfigs - 1) do {
private ["_cfg","_pathConfig","_pathFile","_pathAccess","_cfgFunctions"];
_cfg = _cfgSettings select (_listConfigs select _t);
_pathConfig = _cfg select 0;
_pathFile = _cfg select 1;
_pathAccess = _cfg select 2;
_cfgFunctions = (_pathConfig >> "cfgfunctions");
for "_c" from 0 to (count _cfgFunctions - 1) do {
private ["_currentTag"];
_currentTag = _cfgFunctions select _c;
if (isclass _currentTag) then {
private ["_requiredAddons","_requiredAddonsMet"];
_requiredAddons = getarray (_currentTag >> "requiredAddons");
_requiredAddonsMet = true;
{
_requiredAddonsMet = _requiredAddonsMet && isclass (configfile >> "CfgPatches" >> _x);
} foreach _requiredAddons;
if (_requiredAddonsMet) then {
private ["_tagName","_itemPathRag"];
_tagName = gettext (_currentTag >> "tag");
if (_tagName == "") then {_tagName = configname _currentTag};
_itemPathTag = gettext (_currentTag >> "file");
for "_i" from 0 to (count _currentTag - 1) do {
private ["_currentCategory"];
_currentCategory = _currentTag select _i;
if (isclass _currentCategory) then {
private ["_categoryName","_itemPathCat"];
_categoryName = configname _currentCategory;
_itemPathCat = gettext (_currentCategory >> "file");
for "_n" from 0 to (count _currentCategory - 1) do {
private ["_currentItem"];
_currentItem = _currentCategory select _n;
if (isclass _currentItem) then {
private ["_itemName","_itemPathItem","_itemExt","_itemPath","_itemVar","_itemCompile","_itemForced","_itemForcedStart","_itemRecompile","_itemCheatsEnabled"];
_itemName = configname _currentItem;
_itemPathItem = gettext (_currentItem >> "file");
_itemExt = gettext (_currentItem >> "ext");
_itemForced = getnumber (_currentItem >> "forced");
_itemForcedStart = getnumber (_currentItem >> "forcedStart");
_itemRecompile = getnumber (_currentItem >> "recompile");
_itemCheatsEnabled = getnumber (_currentItem >> "cheatsEnabled");
if (_itemExt == "") then {_itemExt = ".sqf"};
_itemPath = if (_itemPathItem != "") then {_itemPathItem} else {
if (_itemPathCat != "") then {_itemPathCat + "\fn_" + _itemName + _itemExt} else {
if (_itemPathTag != "") then {_itemPathTag + "\fn_" + _itemName + _itemExt} else {""};
};
};
_itemHeader = getnumber (_currentItem >> "headerType");
if (_itemPath == "") then {_itemPath = _pathFile + "\" + _categoryName + "\fn_" + _itemName + _itemExt};
_itemVar = _tagName + "_fnc_" + _itemName;
_itemMeta = [_itemPath,_itemExt,_itemHeader,_itemForced,_itemRecompile,_categoryName];
_itemCompile = if (_itemCheatsEnabled == 0 || (_itemCheatsEnabled > 0 && cheatsEnabled)) then {
[_itemVar,_itemMeta,_itemHeader] call _fncCompile;
} else {
{false}
};
if (typename _itemCompile == typename {}) then {
if !(_itemVar in _functions_list) then {
private ["_namespaces"];
_namespaces = if (_pathAccess == 1) then {[uinamespace]} else {[missionnamespace]};
{
_x setvariable [
_itemVar,
_itemCompile
];
_x setvariable [
_itemVar + "_meta",
_itemMeta
];
} foreach _namespaces;
if (_pathAccess == 1) then {_functions_list set [count _functions_list,_itemVar];};
};
if (_itemForced > 0) then {
if !(_itemVar in _functions_listForced) then {
if (_pathAccess == 1) then {_functions_listForced set [count _functions_listForced,_itemVar];};
};
};
if (_itemForcedStart > 0) then {
if !(_itemVar in _functions_listForcedStart) then {
if (_pathAccess == 1) then {_functions_listForcedStart set [count _functions_listForcedStart,_itemVar];};
};
};
if (_itemRecompile > 0) then {
if !(_itemVar in _functions_listRecompile) then {
if (_pathAccess == 1) then {_functions_listRecompile set [count _functions_listRecompile,_itemVar];};
};
};
};
};
};
};
};
};
};
};
};
uinamespace setvariable ["BIS_functions_list",_functions_list];
uinamespace setvariable ["BIS_functions_listForced",_functions_listForced];
uinamespace setvariable ["BIS_functions_listRecompile",_functions_listRecompile];
if (_recompile in [0,1,3]) then {
private ["_createShortcuts"];
_createShortcuts = getnumber (configfile >> "CfgFunctions" >> "createShortcuts") > 0;
if (_createShortcuts) then {
{
missionnamespace setvariable [_x,compile format ["_this call (uinamespace getvariable '%1');",_x]];
} foreach _functions_list;
} else {
{
missionnamespace setvariable [_x,uinamespace getvariable _x];
} foreach _functions_list;
};
};
if (_recompile == 2) then {
if (isnull (finddisplay 0)) then {
{
["Executing %1 (start only)",_x] call bis_fnc_log;
_function = [] call (uinamespace getvariable _x);
uinamespace setvariable [_x + "_initStart",_function];
} foreach _functions_listForcedStart;
};
};
if (_recompile == 3) then {
if (!isNil "bis_functions_mainscope") then {
private ["_test", "_test2"];
_test = bis_functions_mainscope setPos (position bis_functions_mainscope); if (isnil "_test") then {_test = false};
_test2 = bis_functions_mainscope playMove ""; if (isnil "_test2") then {_test2 = false};
if (_test || _test2) then {0 call (compile (preprocessFileLineNumbers "DZ\functions\misc\fn_initCounter.sqf"))};
};
{
_x call bis_fnc_recompile;
} foreach _functions_listRecompile;
{
["Executing %1",_x] call bis_fnc_log;
_function = [] call (missionnamespace getvariable _x);
missionnamespace setvariable [_x + "_init",_function];
} foreach _functions_listForced;
missionnamespace setvariable ["bis_fnc_init",true];
};
if (_recompile in [0,1,2]) then {
uinamespace setvariable ["bis_fnc_init",true]
};
_recompileNames = [
"ERROR: Autodetect failed",
"Forced",
"Core Only",
"Mission/Campaign Only"
];
["Initialized: %1.",_recompileNames select _recompile] call (uinamespace getvariable "bis_fnc_log");