PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
InfectedSoundEventHandler.c File Reference

Enumerations

enum  EInfectedSoundEventID {
  MINDSTATE_CALM_IDLE = 1 , MINDSTATE_CALM_MOVE , MINDSTATE_DISTURBED_IDLE , MINDSTATE_CHASE_MOVE ,
  MINDSTATE_ALERTED_IDLE , MINDSTATE_ALERTED_MOVE , ENUM_COUNT
}
 

Functions

void InfectedSoundEventHandler (ZombieBase pInfected)
 
static override int GetSoundEventType (int id)
 
override int GetCurrentStateEventID ()
 
override int GetCurrentStateEventType ()
 
void Stop ()
 Stops all elements this effect consists of.
 
void SoftStop ()
 
bool IsPlaying ()
 
override bool PlayRequest (int id, bool sent_from_server=false)
 

Variables

enum EInfectedSoundEventID SOUND_EVENTS_MAX = EInfectedSoundEventID.ENUM_COUNT
 
static ref InfectedSoundEventBase m_AvailableStates [SOUND_EVENTS_MAX]
 
ref InfectedSoundEventBase m_CurrentState
 
ZombieBase m_Infected
 

Enumeration Type Documentation

◆ EInfectedSoundEventID

Enumerator
MINDSTATE_CALM_IDLE 
MINDSTATE_CALM_MOVE 
MINDSTATE_DISTURBED_IDLE 
MINDSTATE_CHASE_MOVE 
MINDSTATE_ALERTED_IDLE 
MINDSTATE_ALERTED_MOVE 
ENUM_COUNT 

Function Documentation

◆ GetCurrentStateEventID()

override int GetCurrentStateEventID ( )

References m_CurrentState.

Referenced by PlayRequest().

◆ GetCurrentStateEventType()

override int GetCurrentStateEventType ( )

References m_CurrentState.

◆ GetSoundEventType()

static override int GetSoundEventType ( int  id)
static

References m_AvailableStates.

◆ InfectedSoundEventHandler()

◆ IsPlaying()

bool IsPlaying ( )

References m_CurrentState.

◆ PlayRequest()

override bool PlayRequest ( int  id,
bool  sent_from_server = false 
)

◆ SoftStop()

void SoftStop ( )

References m_CurrentState.

Variable Documentation

◆ m_AvailableStates

◆ m_CurrentState

◆ m_Infected

ZombieBase m_Infected

◆ SOUND_EVENTS_MAX