[BossHP] Add boss health percentage display

This commit is contained in:
zaCade
2025-03-02 10:25:42 +01:00
parent d2a812153b
commit ba1da9afa2
2 changed files with 29 additions and 0 deletions
+13
View File
@@ -15,6 +15,7 @@ methodmap CBoss < Basic
myclass.SetBool("bShow", true);
myclass.SetInt("iTemplateNum", -1);
myclass.SetInt("iHealth", 0);
myclass.SetInt("iMaxHealth", 0);
myclass.SetInt("iLastChange", 0);
myclass.SetFloat("fWaitUntil", 0.0);
myclass.SetFloat("fShowAt", 0.0);
@@ -95,6 +96,18 @@ methodmap CBoss < Basic
}
}
property int iMaxHealth
{
public get()
{
return this.GetInt("iMaxHealth");
}
public set(int value)
{
this.SetInt("iMaxHealth", value);
}
}
property int iLastChange
{
public get()