[HG]RaVeN103

StatusBar-Extension

5 posts in this topic

Hey Exilers,

Here is a small extension for the most common StatusBars. -Not ExAd
If you have a radio, the player number of the server is shown.
If you have a compass, the directions are shown.

If you have these items only in the inventory, then of course nothing is displayed.9_9

_______________________________________________________________________________

Hier eine kleine Erweiterung für die gängigsten StatusBars. -Nicht ExAd
Wenn ihr ein Radio ausgerüstet habt, wird die Spielerzahl des Servers gezeigt.
Wenn ihr ein Kompass ausgerüstet habt, werden die Richtungen gezeigt.

Wenn ihr diese Gegenstände nur im Inventar habt, dann wird natürlich nichts angezeigt.9_9

Do It...

Compass

Go to your statusbar.sqf and search

 _dir = round (getDir (vehicle player));

replace with

_dir = if ("ItemCompass" in assigneditems Player) then 
            {
                round (getDir (vehicle player));
            }
            else
            {
                "-";
            };

Or if you have

switch(_dir) do
            {
                case 0: {_dir = "N"};
                case 1: {_dir = "NE"};
                case 2: {_dir = "E"};
                case 3: {_dir = "SE"};
                case 4: {_dir = "S"};
                case 5: {_dir = "SW"};
                case 6: {_dir = "W"};
                case 7: {_dir = "NW"};
                case 8: {_dir = "N"};
            };

in your statusbar.sqf then

Search for

_dir = round ((getDir (vehicle player))/45);

and replace with

_dir = if ("ItemCompass" in assigneditems Player) then 
            {
                round ((getDir (vehicle player))/45);
            }
            else
            {
                "-";
            };        

Done the first.:rock:

Radio

Go to your statusbar.sqf 

put this in your _var = blabla section

_PlayersOnServer = if ("ItemRadio" in assigneditems Player) then 
			{
				count playableUnits;
			}
			else
			{
				"-";
			};		

like this

		_unit = _this select 0;
		_damage = round ((1 - (damage player)) * 100);
		//_damage = (round(_damage * 100));
		_hunger = round (ExileClientPlayerAttributes select 2);
		_thirst = round (ExileClientPlayerAttributes select 3);
		_respect = ExileClientPlayerScore;
		_wallet =  (player getVariable ["ExileMoney", 0]);
		_lockers = (player getVariable ["ExileLocker", 0]);
		_stamina = ExileClientPlayerScore;
/////////////////////////////////////////////////////////////////////////////
		_PlayersOnServer = if ("ItemRadio" in assigneditems Player) then 
			{
				count playableUnits;
			}
			else
			{
				"-";
			};		
/////////////////////////////////////////////////////////////////////////////
		_energy = 100;
		_energyPercent = 100;
		_serverFPS = round diag_fps;
		_pos = getPosATL player;

replace

count playableUnits

with

_PlayersOnServer

in your ctrlSetStructuredText section

like this

"%", 
//count playableUnits, <---Nope
_PlayersOnServer, //<---Thats new
_damage, _wallet, _hunger, 
_thirst, _serverFPS, _respect,
_colourDefault, 
format["%1/%2",_xx,_yy], 
_dir, 
_hours,
_minutes, 
_colourDamage, 
_colourHunger, 
_colourThirst, 
_colourCold, 
_ambient, 
_bodytemp, 
"°C"
Mission Complete!!! Thanks						
  • Like 4

Share this post


Link to post
Share on other sites
Advertisement
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.