Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
dayzinfectedtype.c File Reference

Go to the source code of this file.

Data Structures

class  DayZInfectedAttackType
 

Enumerations

enum  DayZInfectedAttackGroupType
 

Functions

enum DayZInfectedAttackGroupType RegisterHitComponentsForAI ()
 register hit components for AI melee (used by attacking AI) More...
 
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 More...
 
private ref array< ref DayZInfectedAttackTypem_FightAttacksGroup
 
protected ref array< ref DayZAIHitComponentm_HitComponentsForAI
 Melee hit components (AI targeting) More...
 
protected string m_DefaultHitComponent
 
protected string m_DefaultHitPositionComponent
 
protected ref array< stringm_SuitableFinisherHitComponents
 

Enumeration Type Documentation

◆ DayZInfectedAttackGroupType

Definition at line 13 of file dayzinfectedtype.c.

Function Documentation

◆ ChooseAttack()

DayZInfectedAttackType ChooseAttack ( DayZInfectedAttackGroupType  pAttackGroupType,
float  pDistance,
int  pPitch 
)

Definition at line 96 of file dayzinfectedtype.c.

◆ ComputeAttackUtility()

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

Definition at line 171 of file dayzinfectedtype.c.

◆ GetAttackGroup()

protected array<ref DayZInfectedAttackType> GetAttackGroup ( DayZInfectedAttackGroupType  pType)

Definition at line 199 of file dayzinfectedtype.c.

◆ GetDefaultHitComponent()

string GetDefaultHitComponent ( )

Definition at line 136 of file dayzinfectedtype.c.

◆ GetDefaultHitPositionComponent()

string GetDefaultHitPositionComponent ( )

Definition at line 141 of file dayzinfectedtype.c.

◆ GetHitComponentForAI()

string GetHitComponentForAI ( )

Definition at line 124 of file dayzinfectedtype.c.

◆ GetSuitableFinisherHitComponents()

array<string> GetSuitableFinisherHitComponents ( )

Definition at line 146 of file dayzinfectedtype.c.

◆ RegisterAttack()

protected void RegisterAttack ( DayZInfectedAttackGroupType  pAttackGroupType,
float  pDistance,
int  pPitch,
int  pType,
float  pSubtype,
string  pAmmoType,
int  pIsHeavy,
float  pCooldown,
float  pProbability 
)

Definition at line 155 of file dayzinfectedtype.c.

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

◆ 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

Definition at line 25 of file dayzinfectedtype.c.

Variable Documentation

◆ CHASE

CHASE

Definition at line 2 of file dayzinfectedtype.c.

◆ FIGHT

FIGHT

Definition at line 4 of file dayzinfectedtype.c.

◆ m_ChaseAttacksGroup

private ref array<ref DayZInfectedAttackType> m_ChaseAttacksGroup

selected & sorted targets by utility function

Definition at line 218 of file dayzinfectedtype.c.

◆ m_DefaultHitComponent

protected string m_DefaultHitComponent

Definition at line 223 of file dayzinfectedtype.c.

◆ m_DefaultHitPositionComponent

protected string m_DefaultHitPositionComponent

Definition at line 224 of file dayzinfectedtype.c.

◆ m_FightAttacksGroup

private ref array<ref DayZInfectedAttackType> m_FightAttacksGroup

Definition at line 219 of file dayzinfectedtype.c.

◆ m_HitComponentsForAI

protected ref array<ref DayZAIHitComponent> m_HitComponentsForAI

Melee hit components (AI targeting)

Definition at line 222 of file dayzinfectedtype.c.

◆ m_SuitableFinisherHitComponents

protected ref array<string> m_SuitableFinisherHitComponents

Definition at line 225 of file dayzinfectedtype.c.