View Single Post
nergal
Veteran Member
Join Date: Apr 2012
Old 01-14-2021 , 21:56   Re: VS. Saxton Hale Version 2 - v2.10.28 Dev
Reply With Quote #135

Quote:
Originally Posted by Sappykun View Post
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`.
__________________
nergal is offline