Nash's HP Bar - a minimalist HP bar mod

For high-res texture/sprite projects, sprite-fix patches, music add-ons, music randomizers, and other graphic/sound-only projects.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
Nash
 
 
Posts: 17465
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Nash's HP Bar - a minimalist HP bar mod

Post by Nash »




Requires GZDoom 4.6.0 and above

As seen in my StrifeCoop live streams! Made this for personal use and was quickly thrown together in the most simple and minimalistic way possible.
Just a HP bar. Nothing else!

Intentionally no customizability. I wanted to keep it clean and simple.

Can be toggled on and off. Useful in a coop game where some players may not want their screen to be cluttered, but all players must have the mod loaded to prevent desyncs.

The bar's position will always be drawn such so that it will never obscure your pickup messages. It also respects message scale settings and the number of lines as determined by the 'con_notifylines' CVAR.

MIT license (see LICENSE.txt).

Have fun!
26th May 2021:
- Rewrote target-finding system, it now ignores player auto-aim setting, and has unlimited distance
- Use white as the font colour
Spoiler: Old updates
> Download <
> Github <

Wanna chat about my mods? Join my studio's Discord server, Mischief Donut!
Image

I spend an uncountable amount of hours making mods. Consider supporting me on Patreon for cool benefits!
Image
Last edited by Nash on Sun Apr 07, 2024 10:17 am, edited 8 times in total.
User avatar
Ac!d
Posts: 346
Joined: Tue Apr 02, 2019 5:13 am
Location: France

Re: Nash's HP Bar - a minimalist HP bar mod

Post by Ac!d »

Can't launch this mod :

Code: Select all

Script error, "NashHPBar.pk3:zscript/nashhpbar/nashhpbarhandler/nashhpbarhandler.zc" line 265:
Unknown function GetCharacterName
Script error, "NashHPBar.pk3:zscript/nashhpbar/nashhpbarhandler/nashhpbarhandler.zc" line 271:
Unknown identifier 'targName'
Script error, "NashHPBar.pk3:zscript/nashhpbar/nashhpbarhandler/nashhpbarhandler.zc" line 274:
Unknown identifier 'targName'
User avatar
Nash
 
 
Posts: 17465
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: Nash's HP Bar - a minimalist HP bar mod

Post by Nash »

Ah crap, forgot to specify that the mod uses an in-development feature only available in devbuilds. But not to worry, GZDoom 4.6.0 is going to be released really soon which will rectify it.

In the mean time, this is only runnable on a devbuild. http://devbuilds.drdteam.org/
User avatar
NightFright
Spotlight Team
Posts: 1375
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Re: Nash's HP Bar - a minimalist HP bar mod

Post by NightFright »

It's really time to release a new GZD version...
User avatar
Nash
 
 
Posts: 17465
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: Nash's HP Bar - a minimalist HP bar mod

Post by Nash »

NightFright wrote:It's really time to release a new GZD version...
Soon! :P Any moment now... !
User avatar
Nash
 
 
Posts: 17465
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: Nash's HP Bar - a minimalist HP bar mod

Post by Nash »

Updated the mod to run only in GZDoom 4.6.0 (because it won't work in previous versions anyway).
User avatar
NightFright
Spotlight Team
Posts: 1375
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Re: Nash's HP Bar - a minimalist HP bar mod

Post by NightFright »

It's ingenious. I like it even more than Xaser's "Universal Damage Numbers". Both mods serve similar purposes, but yours lets you also see how much damage you still have to inflict to down the enemy, which is even better. Simple and functional, a classic Nash!

I could imagine two more options (if there was supposed to be some customizability after all):
- Toggle between HP bar for all enemies and bosses only (could be part of the On/Off switch to minimize amount of needed CVARs)
- Override default text color with white in all games (especially Doom would profit from this since red letters don't look so good with red background)
User avatar
Nash
 
 
Posts: 17465
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: Nash's HP Bar - a minimalist HP bar mod

Post by Nash »

v1.2 has been released:

- Rewrote target-finding system, it now ignores player auto-aim setting, and has unlimited distance
- Use white as the font colour

Link in first post
User avatar
NightFright
Spotlight Team
Posts: 1375
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Re: Nash's HP Bar - a minimalist HP bar mod

Post by NightFright »

The font color change is definitely an improvement. Regarding that autoaim adjustment... it's a double-edged sword for me. On one hand, you now don't have HP bars popping up without actually having any enemy in your crosshair, but on the other hand, if you play with autoaim on and mouse aiming off (like I usually do), you now wouldn't get any bars for enemies located above or below you.
Last edited by NightFright on Wed May 26, 2021 1:20 am, edited 1 time in total.
User avatar
Nash
 
 
Posts: 17465
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: Nash's HP Bar - a minimalist HP bar mod

Post by Nash »

Guess I'll have to add 1 more option for autoaim then. :P Was trying to avoid adding options on principle. :lol:

I'll take care of it for the next version.

Return to “Graphic/Audio Patches”