XaserAcheron / damnums

DamNums: a damage numbers mod for GZDoom/QZDoom.
MIT License
31 stars 3 forks source link

Convert to Hud Messages (ZScript) #29

Open MajorCooke opened 6 years ago

MajorCooke commented 6 years ago

Using Marisa Kirisame's HUD Message system and Gutawer's Gutamatics, it should be possible to draw the numbers directly to screen and keep the position of the numbers.

(Gutamatics has a whole system set up for basically translating from 3D world space to 2D screen coordinates.)

This would be extraordinarily advantageous, as the numbers will draw over everything else with ease. Furthermore, no changes would be needed to the number actors themselves except to make them invisible with the actor flag.

I'm willing to lend assistance if needed.

MajorCooke commented 5 years ago

I've added fade ability to the HUD message system so it can now fade out. I'm going to work on a prototype and see if I can get it all working together. I will include a toggle option that switches between using the regular system and Marisa Kirisame's HUD messages.

@XaserAcheron Since it depends on external libraries, do you want it as a separate branch? Or would you prefer I just keep it in my own repository as an offshoot? Or would you ultimately not mind if they're included in the main branch?

XaserAcheron commented 5 years ago

I'm not sure I want this in the main branch (I'm not at all a fan of the hudmessage route for various reasons) -- but that's not a "no". Just depends on what the code looks like after it's all said and done (especially how easy it is to maintain).

Worst case, I can link the fork in the main thread so users can choose.

MajorCooke commented 5 years ago

To clarify, it's not ACS. Just making sure we're clear on that. It's all ZScript.

OrdinaryMagician commented 5 years ago

You don't need to make him switch to our library. A more specialized type of zscript hudmessage would do the job better. One where all that has to be queued is the damage number, world position and color.

This would be similar to how I did it on an old UT mod.

MajorCooke commented 5 years ago

Oh? Do tell.