From 3e3d8e84692d64d3acff8ef61de1347ec955890c Mon Sep 17 00:00:00 2001 From: Jack Bolton Date: Sat, 15 Jan 2022 01:23:28 +0000 Subject: GetTimeLimit_ForGameMode() is no longer a stub --- Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut index 2d39cf2d..e5c8799d 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut @@ -848,5 +848,9 @@ void function GiveTitanToPlayer( entity player ) float function GetTimeLimit_ForGameMode() { - return 100.0 + string mode = GameRules_GetGameMode() + string playlistString = "timelimit" + + // default to 10 mins, because that seems reasonable + return GetCurrentPlaylistVarFloat( playlistString, 10 ) } \ No newline at end of file -- cgit v1.2.3