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

◆ AttenuateSoundIfNecessary()

void DayZCreature::AttenuateSoundIfNecessary ( SoundObject soundObject)
inlineprotected

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

339 {
340 if (GetGame().GetPlayer() != NULL && (IsSoundInsideBuilding() != GetGame().GetPlayer().IsSoundInsideBuilding() || GetGame().GetPlayer().IsCameraInsideVehicle()))
341 {
342 soundObject.SetKind(WaveKind.WAVEATTALWAYS);
343 }
344 else
345 {
346 soundObject.SetKind(WaveKind.WAVEEFFECTEX);
347 }
348 }
PlayerBase GetPlayer()
Определения ModifierBase.c:51
WaveKind
Определения Sound.c:2
proto native bool IsSoundInsideBuilding()
proto native CGame GetGame()
proto native void SetKind(WaveKind kind)

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

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