/*
/////Tweaked j0k3r5 / Original work done by Matt L / and to anyone else that is involved that Ive forgotten////
////www.j0k3r5.com////
If modified and released give credits where due, thank you.
*/
dayz_spaceInterrupt = {
private ["_dikCode", "_handled"];
_dikCode = _this select 1;
_handled = false;
if (_dikCode == 0x44) then {
if (j0k3r5_stats) then {
j0k3r5_stats = false;
hintSilent "";
} else {[] spawn fnc_debug;};
};
_handled
};
fnc_debug = {
j0k3r5_stats = true;
while {j0k3r5_stats} do
{
_logo = "custom\Stats\stats_logo.paa";
_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
_nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
_textCity = "Wilderness";
if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
if (player == vehicle player) then
{
_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
}
else
{
_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
};
_timeleft= _combattimeout-time;
_kills = player getVariable["zombieKills",0];
_killsH = player getVariable["humanKills",0];
_killsB = player getVariable["banditKills",0];
_humanity = player getVariable["humanity",0];
_headShots = player getVariable["headShots",0];
_zombies = count entities "zZombie_Base";
_zombiesA = {alive _x} count entities "zZombie_Base";
_playersnear = (({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 1000]))-1);
hintSilent parseText format
[
"
<img size='6' image='%10'/><br/>
<t size='1.95' font='Bitstream'align='center'color='#FFFF00'>%15</t><br/>
<br/>
<t size='0.95' font='Bitstream'align='left'>Location:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%11</t><br/>
<t size='0.95' font='Bitstream'align='left'>Vehicles</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%17 (%18)</t><br/>
<t size='0.95' font='Bitstream'align='left'>Blood:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%1</t><br/>
<t size='0.95' font='Bitstream'align='left'>Humanity:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%2</t><br/>
<t size='0.95' font='Bitstream'align='left'>Players near:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%19 (%16)</t><br/>
<t size='0.95' font='Bitstream'align='left'>Heroes Killed:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%3</t><br/>
<t size='0.95' font='Bitstream'align='left'>Bandits Killed:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%4</t><br/>
<t size='0.95' font='Bitstream'align='left'>Zombies Killed:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%5</t><br/>
<t size='0.95' font='Bitstream'align='left'>Zeds:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%13 (%12)</t><br/>
<t size='0.95' font='Bitstream'align='left'>FPS:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%14</t><br/>
<t size='0.95' font='Bitstream'align='left'>Survived:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%7 Dayz</t><br/>
<br/>
<t size='1.15' font='Bitstream'align='center'color='#FFFF00'>Restart in %8 minutes!</t><br/>
<img size='5' image='%9'/><br/>
<t size='0.95' font='Bitstream' align='center'>F10 to Toggle Panel</t><br/>
",
r_player_blood, //1
round _humanity, //2
_killsH, //3
_killsB, //4
_kills, //5
_headShots, //6
(dayz_Survived), //7
(180-(round(serverTime/60))), //8 change the 180 to suit your server mins for restarts
_pic, //9
_logo, //10
_textCity, //11
count entities "zZombie_Base", //12
{alive _x} count entities "zZombie_Base", //13
diag_fps, //14
dayz_playerName, //15
(count playableUnits), //16
(count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])), //17
count vehicles, //18
_playersnear, //19
(count([6800, 9200, 0] nearEntities [["Air"],25000])), //20
(count([6800, 9200, 0] nearEntities [["Ship"],25000])), //21
(count([6800, 9200, 0] nearEntities [["Motorcycle"],25000])), //22
(count([6800, 9200, 0] nearEntities [["Car"],25000])) //23
];
sleep 5;
};
};
[] spawn fnc_debug;