BossHP: Add second version of damage callback.

Not fully finished yet trough.
This commit is contained in:
zaCade
2018-10-11 16:32:38 +02:00
parent c22297b1a0
commit eb94163ef8
2 changed files with 168 additions and 6 deletions
+22 -3
View File
@@ -28,6 +28,8 @@ methodmap CConfig < Basic
myclass.SetString("sKillTrigger", "");
myclass.SetString("sKillOutput", "");
myclass.SetFloat("fKillTriggerDelay", 0.0);
myclass.SetString("sHurtTrigger", "");
myclass.SetString("sHurtOutput", "");
myclass.SetBool("bMultiTrigger", false);
myclass.SetBool("bNameFixup", false);
myclass.SetInt("iTimeout", -1);
@@ -153,6 +155,26 @@ methodmap CConfig < Basic
}
}
public bool GetHurtTrigger(char[] buffer, int length)
{
return this.GetString("sHurtTrigger", buffer, length);
}
public void SetHurtTrigger(const char[] buffer)
{
this.SetString("sHurtTrigger", buffer);
}
public bool GetHurtOutput(char[] buffer, int length)
{
return this.GetString("sHurtOutput", buffer, length);
}
public void SetHurtOutput(const char[] buffer)
{
this.SetString("sHurtOutput", buffer);
}
property bool bMultiTrigger
{
public get()
@@ -189,9 +211,6 @@ methodmap CConfig < Basic
}
}
property bool IsBreakable {
public get() {
return (this.iMethod == eConfigMethod_Breakable);