|
Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
|
Go to the documentation of this file.
5 const int RAYCASTED = 2;
63 Error(
string.Format(
"[ERROR] :: [AreaDamageManager] :: Unknown DamageComponentType: %1", type));
333 Error(
"SetLoopInterval not implemented - usable in Regular(looped) area damage objects only");
338 Error(
"SetDeferDuration not implemented - usable in Deferred area damage objects only");
345 adc.SetHitZones( hitzones );
347 Error(
"SetHitZones not implemented - override for non raycasted versions of area damage objects only");
354 adc.SetRaycastSources( raycast_sources );
356 Error(
"SetRaycastSources not implemented - override for raycasted versions of area damage objects only");
363 adc.SetRaycastSourcesVector( raycast_sources );
365 Error(
"SetRaycastSources not implemented - override for raycasted versions of area damage objects only");
override void PostDamageActions()
Usually called from AreaDamageComponent.
proto native CGame GetGame()
override void OnStayClientEvent(TriggerInsider insider, float deltaTime)
override void OnEnterClientEvent(TriggerInsider insider)
Newer implementation equivalent of "AreaDamageRegular", hitzone selection only.
void SetLoopInterval(float time)
protected bool CreateDamageTriggerEx()
void GetExtents(out vector mins, out vector maxs)
protected vector m_ExtentMin
void Error(string err)
Messagebox with error message.
override void OnTriggerDestroyed()
Called when a trigger is destroyed.
override void OnEnterServerEvent(TriggerInsider insider)
AreaDamageTriggerBase GetTrigger()
Newer implementation equivalent of "AreaDamageRegularRaycasted", hitzone selection only.
The object which is in a trigger and its metadata.
void RemoveAddDamageableType(typename damageableType)
override void OnLeaveBeginEvent(TriggerInsider insider)
Called when an object leaves the trigger.
void SetExtents(vector mins, vector maxs)
void SetDamageComponentType(int type)
void SetAmmoName(string ammo_name)
override void OnStayStartEndEvent(int nrOfInsiders)
override void OnEnterBeginEvent(TriggerInsider insider)
Called when an object enters the trigger.
bool OnEvaluateDamageEx(TriggerInsider insider, float deltaTime)
override void OnLeaveEndEvent(TriggerInsider insider)
void SetRaycastSources(array< string > raycast_sources)
void ~AreaDamageManager()
protected vector m_AreaPosition
protected bool DestroyDamageTriggerEx()
override void OnStayEndEvent(TriggerInsider insider, float deltaTime)
override void OnStayStartServerEvent(int nrOfInsiders)
Events used across AreaDamage API, calling of these needs to be handled by parent.
override void OnStayFinishServerEvent()
void SetParentObject(EntityAI obj)
protected void DestroyDamageTrigger()
array< typename > GetDamageableTypes()
void Spawn()
spawn damage trigger
override void OnTriggerCreated()
void Destroy()
destroy damage trigger
override void OnStayFinishBeginEvent()
Called at the end of an update loop.
protected AreaDamageTriggerBase m_AreaDamageTrigger
class AreaDamageComponentTypes m_ParentObject
override void PreDamageActions()
Usually called from AreaDamageComponent.
EntityAI GetParentObject()
void SetDamageType(int pDamageType)
void SetAreaOrientation(vector orientation)
override bool OnEvaluateDamage(TriggerInsider insider, float damageCoef)
Tell the AreaDamageComponent to calculate and apply the damage to the Object.
ref array< typename > m_DamageableTypes void AreaDamageComponent(AreaDamageManager parent)
protected string m_TriggerBaseClass
vector GetPosition()
Get the world position of the Effect.
protected vector m_ExtentMax
void AddDamageableType(typename damageableType)
override void OnStayFinishClientEvent()
protected vector m_AreaOrientation
override void OnStayStartClientEvent(int nrOfInsiders)
override void OnEnterEndEvent(TriggerInsider insider)
override void OnLeaveClientEvent(TriggerInsider insider)
void SetHitZones(array< string > hitzones)
void AreaDamageManager(EntityAI parent)
override void OnLeaveServerEvent(TriggerInsider insider)
const int ECE_CREATEPHYSICS
protected void CreateDamageTrigger()
void SetDeferDuration(float time)
void SetDamageableTypes(array< typename > damageableTypes)
override void OnStayFinishEndEvent()
void SetAreaPosition(vector position)
override void OnStayStartBeginEvent(int nrOfInsiders)
Called at the beginning of an update loop.
Super root of all classes in Enforce script.
protected float CalculateDamageScale(TriggerInsider insider, float deltaTime)
Helper for calculating damageCoeff when using OnEvaluateDamageEx.
override void OnStayBeginEvent(TriggerInsider insider, float deltaTime)
Called in the update loop.
void GetWorldExtents(out vector mins, out vector maxs)
override void OnStayServerEvent(TriggerInsider insider, float deltaTime)
protected ref AreaDamageComponent m_DamageComponent
void SetRaycastSourcesVector(array< vector > raycast_sources)