DayZ 1.24
Loading...
Searching...
No Matches
HoldBreathEvents.c File Reference

Go to the source code of this file.

Classes

class  PlayerSoundEventBase
 
class  HoldBreathSoundEventBase
 

Functions

class HoldBreathSoundEventBase extends PlayerSoundEventBase HoldBreathSoundEvent ()
 
void HoldBreathSoundEventBase ()
 
override bool HasHoldBreathException ()
 
override bool HasPriorityOverCurrent (PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
 
class ExhaustedBreathSoundEvent extends HoldBreathSoundEventBase ReleaseBreathSoundEvent ()
 
void ExhaustedBreathSoundEvent ()
 

Function Documentation

◆ ExhaustedBreathSoundEvent()

void ReleaseBreathSoundEvent::ExhaustedBreathSoundEvent ( )

Definition at line 51 of file HoldBreathEvents.c.

51 {
53 m_ID = EPlayerSoundEventID.RELEASE_BREATH;
55 }
56
eBleedingSourceType m_Type
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
EPlayerSoundEventType
int m_SoundVoiceAnimEventClassID
Definition SoundEvents.c:83

References m_ID, m_SoundVoiceAnimEventClassID, and m_Type.

Referenced by PlayerSoundEventHandler().

◆ HasHoldBreathException()

override bool HoldBreathSoundEvent::HasHoldBreathException ( )

Definition at line 24 of file HoldBreathEvents.c.

26 {
27 if (other_state_id == EPlayerSoundEventID.RELEASE_BREATH)

◆ HasPriorityOverCurrent()

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

Definition at line 25 of file HoldBreathEvents.c.

26 {
27 if (other_state_id == EPlayerSoundEventID.RELEASE_BREATH)
28 return false;
29 return true;
30 }

◆ HoldBreathSoundEvent()

Definition at line 1 of file HoldBreathEvents.c.

19 {
21 m_ID = EPlayerSoundEventID.HOLD_BREATH;
23 }

Referenced by PlayerSoundEventHandler().

◆ HoldBreathSoundEventBase()

void HoldBreathSoundEvent::HoldBreathSoundEventBase ( )

Definition at line 19 of file HoldBreathEvents.c.

19 {
21 m_ID = EPlayerSoundEventID.HOLD_BREATH;

References m_ID, m_SoundVoiceAnimEventClassID, and m_Type.

◆ ReleaseBreathSoundEvent()

Definition at line 33 of file HoldBreathEvents.c.

51 {
53 m_ID = EPlayerSoundEventID.RELEASE_BREATH;
55 }

Referenced by PlayerSoundEventHandler().