25 newComponent.
m_Name = pName;
28 pHitComponents.Insert(newComponent);
45 for (
int i = 0; i < pHitComponents.Count(); ++i )
52 pHitComponent = hitComp.
m_Name;
72 for(
int i = 0; i < pHitComponents.Count(); ++i )
int m_Weight
"Head", "Torso", etc.
static int SumOfWeights(array< ref DayZAIHitComponent > pHitComponents)
Calculates the sum of all entries in DayZAIHitComponent array.
static void RegisterHitComponent(array< ref DayZAIHitComponent > pHitComponents, string pName, float pWeight)
Register Hit Component for AI targeting.
static bool SelectMostProbableHitComponent(array< ref DayZAIHitComponent > pHitComponents, out string pHitComponent)
holds hit components and its weights for attack from AI (used on each type - DayZPlayerType,...
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].