Hexen alternate HUD - add AC display
Moderator: GZDoom Developers
- NightFright
- Spotlight Team
- Posts: 1379
- Joined: Fri May 02, 2008 12:29 pm
- Location: Germany
Hexen alternate HUD - add AC display
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.]
[From my previous bug report in the other thread.]
- 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
I approve, of course. 
(Although this begs the question "what to do if you have both HexenArmor and BasicArmor?")

(Although this begs the question "what to do if you have both HexenArmor and BasicArmor?")
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49230
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Hexen alternate HUD - add AC display
Then both need to be show, of course!
Re: Hexen alternate HUD - add AC display
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?
AC is nowhere to be found in the standard smaller hud (where you only have mana and health).
Why not have it there, too?
- 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
It's funny: In vanilla, the fullscreen HUD has only Health.SFJake wrote:AC is nowhere to be found in the standard smaller hud (where you only have mana and health).
- NightFright
- Spotlight Team
- Posts: 1379
- Joined: Fri May 02, 2008 12:29 pm
- Location: Germany
Re: Hexen alternate HUD - add AC display
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. 

Re: Hexen alternate HUD - add AC display
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. 

- NightFright
- Spotlight Team
- Posts: 1379
- Joined: Fri May 02, 2008 12:29 pm
- Location: Germany
Re: Hexen alternate HUD - add AC display
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.
Re: Hexen alternate HUD - add AC display
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.
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
- 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
I'm still waiting on this capability for SBarInfo, as well.Gez wrote:Also, I didn't bother dividing by five the value to turn a percent into a base-20 score.

Re: Hexen alternate HUD - add AC display
Use "SavePercent" instead of "ArmorClass". The Hexen armor system uses the armor value for both the amount and the protection.
- 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
Not sure that works, as I've used both HexenArmor and BasicArmor in in the same mod.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49230
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Hexen alternate HUD - add AC display
.. and the submission merges them into one number...
This probably needs changing.
This probably needs changing.
Re: Hexen alternate HUD - add AC display
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.
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.