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

◆ AttenuateSoundIfNecessary()

void DayZCreature::AttenuateSoundIfNecessary ( SoundObject soundObject)
inlineprotected

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

383 {
384 if (g_Game.GetPlayer() != NULL && (IsSoundInsideBuilding() != g_Game.GetPlayer().IsSoundInsideBuilding() || g_Game.GetPlayer().IsCameraInsideVehicle()))
385 {
386 soundObject.SetKind(WaveKind.WAVEATTALWAYS);
387 }
388 else
389 {
390 soundObject.SetKind(WaveKind.WAVEEFFECTEX);
391 }
392 }
DayZGame g_Game
Определения DayZGame.c:3942
WaveKind
Определения Sound.c:2
proto native bool IsSoundInsideBuilding()
proto native void SetKind(WaveKind kind)

Перекрестные ссылки g_Game, IsSoundInsideBuilding() и SoundObject::SetKind().

Используется в ProcessSoundVoiceEvent() и ProcessStepEvent().