Data Structures | |
class | DayZInfectedAttackType |
Enumerations | |
enum | DayZInfectedAttackGroupType |
Functions | |
enum DayZInfectedAttackGroupType | RegisterHitComponentsForAI () |
register hit components for AI melee (used by attacking AI) | |
void | RegisterAttacks () |
DayZInfectedAttackType | ChooseAttack (DayZInfectedAttackGroupType pAttackGroupType, float pDistance, int pPitch) |
string | GetHitComponentForAI () |
string | GetDefaultHitComponent () |
string | GetDefaultHitPositionComponent () |
array< string > | GetSuitableFinisherHitComponents () |
protected void | RegisterAttack (DayZInfectedAttackGroupType pAttackGroupType, float pDistance, int pPitch, int pType, float pSubtype, string pAmmoType, int pIsHeavy, float pCooldown, float pProbability) |
protected float | ComputeAttackUtility (DayZInfectedAttackType pAttackType, float pTargetDistance, int pPitch, float pProbability) |
protected array< ref DayZInfectedAttackType > | GetAttackGroup (DayZInfectedAttackGroupType pType) |
Variables | |
CHASE | |
FIGHT | |
private ref array< ref DayZInfectedAttackType > | m_ChaseAttacksGroup |
selected & sorted targets by utility function | |
private ref array< ref DayZInfectedAttackType > | m_FightAttacksGroup |
protected ref array< ref DayZAIHitComponent > | m_HitComponentsForAI |
Melee hit components (AI targeting) | |
protected string | m_DefaultHitComponent |
protected string | m_DefaultHitPositionComponent |
protected ref array< string > | m_SuitableFinisherHitComponents |
DayZInfectedAttackType ChooseAttack | ( | DayZInfectedAttackGroupType | pAttackGroupType, |
float | pDistance, | ||
int | pPitch | ||
) |
References ComputeAttackUtility(), GetAttackGroup(), GetWorldTime(), Math::RandomFloat01(), and Math::Randomize().
protected float ComputeAttackUtility | ( | DayZInfectedAttackType | pAttackType, |
float | pTargetDistance, | ||
int | pPitch, | ||
float | pProbability | ||
) |
References DayZInfectedAttackType::m_Distance, DayZInfectedAttackType::m_Pitch, and DayZInfectedAttackType::m_Probability.
Referenced by ChooseAttack().
protected array< ref DayZInfectedAttackType > GetAttackGroup | ( | DayZInfectedAttackGroupType | pType | ) |
References m_ChaseAttacksGroup, and m_FightAttacksGroup.
Referenced by ChooseAttack(), and RegisterAttack().
string GetDefaultHitComponent | ( | ) |
References m_DefaultHitComponent.
string GetDefaultHitPositionComponent | ( | ) |
References m_DefaultHitPositionComponent.
string GetHitComponentForAI | ( | ) |
References m_SuitableFinisherHitComponents.
protected void RegisterAttack | ( | DayZInfectedAttackGroupType | pAttackGroupType, |
float | pDistance, | ||
int | pPitch, | ||
int | pType, | ||
float | pSubtype, | ||
string | pAmmoType, | ||
int | pIsHeavy, | ||
float | pCooldown, | ||
float | pProbability | ||
) |
References GetAttackGroup(), DayZInfectedAttackType::m_AmmoType, DayZInfectedAttackType::m_Cooldown, DayZInfectedAttackType::m_Distance, DayZInfectedAttackType::m_IsHeavy, DayZInfectedAttackType::m_Pitch, DayZInfectedAttackType::m_Probability, DayZInfectedAttackType::m_Subtype, and DayZInfectedAttackType::m_Type.
Referenced by RegisterAttacks().
void RegisterAttacks | ( | ) |
RegisterAttack(Group Type, Distance, Pitch, Type, Subtype, AmmoType, heavyFlag, Cooldown, Probability);
chase group
center attack
fight group
up attack
center attack
down attack
References CGame::ConfigGetText(), GetGame(), DayZCreatureAIType::GetName(), m_ChaseAttacksGroup, m_FightAttacksGroup, and RegisterAttack().
enum DayZInfectedAttackGroupType RegisterHitComponentsForAI | ( | ) |
register hit components for AI melee (used by attacking AI)
registers default hit compoent for the entity
registers default hit position component for entity
list of components suitable for melee finisher attacks (used in fight logic)
register hit components that are selected by probability
CHASE |
FIGHT |
private ref array<ref DayZInfectedAttackType> m_ChaseAttacksGroup |
selected & sorted targets by utility function
Referenced by GetAttackGroup(), and RegisterAttacks().
protected string m_DefaultHitComponent |
protected string m_DefaultHitPositionComponent |
private ref array<ref DayZInfectedAttackType> m_FightAttacksGroup |
Referenced by GetAttackGroup(), and RegisterAttacks().
protected ref array<ref DayZAIHitComponent> m_HitComponentsForAI |
Melee hit components (AI targeting)