Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
playersoundeventhandler.c File Reference

Go to the source code of this file.

Enumerations

enum  EPlayerSoundEventID {
  HOLD_BREATH = 1, EXHAUSTED_BREATH, RELEASE_BREATH, STAMINA_DOWN_LIGHT,
  STAMINA_DOWN_HEAVY, STAMINA_UP_LIGHT, STAMINA_UP_HEAVY, STAMINA_UP_END,
  STAMINA_NORMAL_DUMMY, TAKING_DMG_LIGHT, TAKING_DMG_HEAVY, SYMPTOM_COUGH,
  SYMPTOM_LAUGHTER, SYMPTOM_SNEEZE, JUMP, MELEE_ATTACK_LIGHT,
  INJURED_LIGHT, INJURED_MEDIUM, INJURED_HIGH, FREEZING,
  HOT, SYMPTOM_FATIGUE, STAMINA_LOW_FILTER_UPPER, STAMINA_LOW_FILTER_MID,
  STAMINA_LOW_FILTER_LOWER, DROWNING_BREATH, DROWNING_PAIN, PICKUP_HEAVY,
  THIRST, ENUM_COUNT
}
 

Functions

void PlayerSoundEventHandler (PlayerBase player)
 
void RegisterState (PlayerSoundEventBase state)
 
void OnTick (float delta_time)
 
int ConvertAnimIDtoEventID (int anim_id)
 
override int GetCurrentStateEventID ()
 
override int GetCurrentStateEventType ()
 
override bool PlayRequestEx (EPlayerSoundEventID id, bool sent_from_server=false, int param=0)
 
override bool PlayRequest (EPlayerSoundEventID id, bool sent_from_server=false)
 

Variables

enum EPlayerSoundEventID m_Player
 
const int SOUND_EVENTS_MAX = EPlayerSoundEventID.ENUM_COUNT
 
ref PlayerSoundEventBase m_CurrentState
 
ref Timer m_UpdateTimer
 

Enumeration Type Documentation

◆ EPlayerSoundEventID

Enumerator
HOLD_BREATH 
EXHAUSTED_BREATH 
RELEASE_BREATH 
STAMINA_DOWN_LIGHT 
STAMINA_DOWN_HEAVY 
STAMINA_UP_LIGHT 
STAMINA_UP_HEAVY 
STAMINA_UP_END 
STAMINA_NORMAL_DUMMY 
TAKING_DMG_LIGHT 
TAKING_DMG_HEAVY 
SYMPTOM_COUGH 
SYMPTOM_LAUGHTER 
SYMPTOM_SNEEZE 
JUMP 
MELEE_ATTACK_LIGHT 
INJURED_LIGHT 
INJURED_MEDIUM 
INJURED_HIGH 
FREEZING 
HOT 
SYMPTOM_FATIGUE 
STAMINA_LOW_FILTER_UPPER 
STAMINA_LOW_FILTER_MID 
STAMINA_LOW_FILTER_LOWER 
DROWNING_BREATH 
DROWNING_PAIN 
PICKUP_HEAVY 
THIRST 
ENUM_COUNT 

Definition at line 1 of file playersoundeventhandler.c.

Function Documentation

◆ ConvertAnimIDtoEventID()

int ConvertAnimIDtoEventID ( int  anim_id)

Definition at line 112 of file playersoundeventhandler.c.

◆ GetCurrentStateEventID()

override int GetCurrentStateEventID ( )

Definition at line 122 of file playersoundeventhandler.c.

◆ GetCurrentStateEventType()

override int GetCurrentStateEventType ( )

Definition at line 131 of file playersoundeventhandler.c.

◆ OnTick()

void OnTick ( float  delta_time)

Definition at line 101 of file playersoundeventhandler.c.

◆ PlayerSoundEventHandler()

void PlayerSoundEventHandler ( PlayerBase  player)

Definition at line 49 of file playersoundeventhandler.c.

◆ PlayRequest()

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

Definition at line 191 of file playersoundeventhandler.c.

◆ PlayRequestEx()

override bool PlayRequestEx ( EPlayerSoundEventID  id,
bool  sent_from_server = false,
int  param = 0 
)

Definition at line 140 of file playersoundeventhandler.c.

◆ RegisterState()

void RegisterState ( PlayerSoundEventBase  state)

Definition at line 93 of file playersoundeventhandler.c.

Variable Documentation

◆ m_CurrentState

ref PlayerSoundEventBase m_CurrentState

Definition at line 45 of file playersoundeventhandler.c.

◆ m_Player

enum EPlayerSoundEventID m_Player

◆ m_UpdateTimer

ref Timer m_UpdateTimer

Definition at line 46 of file playersoundeventhandler.c.

◆ SOUND_EVENTS_MAX

const int SOUND_EVENTS_MAX = EPlayerSoundEventID.ENUM_COUNT

Definition at line 42 of file playersoundeventhandler.c.