Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
playersoundeventbase.c File Reference

Go to the source code of this file.

Enumerations

enum  EPlayerSoundEventType {
  GENERAL = 0x00000001 , MELEE = 0x00000002 , STAMINA = 0x00000004 , DAMAGE = 0x00000008 ,
  DUMMY = 0x00000010 , INJURY = 0x00000020 , DROWNING = 0x00000040
}

Functions

void ~PlayerSoundEventBase ()
bool CanPlay (PlayerBase player)
EPlayerSoundEventType GetPriorityOverTypes ()
int GetSoundVoiceAnimEventClassID ()
bool HasHoldBreathException ()
bool HasPriorityOverCurrent (PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
void Init (PlayerBase player)
void InitEx (PlayerBase player, int param)
bool IsDummy ()
bool IsDummyFinished ()
bool IsFinished ()
void OnEnd ()
void OnInterupt ()
override void OnPlay (PlayerBase player)
void OnTick (float delta_time)
override bool Play ()
void PlayerSoundEventBase ()
void SendEvent (float time)

Variables

enum EPlayerSoundEventType ENUM_COUNT = 0x00000004
enum EPlayerSoundEventType HIGHEST_PRIORITY = 0x00000002
float m_DummySoundLength
float m_DummyStartTime
EPlayerSoundEventType m_HasPriorityOverTypes
ref HumanMovementState m_Hms = new HumanMovementState()
bool m_IsDummyType
enum EPlayerSoundEventType m_Player = 0x00000004
float m_PlayTime
bool m_ProcessPlaybackEvent
enum EPlayerSoundEventType SKIP_CONTROLLED_PLAYER = 0x00000001
enum EPlayerSoundEventType STOP_PLAYBACK = 0x00000004

Enumeration Type Documentation

◆ EPlayerSoundEventType

Enumerator
GENERAL 
MELEE 
STAMINA 
DAMAGE 
DUMMY 
INJURY 
DROWNING 

Definition at line 1 of file playersoundeventbase.c.

Function Documentation

◆ ~PlayerSoundEventBase()

Definition at line 64 of file playersoundeventbase.c.

References m_SoundSetCallback, and PlayerSoundEventBase::OnEnd().

◆ CanPlay()

bool CanPlay ( PlayerBase player)

Definition at line 116 of file playersoundeventbase.c.

References HasHoldBreathException(), and m_Hms.

◆ GetPriorityOverTypes()

EPlayerSoundEventType GetPriorityOverTypes ( )

Definition at line 48 of file playersoundeventbase.c.

References m_HasPriorityOverTypes.

◆ GetSoundVoiceAnimEventClassID()

int GetSoundVoiceAnimEventClassID ( )

Definition at line 70 of file playersoundeventbase.c.

References m_SoundVoiceAnimEventClassID.

◆ HasHoldBreathException()

bool HasHoldBreathException ( )

Definition at line 54 of file playersoundeventbase.c.

◆ HasPriorityOverCurrent()

bool HasPriorityOverCurrent ( PlayerBase player,
EPlayerSoundEventID other_state_id,
EPlayerSoundEventType type_other )

Definition at line 75 of file playersoundeventbase.c.

◆ Init()

void Init ( PlayerBase player)

Definition at line 131 of file playersoundeventbase.c.

References InitEx().

◆ InitEx()

void InitEx ( PlayerBase player,
int param )

Definition at line 136 of file playersoundeventbase.c.

References m_HasPriorityOverTypes, and m_Param.

Referenced by Init().

◆ IsDummy()

bool IsDummy ( )

Definition at line 43 of file playersoundeventbase.c.

References m_IsDummyType.

Referenced by IsFinished(), and Play().

◆ IsDummyFinished()

bool IsDummyFinished ( )

Definition at line 92 of file playersoundeventbase.c.

References g_Game, m_DummySoundLength, and m_DummyStartTime.

Referenced by IsFinished().

◆ IsFinished()

bool IsFinished ( )

Definition at line 80 of file playersoundeventbase.c.

References IsDummy(), IsDummyFinished(), and IsSoundCallbackExist().

◆ OnEnd()

void OnEnd ( )

Definition at line 146 of file playersoundeventbase.c.

References m_ProcessPlaybackEvent, and SendEvent().

◆ OnInterupt()

void OnInterupt ( )

Definition at line 162 of file playersoundeventbase.c.

Referenced by Play().

◆ OnPlay()

override void OnPlay ( PlayerBase player)

Definition at line 167 of file playersoundeventbase.c.

◆ OnTick()

void OnTick ( float delta_time)

◆ PlayerSoundEventBase()

void PlayerSoundEventBase ( )

Definition at line 59 of file playersoundeventbase.c.

References m_Type.

◆ SendEvent()

void SendEvent ( float time)

Definition at line 152 of file playersoundeventbase.c.

References m_PlayTime, and m_SoundSetCallback.

Variable Documentation

◆ ENUM_COUNT

enum EPlayerSoundEventType ENUM_COUNT = 0x00000004

◆ HIGHEST_PRIORITY

enum EPlayerSoundEventType HIGHEST_PRIORITY = 0x00000002

◆ m_DummySoundLength

float m_DummySoundLength

◆ m_DummyStartTime

float m_DummyStartTime

Definition at line 35 of file playersoundeventbase.c.

Referenced by IsDummyFinished(), and Play().

◆ m_HasPriorityOverTypes

◆ m_Hms

Definition at line 40 of file playersoundeventbase.c.

Referenced by CanPlay().

◆ m_IsDummyType

bool m_IsDummyType

Definition at line 36 of file playersoundeventbase.c.

Referenced by IsDummy(), and StaminaSoundEventBase::StaminaNormalDummy().

◆ m_Player

enum EPlayerSoundEventType m_Player = 0x00000004

◆ m_PlayTime

float m_PlayTime

Definition at line 38 of file playersoundeventbase.c.

Referenced by OnTick(), and SendEvent().

◆ m_ProcessPlaybackEvent

bool m_ProcessPlaybackEvent

Definition at line 37 of file playersoundeventbase.c.

Referenced by OnEnd(), OnTick(), and StaminaNormalDummy().

◆ SKIP_CONTROLLED_PLAYER

enum EPlayerSoundEventType SKIP_CONTROLLED_PLAYER = 0x00000001

◆ STOP_PLAYBACK

enum EPlayerSoundEventType STOP_PLAYBACK = 0x00000004