[Release] JP HUD Final

For high-res texture/sprite projects, sprite-fix patches, music add-ons, music randomizers, and other graphic/sound-only projects.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

[Release] JP HUD Final

Postby jpalomo » Sun Jun 29, 2014 3:36 pm

Requires a recent git build of ZDoom or GZDoom!
Downloads

Addons:
  • Old graphics (mirror): replaces the graphics with the pre-v11 graphics. Load it after the main HUD. Not compatible with mod friendly version.


Known issues:
  • Health values 32768 and above don't display the enemy health bar properly, but the numbers are still shown and are accurate.
  • Resolutions below 640x480 are not supported.
  • While this loads with any IWAD just fine, it might look weird on some (especially Strife).
  • The normal HUD isn't displayed properly until at least one tic occurs in-game.
  • Using the console/menu to change the bar color also takes at least one tic to change.

The mod friendly version should be compatible with most mods that don't replace the statusbar. Feel free to reuse this as you see fit, as long as you credit me.

To show your currently held keys, press the 'keys list' control (strife's popup screens).
You can change the color of the normal HUD in the options menu, or by changing the hud_barcolor cvar. There are currently 6 different colors available: silver (default), bronze, gold, emerald, ruby, sapphire. You can also specify where the enemy health bar is drawn and how big it is. There are a few other options available, so check them out in the options menu.

Obligatory screenshots (very outdated):
Spoiler:


This project is now on GitHub. If you would like to contribute, make a fork of the project and make a pull request with the changes.

Feedback is appreciated. Enjoy.
Last edited by jpalomo on Sat Apr 22, 2017 8:14 pm, edited 24 times in total.
User avatar
jpalomo
 
Joined: 17 May 2010

Re: [WIP] JP HUD v1

Postby Discordance » Sun Jun 29, 2014 4:38 pm

Enemy health bars. I always wondered if that were possible. Checking this out.

Hmm, the health bar works, but I still get the normal status bar along the bottom.
One other thing, the health bar not displaying at 1024 units: I'd consider that useful rather than an issue, as its the maximum distance for autoaim, so its nice for users who don't use freelook.
User avatar
Discordance
Come the fuck in or fuck the fuck off
 
Joined: 08 Sep 2013

Re: [WIP] JP HUD v1

Postby jpalomo » Sun Jun 29, 2014 4:59 pm

Discordance wrote:Hmm, the health bar works, but I still get the normal status bar along the bottom.

The normal statusbar is being used until I can come up with a proper design for the normal HUD. Right now, this is more of a resource than a full fledged HUD.
User avatar
jpalomo
 
Joined: 17 May 2010

Re: [WIP] JP HUD v1

Postby Endless123 » Sun Jun 29, 2014 10:47 pm

Hey not bad, simple but elegant at the same time, I like it :D

BTW Is it possible to display the specie's name or at least the monster's ID along with the HP?
Endless123
 
Joined: 28 Aug 2013

Re: [WIP] JP HUD v2

Postby jpalomo » Sat Jul 19, 2014 10:36 pm

New version uploaded. Fixed a few issues regarding TIDs with your target. I simply scrapped the idea of using TIDs for anything other than the original activator of the script, it was causing issues with monsters that shared TIDs and ones that relied on script checks in maps. Added ammo graphics for fullscreen HUD. I'm still slowly working on this.

Endless123 wrote:BTW Is it possible to display the specie's name or at least the monster's ID along with the HP?

It should be possible, though I'm not sure how I will implement it into sbarinfo. I'll see about adding it in the next version.

Edit:
It is definitely possible:
Spoiler:

The current implementation uses a global array in ACS to save the actor tag.
User avatar
jpalomo
 
Joined: 17 May 2010

Re: [WIP] JP HUD v2

Postby Endless123 » Sun Jul 20, 2014 1:41 am

I like the new ammo bar :)

It works flawlessly, great work :)
Endless123
 
Joined: 28 Aug 2013

Re: [WIP] JP HUD v2

Postby mallo » Sun Jul 20, 2014 3:26 pm

Whoa, this looks awesome. :D
User avatar
mallo
GO TO NEXT SECTOR.
 
Joined: 22 May 2010
Location: Once upon a land in a far off time

Re: [WIP] JP HUD v2

Postby jpalomo » Thu Jul 24, 2014 6:18 am

Thanks. Here is a little preview of what I am working on:
Spoiler:
User avatar
jpalomo
 
Joined: 17 May 2010

Re: [WIP] JP HUD v3

Postby jpalomo » Sun Jul 27, 2014 11:19 pm

I've uploaded a new version. Your target's name is now displayed right below the health bar. There is also a new normal HUD (still WIP). Currently held keys are displayed in the top right corner and can be toggled with Strife's key list popup control. It should be playable with any IWAD now (Strife looks a little weird, not sure how to fix).
User avatar
jpalomo
 
Joined: 17 May 2010

Re: [WIP] JP HUD v3

Postby Endless123 » Mon Jul 28, 2014 10:35 am

Great work :D

The normal HUD looks good even if it's still a WIP.

Well done :)
Endless123
 
Joined: 28 Aug 2013

Re: [WIP] JP HUD v3

Postby Mayhem666 » Mon Jul 28, 2014 1:13 pm

Monsters hitpoints and Name in the hud is really awesome. i would really use that kind of thing for my project.

Good work mate.
User avatar
Mayhem666
Black Metal
 
Joined: 26 Feb 2012
Location: Canada,Qc

Re: [WIP] JP HUD v3

Postby jpalomo » Sat Aug 02, 2014 2:46 pm

Mayhem666 wrote:i would really use that kind of thing for my project.

Feel free! Just be sure to give credit.

I've been thinking of making a font for this HUD that replaces the big font I'm currently using. I've also got different colored versions of the normal HUD, but I'm not sure if I want to include them (I need to find out how to make a cvar to switch between them). I still have to fix the offsets too, since it doesn't look right on certain resolutions. I might have to use different graphics for different aspect ratios.
User avatar
jpalomo
 
Joined: 17 May 2010

Re: [WIP] JP HUD v3

Postby Endless123 » Sat Aug 02, 2014 3:02 pm

jpalomo wrote:I've been thinking of making a font for this HUD that replaces the big font I'm currently using. I've also got different colored versions of the normal HUD, but I'm not sure if I want to include them (I need to find out how to make a cvar to switch between them). I still have to fix the offsets too, since it doesn't look right on certain resolutions. I might have to use different graphics for different aspect ratios.


Maybe this could be done with an ACS script triggered by a customizable key. How to do that however i don't have any idea. I'll do some experiments on my side and if i get results i'll share the info.
Endless123
 
Joined: 28 Aug 2013

Re: [WIP] JP HUD v3

Postby Blue Shadow » Sat Aug 02, 2014 3:34 pm

Use GetCVar to get the value of the CVAR, giving the player a token (a dummy inventory item), which can be checked by SBARINFO's InInventory command.

ACS:

Code: Select allExpand view
    If(GetCVar("my_cvar"))
       GiveInventory("Item_Token", 1);

    Else
       TakeInventory("Item_Token", 1);


SBARINFO:

Code: Select allExpand view
  InInventory Item_Token
  {
    // Stuff...
  }

  Else
  {
    // Other stuff...
  }
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI Radeon (Modern GZDoom)

Re: [WIP] JP HUD v3

Postby Endless123 » Sat Aug 02, 2014 5:03 pm

As always you come to the rescue Blue Shadow, great thanks for the info :D
Endless123
 
Joined: 28 Aug 2013

Next

Return to Graphic/Audio Patches

Who is online

Users browsing this forum: No registered users and 5 guests