aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2023-09-18 20:02:03 +0100
committerGitHub <noreply@github.com>2023-09-18 21:02:03 +0200
commita2c0d6c0d4a666b60fabfcb3672953bbd6c73b3b (patch)
tree7ba4cebd7ad4dc39a5aa5e28e27b3de87949173c /Northstar.CustomServers/mod/scripts
parentafdadc6f897df342f882e0f98b2fccaa9e140289 (diff)
downloadNorthstarMods-1.19.0.tar.gz
NorthstarMods-1.19.0.zip
Use `WinnerDetermined` instead of `Epilogue` to grant stats (#713)v1.19.0
Use `WinnerDetermined` instead of `Epilogue` to grant stats as some modes (like LTS) don't go into `eGameState.Epilogue` apparently. `eGameState.WinnerDetermined` should be better
Diffstat (limited to 'Northstar.CustomServers/mod/scripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut4
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut
index 92c0f401..010184ff 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut
@@ -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()
@@ -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() )