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 YOUR 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.

Nash's HP Bar - a minimalist HP bar mod

Postby Nash » Mon May 17, 2021 10:27 pm




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
Last edited by Nash on Tue May 25, 2021 1:04 pm, edited 3 times in total.
User avatar
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

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

Postby Ac!d » Tue May 18, 2021 3:33 am

Can't launch this mod :
Code: Select allExpand view
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
Ac!d
Perfection is a way, not an end. - Korean Proverb
 
Joined: 02 Apr 2019
Location: France
Discord: Ac!d#2732

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

Postby Nash » Tue May 18, 2021 4:07 am

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
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

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

Postby NightFright » Tue May 18, 2021 9:43 am

It's really time to release a new GZD version...
User avatar
NightFright
Spotlight Team
 
Joined: 02 May 2008
Location: Germany

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

Postby Nash » Tue May 18, 2021 3:50 pm

NightFright wrote:It's really time to release a new GZD version...


Soon! :P Any moment now... !
User avatar
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

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

Postby Nash » Sat May 22, 2021 11:36 am

Updated the mod to run only in GZDoom 4.6.0 (because it won't work in previous versions anyway).
User avatar
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

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

Postby NightFright » Tue May 25, 2021 6:57 am

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
NightFright
Spotlight Team
 
Joined: 02 May 2008
Location: Germany

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

Postby Nash » Tue May 25, 2021 1:04 pm

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
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

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

Postby NightFright » Tue May 25, 2021 11:29 pm

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
NightFright
Spotlight Team
 
Joined: 02 May 2008
Location: Germany

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

Postby Nash » Wed May 26, 2021 12:02 am

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.
User avatar
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes


Return to Graphic/Audio Patches

Who is online

Users browsing this forum: No registered users and 0 guests