Modularize randomized enemy size hook & fix enemy health bars#5887
Conversation
| }); | ||
| } | ||
|
|
||
| static RegisterShipInitFunc initFunc(RegisterRandomizedEnemySizes, { CVAR_RANDO_ENEMY_SIZE_NAME }); |
There was a problem hiding this comment.
Missed part of the ruleset for init func naming. This should also reflect the name or purpose of the function pointer being passed.
|
I've noticed that the enemy health bars enhancement is no longer properly updating max HP to match the health scales with size feature, resulting in overflows and enemies appearing to start with less than max HP |
|
This bug is also present on develop. |
|
There's a registered hook in I can either add a call in the scaling hook to refresh the maximum health, or if anyone can please tell me how to control the order of compilation, that would be very helpful. |
9d5ff43 to
4d2d375
Compare
Unless someone chooses to answer the latter question, I've opted to do the former for now. |
|
the goal is for all hooks to always be idempotent, so the former option is recommended |
Includes the
EnemySizeScalesHealthCVar. I figured I'd be asked to add a VB hook for Freezard with said CVar, so I did.Build Artifacts