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

◆ IsVoiceThresholdMinimum()

static bool VONManager::IsVoiceThresholdMinimum ( )
inlinestaticprivate

Specifies whether user's voice activation threshold value is equal to the minimum voice activation threshold value.

Возвращает
True if threshold minimum, false otherwise

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

329 {
330 GameOptions gameOptions = new GameOptions();
331 NumericOptionsAccess noa;
332 Class.CastTo(noa, gameOptions.GetOptionByType( OptionAccessType.AT_OPTIONS_VON_THRESHOLD_SLIDER ));
333
334 return noa.ReadValue() <= GetGame().GetSoundScene().GetSilenceThreshold();
335 }
proto native AbstractSoundScene GetSoundScene()
proto native OptionsAccess GetOptionByType(int accessType)
Get option by AccessType.
proto native CGame GetGame()
OptionAccessType
C++ OptionAccessType.
Определения gameplay.c:1224
proto native float GetSilenceThreshold()

Перекрестные ссылки Class::CastTo(), GetGame(), GameOptions::GetOptionByType(), AbstractSoundScene::GetSilenceThreshold() и CGame::GetSoundScene().

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