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

◆ AttenuateSoundIfNecessary()

void DayZCreature::AttenuateSoundIfNecessary ( SoundObject soundObject)
inlineprotected

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

381 {
382 if (GetGame().GetPlayer() != NULL && (IsSoundInsideBuilding() != GetGame().GetPlayer().IsSoundInsideBuilding() || GetGame().GetPlayer().IsCameraInsideVehicle()))
383 {
384 soundObject.SetKind(WaveKind.WAVEATTALWAYS);
385 }
386 else
387 {
388 soundObject.SetKind(WaveKind.WAVEEFFECTEX);
389 }
390 }
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().