Hexen alternate HUD - add AC display

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Hexen alternate HUD - add AC display

Re: Hexen alternate HUD - add AC display

by NeuralStunner » Mon Dec 20, 2010 3:54 pm

I guess that needs to be fixed too, then.

Re: Hexen alternate HUD - add AC display

by Gez » Mon Dec 20, 2010 3:26 pm

And since I changed nothing in SBARINFO code, if your custom status bar changed, it's not because of this.

Re: Hexen alternate HUD - add AC display

by NeuralStunner » Mon Dec 20, 2010 3:22 pm

The custom status bar which I wrote used to leave the AC alone when the secondary armor item was added. My SBarInfo hasn't changed in months.

Re: Hexen alternate HUD - add AC display

by Gez » Mon Dec 20, 2010 3:19 pm

NeuralStunner wrote:Then I suppose SBarInfo needs a feature to display all your Clips, Shells, Rockets, and Cells as one total? :?
They aren't the same thing. Contrarily to this.
NeuralStunner wrote:Displaying the BasicArmor (whose save is still only 50%) as if it were HexenArmor is misleading, as the total AC for all the armor items doesn't actually go over 20. There's already a bar to track BasicArmor separately, and that works as expected.
Use the Hexen HUD with your mod and see what happens. Don't blame me for that -- it was already like this.

Re: Hexen alternate HUD - add AC display

by NeuralStunner » Mon Dec 20, 2010 3:13 pm

Then I suppose SBarInfo needs a feature to display all your Clips, Shells, Rockets, and Cells as one total? :?

So I tank up the Fighter to 20 AC, which is 100 HexenArmor. That's a 100% save.

Now I add a BasicArmor that has a 50% save. A bar to display his standard Armor value is filled.

With the patch, his "AC" climbs to 30.

Now, I let an Ettin beat on him a bit. His HexenArmor and BasicArmor are being reduced. "AC" is going down and The Armor bar is depleting.

Then, he begins taking HP damage while his "AC" is still over 20. However, his HexenArmor has dropped below 100 in amount and save percent.

Displaying the BasicArmor (whose save is still only 50%) as if it were HexenArmor is misleading, as the total AC for all the armor items doesn't actually go over 20. There's already a bar to track BasicArmor separately, and that works as expected.

Re: Hexen alternate HUD - add AC display

by Graf Zahl » Mon Dec 20, 2010 3:07 pm

It breaks the armor display. Mixing up the 2 values makes the end result worthless if both are used.

Re: Hexen alternate HUD - add AC display

by Gez » Mon Dec 20, 2010 1:50 pm

NeuralStunner wrote:Well that has definitely broken quite a few things I was working on, which counted each as a separate value.
How does a display break anything? The impact on simulation is nil.

Re: Hexen alternate HUD - add AC display

by Graf Zahl » Mon Dec 20, 2010 1:09 pm

Well, ok, seems this needs a quick change. It was a strange way to do it anyway but I hadn't really expected that there's already mods that use both... Otherwise I would have ditched it.

Re: Hexen alternate HUD - add AC display

by NeuralStunner » Mon Dec 20, 2010 1:01 pm

Well that has definitely broken quite a few things I was working on, which counted each as a separate value. (And this mod.) Which were intended to use HexenArmor for body protection and BasicArmor as a shield.

Re: Hexen alternate HUD - add AC display

by Gez » Mon Dec 20, 2010 12:51 pm

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.

Re: Hexen alternate HUD - add AC display

by Graf Zahl » Mon Dec 20, 2010 12:12 pm

.. and the submission merges them into one number...
This probably needs changing.

Re: Hexen alternate HUD - add AC display

by NeuralStunner » Mon Dec 20, 2010 12:07 pm

Not sure that works, as I've used both HexenArmor and BasicArmor in in the same mod.

Re: Hexen alternate HUD - add AC display

by Gez » Mon Dec 20, 2010 5:57 am

Use "SavePercent" instead of "ArmorClass". The Hexen armor system uses the armor value for both the amount and the protection.

Re: Hexen alternate HUD - add AC display

by NeuralStunner » Sun Dec 19, 2010 4:39 pm

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. ;)

Re: Hexen alternate HUD - add AC display

by Gez » Sun Dec 19, 2010 4:11 pm

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

Top