DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnSoundVoiceEvent()

override void DayZInfected::OnSoundVoiceEvent ( int event_id,
string event_user_string )
inlineprotected

stop state sound when playing anim SoundVoice

stop playing of old SoundVoice from anim (if any)

play new SoundVoice from anim

См. определение в файле ZombieBase.c строка 550

551 {
552 //super.OnSoundVoiceEvent(event_id, event_user_string);
553 AnimSoundVoiceEvent voice_event = GetCreatureAIType().GetSoundVoiceEvent(event_id);
554 if (voice_event != null)
555 {
557 if (m_InfectedSoundEventHandler) // && m_InfectedSoundEventHandler.IsPlaying())
558 {
560 DebugSound("[Infected @ " + this + "][SoundEvent] InfectedSoundEventHandler - stop all");
561 }
562
564 if (m_LastSoundVoiceAW != null)
565 {
566 DebugSound("[Infected @ " + this + "][AnimVoiceEvent] Stopping LastAW");
567 m_LastSoundVoiceAW.Stop();
568 }
569
572
574 }
575 }
ref InfectedSoundEventHandler m_InfectedSoundEventHandler
Определения ZombieBase.c:27
void ProcessSoundVoiceEvent(AnimSoundVoiceEvent sound_event, out AbstractWave aw)
Определения ZombieBase.c:577
void HandleSoundEvents()
Определения ZombieBase.c:487
AbstractWave m_LastSoundVoiceAW
Определения ZombieBase.c:26
void DebugSound(string s)
sound debug messages
Определения ZombieBase.c:1008

Перекрестные ссылки DebugSound(), HandleSoundEvents(), m_InfectedSoundEventHandler, m_LastSoundVoiceAW и ProcessSoundVoiceEvent().