aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers
diff options
context:
space:
mode:
authorcat_or_not <41955154+catornot@users.noreply.github.com>2022-08-11 08:15:18 -0400
committerGitHub <noreply@github.com>2022-08-11 13:15:18 +0100
commitfcdbedd671e8c824f626b39a75538df9aff762c0 (patch)
tree06fa0d5a9d46d438e2c2c75ffbb77f8486806e2c /Northstar.CustomServers
parent7b9ba2486eff78b17ff52a92d27dc62a3a17553b (diff)
downloadNorthstarMods-fcdbedd671e8c824f626b39a75538df9aff762c0.tar.gz
NorthstarMods-fcdbedd671e8c824f626b39a75538df9aff762c0.zip
adding win achievement (#481)
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut3
1 files changed, 3 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
index bfcd23e0..4108d0d9 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
@@ -278,6 +278,9 @@ void function GameStateEnter_WinnerDetermined_Threaded()
Remote_CallFunction_NonReplay( player, "ServerCallback_AnnounceRoundWinner", winningTeam, announcementSubstr, ROUND_WINNING_KILL_REPLAY_SCREEN_FADE_TIME, GameRules_GetTeamScore2( TEAM_MILITIA ), GameRules_GetTeamScore2( TEAM_IMC ) )
else
Remote_CallFunction_NonReplay( player, "ServerCallback_AnnounceWinner", winningTeam, announcementSubstr, ROUND_WINNING_KILL_REPLAY_SCREEN_FADE_TIME )
+
+ if ( player.GetTeam() == winningTeam )
+ UnlockAchievement( player, achievements.MP_WIN )
}
WaitFrame() // wait a frame so other scripts can setup killreplay stuff