Jump to content
  • 0

[REQUEST] Debug Monitor and HUD


Saltzman

Question

13 answers to this question

Recommended Posts

  • 0

For the debug monitor I like the stats that are in this video: 

with the ability to put my website in and to show the current picture of weapon held in hand. Also for the money part doing default currency instead.

 

As for the HUD just do something awesome :)

Link to comment
Share on other sites

  • 0

Where? I just figured as much as this topic has been thrown around here someone would have some nice ones done up already :mellow:

My old debug

 

Works fine and closing with F8, first  click make it smaller, second one close it .

In the end of  your init.sqf paste this one after 

if (!isDedicated) then {

add

//HotKey(F8)
waituntil {!IsNull (findDisplay 46)};
_SpecKeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", loadFile "hotkeys.sqf"];
//Debug Monitor	
[] execVM "custom_monitor.sqf";

Next make file custom_monitor.sqf same place where is init.sqf  and paste inside:

 

 

custom_monitor_state = 0;
 
fnc_debug = {
    in_stats = true;
    while {in_stats} do
	{
		
		_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";
		_text = switch(custom_monitor_state) do {
			case 0:{
				"
				<img size='5' image='%10'/>
				<t color='#7D8D70' size='1' font='Bitstream'align='left'>Location:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#708D70' size='1'	font='Bitstream'align='left'>Humanity:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
				<t color='#708B8D' size='1'	font='Bitstream'align='left'>Head:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
                <br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Players Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Zombie Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Vehicles:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
				<img size='6' image='%9'/>
				"
			};
			case 1:{
				"
				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
				"
			};
			case 2:{
				""
			};
		};
		
		if(((getPlayerUID player) in ["xxxx","xxxxx"]) and custom_monitor_state == 1 ) then {      // Replace xxx to admins UID
			_position = getPos player;
			_px = _position select 0;//X
			_py = _position select 1;//Y
			_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
		};
		
		hintSilent parseText format 
			[
				_text,
				r_player_blood,												//1
				round _humanity,											//2
				_killsH,													//3
				_killsB,													//4
				_kills,														//5
				_headShots,													//6
				(dayz_Survived),											//7
				((floor(serverTime/60)) mod 60), 							//8
				_pic,														//9
				_logo,														//10
				_textCity,													//11
				0,															//12
				0,															//13
				round diag_fps,												//14
                {side _x == west} count allUnits,                           //15
	            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
	            count vehicles,												//17
				(floor(serverTime/3600))											//18
			];			
			sleep 1;
	};
};
 
[] spawn fnc_debug;

 

Same place create file hotkeys.sqf and paste:

if (_this select 1 == 66) then {
	hintSilent "";
	custom_monitor_state = custom_monitor_state + 1;
	if (custom_monitor_state>2) then {
		custom_monitor_state = 0;
	};
};

Hope this helps

Link to comment
Share on other sites

  • 0

Where? I just figured as much as this topic has been thrown around here someone would have some nice ones done up already :mellow:

Hey, Im author of rhis video, but not DebugMonitor.

I know that its awesome :3 so I asked one kind man access to use it on my server, he said yeah.

so I cant say his name :D cuz all ppl ll send him a lot of msgs with asks to share monitor) 

Sorry, dude) Try to write ur own)

Link to comment
Share on other sites

  • 0

Login to any server which is often mentioned in the signature. The mission gets downloaded. Have a look how the debug monitor looks like there.

I do not say: copy what you have there...but have a look how it basically works and create your own.

everyone can dowload mission and copy  custom files what we  made.

Is it possible hide it somehow?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...