aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut32
1 files changed, 1 insertions, 31 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
index 0c66f5a9..17323c38 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
@@ -226,37 +226,7 @@ void function SetWinner( int team, string winningReason = "", string losingReaso
SetGameState( eGameState.WinnerDetermined )
ScoreEvent_MatchComplete( team )
- array<entity> players = GetPlayerArray()
- int functionref( entity, entity ) compareFunc = GameMode_GetScoreCompareFunc( GAMETYPE )
- if ( compareFunc != null )
- {
- players.sort( compareFunc )
- int playerCount = players.len()
- int currentPlace = 1
- for ( int i = 0; i < 3; i++ )
- {
- if ( i >= playerCount )
- continue
-
- if ( i > 0 && compareFunc( players[i - 1], players[i] ) != 0 )
- currentPlace += 1
-
- switch( currentPlace )
- {
- case 1:
- UpdatePlayerStat( players[i], "game_stats", "mvp" )
- UpdatePlayerStat( players[i], "game_stats", "mvp_total" )
- UpdatePlayerStat( players[i], "game_stats", "top3OnTeam" )
- break
- case 2:
- UpdatePlayerStat( players[i], "game_stats", "top3OnTeam" )
- break
- case 3:
- UpdatePlayerStat( players[i], "game_stats", "top3OnTeam" )
- break
- }
- }
- }
+ RegisterMatchStats_OnMatchComplete()
}
}
}