Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
DayZInfected Class Reference

Protected Member Functions

void ZombieBase ()
 
void Init ()
 
override void OnVariablesSynchronized ()
 synced variable(s) handler
 
override void EOnInit (IEntity other, int extra)
 
override bool IsZombie ()
 
override bool IsDanger ()
 
override bool IsZombieMilitary ()
 
bool IsMale ()
 
override bool CanBeBackstabbed ()
 
override AnimBootsType GetBootsType ()
 
override bool CanBeSkinned ()
 
override bool IsHealthVisible ()
 
override bool IsRefresherSignalingViable ()
 
override bool IsSelfAdjustingTemperature ()
 
override string GetHitComponentForAI ()
 returns hit component for attacking AI
 
override string GetDefaultHitComponent ()
 returns default hit component (fallback)
 
override vector GetDefaultHitPosition ()
 
vector SetDefaultHitPosition (string pSelection)
 
override array< stringGetSuitableFinisherHitComponents ()
 returns suitable hit components for finisher attacks; DEPRECATED
 
int GetMindStateSynced ()
 
int GetOrientationSynced ()
 returns rounded zombie yaw for sync purposes
 
void CommandHandler (float pDt, int pCurrentCommandID, bool pCurrentCommandFinished)
 
void CommandHandlerDebug (float pDt, int pCurrentCommandID, bool pCurrentCommandFinished)
 
void HandleMove (int pCurrentCommandID)
 
void HandleOrientation (float pDt, int pCurrentCommandID)
 
bool HandleDeath (int pCurrentCommandID)
 
bool EvaluateDeathAnimationEx (EntityAI pSource, ZombieHitData data, out int pAnimType, out float pAnimHitDir)
 
bool EvaluateDeathAnimation (EntityAI pSource, string pComponent, string pAmmoType, out int pAnimType, out float pAnimHitDir)
 
int GetVaultType (float height)
 
bool HandleVault (int pCurrentCommandID, DayZInfectedInputController pInputController, float pDt)
 
bool HandleMindStateChange (int pCurrentCommandID, DayZInfectedInputController pInputController, float pDt)
 
void HandleSoundEvents ()
 
AbstractWave ProcessVoiceFX (string pSoundSetName)
 
override void OnSoundVoiceEvent (int event_id, string event_user_string)
 
void ProcessSoundVoiceEvent (AnimSoundVoiceEvent sound_event, out AbstractWave aw)
 
bool FightLogic (int pCurrentCommandID, DayZInfectedInputController pInputController, float pDt)
 
bool ChaseAttackLogic (int pCurrentCommandID, DayZInfectedInputController pInputController, float pDt)
 
bool FightAttackLogic (int pCurrentCommandID, DayZInfectedInputController pInputController, float pDt)
 
int GetAttackPitch (EntityAI target)
 
bool HandleCrawlTransition (int pCurrentCommandID)
 
bool EvaluateCrawlTransitionAnimation (EntityAI pSource, string pComponent, string pAmmoType, out int pAnimType)
 
bool HandleDamageHit (int pCurrentCommandID)
 
bool EvaluateDamageHitAnimation (EntityAI pSource, string pComponent, string pAmmoType, out bool pHeavyHit, out int pAnimType, out float pAnimHitDir)
 selects animation type and direction based on damage system data
 
float ComputeHitDirectionAngle (EntityAI pSource)
 
float ComputeHitDirectionAngleEx (EntityAI pSource, int invertHitDir=0)
 
