ACS Prefab Database

Archive of the old editing forum
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.
Locked
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Ack, should there be a rule that the scripts be usable in Doom at the very least Freedoomer's can see the scripts. (N.B I have DCE, not FreeDoom)
User avatar
justin024
Posts: 379
Joined: Sun Nov 14, 2004 1:29 am
Location: Illinois
Contact:

Post by justin024 »

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
User avatar
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:

Post by Tormentor667 »

@Justin - Thx for that, but what I really need is ONE bar for FOUR (or even more (!) make this flexible) Monsters, one centered bar at the top middle, that counts the hp of all the tagged monsters as a whole.
User avatar
justin024
Posts: 379
Joined: Sun Nov 14, 2004 1:29 am
Location: Illinois
Contact:

Post by justin024 »

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:
User avatar
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:

Post by Tormentor667 »

Okay, thx for that, but now I need demo grpahics for that script, where do I get them? These FILLCRIT, FILLCAUT, etc. stuff?
User avatar
justin024
Posts: 379
Joined: Sun Nov 14, 2004 1:29 am
Location: Illinois
Contact:

Post by justin024 »

Either in the "4 HP bars demo" I made earlier, or Apotherm's HP bar demo.
User avatar
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:

Post by Tormentor667 »

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:
Image
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 :)
User avatar
justin024
Posts: 379
Joined: Sun Nov 14, 2004 1:29 am
Location: Illinois
Contact:

Post by justin024 »

Tormentor667 wrote: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?
Change this line:

Code: Select all

hudmessagebold(i:hdisp; 1, 0, CR_WHITE, 420.1, 10.1, 1);
To this:

Code: Select all

hudmessagebold(i:hdisp; 0, 0, CR_WHITE, 420.1, 10.1, 1.0);
Tormentor667 wrote:2nd: This is how the bar looks for me:
Image
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 :)
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.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

I kinda like that effect.
User avatar
Enjay
 
 
Posts: 26991
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

The problem with the segmented bar was mentioned waaaay back here

http://forum.zdoom.org/potato.php?t=802 ... c&start=60
User avatar
justin024
Posts: 379
Joined: Sun Nov 14, 2004 1:29 am
Location: Illinois
Contact:

Post by justin024 »

The segmented bar doesn't bother me enough to do something about it
User avatar
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:

Post by Tormentor667 »

justin024 wrote: 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.
Tried different resolutions and it is always the same. The little HPparts are not aligned correctly into the box :(
User avatar
Apothem
Posts: 2070
Joined: Sat Nov 29, 2003 7:13 pm
Location: Performing open heart surgery on an ACS compiler.

Post by Apothem »

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. :wink:

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 :P
User avatar
jallamann
Posts: 2271
Joined: Mon May 24, 2004 8:25 am
Location: Ålesund, Norway
Contact:

Post by jallamann »

Fixing the graphics instead of the script? ;)
User avatar
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:

Post by Tormentor667 »

jallamann wrote:Fixing the graphics instead of the script? ;)
How? I really need this working for my arena! :( The hpbar is still above the "placeholder" and this really looks totally odd :( whether I use 800x600 or 1024x786 or anything else :(
Locked

Return to “Editing (Archive)”