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

◆ OnAnimationPhaseStarted()

override void Motorbike_01_ColorBase::OnAnimationPhaseStarted ( string animSource,
float phase )
inlineprivate

См. определение в файле Vehicles/InheritedMotorbikes/Motorbike_01.c строка 107

108 {
109 super.OnAnimationPhaseStarted(animSource, phase);
110
111 #ifndef SERVER
112 #ifndef NO_GUI
113 switch (animSource)
114 {
115 case "seatdriver":
116 EffectSound sound = CreateSoundForAnimationSource(animSource);
117 if (phase == 0.0)
118 {
119 sound.SetSoundSet("Motorbike_01_Seat_FlipUp_SoundSet");
120 }
121 else
122 {
123 sound.SetSoundSet("Motorbike_01_Seat_FlipDown_SoundSet");
124 }
125
126 sound.SetSoundFadeIn(0.1);
127 sound.SetSoundFadeOut(0.1);
128
129 SEffectManager.EffectRegister(sound);
130 sound.SoundPlay();
131
132 break;
133 }
134 #endif
135 #endif
136 }
EffectSound CreateSoundForAnimationSource(string animSource)
Определения MotorbikeScript.c:277
void SetSoundSet(string snd)
Set soundset for the sound.
Определения EffectSound.c:798
void SetSoundFadeIn(float fade_in)
Set the sound fade in duration.
Определения EffectSound.c:899
void SetSoundFadeOut(float fade_out)
Set the sound fade out duration.
Определения EffectSound.c:908
bool SoundPlay()
Plays sound.
Определения EffectSound.c:199

Перекрестные ссылки CreateSoundForAnimationSource(), SEffectManager::EffectRegister(), EffectSound::SetSoundFadeIn(), EffectSound::SetSoundFadeOut(), EffectSound::SetSoundSet() и EffectSound::SoundPlay().