43 if (
GetGame().IsMissionMainMenu())
58 if (
GetGame().IsMissionMainMenu())
291 return noa.ReadValue() <=
GetGame().GetSoundScene().GetSilenceThreshold();
ref ScriptInvoker m_OnPartyChatChangedEvent
VONManagerBase Managed VONManagerImplementation()
void ~VONManagerImplementation()
ref ScriptInvoker m_OnVonStateEvent
Super root of all classes in Enforce script.
map< int, ref WidgetFadeTimer > GetVoiceLevelTimers()
void HideVoiceLevelWidgets()
WidgetFadeTimer GetMicWidgetFadeTimer()
ImageWidget GetMicrophoneIcon()
map< int, ImageWidget > GetVoiceLevelWidgets()
void SetVoNActive(bool active)
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
ScriptInvoker Class provide list of callbacks usage:
void OnEvent(EventType eventTypeId, Param params)
void HandleInput(Input inp)
void ShowVoiceNotification(int level, bool fading)
void HideVoiceNotification()
void OnVOIPThresholdChanged()
ref ScriptInvoker m_OnVonStateEvent
ref ScriptInvoker m_OnPartyChatChangedEvent
Manager class which handles Voice-over-network functionality while player is connected to a server.
static bool IsVONToggled()
Specifies whether VON mode is toggled or not.
static VONManagerBase GetInstance()
Main way to access VONManager functionality from script.
static void CleanupInstance()
Uninitializes VONManager, runs when user disconnects from server.
static ref VONManagerBase m_VONManager
static void Init()
Initializes VONManager, runs when user first connects to a server.
static bool IsVoiceThresholdMinimum()
Specifies whether user's voice activation threshold value is equal to the minimum voice activation th...
const EventType PartyChatStatusChangedEventTypeID
no params
const EventType VONStartSpeakingEventTypeID
params: VONStartSpeakingEventParams
const EventType VONStateEventTypeID
params: VONStateEventParams
const EventType VONUserStoppedTransmittingAudioEventTypeID
no params
const EventType VONUserStartedTransmittingAudioEventTypeID
no params
const EventType VONStopSpeakingEventTypeID
params: VONStopSpeakingEventParams
const EventType MPSessionPlayerReadyEventTypeID
no params
proto native CGame GetGame()
OptionAccessType
C++ OptionAccessType.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.