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

◆ HandleSoundEffectsPipeSprinkling()

void HandleSoundEffectsPipeSprinkling ( )
protected

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

974 {
975 if (!m_PipeSounds || m_PipeSounds.Count() == 0)
976 {
977 return;
978 }
979
980 EffectSound sndDrain, sndFill;
981 float drainPressureLevel = GetValvePressureLevelGauge(VALVE_INDEX_DRAIN);
982 if (drainPressureLevel >= 0.4 && drainPressureLevel < 0.8)
983 {
984 if (m_PipeSounds[VALVE_INDEX_DRAIN] == null)
985 {
986 PlaySoundSetAtMemoryPoint(sndDrain, SOUND_NAME_PIPE_SPRINKLING_START, VALVE_NAME_DRAIN, false, 0.0, 0.5);
988 StopSoundSet(m_PipeSounds[VALVE_INDEX_DRAIN]);
990 PlaySoundSetAtMemoryPointLooped(sndDrain, SOUND_NAME_PIPE_SPRINKLING_LOOP1, VALVE_NAME_DRAIN, 0.5, 0.5);
992 }
993 }
994
995 if (drainPressureLevel < 0.4)
996 {
997 if (m_PipeSounds[VALVE_INDEX_DRAIN] != null)
998 {
999 StopSoundSet(m_PipeSounds[VALVE_INDEX_DRAIN]);
1001 }
1002 }
1003
1005
1006 float fillPressureLevel = GetValvePressureLevelGauge(VALVE_INDEX_FILL);
1007 if (fillPressureLevel >= 0.4)
1008 {
1009 if (m_PipeSounds[VALVE_INDEX_FILL] == null)
1010 {
1011 PlaySoundSetAtMemoryPoint(sndFill, SOUND_NAME_PIPE_SPRINKLING_START, VALVE_NAME_FILL, false, 0.0, 0.5);
1012 StopSoundSet(m_PipeSounds[VALVE_INDEX_FILL]);
1014 PlaySoundSetAtMemoryPointLooped(sndFill, SOUND_NAME_PIPE_SPRINKLING_LOOP2, VALVE_NAME_FILL, 0.5, 0.5);
1015 m_PipeSounds[VALVE_INDEX_FILL] = sndFill;
1016 }
1017 }
1018
1019 if (fillPressureLevel < 0.4)
1020 {
1021 if (m_PipeSounds[VALVE_INDEX_FILL] != null)
1022 {
1023 StopSoundSet(m_PipeSounds[VALVE_INDEX_FILL]);
1025 }
1026 }
1027 }
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().