PC Stable Documentation
|
|
Static Private Member Functions | |
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) |
static int | SumOfWeights (array< ref DayZAIHitComponent > pHitComponents) |
Calculates the sum of all entries in DayZAIHitComponent array. | |
|
inlinestaticprivate |
Register Hit Component for AI targeting.
Register Hit Component for AI targeting to array defined on entity's Type (DayZPlayerType, DayZInfectedType, etc.) Uses component name from damage system (zone) and its weight.
[in] | pHitComponents | array that keeps registered compoenents |
[in] | pName | component name (zone in Damage System) |
[in] | pWeight | weight of the component (probability) |
References DayZAIHitComponent::m_Name, and DayZAIHitComponent::m_Weight.
Referenced by DeathUpdate(), RegisterHitComponentsForAI(), DayZCreatureAI::RegisterHitComponentsForAI(), and AnimalBase::RegisterHitComponentsForAI().
|
inlinestaticprivate |
References DayZAIHitComponent::m_Name, DayZAIHitComponent::m_Weight, Math::RandomInt(), and SumOfWeights().
Referenced by GetHitComponentForAI(), and DayZCreatureAI::GetHitComponentForAI().
|
inlinestaticprivate |
Calculates the sum of all entries in DayZAIHitComponent array.
[in] | pHitComponents | array that keeps registered compoenents |
References DayZAIHitComponent::m_Weight.
Referenced by SelectMostProbableHitComponent().