![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Go to the source code of this file.
Data Structures | |
| class | DayZInfectedAttackType |
Enumerations | |
| enum | DayZInfectedAttackGroupType |
Functions | |
| DayZInfectedAttackType | ChooseAttack (DayZInfectedAttackGroupType pAttackGroupType, float pDistance, int pPitch) |
| float | ComputeAttackUtility (DayZInfectedAttackType pAttackType, float pTargetDistance, int pPitch, float pProbability) |
| array< ref DayZInfectedAttackType > | GetAttackGroup (DayZInfectedAttackGroupType pType) |
| string | GetDefaultHitComponent () |
| string | GetDefaultHitPositionComponent () |
| string | GetHitComponentForAI () |
| array< string > | GetSuitableFinisherHitComponents () |
| void | RegisterAttack (DayZInfectedAttackGroupType pAttackGroupType, float pDistance, int pPitch, int pType, float pSubtype, string pAmmoType, int pIsHeavy, float pCooldown, float pProbability) |
| void | RegisterAttacks () |
| enum DayZInfectedAttackGroupType | RegisterHitComponentsForAI () |
| register hit components for AI melee (used by attacking AI) | |
Variables | |
| CHASE | |
| FIGHT | |
| ref array< ref DayZInfectedAttackType > | m_ChaseAttacksGroup |
| selected & sorted targets by utility function | |
| string | m_DefaultHitComponent |
| string | m_DefaultHitPositionComponent |
| ref array< ref DayZInfectedAttackType > | m_FightAttacksGroup |
| ref array< ref DayZAIHitComponent > | m_HitComponentsForAI |
| Melee hit components (AI targeting). | |
| ref array< string > | m_SuitableFinisherHitComponents |
Definition at line 13 of file dayzinfectedtype.c.
| DayZInfectedAttackType ChooseAttack | ( | DayZInfectedAttackGroupType | pAttackGroupType, |
| float | pDistance, | ||
| int | pPitch ) |
Definition at line 96 of file dayzinfectedtype.c.
References ComputeAttackUtility(), GetAttackGroup(), GetWorldTime(), Math::RandomFloat01(), and Math::Randomize().
|
protected |
Definition at line 171 of file dayzinfectedtype.c.
References DayZInfectedAttackType::m_Distance, DayZInfectedAttackType::m_Pitch, and DayZInfectedAttackType::m_Probability.
Referenced by ChooseAttack().
|
protected |
Definition at line 199 of file dayzinfectedtype.c.
References m_ChaseAttacksGroup, and m_FightAttacksGroup.
Referenced by ChooseAttack(), and RegisterAttack().
| string GetDefaultHitComponent | ( | ) |
Definition at line 136 of file dayzinfectedtype.c.
References m_DefaultHitComponent.
| string GetDefaultHitPositionComponent | ( | ) |
Definition at line 141 of file dayzinfectedtype.c.
References m_DefaultHitPositionComponent.
| string GetHitComponentForAI | ( | ) |
Definition at line 124 of file dayzinfectedtype.c.
References GetDefaultHitComponent(), m_HitComponentsForAI, and DayZAIHitComponentHelpers::SelectMostProbableHitComponent().
Definition at line 146 of file dayzinfectedtype.c.
References m_SuitableFinisherHitComponents.
|
protected |
Definition at line 155 of file dayzinfectedtype.c.
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
Definition at line 49 of file dayzinfectedtype.c.
References g_Game, EntityType::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
Definition at line 1 of file dayzinfectedtype.c.
| CHASE |
Definition at line 26 of file dayzinfectedtype.c.
| FIGHT |
Definition at line 27 of file dayzinfectedtype.c.
|
private |
selected & sorted targets by utility function
Definition at line 218 of file dayzinfectedtype.c.
Referenced by GetAttackGroup(), and RegisterAttacks().
|
protected |
Definition at line 223 of file dayzinfectedtype.c.
|
protected |
Definition at line 224 of file dayzinfectedtype.c.
|
private |
Definition at line 219 of file dayzinfectedtype.c.
Referenced by GetAttackGroup(), and RegisterAttacks().
|
protected |
Melee hit components (AI targeting).
Definition at line 222 of file dayzinfectedtype.c.
Definition at line 225 of file dayzinfectedtype.c.