Skip to content

Commit fa14da5

Browse files
authored
fix missing wave start announcer
1 parent 17a1425 commit fa14da5

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

game/client/tf/tf_hud_tournament.cpp

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,19 +163,27 @@ void CHudTournament::PlaySounds( int nTime )
163163
break;
164164
}
165165
case 15:
166-
if (TFGameRules() && TFGameRules()->IsMannVsMachineMode())
166+
if ( TFGameRules() && TFGameRules()->IsMannVsMachineMode() )
167167
{
168-
if (TFObjectiveResource()->GetMannVsMachineWaveCount() <= 1)
168+
if ( TFObjectiveResource()->GetMannVsMachineWaveCount() >= TFObjectiveResource()->GetMannVsMachineMaxWaveCount() )
169+
{
170+
pLocalPlayer->EmitSound( "Announcer.MVM_Final_Wave_Start" );
171+
}
172+
else if ( TFObjectiveResource()->GetMannVsMachineWaveCount() <= 1 )
169173
{
170-
if (GTFGCClientSystem()->GetLobby() && IsMannUpGroup(GTFGCClientSystem()->GetLobby()->GetMatchGroup()) || tf_force_mannup_sound.GetBool())
174+
if ( GTFGCClientSystem()->GetLobby() && IsMannUpGroup( GTFGCClientSystem()->GetLobby()->GetMatchGroup() ) || tf_force_mannup_sound.GetBool() )
171175
{
172-
pLocalPlayer->EmitSound("Announcer.MVM_Manned_Up");
176+
pLocalPlayer->EmitSound( "Announcer.MVM_Manned_Up" );
173177
}
174178
else
175179
{
176-
pLocalPlayer->EmitSound("Announcer.MVM_First_Wave_Start");
180+
pLocalPlayer->EmitSound( "Announcer.MVM_First_Wave_Start" );
177181
}
178182
}
183+
else
184+
{
185+
pLocalPlayer->EmitSound( "Announcer.MVM_Wave_Start" );
186+
}
179187
}
180188
case 10:
181189
{

0 commit comments

Comments
 (0)