Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл HungerSoundHandler.c

См. исходные тексты.

Структуры данных

class  SoundHandlerBase
 
class  HungerSoundHandlerBase
 

Функции

override void Update ()
 
void ProcessSound ()
 
void PlaySound ()
 

Переменные

class HungerSoundHandlerBase extends SoundHandlerBase SOUND_INTERVALS_LIGHT_MIN = 10
 
const float SOUND_INTERVALS_LIGHT_MAX = 30
 
float m_SoundTime
 
EffectSound m_Sound
 

Функции

◆ PlaySound()

void PlaySound ( )
39 {
40 m_Sound = SEffectManager.PlaySoundOnObject("hungry_uni_Voice_Char_SoundSet", m_Player);
41
42 if( m_Sound )
43 {
45 }
46 else
47 {
48 Debug.LogError("Missing sounset");
49 }
50 }
DayZPlayer m_Player
Definition Hand_Events.c:42
EffectSound m_Sound
Definition HungerSoundHandler.c:18
Definition Debug.c:14
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
Definition Debug.c:378
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Definition EffectSound.c:597
Manager class for managing Effect (EffectParticle, EffectSound)
Definition EffectManager.c:6
static EffectSound PlaySoundOnObject(string sound_set, Object parent_object, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
Definition EffectManager.c:243

Перекрестные ссылки Debug::LogError(), m_Player, m_Sound, SEffectManager::PlaySoundOnObject() и EffectSound::SetAutodestroy().

Используется в SymptomBase::OnGetActivatedServer(), DayZPlayer::OnStepEvent(), EntityAI::PlayImpactSound(), EntityAI::PlaySoundByAnimEvent(), DayZPlayer::ProcessAttachmentEvent(), ProcessSound(), InjurySoundHandlerBase::ProcessSound(), DayZCreature::ProcessSoundEvent(), DayZPlayer::ProcessSoundEvent(), DayZCreature::ProcessSoundVoiceEvent(), DayZInfected::ProcessSoundVoiceEvent(), DayZCreature::ProcessStepEvent(), DayZPlayer::ProcessVoiceEvent(), DayZInfected::ProcessVoiceFX(), DayZPlayer::ProcessWeaponEvent(), ItemBase::SoundCollision(), BarbedWireTrigger::SoundCollision(), ItemBase::SoundCut(), ItemBase::SoundElectricShock(), BarbedWireTrigger::SoundElectricShock() и ItemBase::SoundSpark().

◆ ProcessSound()

void ProcessSound ( )
29 {
30 if ( GetGame().GetTime() > m_SoundTime)
31 {
33 m_SoundTime = GetGame().GetTime() + offset_time;
34 PlaySound();
35 }
36 }
float m_SoundTime
Definition HungerSoundHandler.c:17
void PlaySound()
Definition HungerSoundHandler.c:38
class HungerSoundHandlerBase extends SoundHandlerBase SOUND_INTERVALS_LIGHT_MIN
const float SOUND_INTERVALS_LIGHT_MAX
Definition HungerSoundHandler.c:16
float GetTime()
Definition NotificationSystem.c:35
Definition EnMath.c:7
Definition EntityAI.c:95
proto native CGame GetGame()
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:106

Перекрестные ссылки GetGame(), GetTime(), m_SoundTime, PlaySound(), Math::RandomFloatInclusive(), SOUND_INTERVALS_LIGHT_MAX и SOUND_INTERVALS_LIGHT_MIN.

Используется в Tick(), Update() и InjurySoundHandlerBase::Update().

Переменные

◆ m_Sound

◆ m_SoundTime

float m_SoundTime

Используется в ProcessSound() и InjurySoundHandlerBase::ProcessSound().

◆ SOUND_INTERVALS_LIGHT_MAX

const float SOUND_INTERVALS_LIGHT_MAX = 30

Используется в ProcessSound() и InjurySoundHandlerBase::ProcessSound().

◆ SOUND_INTERVALS_LIGHT_MIN

class HungerSoundHandlerBase extends SoundHandlerBase SOUND_INTERVALS_LIGHT_MIN = 10

Используется в ProcessSound() и InjurySoundHandlerBase::ProcessSound().