Alternative hud, little changes

Moderator: GZDoom Developers

User avatar
RaVeN-05
Posts: 288
Joined: Mon Dec 28, 2009 5:57 am
Location: Ukraine
Contact:

Alternative hud, little changes

Post by RaVeN-05 »

Add "i" that this means "items"
i: 0/10 !!!
k: 0/100
s: 0/10
---------------------------------
for hexen, down, after health add "AC: 14"
AC = Armor Class #
---------------------------------
A little right (where a free space, after health, AC) you can add
symbols of third weapon, so player always know what part leak,
and need to be finded
Gez
 
 
Posts: 17943
Joined: Fri Jul 06, 2007 3:22 pm

Re: Alternative hud, little changes

Post by Gez »

Items are already there; just not set on true by default. See the [wiki]Alternative HUD[/wiki] article for more info.
User avatar
RaVeN-05
Posts: 288
Joined: Mon Dec 28, 2009 5:57 am
Location: Ukraine
Contact:

Re: Alternative hud, little changes

Post by RaVeN-05 »

Thank you, now i know hud_showitems true (i am use it).
But how to be a with hexen? Armor class, and 3 icons (parts of last weapon)
use these lumps

Code: Select all

WCH1A0
WCH2A0
WCH3A0
WFR1A0
WFR2A0
WFR3A0
WMS1A0
WMS2A0
WMS3A0
Attachments
new.jpg
new.jpg (172.5 KiB) Viewed 1927 times
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: Alternative hud, little changes

Post by Graf Zahl »

The Hexen armor is not implemented in the alt HUD because I never figured out how the numbers actually work.
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: Alternative hud, little changes

Post by NeuralStunner »

AC = HexenArmor / 5, right?
Gez
 
 
Posts: 17943
Joined: Fri Jul 06, 2007 3:22 pm

Re: Alternative hud, little changes

Post by Gez »

NeuralStunner wrote:AC = HexenArmor / 5, right?
Yes.
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: Alternative hud, little changes

Post by InsanityBringer »

What exactly is the formula for absorb then?
Gez
 
 
Posts: 17943
Joined: Fri Jul 06, 2007 3:22 pm

Re: Alternative hud, little changes

Post by Gez »

InsanityBringer wrote:What exactly is the formula for absorb then?
The Slots[x] value correspond to the x5 scale, so if you have AC 10, savedPercent is 50.

Code: Select all

void AHexenArmor::AbsorbDamage (int damage, FName damageType, int &newdamage)
{
	if (damageType != NAME_Drowning)
	{
		fixed_t savedPercent = Slots[0] + Slots[1] + Slots[2] + Slots[3] + Slots[4];

		if (savedPercent)
		{ // armor absorbed some damage
			if (savedPercent > 100*FRACUNIT)
			{
				savedPercent = 100*FRACUNIT;
			}
			for (int i = 0; i < 4; i++)
			{
				if (Slots[i])
				{
					// 300 damage always wipes out the armor unless some was added
					// with the dragon skin bracers.
					if (damage < 10000)
					{
						Slots[i] -= Scale (damage, SlotsIncrement[i], 300);
						if (Slots[i] < 2*FRACUNIT)
						{
							Slots[i] = 0;
						}
					}
					else
					{
						Slots[i] = 0;
					}
				}
			}
			int saved = Scale (damage, savedPercent, 100*FRACUNIT);
			if (saved > savedPercent >> (FRACBITS-1))
			{	
				saved = savedPercent >> (FRACBITS-1);
			}
			newdamage -= saved;
			damage = newdamage;
		}
	}
	if (Inventory != NULL)
	{
		Inventory->AbsorbDamage (damage, damageType, newdamage);
	}
}
User avatar
RaVeN-05
Posts: 288
Joined: Mon Dec 28, 2009 5:57 am
Location: Ukraine
Contact:

Re: Alternative hud, little changes

Post by RaVeN-05 »

A.C. = 5% Doom Armor
------------------------------------------------------------------------------------------------------------------------------------------------------
---------Initial Values--Amulet of Warding--Falcon Shield--Mesh Armor--Platinum Helm--Dragonskin Bracers--Total---Doom Armor--
Fighter----3------------------1--------------------4----------------5-------------3--------------------4-------------------20------100%---------
Cleric-----2------------------4--------------------5----------------2-------------1--------------------4-------------------18-------90%----------
Mage------1------------------5--------------------3----------------1-------------2--------------------4-------------------16-------80%----------
------------------------------------------------------------------------------------------------------------------------------------------------------
User avatar
RaVeN-05
Posts: 288
Joined: Mon Dec 28, 2009 5:57 am
Location: Ukraine
Contact:

Re: Alternative hud, little changes

Post by RaVeN-05 »

Topic Died =0 ?? I am scared. No responces (
User avatar
ZDG
Posts: 918
Joined: Sat Jan 02, 2010 12:01 pm
Location: in SlumpEd

Re: Alternative hud, little changes

Post by ZDG »

Hey, you waited only tWO days, don't think it will come that fast.
User avatar
RaVeN-05
Posts: 288
Joined: Mon Dec 28, 2009 5:57 am
Location: Ukraine
Contact:

Re: Alternative hud, little changes

Post by RaVeN-05 »

Ok. Thanx =). Just don't know what to think. Don't know whats is going on? =) Sometimes my english very bad. I am wondering peoples understand me?? yes?
User avatar
.+:icytux:+.
Posts: 2661
Joined: Thu May 17, 2007 1:53 am
Location: Finland

Re: Alternative hud, little changes

Post by .+:icytux:+. »

RaVeN-05 wrote:Ok. Thanx =). Just don't know what to think. Don't know whats is going on? =) Sometimes my english very bad. I am wondering peoples understand me?? yes?
yeah its fine, feature suggestions just tend to take a reallly long time before someone does anything about them, and its standing kinda still right now because its summer and devs want to play outside :P
User avatar
RaVeN-05
Posts: 288
Joined: Mon Dec 28, 2009 5:57 am
Location: Ukraine
Contact:

Re: Alternative hud, little changes

Post by RaVeN-05 »

Any updates?
User avatar
Ænima
Posts: 216
Joined: Thu Jul 08, 2010 10:39 pm

Re: Alternative hud, little changes

Post by Ænima »

Bumping suggestions doesn't really help. I'm sure the developers will post updates as they make them. :P
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”