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

◆ OnAnimationPhaseStarted()

override void Truck_01_Base::OnAnimationPhaseStarted ( string animSource,
float phase )
inlineprotected

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

250 {
251 super.OnAnimationPhaseStarted(animSource, phase);
252
253 #ifndef SERVER
254 #ifndef NO_GUI
255 switch (animSource)
256 {
257 case "wheelsideplate1":
258 case "wheelsideplate2":
259 EffectSound sound = CreateSoundForAnimationSource(animSource);
260 if (phase == 0)
261 {
262 sound.SetSoundSet("Truck_01_Gear_Open_Side_Plate_SoundSet");
263 }
264 else
265 {
266 sound.SetSoundSet("Truck_01_Gear_Close_Side_Plate_SoundSet");
267 }
268
269 sound.SetSoundFadeIn(0.1);
270 sound.SetSoundFadeOut(0.1);
271
272 SEffectManager.EffectRegister(sound);
273 sound.SoundPlay();
274 break;
275 }
276 #endif
277 #endif
278 }
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().