Handles some VON related input.
114 {
115#ifdef PLATFORM_MSSTORE
116
118 {
119 return;
120 }
121#endif
122#ifdef PLATFORM_XBOX
123
124 if (
g_Game.IsInPartyChat())
125 {
126 return;
127 }
128#endif
129#ifdef PLATFORM_MSSTORE
130
131 if (
g_Game.IsInPartyChat())
132 {
133 return;
134 }
135#endif
136
137 int oldLevel =
g_Game.GetVoiceLevel();
138 if (oldLevel == -1)
139 return;
140
141 int newLevel = -1;
142
144 {
145 newLevel = ( oldLevel + 1 ) % ( VoiceLevelShout + 1 );
146 }
147
149 {
150 newLevel = oldLevel - 1;
151 if (newLevel < VoiceLevelWhisper)
152 {
153 newLevel = VoiceLevelShout;
154 }
155 }
156
157 if (newLevel > -1)
158 {
159 g_Game.SetVoiceLevel(newLevel);
160 if (
g_Game.GetMission().IsVoNActive())
161 {
163 }
164 else
165 {
166 int level =
g_Game.GetVoiceLevel();
168 }
169 }
170 }
void ShowVoiceNotification(int level, bool fading)
Shows the voice notification.