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

◆ OnPowerOnClient()

void Land_WarheadStorage_Main::OnPowerOnClient ( )
inlineprotected

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

102 {
103 EffectSound soundEff;
104 PlaySoundSetAtMemoryPoint(soundEff, VENTILATION_SOUND, VENT_MAIN_POS_MEMPOINT, true, 0.5, 0.5);
105 m_PoweredSoundEffects.Insert(soundEff);
106 soundEff.SetAutodestroy(true);
107
108 PlaySoundSetAtMemoryPoint(soundEff, ELECTRICITY_ON_SOUND, VENT_MAIN_POS_MEMPOINT, false);
109 soundEff.SetAutodestroy(true);
110
111 for (int i; i < SOURCES_COUNT; i++)
112 {
113 PlaySoundSetAtMemoryPoint(soundEff, VENTILATION_SOUND, VENT_POS_MEMPOINT + (i+1).ToString(), true, 0.5, 0.5);
114 m_PoweredSoundEffects.Insert(soundEff);
115 soundEff.SetAutodestroy(true);
116 PlaySoundSetAtMemoryPoint(soundEff, LAMPS_SOUND, "lamp" + (i+1).ToString() + "_pos", true, 0.1, 0.1);
117 m_PoweredSoundEffects.Insert(soundEff);
118 soundEff.SetAutodestroy(true);
119 }
120 }
proto string ToString()
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Определения EffectSound.c:603
const string ELECTRICITY_ON_SOUND
Определения Land_WarheadStorage_Main.c:24
const string LAMPS_SOUND
Определения Land_WarheadStorage_Main.c:23
const string VENT_POS_MEMPOINT
Определения Land_WarheadStorage_Main.c:17
const string VENTILATION_SOUND
Определения Land_WarheadStorage_Main.c:22
ref array< EffectSound > m_PoweredSoundEffects
Определения Land_WarheadStorage_Main.c:7
const string VENT_MAIN_POS_MEMPOINT
Определения Land_WarheadStorage_Main.c:16
const int SOURCES_COUNT
Определения Land_WarheadStorage_Main.c:11

Перекрестные ссылки ELECTRICITY_ON_SOUND, LAMPS_SOUND, m_PoweredSoundEffects, EffectSound::SetAutodestroy(), SOURCES_COUNT, ToString(), VENT_MAIN_POS_MEMPOINT, VENT_POS_MEMPOINT и VENTILATION_SOUND.

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