63 Error(
string.Format(
"[ERROR] :: [AreaDamageManager] :: Unknown DamageComponentType: %1", type));
327 Error(
"SetLoopInterval not implemented - usable in Regular(looped) area damage objects only");
332 Error(
"SetDeferDuration not implemented - usable in Deferred area damage objects only");
341 Error(
"SetHitZones not implemented - override for non raycasted versions of area damage objects only");
350 Error(
"SetRaycastSources not implemented - override for raycasted versions of area damage objects only");
359 Error(
"SetRaycastSources not implemented - override for raycasted versions of area damage objects only");
ref array< typename > m_DamageableTypes void AreaDamageComponent(AreaDamageManager parent)
bool DestroyDamageTriggerEx()
void AddDamageableType(typename damageableType)
void SetAreaOrientation(vector orientation)
override void OnStayStartBeginEvent(int nrOfInsiders)
Called at the beginning of an update loop.
void GetExtents(out vector mins, out vector maxs)
void SetDamageType(int pDamageType)
void SetDamageComponentType(int type)
AreaDamageTriggerBase GetTrigger()
void CreateDamageTrigger()
void SetExtents(vector mins, vector maxs)
array< typename > GetDamageableTypes()
override void OnStayServerEvent(TriggerInsider insider, float deltaTime)
void SetLoopInterval(float time)
override void OnStayClientEvent(TriggerInsider insider, float deltaTime)
override bool OnEvaluateDamage(TriggerInsider insider, float damageCoef)
Tell the AreaDamageComponent to calculate and apply the damage to the Object.
void SetDeferDuration(float time)
void GetWorldExtents(out vector mins, out vector maxs)
override void OnLeaveEndEvent(TriggerInsider insider)
void ~AreaDamageManager()
override void OnLeaveBeginEvent(TriggerInsider insider)
Called when an object leaves the trigger.
string m_TriggerBaseClass
override void OnStayStartServerEvent(int nrOfInsiders)
override void OnStayFinishServerEvent()
override void OnEnterEndEvent(TriggerInsider insider)
override void OnStayStartEndEvent(int nrOfInsiders)
void SetParentObject(EntityAI obj)
override void PostDamageActions()
Usually called from AreaDamageComponent.
override void OnStayFinishEndEvent()
void DestroyDamageTrigger()
float CalculateDamageScale(TriggerInsider insider, float deltaTime)
Helper for calculating damageCoeff when using OnEvaluateDamageEx.
void Spawn()
spawn damage trigger
override void OnLeaveClientEvent(TriggerInsider insider)
void RemoveAddDamageableType(typename damageableType)
bool CreateDamageTriggerEx()
void SetDamageableTypes(array< typename > damageableTypes)
void SetAreaPosition(vector position)
void SetHitZones(array< string > hitzones)
void SetAmmoName(string ammo_name)
override void OnStayFinishClientEvent()
bool OnEvaluateDamageEx(TriggerInsider insider, float deltaTime)
override void OnStayStartClientEvent(int nrOfInsiders)
ref AreaDamageComponent m_DamageComponent
override void OnStayEndEvent(TriggerInsider insider, float deltaTime)
override void OnTriggerCreated()
void AreaDamageManager(EntityAI parent)
override void PreDamageActions()
Usually called from AreaDamageComponent.
override void OnStayFinishBeginEvent()
Called at the end of an update loop.
AreaDamageTriggerBase m_AreaDamageTrigger
override void OnStayBeginEvent(TriggerInsider insider, float deltaTime)
Called in the update loop.
override void OnLeaveServerEvent(TriggerInsider insider)
void SetRaycastSources(array< string > raycast_sources)
override void OnTriggerDestroyed()
Called when a trigger is destroyed.
override void OnEnterBeginEvent(TriggerInsider insider)
Called when an object enters the trigger.
void SetRaycastSourcesVector(array< vector > raycast_sources)
override void OnEnterServerEvent(TriggerInsider insider)
EntityAI GetParentObject()
override void OnEnterClientEvent(TriggerInsider insider)
const int ECE_CREATEPHYSICS
Object m_ParentObject
Cached parent.
class JsonUndergroundAreaTriggerData GetPosition
Newer implementation equivalent of "AreaDamageRegular", hitzone selection only.
Newer implementation equivalent of "AreaDamageRegularRaycasted", hitzone selection only.
Events used across AreaDamage API, calling of these needs to be handled by parent.
override void SetAreaDamageManager(AreaDamageManager adType)
override void SetExtents(vector mins, vector maxs)
Super root of all classes in Enforce script.
The object which is in a trigger and its metadata.
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
proto native void Destroy()
Cleans up the Effect, including unregistering if needed.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.