aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-04-10 21:32:08 +0100
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-04-12 23:12:28 +0200
commit936b66298a2666394c407419b1eb6310201b6153 (patch)
treed662be1d9d046a79690e55ab02ac9157ca6acfe6 /Northstar.CustomServers/mod/scripts/vscripts/mp
parent66eef34dcf28f3a52f10bd046fa6f6a9b189cd70 (diff)
downloadNorthstarMods-936b66298a2666394c407419b1eb6310201b6153.tar.gz
NorthstarMods-936b66298a2666394c407419b1eb6310201b6153.zip
don't run killreplay if epilogue is active (#296)
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut2
1 files changed, 1 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
index e8b636ff..e02ca7e3 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
@@ -281,7 +281,7 @@ void function GameStateEnter_WinnerDetermined_Threaded()
WaitFrame() // wait a frame so other scripts can setup killreplay stuff
entity replayAttacker = file.roundWinningKillReplayAttacker
- bool doReplay = Replay_IsEnabled() && IsRoundWinningKillReplayEnabled() && IsValid( replayAttacker )
+ bool doReplay = Replay_IsEnabled() && IsRoundWinningKillReplayEnabled() && IsValid( replayAttacker ) && !ClassicMP_ShouldRunEpilogue()
&& Time() - file.roundWinningKillReplayTime <= ROUND_WINNING_KILL_REPLAY_LENGTH_OF_REPLAY && winningTeam != TEAM_UNASSIGNED
float replayLength = 2.0 // extra delay if no replay