5 int m_iNextFreeIndex = -1;
6 protected float m_fPreviousHealth;
7 protected ref SCR_DestructionHitInfo m_HitInfo;
8 protected ref ScriptInvoker m_OnDamage;
9 protected bool m_bDestructionQueued =
false;
14 m_fPreviousHealth = 0;
15 m_bDestructionQueued =
false;
21 void SetDestructionQueued(
bool destructionQueued)
23 m_bDestructionQueued = destructionQueued;
27 bool GetDestructionQueued()
29 return m_bDestructionQueued;
33 float GetPreviousHealth()
35 return m_fPreviousHealth;
39 void SetPreviousHealth(
float previousHealth)
41 m_fPreviousHealth = previousHealth;
47 SCR_DestructionHitInfo hitinfo = m_HitInfo;
52 SCR_DestructionHitInfo GetHitInfo(
bool createNew =
true)
54 if (!m_HitInfo && createNew)
55 m_HitInfo =
new SCR_DestructionHitInfo();
60 ScriptInvoker GetOnDamage(
bool createNew =
true)
62 if (!m_OnDamage && createNew)
63 m_OnDamage =
new ScriptInvoker();