Hexen alternate HUD - add AC display

Moderator: GZDoom Developers

User avatar
NightFright
Spotlight Team
Posts: 1379
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Hexen alternate HUD - add AC display

Post by NightFright »

If you use the alternate HUD in Hexen, AC is not shown below the health display, it's just empty. I dunno if it was made like this on purpose, but since it shows armor in Doom and Heretic, I guess it should be like this here as well.

[From my previous bug report in the other thread.]
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Hexen alternate HUD - add AC display

Post by NeuralStunner »

I approve, of course. :P

(Although this begs the question "what to do if you have both HexenArmor and BasicArmor?")
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Hexen alternate HUD - add AC display

Post by Graf Zahl »

Then both need to be show, of course!
User avatar
RaVeN-05
Posts: 288
Joined: Mon Dec 28, 2009 5:57 am
Location: Ukraine
Contact:

Re: Hexen alternate HUD - add AC display

Post by RaVeN-05 »

User avatar
SFJake
Posts: 531
Joined: Sat Nov 03, 2007 11:28 am

Re: Hexen alternate HUD - add AC display

Post by SFJake »

Why alternate only?

AC is nowhere to be found in the standard smaller hud (where you only have mana and health).

Why not have it there, too?
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Hexen alternate HUD - add AC display

Post by NeuralStunner »

SFJake wrote:AC is nowhere to be found in the standard smaller hud (where you only have mana and health).
It's funny: In vanilla, the fullscreen HUD has only Health.
User avatar
NightFright
Spotlight Team
Posts: 1379
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Re: Hexen alternate HUD - add AC display

Post by NightFright »

Well, AC/armor is not really vital info, but like I stated above, you see it in the other alternate HUDs for Doom and Heretic as well, so it shouldn't be missing. Personally, I wouldn't need any other stuff there. :)
User avatar
Zaratul
Posts: 110
Joined: Sat Mar 21, 2009 11:19 am

Re: Hexen alternate HUD - add AC display

Post by Zaratul »

I really like this.HUD on Raven screenshot looks great,i really want AC and 3 pieces of weapon on hud.I`m using only alternative hud but do this for other hud`s too. :)
User avatar
NightFright
Spotlight Team
Posts: 1379
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Re: Hexen alternate HUD - add AC display

Post by NightFright »

Well, maybe they shouldn't look exactly like that since it would stick out pretty much that way. However, if you rearranged them to align them all at the bottom in a row, it might look better.
Gez
 
 
Posts: 17943
Joined: Fri Jul 06, 2007 3:22 pm

Re: Hexen alternate HUD - add AC display

Post by Gez »

Here's a patch that adds armor display to Hexen as well.

Implementation is a bit Hexen-specific because there aren't "SlotIcon" properties for the Hexen armor items. The icon used to show the armor is by default the mesh armor, but if you have picked up armor items, it'll be the icon of the item that is currently giving you the best protection. So as you take damage, you can see it change.

This could be added as well to make it as generic as the display of the basic armor; but since creating new types of Hexen armor is mostly pointless, I didn't bother. Also, I didn't bother dividing by five the value to turn a percent into a base-20 score. So with the alt-HUD, you get to see an armor score more in line with the values in Doom, Heretic, Strife and the rest.

For weapon pieces, a variant of the DrawKeys/DrawWeapons/DrawAmmo etc. functions would probably be needed. I didn't bother either. The way I see it, it'd only draw segments for incomplete weapons, though; once the weapon is completed it gets its own icon on the HUD already so showing the segments would be redundant.
Attachments
hexenarrmor.zip
(1.23 KiB) Downloaded 126 times
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Hexen alternate HUD - add AC display

Post by NeuralStunner »

Gez wrote:Also, I didn't bother dividing by five the value to turn a percent into a base-20 score.
I'm still waiting on this capability for SBarInfo, as well. ;)
Gez
 
 
Posts: 17943
Joined: Fri Jul 06, 2007 3:22 pm

Re: Hexen alternate HUD - add AC display

Post by Gez »

Use "SavePercent" instead of "ArmorClass". The Hexen armor system uses the armor value for both the amount and the protection.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Hexen alternate HUD - add AC display

Post by NeuralStunner »

Not sure that works, as I've used both HexenArmor and BasicArmor in in the same mod.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Hexen alternate HUD - add AC display

Post by Graf Zahl »

.. and the submission merges them into one number...
This probably needs changing.
Gez
 
 
Posts: 17943
Joined: Fri Jul 06, 2007 3:22 pm

Re: Hexen alternate HUD - add AC display

Post by Gez »

Use the normal Hexen HUD. Wear both BasicArmor protection and HexenArmor protection. Surprise, it's also merged into a single number.

Doom/Heretic/Strife armors have two different values: amount and savepercent. Hexen armors have a single value that is used for both. So the Hexen armor value should count both as amount and as savepercent.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”