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

◆ HandleSoundEffectsPipeSprinkling()

void HandleSoundEffectsPipeSprinkling ( )
protected

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

989 {
990 if (!m_PipeSounds || m_PipeSounds.Count() == 0)
991 {
992 return;
993 }
994
995 EffectSound snd;
996
997 EffectSound sndDrain, sndFill;
998 float drainPressureLevel = GetValvePressureLevelGauge(VALVE_INDEX_DRAIN);
999 if (drainPressureLevel >= 0.4 && drainPressureLevel < 0.8)
1000 {
1001 if (m_PipeSounds[VALVE_INDEX_DRAIN] == null)
1002 {
1003 PlaySoundSetAtMemoryPoint(sndDrain, SOUND_NAME_PIPE_SPRINKLING_START, VALVE_NAME_DRAIN, false, 0.0, 0.5);
1004 m_PipeSounds[VALVE_INDEX_DRAIN] = sndDrain;
1006 StopSoundSet(snd);
1008 PlaySoundSetAtMemoryPointLooped(sndDrain, SOUND_NAME_PIPE_SPRINKLING_LOOP1, VALVE_NAME_DRAIN, 0.5, 0.5);
1009 m_PipeSounds[VALVE_INDEX_DRAIN] = sndDrain;
1010 }
1011 }
1012
1013 if (drainPressureLevel < 0.4)
1014 {
1015 if (m_PipeSounds[VALVE_INDEX_DRAIN] != null)
1016 {
1018 StopSoundSet(snd);
1020 }
1021 }
1022
1024
1025 float fillPressureLevel = GetValvePressureLevelGauge(VALVE_INDEX_FILL);
1026 if (fillPressureLevel >= 0.4)
1027 {
1028 if (m_PipeSounds[VALVE_INDEX_FILL] == null)
1029 {
1030 PlaySoundSetAtMemoryPoint(sndFill, SOUND_NAME_PIPE_SPRINKLING_START, VALVE_NAME_FILL, false, 0.0, 0.5);
1032 StopSoundSet(snd);
1034 PlaySoundSetAtMemoryPointLooped(sndFill, SOUND_NAME_PIPE_SPRINKLING_LOOP2, VALVE_NAME_FILL, 0.5, 0.5);
1035 m_PipeSounds[VALVE_INDEX_FILL] = sndFill;
1036 }
1037 }
1038
1039 if (fillPressureLevel < 0.4)
1040 {
1041 if (m_PipeSounds[VALVE_INDEX_FILL] != null)
1042 {
1044 StopSoundSet(snd);
1046 }
1047 }
1048 }
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().