Skip to content

Commit

Permalink
use WinnerDetermined instead of Epilogue to grant stats
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpoonPlaysGames committed Sep 18, 2023
1 parent 43d238a commit 3b11328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void function Stats_Init()
AddCallback_OnPlayerRespawned( OnPlayerRespawned )
AddCallback_OnClientConnected( OnClientConnected )
AddCallback_OnClientDisconnected( OnClientDisconnected )
AddCallback_GameStateEnter( eGameState.Epilogue, OnEpilogueStarted )
AddCallback_GameStateEnter( eGameState.WinnerDetermined, OnWinnerDetermined )

thread HandleDistanceAndTimeStats_Threaded()
thread SaveStatsPeriodically_Threaded()
Expand Down Expand Up @@ -798,7 +798,7 @@ void function OnPlayerRespawned( entity player )
thread SetLastPosForDistanceStatValid_Threaded( player, true )
}

void function OnEpilogueStarted()
void function OnWinnerDetermined()
{
// award players for match completed, wins, and losses
foreach ( entity player in GetPlayerArray() )
Expand Down

0 comments on commit 3b11328

Please sign in to comment.