From 3f31a4a37a2acf8df302117c99c060cec5996704 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Wed, 23 Jun 2021 20:46:07 +0100 Subject: fix bug with ejects crashing roundwinningkillreplay --- .../scripts/vscripts/gamemodes/_gamemode_lts.nut | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_lts.nut') diff --git a/Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_lts.nut b/Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_lts.nut index e8231aad8..82c304b69 100644 --- a/Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_lts.nut +++ b/Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_lts.nut @@ -14,6 +14,7 @@ void function GamemodeLts_Init() { // gamemode settings SetShouldUsePickLoadoutScreen( true ) + SetSwitchSidesBased( true ) SetRoundBased( true ) SetRespawnsEnabled( false ) Riff_ForceSetEliminationMode( eEliminationMode.PilotsTitans ) @@ -28,7 +29,7 @@ void function GamemodeLts_Init() SetTimeoutWinnerDecisionFunc( CheckTitanHealthForDraw ) - ClassicMP_SetCustomIntro( GamemodeLTS_Intro, 0.0 ) // dont any sorta + ClassicMP_SetCustomIntro( GamemodeLTS_Intro, 0.0 ) // dont any sorta timer } // this should also probably be moved into a generic intro rather than being lts-specific @@ -71,10 +72,10 @@ void function GamemodeLTS_PlayingThink() { svGlobal.levelEnt.EndSignal( "RoundEnd" ) // end this on round end - float endTime = expect float ( GetServerVar( "gameEndTime" ) ) + float endTime = expect float ( GetServerVar( "roundEndTime" ) ) // wait until 30sec left - wait endTime - 30 - Time() + wait ( endTime - 30 ) - Time() foreach ( entity player in GetPlayerArray() ) { // warn there's 30 seconds left @@ -87,7 +88,7 @@ void function GamemodeLTS_PlayingThink() void function RefreshThirtySecondWallhackHighlight( entity player, entity titan ) { - if ( TimeSpentInCurrentState() < 30.0 ) + if ( TimeSpentInCurrentState() < expect float ( GetServerVar( "roundEndTime" ) ) - 30.0 ) return Highlight_SetEnemyHighlight( player, "enemy_sonar" ) // i think this needs a different effect, this works for now tho -- cgit v1.2.3