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

◆ HandleSoundEffectsPipeSprinkling()

void HandleSoundEffectsPipeSprinkling ( )
protected

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

987 {
988 if (!m_PipeSounds || m_PipeSounds.Count() == 0)
989 {
990 return;
991 }
992
993 EffectSound snd;
994
995 EffectSound sndDrain, sndFill;
996 float drainPressureLevel = GetValvePressureLevelGauge(VALVE_INDEX_DRAIN);
997 if (drainPressureLevel >= 0.4 && drainPressureLevel < 0.8)
998 {
999 if (m_PipeSounds[VALVE_INDEX_DRAIN] == null)
1000 {
1001 PlaySoundSetAtMemoryPoint(sndDrain, SOUND_NAME_PIPE_SPRINKLING_START, VALVE_NAME_DRAIN, false, 0.0, 0.5);
1002 m_PipeSounds[VALVE_INDEX_DRAIN] = sndDrain;
1004 StopSoundSet(snd);
1006 PlaySoundSetAtMemoryPointLooped(sndDrain, SOUND_NAME_PIPE_SPRINKLING_LOOP1, VALVE_NAME_DRAIN, 0.5, 0.5);
1007 m_PipeSounds[VALVE_INDEX_DRAIN] = sndDrain;
1008 }
1009 }
1010
1011 if (drainPressureLevel < 0.4)
1012 {
1013 if (m_PipeSounds[VALVE_INDEX_DRAIN] != null)
1014 {
1016 StopSoundSet(snd);
1018 }
1019 }
1020
1022
1023 float fillPressureLevel = GetValvePressureLevelGauge(VALVE_INDEX_FILL);
1024 if (fillPressureLevel >= 0.4)
1025 {
1026 if (m_PipeSounds[VALVE_INDEX_FILL] == null)
1027 {
1028 PlaySoundSetAtMemoryPoint(sndFill, SOUND_NAME_PIPE_SPRINKLING_START, VALVE_NAME_FILL, false, 0.0, 0.5);
1030 StopSoundSet(snd);
1032 PlaySoundSetAtMemoryPointLooped(sndFill, SOUND_NAME_PIPE_SPRINKLING_LOOP2, VALVE_NAME_FILL, 0.5, 0.5);
1033 m_PipeSounds[VALVE_INDEX_FILL] = sndFill;
1034 }
1035 }
1036
1037 if (fillPressureLevel < 0.4)
1038 {
1039 if (m_PipeSounds[VALVE_INDEX_FILL] != null)
1040 {
1042 StopSoundSet(snd);
1044 }
1045 }
1046 }
const string SOUND_NAME_PIPE_SPRINKLING_START
const string VALVE_NAME_FILL
const string SOUND_NAME_PIPE_SPRINKLING_LOOP2
const int VALVE_INDEX_DRAIN
float GetValvePressureLevelGauge(int pValveIndex)
ref array< EffectSound > m_PipeSounds
const string VALVE_NAME_DRAIN
const int VALVE_INDEX_FILL
const string SOUND_NAME_PIPE_SPRINKLING_LOOP1
Wrapper class for managing sound through SEffectManager.
Определения EffectSound.c:5

Перекрестные ссылки GetValvePressureLevelGauge(), m_PipeSounds, SOUND_NAME_PIPE_SPRINKLING_LOOP1, SOUND_NAME_PIPE_SPRINKLING_LOOP2, SOUND_NAME_PIPE_SPRINKLING_START, VALVE_INDEX_DRAIN, VALVE_INDEX_FILL, VALVE_NAME_DRAIN и VALVE_NAME_FILL.

Используется в HandleSoundEffects().