override void EEHitBy (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
 
override void EEHitByRemote (int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos)
 
void DebugSound (string s)
 sound debug messages
 
void EOnContact (IEntity other, Contact extra)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override vector GetCenter ()
 
override bool IsBeingBackstabbed ()
 returns true if backstab is in progress; used for suspending of AI targeting and other useful things besides
 
override void SetBeingBackstabbed (int backstabType)
 
bool IsCrawling ()
 returns true if crawling; 'DayZInfectedCommandCrawl' is only for the transition, after that it remains 'DayZInfectedCommandMove' (unreliable)
 
void OnRecoverFromDeath ()
 
override void AddArrow (Object arrow, int componentIndex, vector closeBonePosWS, vector closeBoneRotWS)
 
override bool IsManagingArrows ()
 
override ArrowManagerBase GetArrowManager ()
 

Protected Attributes

int m_StanceVariation = 0
 server / singleplayer properties
 
int m_LastMindState = -1
 
float m_LastMovementSpeed = -1
 
bool m_KnuckleLand = false
 
float m_KnuckleOutTimer = 0
 
int m_MindState = -1
 
int m_OrientationLocal = -1
 
int m_OrientationSynced = -1
 
float m_OrientationTimer
 
float m_MovementSpeed = -1
 
vector m_DefaultHitPosition
 
float m_DeltaTime
 
AbstractWave m_LastSoundVoiceAW
 
ref InfectedSoundEventHandler m_InfectedSoundEventHandler
 
ref array< Objectm_AllTargetObjects
 
ref array< typenamem_TargetableObjects
 
bool m_IsCrawling
 
bool m_FinisherInProgress = false
 
ref ArrowManagerBase m_ArrowManager
 
float m_DamageHitDirection = 0
 
int m_DeathType = 0
 
int m_ActiveVaultType = -1
 
EntityAI m_ActualTarget = null
 
float m_AttackCooldownTime = 0
 
DayZInfectedAttackType m_ActualAttackType = null
 
int m_CrawlTransition = -1
 
bool m_DamageHitToProcess = false
 
bool m_DamageHitHeavy = false
 
int m_DamageHitType = 0
 
float m_ShockDamage = 0
 
const float HIT_INTERVAL_MIN = 0.3
 
float m_HitElapsedTime = HIT_INTERVAL_MIN
 

Detailed Description

Definition at line 1 of file zombiebase.c.

Member Function Documentation

◆ AddArrow()

override void DayZInfected::AddArrow ( Object arrow,
int componentIndex,
vector closeBonePosWS,
vector closeBoneRotWS )
protected

Definition at line 1093 of file zombiebase.c.

◆ CanBeBackstabbed()

override bool DayZInfected::CanBeBackstabbed ( )
protected

Definition at line 123 of file zombiebase.c.

◆ CanBeSkinned()

override bool DayZInfected::CanBeSkinned ( )
protected

Definition at line 134 of file zombiebase.c.

◆ CanReceiveAttachment()

override bool DayZInfected::CanReceiveAttachment ( EntityAI attachment,
int slotId )
protected

Definition at line 1033 of file zombiebase.c.

◆ ChaseAttackLogic()

bool DayZInfected::ChaseAttackLogic ( int pCurrentCommandID,
DayZInfectedInputController pInputController,
float pDt )
protected

do not attack players in vehicle - hotfix

target is outside the targeting cone; skip attack

Definition at line 676 of file zombiebase.c.

◆ CommandHandler()

void DayZInfected::CommandHandler ( float pDt,
int pCurrentCommandID,
bool pCurrentCommandFinished )
protected

CommandHandler

for mods

handle death

movement handler (just for sync now)

handle finished commands

default behaviour after finish is to start move

for mods

crawl transition

damage hits

Definition at line 198 of file zombiebase.c.

◆ CommandHandlerDebug()

void DayZInfected::CommandHandlerDebug ( float pDt,
int pCurrentCommandID,
bool pCurrentCommandFinished )
protected

CommandHandlerDebug

Definition at line 283 of file zombiebase.c.

◆ ComputeHitDirectionAngle()

float DayZInfected::ComputeHitDirectionAngle ( EntityAI pSource)
protected

Definition at line 917 of file zombiebase.c.

◆ ComputeHitDirectionAngleEx()

float DayZInfected::ComputeHitDirectionAngleEx ( EntityAI pSource,
int invertHitDir = 0 )
protected

Definition at line 938 of file zombiebase.c.

◆ DebugSound()

void DayZInfected::DebugSound ( string s)
protected

sound debug messages

Definition at line 1008 of file zombiebase.c.

◆ EEHitBy()

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

Events from damage system

Definition at line 969 of file zombiebase.c.

◆ EEHitByRemote()

override void DayZInfected::EEHitByRemote ( int damageType,
EntityAI source,
int component,
string dmgZone,
string ammo,
vector modelPos )
protected

Definition at line 1002 of file zombiebase.c.

◆ EOnContact()

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

Phx contact event

Definition at line 1018 of file zombiebase.c.

◆ EOnInit()

override void DayZInfected::EOnInit ( IEntity other,
int extra )
protected

Definition at line 92 of file zombiebase.c.

◆ EvaluateCrawlTransitionAnimation()

bool DayZInfected::EvaluateCrawlTransitionAnimation ( EntityAI pSource,
string pComponent,
string pAmmoType,
out int pAnimType )
protected

Definition at line 814 of file zombiebase.c.

◆ EvaluateDamageHitAnimation()

bool DayZInfected::EvaluateDamageHitAnimation ( EntityAI pSource,
string pComponent,
string pAmmoType,
out bool pHeavyHit,
out int pAnimType,
out float pAnimHitDir )
protected

selects animation type and direction based on damage system data

heavy hit

anim type

direction

shock GetDamage

Definition at line 890 of file zombiebase.c.

◆ EvaluateDeathAnimation()

bool DayZInfected::EvaluateDeathAnimation ( EntityAI pSource,
string pComponent,
string pAmmoType,
out int pAnimType,
out float pAnimHitDir )
protected

anim type

direction

add some impulse if needed

Definition at line 370 of file zombiebase.c.

◆ EvaluateDeathAnimationEx()

bool DayZInfected::EvaluateDeathAnimationEx ( EntityAI pSource,
ZombieHitData data,
out int pAnimType,
out float pAnimHitDir )
protected

Definition at line 363 of file zombiebase.c.

◆ FightAttackLogic()

bool DayZInfected::FightAttackLogic ( int pCurrentCommandID,
DayZInfectedInputController pInputController,
float pDt )
protected

do not attack players in vehicle - hotfix

target is outside the targeting cone; skip attack

Definition at line 717 of file zombiebase.c.

◆ FightLogic()

bool DayZInfected::FightLogic ( int pCurrentCommandID,
DayZInfectedInputController pInputController,
float pDt )
protected

player is in block stance and facing the infected

infected is playing heavy attack - decrease the dmg to light

override hit pos by pos defined in type

infected is playing light attack - do not send damage, play animation instead

override hit pos by pos defined in type

Definition at line 607 of file zombiebase.c.

◆ GetArrowManager()

override ArrowManagerBase DayZInfected::GetArrowManager ( )
protected

Definition at line 1138 of file zombiebase.c.

◆ GetAttackPitch()

int DayZInfected::GetAttackPitch ( EntityAI target)
protected

no default hit pos fallback

Definition at line 762 of file zombiebase.c.

◆ GetBootsType()

override AnimBootsType DayZInfected::GetBootsType ( )
protected

Definition at line 129 of file zombiebase.c.

◆ GetCenter()

override vector DayZInfected::GetCenter ( )
protected

Definition at line 1042 of file zombiebase.c.

◆ GetDefaultHitComponent()

override string DayZInfected::GetDefaultHitComponent ( )
protected

returns default hit component (fallback)

Definition at line 161 of file zombiebase.c.

◆ GetDefaultHitPosition()

override vector DayZInfected::GetDefaultHitPosition ( )
protected

Definition at line 166 of file zombiebase.c.

◆ GetHitComponentForAI()

override string DayZInfected::GetHitComponentForAI ( )
protected

returns hit component for attacking AI

Definition at line 155 of file zombiebase.c.

◆ GetMindStateSynced()

int DayZInfected::GetMindStateSynced ( )
protected

Definition at line 182 of file zombiebase.c.

◆ GetOrientationSynced()

int DayZInfected::GetOrientationSynced ( )
protected

returns rounded zombie yaw for sync purposes

Definition at line 188 of file zombiebase.c.

◆ GetSuitableFinisherHitComponents()

override array< string > DayZInfected::GetSuitableFinisherHitComponents ( )
protected

returns suitable hit components for finisher attacks; DEPRECATED

Definition at line 177 of file zombiebase.c.

◆ GetVaultType()

int DayZInfected::GetVaultType ( float height)
protected

Definition at line 401 of file zombiebase.c.

◆ HandleCrawlTransition()

bool DayZInfected::HandleCrawlTransition ( int pCurrentCommandID)
protected

Definition at line 799 of file zombiebase.c.

◆ HandleDamageHit()

bool DayZInfected::HandleDamageHit ( int pCurrentCommandID)
protected

Definition at line 855 of file zombiebase.c.

◆ HandleDeath()

bool DayZInfected::HandleDeath ( int pCurrentCommandID)
protected

Definition at line 349 of file zombiebase.c.

◆ HandleMindStateChange()

bool DayZInfected::HandleMindStateChange ( int pCurrentCommandID,
DayZInfectedInputController pInputController,
float pDt )
protected

Mind state change

Definition at line 450 of file zombiebase.c.

◆ HandleMove()

void DayZInfected::HandleMove ( int pCurrentCommandID)
protected

HandleMove

Definition at line 297 of file zombiebase.c.

◆ HandleOrientation()

void DayZInfected::HandleOrientation ( float pDt,
int pCurrentCommandID )
protected

HandleOrientation

Definition at line 314 of file zombiebase.c.

◆ HandleSoundEvents()

void DayZInfected::HandleSoundEvents ( )
protected

Sound (client only)

no sound handler - bail out

infected is dead

stop all sounds

Definition at line 487 of file zombiebase.c.

◆ HandleVault()

bool DayZInfected::HandleVault ( int pCurrentCommandID,
DayZInfectedInputController pInputController,
float pDt )
protected

Definition at line 413 of file zombiebase.c.

◆ Init()

void DayZInfected::Init ( )
protected

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

client only

Definition at line 48 of file zombiebase.c.

◆ IsBeingBackstabbed()

override bool DayZInfected::IsBeingBackstabbed ( )
protected

returns true if backstab is in progress; used for suspending of AI targeting and other useful things besides

Definition at line 1048 of file zombiebase.c.

◆ IsCrawling()

bool DayZInfected::IsCrawling ( )
protected

returns true if crawling; 'DayZInfectedCommandCrawl' is only for the transition, after that it remains 'DayZInfectedCommandMove' (unreliable)

Definition at line 1078 of file zombiebase.c.

◆ IsDanger()

override bool DayZInfected::IsDanger ( )
protected

Definition at line 108 of file zombiebase.c.

◆ IsHealthVisible()

override bool DayZInfected::IsHealthVisible ( )
protected

Definition at line 139 of file zombiebase.c.

◆ IsMale()

bool DayZInfected::IsMale ( )
protected

Definition at line 118 of file zombiebase.c.

◆ IsManagingArrows()

override bool DayZInfected::IsManagingArrows ( )
protected

Definition at line 1133 of file zombiebase.c.

◆ IsRefresherSignalingViable()

override bool DayZInfected::IsRefresherSignalingViable ( )
protected

Definition at line 144 of file zombiebase.c.

◆ IsSelfAdjustingTemperature()

override bool DayZInfected::IsSelfAdjustingTemperature ( )
protected

Definition at line 149 of file zombiebase.c.

◆ IsZombie()

override bool DayZInfected::IsZombie ( )
protected

Definition at line 103 of file zombiebase.c.

◆ IsZombieMilitary()

override bool DayZInfected::IsZombieMilitary ( )
protected

Definition at line 113 of file zombiebase.c.

◆ OnRecoverFromDeath()

void DayZInfected::OnRecoverFromDeath ( )
protected

Definition at line 1084 of file zombiebase.c.

◆ OnSoundVoiceEvent()

override void DayZInfected::OnSoundVoiceEvent ( int event_id,
string event_user_string )
protected

stop state sound when playing anim SoundVoice

stop playing of old SoundVoice from anim (if any)

play new SoundVoice from anim

Definition at line 550 of file zombiebase.c.

◆ OnVariablesSynchronized()

override void DayZInfected::OnVariablesSynchronized ( )
protected

synced variable(s) handler

Definition at line 80 of file zombiebase.c.

◆ ProcessSoundVoiceEvent()

void DayZInfected::ProcessSoundVoiceEvent ( AnimSoundVoiceEvent sound_event,
out AbstractWave aw )
protected

Definition at line 577 of file zombiebase.c.

◆ ProcessVoiceFX()

AbstractWave DayZInfected::ProcessVoiceFX ( string pSoundSetName)
protected

Definition at line 526 of file zombiebase.c.

◆ SetBeingBackstabbed()

override void DayZInfected::SetBeingBackstabbed ( int backstabType)
protected

Definition at line 1053 of file zombiebase.c.

◆ SetDefaultHitPosition()

vector DayZInfected::SetDefaultHitPosition ( string pSelection)
protected

Definition at line 171 of file zombiebase.c.

◆ ZombieBase()

void DayZInfected::ZombieBase ( )
protected

Definition at line 43 of file zombiebase.c.

Member Data Documentation

◆ HIT_INTERVAL_MIN

const float DayZInfected::HIT_INTERVAL_MIN = 0.3
protected

Definition at line 852 of file zombiebase.c.

◆ m_ActiveVaultType

int DayZInfected::m_ActiveVaultType = -1
protected

HandleVault

Definition at line 399 of file zombiebase.c.

◆ m_ActualAttackType

DayZInfectedAttackType DayZInfected::m_ActualAttackType = null
protected

Definition at line 605 of file zombiebase.c.

◆ m_ActualTarget

EntityAI DayZInfected::m_ActualTarget = null
protected

Combat

Definition at line 603 of file zombiebase.c.

◆ m_AllTargetObjects

ref array<Object> DayZInfected::m_AllTargetObjects
protected

Definition at line 29 of file zombiebase.c.

◆ m_ArrowManager

ref ArrowManagerBase DayZInfected::m_ArrowManager
protected

Definition at line 38 of file zombiebase.c.

◆ m_AttackCooldownTime

float DayZInfected::m_AttackCooldownTime = 0
protected

Definition at line 604 of file zombiebase.c.

◆ m_CrawlTransition

int DayZInfected::m_CrawlTransition = -1
protected

Crawl transition

Definition at line 797 of file zombiebase.c.

◆ m_DamageHitDirection

float DayZInfected::m_DamageHitDirection = 0
protected

HandleDeath

Definition at line 346 of file zombiebase.c.

◆ m_DamageHitHeavy

bool DayZInfected::m_DamageHitHeavy = false
protected

Definition at line 848 of file zombiebase.c.

◆ m_DamageHitToProcess

bool DayZInfected::m_DamageHitToProcess = false
protected

Damage hits

Definition at line 846 of file zombiebase.c.

◆ m_DamageHitType

int DayZInfected::m_DamageHitType = 0
protected

Definition at line 849 of file zombiebase.c.

◆ m_DeathType

int DayZInfected::m_DeathType = 0
protected

Definition at line 347 of file zombiebase.c.

◆ m_DefaultHitPosition

vector DayZInfected::m_DefaultHitPosition
protected

Definition at line 23 of file zombiebase.c.

◆ m_DeltaTime

float DayZInfected::m_DeltaTime
protected

Definition at line 24 of file zombiebase.c.

◆ m_FinisherInProgress

bool DayZInfected::m_FinisherInProgress = false
protected

Definition at line 36 of file zombiebase.c.

◆ m_HitElapsedTime

float DayZInfected::m_HitElapsedTime = HIT_INTERVAL_MIN
protected

Definition at line 853 of file zombiebase.c.

◆ m_InfectedSoundEventHandler

ref InfectedSoundEventHandler DayZInfected::m_InfectedSoundEventHandler
protected

Definition at line 27 of file zombiebase.c.

◆ m_IsCrawling

bool DayZInfected::m_IsCrawling
protected

Definition at line 34 of file zombiebase.c.

◆ m_KnuckleLand

bool DayZInfected::m_KnuckleLand = false
protected

Definition at line 14 of file zombiebase.c.

◆ m_KnuckleOutTimer

float DayZInfected::m_KnuckleOutTimer = 0
protected

Definition at line 15 of file zombiebase.c.

◆ m_LastMindState

int DayZInfected::m_LastMindState = -1
protected

Definition at line 11 of file zombiebase.c.

◆ m_LastMovementSpeed

float DayZInfected::m_LastMovementSpeed = -1
protected

Definition at line 12 of file zombiebase.c.

◆ m_LastSoundVoiceAW

AbstractWave DayZInfected::m_LastSoundVoiceAW
protected

Definition at line 26 of file zombiebase.c.

◆ m_MindState

int DayZInfected::m_MindState = -1
protected

Definition at line 17 of file zombiebase.c.

◆ m_MovementSpeed

float DayZInfected::m_MovementSpeed = -1
protected

Definition at line 21 of file zombiebase.c.

◆ m_OrientationLocal

int DayZInfected::m_OrientationLocal = -1
protected

Definition at line 18 of file zombiebase.c.

◆ m_OrientationSynced

int DayZInfected::m_OrientationSynced = -1
protected

Definition at line 19 of file zombiebase.c.

◆ m_OrientationTimer

float DayZInfected::m_OrientationTimer
protected

Definition at line 20 of file zombiebase.c.

◆ m_ShockDamage

float DayZInfected::m_ShockDamage = 0
protected

Definition at line 850 of file zombiebase.c.

◆ m_StanceVariation

int DayZInfected::m_StanceVariation = 0
protected

server / singleplayer properties

Definition at line 10 of file zombiebase.c.

◆ m_TargetableObjects

ref array<typename> DayZInfected::m_TargetableObjects
protected

Definition at line 30 of file zombiebase.c.


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