DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
ItemSoundHandler.c File Reference

Data Structures

class  SoundParameters
 

Functions

void ItemSoundHandler (ItemBase parent)
 
void ~ItemSoundHandler ()
 
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
 
void PlayItemSoundClient (int id)
 
void StopItemSoundClient (int id)
 
void AddSound (int sound, string soundset, SoundParameters params=null)
 

Variables

class SoundParameters m_Parent
 
protected ref map< int, ref EffectSoundm_PlayingSounds
 
protected ref map< int, stringm_AvailableSoundsets
 
protected ref map< int, ref SoundParametersm_SoundParamsMap
 

Function Documentation

◆ AddSound()

void AddSound ( int  sound,
string  soundset,
SoundParameters  params = null 
)

◆ Init()

void Init ( )

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

whole body slots

upper body part slots

bottom body part slots

lower body part slots


heat comfort related slots

References m_AvailableSoundsets, m_PlayingSounds, and m_SoundParamsMap.

◆ ItemSoundHandler()

◆ PlayItemSoundClient()

◆ StopItemSoundClient()

void StopItemSoundClient ( int  id)

◆ ~ItemSoundHandler()

void ~ItemSoundHandler ( )

References m_PlayingSounds.

Variable Documentation

◆ m_AvailableSoundsets

protected ref map<int, string> m_AvailableSoundsets

Referenced by AddSound(), Init(), and PlayItemSoundClient().

◆ m_Parent

class SoundParameters m_Parent

◆ m_PlayingSounds

protected ref map<int, ref EffectSound> m_PlayingSounds

◆ m_SoundParamsMap

protected ref map<int, ref SoundParameters> m_SoundParamsMap

Referenced by AddSound(), Init(), and PlayItemSoundClient().