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

Protected Member Functions

void AddDamageSphere (AnimDamageParams damage_params)
void AttenuateSoundIfNecessary (SoundObject soundObject)
string CaptureSound ()
bool CinematicCanJump ()
void CinematicTakeControl (DayZPlayer player)
void DayZCreatureAI ()
void DecreaseEffectTriggerCount ()
override void EEKilled (Object killer)
AnimBootsType GetBootsType ()
void IncreaseEffectTriggerCount ()
bool IsDanger ()
override bool ModCommandHandlerBefore (float pDt, int pCurrentCommandID, bool pCurrentCommandFinished)
void OnDamageEvent (int event_id, string event_user_string)
void OnSoundEvent (int event_id, string event_user_string)
void OnSoundVoiceEvent (int event_id, string event_user_string)
void OnStepEvent (int event_id, string event_user_string)
AbstractWave PlaySound (SoundObject so, SoundObjectBuilder sob)
void RegisterAnimEvents ()
string ReleaseSound ()
bool ResistContaminatedEffect ()

Protected Attributes

DayZPlayer m_CinematicPlayer

Private Member Functions

proto native void AddDamageSphere (string bone_name, string ammo_name, float radius, float duration, bool invertTeams)
proto native void DestroyAIAgent ()
proto native AIAgent GetAIAgent ()
proto native DayZCreatureAIType GetCreatureAIType ()
proto native void InitAIAgent (AIGroup group)
 AIAgent initialization.
proto native bool IsSoundInsideBuilding ()
void ProcessDamageEvent (AnimDamageEvent damage_event)
void ProcessSoundEvent (AnimSoundEvent sound_event)
void ProcessSoundVoiceEvent (AnimSoundVoiceEvent sound_event)
void ProcessStepEvent (AnimStepEvent step_event)

Private Attributes

int m_EffectTriggerCount

Detailed Description

Definition at line 191 of file dayzanimal.c.

Member Function Documentation

◆ AddDamageSphere() [1/2]

void AddDamageSphere ( AnimDamageParams damage_params)
inlineprotected

Definition at line 232 of file dayzanimal.c.

References AddDamageSphere().

◆ AddDamageSphere() [2/2]

proto native void AddDamageSphere ( string bone_name,
string ammo_name,
float radius,
float duration,
bool invertTeams )
private

◆ AttenuateSoundIfNecessary()

void AttenuateSoundIfNecessary ( SoundObject soundObject)
inlineprotected

Definition at line 382 of file dayzanimal.c.

References g_Game, IsSoundInsideBuilding(), and SoundObject::SetKind().

Referenced by ProcessSoundVoiceEvent(), and ProcessStepEvent().

◆ CaptureSound()

string CaptureSound ( )
inlineprotected

Definition at line 409 of file dayzanimal.c.

◆ CinematicCanJump()

bool CinematicCanJump ( )
inlineprotected

Definition at line 428 of file dayzanimal.c.

Referenced by ModCommandHandlerBefore().

◆ CinematicTakeControl()

void CinematicTakeControl ( DayZPlayer player)
inlineprotected

Definition at line 423 of file dayzanimal.c.

References m_CinematicPlayer.

◆ DayZCreatureAI()

void DayZCreatureAI ( )
inlineprotected

Definition at line 215 of file dayzanimal.c.

References RegisterAnimEvents(), and SetFlags().

◆ DecreaseEffectTriggerCount()

void DecreaseEffectTriggerCount ( )
inlineprotected

Definition at line 227 of file dayzanimal.c.

References m_EffectTriggerCount.

◆ DestroyAIAgent()

proto native void DestroyAIAgent ( )
private

◆ EEKilled()

override void EEKilled ( Object killer)
inlineprotected

Definition at line 237 of file dayzanimal.c.

References COMP_TYPE_BODY_STAGING.

◆ GetAIAgent()

proto native AIAgent GetAIAgent ( )
private

◆ GetBootsType()

