Page 1 of 1

SBARINFO: Max. Health integer and Healthbar

Posted: Mon Oct 03, 2016 2:01 pm
by AtomicLugia
Hello there, I'm trying to make my own HUD in Zandronum. I kinda made it to work but I have two problems. I tried searching in the ZDoom forums but I barely find something and sometimes Google even wants a CAPTCHA from me if I search for something ZDoom related (wtf?).

It seems that there's no interger for max. health. I want to make a HP counter which shows HEALTH / MAXHEALTH. It should look like this: 100/100. Well, there's already a MaxHealth integer for DrawNumber but it counts only the additional max. health. The small fullscreen HUD (which I kinda love) does have a working full health counter. But I can't find it's SBARINFO. Is it another hard-coded stuff? If this is not possible to reproduce, then I just crate a fake max. health inventory item.

The second problem is the health bar. I want to fit it the current max. health. In one of my mods I made items that increases the max. health by 5. I want the health bar to be half filled if the current health is only 50 or 100 (if max. health is 200). Is that possible?

Sorry for my abysmal english.