Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
DayZCreatureAI Class Reference

do not process rotations ! More...

Protected Member Functions

void CommandHandler (float dt, int currentCommandID, bool currentCommandFinished)
bool ComputeDamageHitParams (EntityAI source, string dmgZone, string ammo, out int type, out int direction)
float ComputeHitDirectionAngleDeg (EntityAI source)
float ConvertNonlethalDamage (float damage, DamageType damageType)
void DayZAnimal ()
override void EEHitBy (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
void EOnContact (IEntity other, Contact extra)
 Phx contact event.
int FindComponentDirectionOffset (string component)
proto native DayZAnimalCommandScript GetCommand_Script ()
override string GetDefaultHitComponent ()
override vector GetDefaultHitPosition ()
override string GetDefaultHitPositionComponent ()
override int GetHideIconMask ()
override string GetHitComponentForAI ()
proto native DayZAnimalInputController GetInputController ()
bool HandleDamageHit (int currentCommandID)
bool HandleDeath (int currentCommandID, DayZAnimalInputController inputController)
override bool IsAnimal ()
override bool IsHealthVisible ()
override bool IsInventoryVisible ()
void QueueDamageHit (int type, int direction)
void RegisterHitComponentsForAI ()
 register hit components for AI melee (used by attacking AI)
vector SetDefaultHitPosition (string pSelection)
proto native void SignalAIAttackEnded ()
proto native void SignalAIAttackStarted ()
proto native void StartCommand_Attack ()
proto native void StartCommand_Death (int pType, int pDirection)
proto native void StartCommand_Hit (int pType, int pDirection)
proto native void StartCommand_Jump ()
proto native void StartCommand_Move ()
proto native DayZAnimalCommandScript StartCommand_Script (DayZAnimalCommandScript pInfectedCommand)
 scripted commands
proto native DayZAnimalCommandScript StartCommand_ScriptInst (typename pCallbackClass)
int TranslateHitAngleDegToDirectionIndex (float angleDeg)

Protected Attributes

int m_DamageHitDirection = 0
bool m_DamageHitToProcess = false
int m_DamageHitType = 0
string m_DefaultHitComponent
vector m_DefaultHitPosition
string m_DefaultHitPositionComponent
ref array< ref DayZAIHitComponentm_HitComponentsForAI
 Melee hit components (AI targeting).

Detailed Description

do not process rotations !

Definition at line 655 of file dayzanimal.c.

Member Function Documentation

◆ CommandHandler()

◆ ComputeDamageHitParams()

bool ComputeDamageHitParams ( EntityAI source,
string dmgZone,
string ammo,
out int type,
out int direction )
inlineprotected

◆ ComputeHitDirectionAngleDeg()

float ComputeHitDirectionAngleDeg ( EntityAI source)
inlineprotected

◆ ConvertNonlethalDamage()

float ConvertNonlethalDamage ( float damage,
DamageType damageType )
inlineprotected

◆ DayZAnimal()

void DayZAnimal ( )
inlineprotected

sets default hit position and cache it here (mainly for impact particles)

Definition at line 680 of file dayzanimal.c.

References GetDefaultHitPositionComponent(), m_DefaultHitPosition, m_HitComponentsForAI, RegisterHitComponentsForAI(), and SetDefaultHitPosition().

◆ EEHitBy()

override void EEHitBy ( TotalDamageResult damageResult,
int damageType,
EntityAI source,
int component,
string dmgZone,
string ammo,
vector modelPos,
float speedCoef )
inlineprotected

◆ EOnContact()

void EOnContact ( IEntity other,
Contact extra )
inlineprotected

Phx contact event.

Definition at line 942 of file dayzanimal.c.

References g_Game.

◆ FindComponentDirectionOffset()

int FindComponentDirectionOffset ( string component)
inlineprotected

Definition at line 912 of file dayzanimal.c.

References component.

Referenced by ComputeDamageHitParams().

◆ GetCommand_Script()

proto native DayZAnimalCommandScript GetCommand_Script ( )
protected

◆ GetDefaultHitComponent()

override string GetDefaultHitComponent ( )
inlineprotected

Definition at line 981 of file dayzanimal.c.

References m_DefaultHitComponent.

◆ GetDefaultHitPosition()

override vector GetDefaultHitPosition ( )
inlineprotected

Definition at line 991 of file dayzanimal.c.

References m_DefaultHitPosition.

◆ GetDefaultHitPositionComponent()

override string GetDefaultHitPositionComponent ( )
inlineprotected

Definition at line 986 of file dayzanimal.c.

References m_DefaultHitPositionComponent.

◆ GetHideIconMask()

override int GetHideIconMask ( )
inlineprotected

Definition at line 710 of file dayzanimal.c.

◆ GetHitComponentForAI()

override string GetHitComponentForAI ( )
inlineprotected

◆ GetInputController()

proto native DayZAnimalInputController GetInputController ( )
protected

Referenced by CommandHandler().

◆ HandleDamageHit()

bool HandleDamageHit ( int currentCommandID)
inlineprotected

Definition at line 817 of file dayzanimal.c.

References m_DamageHitDirection, m_DamageHitToProcess, m_DamageHitType, and StartCommand_Hit().

Referenced by CommandHandler().

◆ HandleDeath()

bool HandleDeath ( int currentCommandID,
DayZAnimalInputController inputController )
inlineprotected

◆ IsAnimal()

override bool IsAnimal ( )
inlineprotected

Definition at line 700 of file dayzanimal.c.

◆ IsHealthVisible()

override bool IsHealthVisible ( )
inlineprotected

Definition at line 695 of file dayzanimal.c.

◆ IsInventoryVisible()

override bool IsInventoryVisible ( )
inlineprotected

Definition at line 705 of file dayzanimal.c.

◆ QueueDamageHit()

void QueueDamageHit ( int type,
int direction )
inlineprotected

Definition at line 858 of file dayzanimal.c.

References m_DamageHitDirection, m_DamageHitToProcess, and m_DamageHitType.

Referenced by EEHitBy().

◆ RegisterHitComponentsForAI()

void RegisterHitComponentsForAI ( )
inlineprotected

register hit components for AI melee (used by attacking AI)

registers default hit compoent for the entity

registers default hit position component for entity

register hit components that are selected by probability

Definition at line 958 of file dayzanimal.c.

References m_DefaultHitComponent, m_DefaultHitPositionComponent, m_HitComponentsForAI, and DayZAIHitComponentHelpers::RegisterHitComponent().

◆ SetDefaultHitPosition()

vector SetDefaultHitPosition ( string pSelection)
inlineprotected

Definition at line 996 of file dayzanimal.c.

Referenced by DayZAnimal().

◆ SignalAIAttackEnded()

proto native void SignalAIAttackEnded ( )
protected

Referenced by CommandHandler().

◆ SignalAIAttackStarted()

proto native void SignalAIAttackStarted ( )
protected

Referenced by CommandHandler().

◆ StartCommand_Attack()

proto native void StartCommand_Attack ( )
protected

Referenced by CommandHandler().

◆ StartCommand_Death()

proto native void StartCommand_Death ( int pType,
int pDirection )
protected

Referenced by HandleDeath().

◆ StartCommand_Hit()

proto native void StartCommand_Hit ( int pType,
int pDirection )
protected

Referenced by HandleDamageHit().

◆ StartCommand_Jump()

proto native void StartCommand_Jump ( )
protected

Referenced by CommandHandler().

◆ StartCommand_Move()

proto native void StartCommand_Move ( )
protected

Referenced by CommandHandler().

◆ StartCommand_Script()

proto native DayZAnimalCommandScript StartCommand_Script ( DayZAnimalCommandScript pInfectedCommand)
protected

scripted commands

◆ StartCommand_ScriptInst()

proto native DayZAnimalCommandScript StartCommand_ScriptInst ( typename pCallbackClass )
protected

◆ TranslateHitAngleDegToDirectionIndex()

int TranslateHitAngleDegToDirectionIndex ( float angleDeg)
inlineprotected

Definition at line 898 of file dayzanimal.c.

Referenced by ComputeDamageHitParams().

Field Documentation

◆ m_DamageHitDirection

int m_DamageHitDirection = 0
protected

Definition at line 789 of file dayzanimal.c.

Referenced by HandleDamageHit(), HandleDeath(), and QueueDamageHit().

◆ m_DamageHitToProcess

bool m_DamageHitToProcess = false
protected

Definition at line 787 of file dayzanimal.c.

Referenced by HandleDamageHit(), HandleDeath(), and QueueDamageHit().

◆ m_DamageHitType

int m_DamageHitType = 0
protected

Definition at line 788 of file dayzanimal.c.

Referenced by HandleDamageHit(), HandleDeath(), and QueueDamageHit().

◆ m_DefaultHitComponent

string m_DefaultHitComponent
protected

Definition at line 660 of file dayzanimal.c.

Referenced by GetDefaultHitComponent(), and RegisterHitComponentsForAI().

◆ m_DefaultHitPosition

vector m_DefaultHitPosition
protected

Definition at line 662 of file dayzanimal.c.

Referenced by DayZAnimal(), and GetDefaultHitPosition().

◆ m_DefaultHitPositionComponent

string m_DefaultHitPositionComponent
protected

Definition at line 661 of file dayzanimal.c.

Referenced by GetDefaultHitPositionComponent(), and RegisterHitComponentsForAI().

◆ m_HitComponentsForAI

ref array<ref DayZAIHitComponent> m_HitComponentsForAI
protected

Melee hit components (AI targeting).

Definition at line 659 of file dayzanimal.c.

Referenced by DayZAnimal(), GetHitComponentForAI(), and RegisterHitComponentsForAI().


The documentation for this class was generated from the following file: