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

◆ AttenuateSoundIfNecessary()

void DayZPlayer::AttenuateSoundIfNecessary ( SoundObject soundObject)
inlineprotected

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

3784 {
3785 if (GetGame().GetPlayer() != NULL && (IsSoundInsideBuilding() != GetGame().GetPlayer().IsSoundInsideBuilding() || IsCameraInsideVehicle() != GetGame().GetPlayer().IsCameraInsideVehicle()))
3786 {
3787 soundObject.SetKind(WaveKind.WAVEATTALWAYS);
3788 }
3789 else
3790 {
3791 soundObject.SetKind(WaveKind.WAVEEFFECTEX);
3792 }
3793 }
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().