Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
DayZCreatureAI Class Reference

do not process rotations ! More...

Protected Member Functions

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

Protected Attributes

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

Detailed Description

do not process rotations !

Definition at line 655 of file dayzanimal.c.

Member Function Documentation

◆ CommandHandler()

void DayZCreatureAI::CommandHandler ( float dt,
int currentCommandID,
bool currentCommandFinished )
protected

for mods

for mods

Definition at line 722 of file dayzanimal.c.

◆ ComputeDamageHitParams()

bool DayZCreatureAI::ComputeDamageHitParams ( EntityAI source,
string dmgZone,
string ammo,
out int type,
out int direction )
protected

Definition at line 865 of file dayzanimal.c.

◆ ComputeHitDirectionAngleDeg()

float DayZCreatureAI::ComputeHitDirectionAngleDeg ( EntityAI source)
protected

Definition at line 877 of file dayzanimal.c.

◆ ConvertNonlethalDamage()

float DayZCreatureAI::ConvertNonlethalDamage ( float damage,
DamageType damageType )
protected

Definition at line 1001 of file dayzanimal.c.

◆ DayZAnimal()

void DayZCreatureAI::DayZAnimal ( )
protected

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

Definition at line 680 of file dayzanimal.c.

◆ EEHitBy()

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

Definition at line 832 of file dayzanimal.c.

◆ EOnContact()

void DayZCreatureAI::EOnContact ( IEntity other,
Contact extra )
protected

Phx contact event

Definition at line 942 of file dayzanimal.c.

◆ FindComponentDirectionOffset()

int DayZCreatureAI::FindComponentDirectionOffset ( string component)
protected

Definition at line 912 of file dayzanimal.c.

◆ GetCommand_Script()

proto native DayZAnimalCommandScript DayZCreatureAI::GetCommand_Script ( )
protected

◆ GetDefaultHitComponent()

override string DayZCreatureAI::GetDefaultHitComponent ( )
protected

Definition at line 981 of file dayzanimal.c.

◆ GetDefaultHitPosition()

override vector DayZCreatureAI::GetDefaultHitPosition ( )
protected

Definition at line 991 of file dayzanimal.c.

◆ GetDefaultHitPositionComponent()

override string DayZCreatureAI::GetDefaultHitPositionComponent ( )
protected

Definition at line 986 of file dayzanimal.c.

◆ GetHideIconMask()

override int DayZCreatureAI::GetHideIconMask ( )
protected

Definition at line 710 of file dayzanimal.c.

◆ GetHitComponentForAI()

override string DayZCreatureAI::GetHitComponentForAI ( )
protected

Definition at line 969 of file dayzanimal.c.

◆ GetInputController()

proto native DayZAnimalInputController DayZCreatureAI::GetInputController ( )
protected

◆ HandleDamageHit()

bool DayZCreatureAI::HandleDamageHit ( int currentCommandID)
protected

Definition at line 817 of file dayzanimal.c.

◆ HandleDeath()

bool DayZCreatureAI::HandleDeath ( int currentCommandID,
DayZAnimalInputController inputController )
protected

Definition at line 791 of file dayzanimal.c.

◆ IsAnimal()

override bool DayZCreatureAI::IsAnimal ( )
protected

Definition at line 700 of file dayzanimal.c.

◆ IsHealthVisible()

override bool DayZCreatureAI::IsHealthVisible ( )
protected

Definition at line 695 of file dayzanimal.c.

◆ IsInventoryVisible()

override bool DayZCreatureAI::IsInventoryVisible ( )
protected

Definition at line 705 of file dayzanimal.c.

◆ QueueDamageHit()

void DayZCreatureAI::QueueDamageHit ( int type,
int direction )
protected

Definition at line 858 of file dayzanimal.c.

◆ RegisterHitComponentsForAI()

void DayZCreatureAI::RegisterHitComponentsForAI ( )
protected

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.

◆ SetDefaultHitPosition()

vector DayZCreatureAI::SetDefaultHitPosition ( string pSelection)
protected

Definition at line 996 of file dayzanimal.c.

◆ SignalAIAttackEnded()

proto native void DayZCreatureAI::SignalAIAttackEnded ( )
protected

◆ SignalAIAttackStarted()

proto native void DayZCreatureAI::SignalAIAttackStarted ( )
protected

◆ StartCommand_Attack()

proto native void DayZCreatureAI::StartCommand_Attack ( )
protected

◆ StartCommand_Death()

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

◆ StartCommand_Hit()

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

◆ StartCommand_Jump()

proto native void DayZCreatureAI::StartCommand_Jump ( )
protected

◆ StartCommand_Move()

proto native void DayZCreatureAI::StartCommand_Move ( )
protected

◆ StartCommand_Script()

proto native DayZAnimalCommandScript DayZCreatureAI::StartCommand_Script ( DayZAnimalCommandScript pInfectedCommand)
protected

scripted commands

◆ StartCommand_ScriptInst()

proto native DayZAnimalCommandScript DayZCreatureAI::StartCommand_ScriptInst ( typename pCallbackClass )
protected

◆ TranslateHitAngleDegToDirectionIndex()

int DayZCreatureAI::TranslateHitAngleDegToDirectionIndex ( float angleDeg)
protected

Definition at line 898 of file dayzanimal.c.

Member Data Documentation

◆ m_DamageHitDirection

int DayZCreatureAI::m_DamageHitDirection = 0
protected

Definition at line 789 of file dayzanimal.c.

◆ m_DamageHitToProcess

bool DayZCreatureAI::m_DamageHitToProcess = false
protected

Definition at line 787 of file dayzanimal.c.

◆ m_DamageHitType

int DayZCreatureAI::m_DamageHitType = 0
protected

Definition at line 788 of file dayzanimal.c.

◆ m_DefaultHitComponent

string DayZCreatureAI::m_DefaultHitComponent
protected

Definition at line 660 of file dayzanimal.c.

◆ m_DefaultHitPosition

vector DayZCreatureAI::m_DefaultHitPosition
protected

Definition at line 662 of file dayzanimal.c.

◆ m_DefaultHitPositionComponent

string DayZCreatureAI::m_DefaultHitPositionComponent
protected

Definition at line 661 of file dayzanimal.c.

◆ m_HitComponentsForAI

ref array<ref DayZAIHitComponent> DayZCreatureAI::m_HitComponentsForAI
protected

Melee hit components (AI targeting).

Definition at line 659 of file dayzanimal.c.


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