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,...
int m_Weight
"Head", "Torso", etc.
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].