DayZ 1.24
|
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. | |
Definition at line 8 of file DayZAIHitComponents.c.
|
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) |
Definition at line 21 of file DayZAIHitComponents.c.
Referenced by RegisterHitComponentsForAI(), DayZCreatureAI::RegisterHitComponentsForAI(), and AnimalBase::RegisterHitComponentsForAI().
|
inlinestaticprivate |
Definition at line 40 of file DayZAIHitComponents.c.
References 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 |
Definition at line 68 of file DayZAIHitComponents.c.
Referenced by SelectMostProbableHitComponent().