Handles some VON related input.
114 {
115#ifdef PLATFORM_XBOX
116
118 {
119 return;
120 }
121#endif
123 if (oldLevel == -1)
124 return;
125
126 int newLevel = -1;
127
129 {
130 newLevel = ( oldLevel + 1 ) % ( VoiceLevelShout + 1 );
131 }
132
134 {
135 newLevel = oldLevel - 1;
136 if (newLevel < VoiceLevelWhisper)
137 {
138 newLevel = VoiceLevelShout;
139 }
140 }
141
142 if (newLevel > -1)
143 {
147 {
149 }
150 else
151 {
154 }
155 }
156 }
void ShowVoiceNotification(int level, bool fading)
Shows the voice notification.
proto native int GetVoiceLevel(Object player=null)
Get voice level of VoN (on both client and server) (VoiceLevelWhisper = 0, VoiceLevelNormal = 1,...
proto native void SetVoiceLevel(int level)
Set voice level of VoN (only on client) (VoiceLevelWhisper = 0, VoiceLevelNormal = 1,...
proto native Mission GetMission()
proto native CGame GetGame()