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

Private Member Functions

eInjurySoundZones DetermineInjuryZone (eInjuryHandlerLevels level)
void PlaySound (eInjurySoundZones zone)
void ProcessSound (eInjurySoundZones zone)
override void Update ()

Private Attributes

eInjuryHandlerLevels m_InjuryLevel
eInjurySoundZones m_InjurySoundZone
ref HumanMovementState m_MovementState = new HumanMovementState
float m_SoundTime
const float SOUND_INTERVALS_HEAVY_MAX = 12
const float SOUND_INTERVALS_HEAVY_MIN = 3
const float SOUND_INTERVALS_LIGHT_MAX = 30
const float SOUND_INTERVALS_LIGHT_MIN = 15
const float SOUND_INTERVALS_MEDIUM_MAX = 25
const float SOUND_INTERVALS_MEDIUM_MIN = 10

Detailed Description

Definition at line 24 of file injurysoundhandler.c.

Member Function Documentation

◆ DetermineInjuryZone()

eInjurySoundZones DetermineInjuryZone ( eInjuryHandlerLevels level)
inlineprivate

Definition at line 36 of file injurysoundhandler.c.

References Math::Clamp(), and m_MovementState.

Referenced by Update().

◆ PlaySound()

void PlaySound ( eInjurySoundZones zone)
inlineprivate

Definition at line 112 of file injurysoundhandler.c.

◆ ProcessSound()

◆ Update()

override void Update ( )
inlineprivate

Definition at line 70 of file injurysoundhandler.c.

References DetermineInjuryZone(), m_InjuryLevel, and ProcessSound().

Field Documentation

◆ m_InjuryLevel

eInjuryHandlerLevels m_InjuryLevel
private

Definition at line 32 of file injurysoundhandler.c.

Referenced by Update().

◆ m_InjurySoundZone

eInjurySoundZones m_InjurySoundZone
private

Definition at line 31 of file injurysoundhandler.c.

◆ m_MovementState

ref HumanMovementState m_MovementState = new HumanMovementState
private

Definition at line 30 of file injurysoundhandler.c.

Referenced by DetermineInjuryZone().

◆ m_SoundTime

float m_SoundTime
private

Definition at line 33 of file injurysoundhandler.c.

Referenced by ProcessSound().

◆ SOUND_INTERVALS_HEAVY_MAX

const float SOUND_INTERVALS_HEAVY_MAX = 12
private

Definition at line 28 of file injurysoundhandler.c.

Referenced by ProcessSound().

◆ SOUND_INTERVALS_HEAVY_MIN

const float SOUND_INTERVALS_HEAVY_MIN = 3
private

Definition at line 28 of file injurysoundhandler.c.

Referenced by ProcessSound().

◆ SOUND_INTERVALS_LIGHT_MAX

const float SOUND_INTERVALS_LIGHT_MAX = 30
private

Definition at line 26 of file injurysoundhandler.c.

Referenced by ProcessSound().

◆ SOUND_INTERVALS_LIGHT_MIN

const float SOUND_INTERVALS_LIGHT_MIN = 15
private

Definition at line 26 of file injurysoundhandler.c.

Referenced by ProcessSound().

◆ SOUND_INTERVALS_MEDIUM_MAX

const float SOUND_INTERVALS_MEDIUM_MAX = 25
private

Definition at line 27 of file injurysoundhandler.c.

Referenced by ProcessSound().

◆ SOUND_INTERVALS_MEDIUM_MIN

const float SOUND_INTERVALS_MEDIUM_MIN = 10
private

Definition at line 27 of file injurysoundhandler.c.

Referenced by ProcessSound().


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