DayZ 1.30
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 строка 345

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

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

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