109 if (
object &&
object.IsAlive())
177 DayZPhysics.
RaycastRV(
raycast_start_pos,
raycast_end_pos,
contact_pos,
contact_dir,
contactComponent,
victims,
null,
m_AreaDamageTrigger,
true,
false,
ObjIntersectIFire);
string m_TriggerBaseClass
override void PostDamageActions()
Usually called from AreaDamageComponent.
AreaDamageTriggerBase m_AreaDamageTrigger
Object m_ParentObject
Cached parent.
void EnableDebug(bool pEnabled)
string GetRaycastedHitZone(Object victim, array< string > raycast_sources_str)
void EvaluateDamage_Loop(Object object)
void OnEnterClient(Object object)
AreaDamageBase m_AreaDamage
void EvaluateDamage_Common(Object object, string hitzone)
void OnLeave(Object object)
void EvaluateDamage_Defer(Object object)
void OnLeaveServer(Object object)
void EvaluateDamage_DeferLoop(Object object)
void AreaDamageBase(EntityAI parent)
void OnLeaveClient(Object object)
void OnEnterServer(Object object)
void EvaluateDamage(Object object)
ref array< string > m_RaycastSources
void OnEnter(Object object)
events
string GetRandomHitZone(array< string > hitzones)
ref array< string > m_HitZones
static proto bool RaycastRV(vector begPos, vector endPos, out vector contactPos, out vector contactDir, out int contactComponent, set< Object > results=NULL, Object with=NULL, Object ignore=NULL, bool sorted=false, bool ground_only=false, int iType=ObjIntersectView, float radius=0.0, CollisionFlags flags=CollisionFlags.NEARESTCONTACT)
Raycasts world by given parameters.
static Shape DrawBox(vector pos1, vector pos2, int color=0x1fff7f7f)
static void RemoveShape(out Shape shape)
proto native CGame GetGame()
static proto int Randomize(int seed)
Sets the seed for the random number generator.
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].