haekb / nolf2-modernizer

NOLF 2 Modernizer aims to unlock resolution support, restore multi-player support, and fix a few bugs here and there.
https://haekb.itch.io/nolf2-modernizer
30 stars 4 forks source link

Add TakeDamage HUD element. It currently always renders the effect. #47

Closed haekb closed 4 years ago

haekb commented 4 years ago

Fixes #46

I have to remove the current functionality out of PlayerMgr, then finish off this HUDTakeDamage class to handle displaying when taking damage, and increase opacity depending on number of damage events we get.

Here's a preview: image

haekb commented 4 years ago

(Taken from a video!) image

I've fully implemented the effect. It could use configurable parameters, but I feel like whoever is going to touch this next won't ever need to touch this effect. 🤔

I've fully disabled the old TakingHealth/TakingArmour effects, the latter wasn't used anyways.

--

There's about 5 levels of pain. Each time you take damage it adds another level. They affect the strength of the effect, alongside how along the timer each effect is.