Quote:
Originally Posted by Sappykun
Another question unrelated to my previous posts:
I'm editing the Plague Doctor example to create a new boss from it. If I want to change the max HP of the boss, where would be the best place to do that?
Specifically, I want to take the default starting HP (with one other player, that's 3000 HP) and divide it by 3 since I plan to have the boss be able to heal 3 times. Trying to do it in PlagueDoc_OnBossInitialized, but at that point the max HP seems to be set to 0 and resets to 3000 when the round starts anyways.
|
one thing you can do is to hook `OnBossCalcHealth`
HTML Code:
function Action (const VSH2Player player, int& max_health, const int boss_count, const int red_players);
function void (const VSH2Player player, int& max_health, const int boss_count, const int red_players);
and to use the integer property, `iLives`.
__________________