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