aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers
diff options
context:
space:
mode:
authorJack Bolton <jack@notlob.co.uk>2022-01-15 01:23:28 +0000
committerJack Bolton <jack@notlob.co.uk>2022-01-15 01:23:28 +0000
commit3e3d8e84692d64d3acff8ef61de1347ec955890c (patch)
treeca26896e52ffc454047ed179ba1dfe503350b3c5 /Northstar.CustomServers
parent3f7c13c0df67d1e80ffafa65f9fb6d87c38f4653 (diff)
downloadNorthstarMods-3e3d8e84692d64d3acff8ef61de1347ec955890c.tar.gz
NorthstarMods-3e3d8e84692d64d3acff8ef61de1347ec955890c.zip
GetTimeLimit_ForGameMode() is no longer a stub
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut6
1 files changed, 5 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 2d39cf2d8..e5c8799dd 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