71 {
73 for ( int c = 0; c < nrOfCachedResults; ++c )
74 {
76 if ( cachedRes.
obj == victim )
77 return victim.GetDamageZoneNameByComponentIndex(cachedRes.
component);
78 }
79
81 array<ref RaycastRVResult> victims = new array<ref RaycastRVResult>;
82
83 string hitzone = "";
84
86
87 RaycastRVParams params = new RaycastRVParams( vector.Zero, vector.Zero, trigger, 0.0 );
88 params.
type = ObjIntersectIFire;
90
92 {
94
97
98 if ( DayZPhysics.RaycastRVProxy(params, victims) )
99 {
100 for ( int j = 0; j < victims.Count(); ++j )
101 {
102 RaycastRVResult res = victims[j];
103
104 if (res.
obj == victim)
105 hitzone = victim.GetDamageZoneNameByComponentIndex(res.
component);
106
107 if (res.
obj.IsAnyInherited(m_DamageableTypes))
109 }
110
111 if ( !( hitzone == "") )
112 return hitzone;
113
114 victims.Clear();
115 }
116 }
117
119 }
void AreaDamageTriggerBase()
ctor
string GetFallbackHitZone(Object victim)
ref array< vector > m_RaycastSources
ref array< ref RaycastRVResult > m_RaycastCache
vector m_RaycastEndOffset
vector endPos
end position of raycast (e.g. player direction)
vector begPos
begin position of raycast (e.g. player position)
Object obj
object,that we collide with (NULL if none), If hierLevel > 0 object is the proxy object
int component
index of component in corresponding geometry level