Jump to content

Professional Looking HUD


N/A

Recommended Posts

    case 24:
    {
    if(_shift) then {
        switch (player getVariable["Earplugs",0]) do {
            case 0: {hintSilent "Tapones Nivel 3"; 1 fadeSound 0.1; player setVariable ["Earplugs", 10]; };
            call life_fnc_hudUpdate;
            case 10: {hintSilent "Tapones Nivel 2"; 1 fadeSound 0.4; player setVariable ["Earplugs", 40]; };
            call life_fnc_hudUpdate;
            case 40: {hintSilent "Tapones Nivel 1"; 1 fadeSound 0.7; player setVariable ["Earplugs", 70]; };
            call life_fnc_hudUpdate;
            case 70: {hintSilent "Tapones Quitados"; 1 fadeSound 1; player setVariable ["Earplugs", 0]; };
            call life_fnc_hudUpdate;
            };
       };
   };


So would it be fine? @imthatguyhere

Link to comment
Share on other sites

On 5/11/2019 at 8:36 AM, David Medel said:

    case 24:
    {
    if(_shift) then {
        switch (player getVariable["Earplugs",0]) do {
            case 0: {hintSilent "Tapones Nivel 3"; 1 fadeSound 0.1; player setVariable ["Earplugs", 10]; };
            call life_fnc_hudUpdate;
            case 10: {hintSilent "Tapones Nivel 2"; 1 fadeSound 0.4; player setVariable ["Earplugs", 40]; };
            call life_fnc_hudUpdate;
            case 40: {hintSilent "Tapones Nivel 1"; 1 fadeSound 0.7; player setVariable ["Earplugs", 70]; };
            call life_fnc_hudUpdate;
            case 70: {hintSilent "Tapones Quitados"; 1 fadeSound 1; player setVariable ["Earplugs", 0]; };
            call life_fnc_hudUpdate;
            };
       };
   };


So would it be fine? @imthatguyhere

If you arent setting life_fadesound, then no.

Link to comment
Share on other sites

  • 2 months later...

Hi All

OK, i can get the icon to display BUT the earplugs dont work. 

Have tried various things.

Here is my files, no RPT errors.

configuration.sqf - https://pastebin.com/kNu7zthw

fn_fadeSounds.sqf- https://pastebin.com/gsfT3vpV

fn_keyHandler.sqf - https://pastebin.com/xzS4f9vH

 

Note as above the various levels of earpluygs work BUT the icon does not show

If i comment out line 265 to 276 and bring line 257 - 264 back (in keyhandler) and set life_fadeSound = false; in the configuration then the icon would appear BUT the earplugs wont work

Link to comment
Share on other sites

5 hours ago, Silvrav said:

Hi All

OK, i can get the icon to display BUT the earplugs dont work. 

Have tried various things.

Here is my files, no RPT errors.

configuration.sqf - https://pastebin.com/kNu7zthw

fn_fadeSounds.sqf- https://pastebin.com/gsfT3vpV

fn_keyHandler.sqf - https://pastebin.com/xzS4f9vH

 

Note as above the various levels of earpluygs work BUT the icon does not show

 If i comment out line 265 to 276 and bring line 257 - 264 back (in keyhandler) and set life_fadeSound = false; in the configuration then the icon would appear BUT the earplugs wont work

The icon isn't detecting if earplugs are in, it's looking for life_fadeSound. You need to edit the script for the hud to your earplugs variable or actually set life_fadeSound when players use earplugs. You also would want a default life_fadeSound in the configuration.sqf so it shows when off.

  • Like 1
Link to comment
Share on other sites

On 7/17/2019 at 2:08 AM, imthatguyhere said:

The icon isn't detecting if earplugs are in, it's looking for life_fadeSound. You need to edit the script for the hud to your earplugs variable or actually set life_fadeSound when players use earplugs. You also would want a default life_fadeSound in the configuration.sqf so it shows when off.

All working thank you!

Last problem - I just realised the food icon does not update. Health and water updates fine, but food remains at 100%.

No errors in RPT file and checked for BOM characters using - http://arma.imthatguyhere.com/bom/

Files 

Keyhandler - https://pastebin.com/XABk16CE

hudsetup - https://pastebin.com/djFTDGyH

hudstats - https://pastebin.com/dBiigmHS

hudupdate - https://pastebin.com/7CzmuUiC

 

 

Link to comment
Share on other sites

1 hour ago, Silvrav said:

All working thank you!

Last problem - I just realised the food icon does not update. Health and water updates fine, but food remains at 100%.

No errors in RPT file and checked for BOM characters using - http://arma.imthatguyhere.com/bom/

Files 

Keyhandler - https://pastebin.com/XABk16CE

hudsetup - https://pastebin.com/djFTDGyH

hudstats - https://pastebin.com/dBiigmHS

hudupdate - https://pastebin.com/7CzmuUiC

 

 

Did you change your hunger Variable at all?

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

I'm doing my best to learn to do things by my own, so some things gets me confused like the noob I am. My question is: why this path - 

VindicateAssets\images\textures\HUD

I don't have vindicateassets anywhere, and same thing goes for images folder. I have downloaded the HUD folder, but where to put it?
Anyone that can lead me out of the darkness here?

Running Arma 3 with Altis Life 5.0

Link to comment
Share on other sites

20 hours ago, Miccelangelo said:

I'm doing my best to learn to do things by my own, so some things gets me confused like the noob I am. My question is: why this path - 


VindicateAssets\images\textures\HUD

I don't have vindicateassets anywhere, and same thing goes for images folder. I have downloaded the HUD folder, but where to put it?
Anyone that can lead me out of the darkness here?

Running Arma 3 with Altis Life 5.0

It’s just where he’s placed his textures folder/HUD folder so Just replace that line with where your hud folder is located.

unzip the HUD file and place the HUD folder in your textures file in your root (don’t extract them into here just place the unzipped folder with all the icons in)

So if your HUD folder is located in your textures folder in your servers root then just remove the first parts to make it look like this : “textures\HUD”

 

this is is how the code should look, provided it’s located there

Spoiler

LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "textures\HUD\water1.paa";

 

Edited by Gillam
  • Thanks 1
Link to comment
Share on other sites

1 hour ago, Gillam said:

so if your HUD folder is located in your textures folder in your servers root then just remove the first parts to make it look like this : “textures\HUD”

Thank you so much for your help! I had already figured out that the file path was the authors, not mine. However, you just taught me that I didn't have to include Altis_Life.Altis in the direction, that only crashed the whole thing. Altis_Life.Altis is the actual Core (Main) of all the directories, finally understand. 🤓

 

"Even a blind squirl will find an Acorn now and then"

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.