AnimBootsType GetBootsType ( )
inlineprotected

Definition at line 243 of file dayzanimal.c.

◆ GetCreatureAIType()

proto native DayZCreatureAIType GetCreatureAIType ( )
private

◆ IncreaseEffectTriggerCount()

void IncreaseEffectTriggerCount ( )
inlineprotected

Definition at line 222 of file dayzanimal.c.

References m_EffectTriggerCount.

◆ InitAIAgent()

proto native void InitAIAgent ( AIGroup group)
private

AIAgent initialization.

Manual ai initialization for creatures created with CreateObject(... init_ai = false...).

◆ IsDanger()

bool IsDanger ( )
inlineprotected

Definition at line 404 of file dayzanimal.c.

◆ IsSoundInsideBuilding()

proto native bool IsSoundInsideBuilding ( )
private

◆ ModCommandHandlerBefore()

◆ OnDamageEvent()

void OnDamageEvent ( int event_id,
string event_user_string )
inlineprotected

Definition at line 287 of file dayzanimal.c.

References GetCreatureAIType(), and ProcessDamageEvent().

◆ OnSoundEvent()

void OnSoundEvent ( int event_id,
string event_user_string )
inlineprotected

Definition at line 260 of file dayzanimal.c.

References GetCreatureAIType(), and ProcessSoundEvent().

◆ OnSoundVoiceEvent()

void OnSoundVoiceEvent ( int event_id,
string event_user_string )
inlineprotected

Definition at line 269 of file dayzanimal.c.

References GetCreatureAIType(), and ProcessSoundVoiceEvent().

◆ OnStepEvent()

void OnStepEvent ( int event_id,
string event_user_string )
inlineprotected

Definition at line 278 of file dayzanimal.c.

References GetCreatureAIType(), and ProcessStepEvent().

◆ PlaySound()

AbstractWave PlaySound ( SoundObject so,
SoundObjectBuilder sob )
inlineprotected

◆ ProcessDamageEvent()

void ProcessDamageEvent ( AnimDamageEvent damage_event)
inlineprivate

Definition at line 377 of file dayzanimal.c.

References AddDamageSphere().

Referenced by OnDamageEvent().

◆ ProcessSoundEvent()

void ProcessSoundEvent ( AnimSoundEvent sound_event)
inlineprivate

Definition at line 322 of file dayzanimal.c.

References g_Game, GetPosition(), PlaySound(), and SoundObjectBuilder().

Referenced by OnSoundEvent().

◆ ProcessSoundVoiceEvent()

void ProcessSoundVoiceEvent ( AnimSoundVoiceEvent sound_event)
inlineprivate

◆ ProcessStepEvent()

void ProcessStepEvent ( AnimStepEvent step_event)
inlineprivate

Definition at line 363 of file dayzanimal.c.

References AttenuateSoundIfNecessary(), GetPosition(), PlaySound(), and SoundObjectBuilder().

Referenced by OnStepEvent().

◆ RegisterAnimEvents()

void RegisterAnimEvents ( )
inlineprotected

Definition at line 296 of file dayzanimal.c.

References g_Game, Print(), and RegisterAnimationEvent().

Referenced by DayZCreatureAI().

◆ ReleaseSound()

string ReleaseSound ( )
inlineprotected

Definition at line 414 of file dayzanimal.c.

◆ ResistContaminatedEffect()

bool ResistContaminatedEffect ( )
inlineprotected

Definition at line 394 of file dayzanimal.c.

Field Documentation

◆ m_CinematicPlayer

DayZPlayer m_CinematicPlayer
protected

Definition at line 212 of file dayzanimal.c.

Referenced by CinematicTakeControl(), and ModCommandHandlerBefore().

◆ m_EffectTriggerCount

int m_EffectTriggerCount
private

Definition at line 210 of file dayzanimal.c.

Referenced by DecreaseEffectTriggerCount(), and IncreaseEffectTriggerCount().


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