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

◆ AttenuateSoundIfNecessary()

void DayZPlayer::AttenuateSoundIfNecessary ( SoundObject soundObject)
inlineprotected

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

3850 {
3851 if (GetGame().GetPlayer() != NULL && (IsSoundInsideBuilding() != GetGame().GetPlayer().IsSoundInsideBuilding() || IsCameraInsideVehicle() != GetGame().GetPlayer().IsCameraInsideVehicle()))
3852 {
3853 soundObject.SetKind(WaveKind.WAVEATTALWAYS);
3854 }
3855 else
3856 {
3857 soundObject.SetKind(WaveKind.WAVEEFFECTEX);
3858 }
3859 }
PlayerBase GetPlayer()
Определения ModifierBase.c:51
WaveKind
Определения Sound.c:2
proto native CGame GetGame()
proto native void SetKind(WaveKind kind)

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

Используется в OnStepEvent(), ProcessAttachmentEvent(), ProcessSoundEvent(), ProcessVoiceEvent() и ProcessWeaponEvent().