diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-06-23 20:46:07 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-06-23 20:46:07 +0100 |
commit | 3f31a4a37a2acf8df302117c99c060cec5996704 (patch) | |
tree | 52c54da00ee00820f3f44637929f166102fe9fd1 /Northstar.CustomServers/scripts/vscripts/gamemodes | |
parent | 8d4c71f7779120298773c9232dcdaa0fa0063786 (diff) | |
download | NorthstarMods-3f31a4a37a2acf8df302117c99c060cec5996704.tar.gz NorthstarMods-3f31a4a37a2acf8df302117c99c060cec5996704.zip |
fix bug with ejects crashing roundwinningkillreplay
Diffstat (limited to 'Northstar.CustomServers/scripts/vscripts/gamemodes')
-rw-r--r-- | Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_lts.nut | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_lts.nut b/Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_lts.nut index e8231aad..82c304b6 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 |