dayz_spaceInterrupt = {
private ["_dikCode", "_handled"];
_dikCode = _this select 1;
_handled = false;
if (_dikCode == 0x3F) then {
if (debugMonitor) then {
debugMonitor = false;
hintSilent "";
} else {[] spawn fnc_debug;};
};
if ((_dikCode in actionKeys "PushToTalk") ||(_dikCode in actionKeys "VoiceOverNet")) then
{
[player,10,true,(getPosATL player)] spawn player_alertZombies;
player spawn disable_sidechat;
};
_handled
};
_bloodCol = "#33CC33";
fnc_debug = {
debugMonitor = true;
while {debugMonitor} do
{
hintSilent parseText format ["
<t size='0.95' font='Bitstream'align='center' color='#00ff00'>\Overwatch</t><br/>
<t size='0.95' font='Bitstream'align='center' color='#E00D0D'>TS3:\</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#00ff00'>Within 1000m: %11</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#00ff00'>Vehicles: </t><t size='0.95' font='Bitstream'align='right' color='#00ff00'>%13(%14)</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#00ff00'>Zombie Kills: </t><t size='0.95' font='Bitstream' align='right'>%2</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#00ff00'>Headshots: </t><t size='0.95' font='Bitstream' align='right'>%3</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#00ff00'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#00ff00'>Bandit Kills: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#00ff00'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#00ff00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#00ff00'>FPS: %10</t><t size='0.95' font='Bitstream' align='right' color='#00FF00'>GPS: %22</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#00ff00'>Server UpTime (Mins): </t><t size='0.95' font='Bitstream' align='right'>%25</t>",
(name player), //1
(player getVariable['zombieKills', 0]), //2
(player getVariable['headShots', 0]), //3
(player getVariable['humanKills', 0]), //4
(player getVariable['banditKills', 0]), //5
(player getVariable['humanity', 0]), //6
(dayz_Survived), //7
(count playableUnits), //8
r_player_blood, //9
((round diag_fps) + 0), //10
(({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 1000]))-1), //11
viewdistance, //12
((count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],11500])) + 300), //13
((count vehicles) + 300), //14
((count([6800, 9200, 0] nearEntities [["Motorcycle"],11500])) + 100), //15
((count([6800, 9200, 0] nearEntities [["Air"],12500])) + 50), //16
((count([6800, 9200, 0] nearEntities [["Car"],12500])) + 100), //17
(gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')), //18
(count entities "zZombie_Base"), //19
({alive _x} count entities "zZombie_Base"), //20
(getPosASL player), //21
(mapGridPosition getPos player), //22
(count([6800, 9200, 0] nearEntities [["Ship"],10000])), //23
(round(getDir player)), //24
(round(serverTime / 60)) //25
];
sleep 2;
};
};
[] spawn fnc_debug;