DayZ 1.29
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 строка 342

343 {
344 GameOptions gameOptions = new GameOptions();
345 NumericOptionsAccess noa;
346 Class.CastTo(noa, gameOptions.GetOptionByType( OptionAccessType.AT_OPTIONS_VON_THRESHOLD_SLIDER ));
347
348 return noa.ReadValue() <= g_Game.GetSoundScene().GetSilenceThreshold();
349 }
DayZGame g_Game
Определения DayZGame.c:3942
proto native OptionsAccess GetOptionByType(int accessType)
Get option by AccessType.
OptionAccessType
C++ OptionAccessType.
Определения gameplay.c:1224

Перекрестные ссылки Class::CastTo(), g_Game и GameOptions::GetOptionByType().

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