43 if (
GetGame().IsMissionMainMenu())
60 if (
GetGame().IsMissionMainMenu())
73 micIcon.SetAlpha(1.0);
78 micTimer.FadeOut(micIcon, 3.0);
82 for(
int n = 0; n < voiceLeveWidgets.Count(); n++ )
84 int voiceKey = voiceLeveWidgets.GetKey(n);
85 ImageWidget voiceWidget = voiceLeveWidgets.Get(n);
88 WidgetFadeTimer timer = voiceLevelTimers.Get(n);
92 if ( voiceKey <= level )
94 voiceWidget.SetAlpha(1.0);
95 voiceWidget.Show(
true);
99 timer.FadeOut(voiceWidget, 3.0);
104 voiceWidget.Show(
false);
127 newLevel = ( oldLevel + 1 ) % ( VoiceLevelShout + 1 );
132 newLevel = oldLevel - 1;
133 if (newLevel < VoiceLevelWhisper)
135 newLevel = VoiceLevelShout;
269 GetDayZGame().AddVoiceNotification(vonStartParams);
279 GetDayZGame().RemoveVoiceNotification(vonStopParams);
347 NumericOptionsAccess noa;
ref ScriptInvoker m_OnPartyChatChangedEvent
VONManagerBase Managed VONManagerImplementation()
void ~VONManagerImplementation()
ref ScriptInvoker m_OnVonStateEvent
protected bool m_VoNToggled
proto native void SetVoiceLevel(int level)
Set voice level of VoN (only on client) (VoiceLevelWhisper = 0, VoiceLevelNormal = 1,...
proto native Mission GetMission()
proto native AbstractSoundScene GetSoundScene()
proto native int GetVoiceLevel(Object player=null)
Get voice level of VoN (on both client and server) (VoiceLevelWhisper = 0, VoiceLevelNormal = 1,...
Super root of all classes in Enforce script.
proto native OptionsAccess GetOptionByType(int accessType)
Get option by AccessType.
void SetVoNActive(bool active)
map< int, ref WidgetFadeTimer > GetVoiceLevelTimers()
ImageWidget GetMicrophoneIcon()
void HideVoiceLevelWidgets()
map< int, ImageWidget > GetVoiceLevelWidgets()
WidgetFadeTimer GetMicWidgetFadeTimer()
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
ScriptInvoker Class provide list of callbacks usage:
proto void Invoke(void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
invoke call on all inserted methods with given arguments
proto native void Clear()
remove all calls from list
ref ScriptInvoker m_OnPartyChatChangedEvent
void HandleInput(Input inp)
void HideVoiceNotification()
ref ScriptInvoker m_OnVonStateEvent
void OnEvent(EventType eventTypeId, Param params)
void OnVOIPThresholdChanged()
protected bool m_VoNToggled
void ShowVoiceNotification(int level, bool fading)
Manager class which handles Voice-over-network functionality while player is connected to a server.
static void Init()
Initializes VONManager, runs when user first connects to a server.
static void CleanupInstance()
Uninitializes VONManager, runs when user disconnects from server.
static private ref VONManagerBase m_VONManager
static bool IsVONToggled()
Specifies whether VON mode is toggled or not.
static VONManagerBase GetInstance()
Main way to access VONManager functionality from script.
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.