DayZ 1.30
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 строка 556

557 {
558 //super.OnSoundVoiceEvent(event_id, event_user_string);
559 AnimSoundVoiceEvent voice_event = GetCreatureAIType().GetSoundVoiceEvent(event_id);
560 if (voice_event != null)
561 {
563 if (m_InfectedSoundEventHandler) // && m_InfectedSoundEventHandler.IsPlaying())
564 {
566 DebugSound("[Infected @ " + this + "][SoundEvent] InfectedSoundEventHandler - stop all");
567 }
568
570 if (m_LastSoundVoiceAW != null)
571 {
572 DebugSound("[Infected @ " + this + "][AnimVoiceEvent] Stopping LastAW");
573 m_LastSoundVoiceAW.Stop();
574 }
575
578
580 }
581 }
ref InfectedSoundEventHandler m_InfectedSoundEventHandler
Определения ZombieBase.c:27
void ProcessSoundVoiceEvent(AnimSoundVoiceEvent sound_event, out AbstractWave aw)
Определения ZombieBase.c:583
void HandleSoundEvents()
Определения ZombieBase.c:493
AbstractWave m_LastSoundVoiceAW
Определения ZombieBase.c:26
void DebugSound(string s)
sound debug messages
Определения ZombieBase.c:1020

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