ACS Prefab Database
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
Here is the 4 simultaneous HP bars demo, based on apothems. I added an auto terminate feature too.
Spoiler:Also, the last monster script
Spoiler:
- Attachments
-
hpbardemo.zip
- 4 HP Bars demo
- (4.78 KiB) Downloaded 70 times
- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Flexible HP bar for multiple monsters: Done and Done. Simply change the value of x_index to that of the size of the tids[] array, define the monster TIDs in the tids[] array, and set totHP to the combined HP of the monsters. (Sorry, no test wad yet, I'm including this as part of the next release of my ACS Demos project)
Spoiler:
- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Okay, works fine
Now I have another few questions:
1st: The percentage counter (100, 98, 37, 22 and so on) fades into each other, when it changes, that makes it hard to read, how can I change that?
2nd: This is how the bar looks for me:

These little HPGraphics don't fit into the border, looks like the script is messing up something, how can I correct this? Other than that: Great script, works amazingly good

1st: The percentage counter (100, 98, 37, 22 and so on) fades into each other, when it changes, that makes it hard to read, how can I change that?
2nd: This is how the bar looks for me:

These little HPGraphics don't fit into the border, looks like the script is messing up something, how can I correct this? Other than that: Great script, works amazingly good

Change this line:Tormentor667 wrote:Okay, works fineNow I have another few questions:
1st: The percentage counter (100, 98, 37, 22 and so on) fades into each other, when it changes, that makes it hard to read, how can I change that?
Code: Select all
hudmessagebold(i:hdisp; 1, 0, CR_WHITE, 420.1, 10.1, 1);
Code: Select all
hudmessagebold(i:hdisp; 0, 0, CR_WHITE, 420.1, 10.1, 1.0);
I'm not sure, it could be the resolution you're using or the way the WAD is set up. The only problem I encountered was that the bar is segmented at certain resolutions.Tormentor667 wrote:2nd: This is how the bar looks for me:
These little HPGraphics don't fit into the border, looks like the script is messing up something, how can I correct this? Other than that: Great script, works amazingly good
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
The problem with the segmented bar was mentioned waaaay back here
http://forum.zdoom.org/potato.php?t=802 ... c&start=60
http://forum.zdoom.org/potato.php?t=802 ... c&start=60
- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
- Apothem
- Posts: 2070
- Joined: Sat Nov 29, 2003 7:13 pm
- Location: Performing open heart surgery on an ACS compiler.
There's a way to completely fix the problem with the resolutions, and yes, it's possible to detect the resolution and everything else and have it be self fixing within the script. I'm waiting for someone to figure it out, because I'm tired of doing it all for you guys. 
As a minor side note, I've already got the solution coded out, based off of Enjay's script. As Enjay's script saved me a buncha extra typing

As a minor side note, I've already got the solution coded out, based off of Enjay's script. As Enjay's script saved me a buncha extra typing

- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact: