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

◆ Perform()

void SpookyEventBase::Perform ( PlayerBase player,
float currentTime,
TStringVectorMap gatheredSurfaces )
inlineprotected

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

153 {
154 #ifdef DIAG_DEVELOPER
155 if (DiagMenu.GetBool(DiagMenuIDs.TRIGGER_DEBUG))
156 Print("Performing " + this);
157 #endif
158 m_PerformedTimestamp = currentTime;
159
160 if (m_SoundSet)
161 {
162 vector soundPos = GetSoundPos(player);
163 EffectSound sound = SEffectManager.PlaySound(m_SoundSet, soundPos);
164 sound.SetAutodestroy( true );
165
166 #ifdef DIAG_DEVELOPER
167 if (DiagMenu.GetBool(DiagMenuIDs.TRIGGER_DEBUG))
168 Debug.DrawSphere(soundPos , 0.15,Colors.YELLOW, ShapeFlags.NOZBUFFER);
169 #endif
170 }
171
172 Do(player);
173 }
DiagMenuIDs
Определения EDiagMenuIDs.c:2
void Debug()
Определения UniversalTemperatureSource.c:349
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Определения EffectSound.c:603
void Do(PlayerBase player)
vector GetSoundPos(PlayerBase player)
Определения SpookyAreaMisc.c:175
string m_SoundSet
Определения SpookyAreaMisc.c:92
float m_PerformedTimestamp
Определения SpookyAreaMisc.c:89
@ Colors
Определения EnWorld.c:88
proto void Print(void var)
Prints content of variable to console/log.
ShapeFlags
Определения EnDebug.c:126

Перекрестные ссылки Do(), Debug::DrawSphere(), DiagMenu::GetBool(), GetSoundPos(), m_PerformedTimestamp, m_SoundSet, SEffectManager::PlaySound(), Print(), EffectSound::SetAutodestroy() и Colors::YELLOW.

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