PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
DayZInfectedType.c File Reference

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< stringGetSuitableFinisherHitComponents ()
 
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 DayZInfectedAttackTypeGetAttackGroup (DayZInfectedAttackGroupType pType)
 

Variables

 CHASE
 
 FIGHT
 
private ref array< ref DayZInfectedAttackTypem_ChaseAttacksGroup
 selected & sorted targets by utility function
 
private ref array< ref DayZInfectedAttackTypem_FightAttacksGroup
 
protected ref array< ref DayZAIHitComponentm_HitComponentsForAI
 Melee hit components (AI targeting)
 
protected string m_DefaultHitComponent
 
protected string m_DefaultHitPositionComponent
 
protected ref array< stringm_SuitableFinisherHitComponents
 

Enumeration Type Documentation

◆ DayZInfectedAttackGroupType

Function Documentation

◆ ChooseAttack()

◆ ComputeAttackUtility()

protected float ComputeAttackUtility ( DayZInfectedAttackType  pAttackType,
float  pTargetDistance,
int  pPitch,
float  pProbability 
)

◆ GetAttackGroup()

protected array< ref DayZInfectedAttackType > GetAttackGroup ( DayZInfectedAttackGroupType  pType)

◆ GetDefaultHitComponent()

string GetDefaultHitComponent ( )

References m_DefaultHitComponent.

◆ GetDefaultHitPositionComponent()

string GetDefaultHitPositionComponent ( )

◆ GetHitComponentForAI()

◆ GetSuitableFinisherHitComponents()

array< string > GetSuitableFinisherHitComponents ( )

◆ RegisterAttack()

◆ 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().

◆ RegisterHitComponentsForAI()

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

Variable Documentation

◆ CHASE

CHASE

◆ FIGHT

FIGHT

◆ m_ChaseAttacksGroup

private ref array<ref DayZInfectedAttackType> m_ChaseAttacksGroup

selected & sorted targets by utility function

Referenced by GetAttackGroup(), and RegisterAttacks().

◆ m_DefaultHitComponent

protected string m_DefaultHitComponent

◆ m_DefaultHitPositionComponent

protected string m_DefaultHitPositionComponent

◆ m_FightAttacksGroup

private ref array<ref DayZInfectedAttackType> m_FightAttacksGroup

Referenced by GetAttackGroup(), and RegisterAttacks().

◆ m_HitComponentsForAI

protected ref array<ref DayZAIHitComponent> m_HitComponentsForAI

Melee hit components (AI targeting)

◆ m_SuitableFinisherHitComponents

protected ref array<string> m_SuitableFinisherHitComponents