diff options
author | Jack Bolton <jack@notlob.co.uk> | 2022-01-15 01:23:28 +0000 |
---|---|---|
committer | Jack Bolton <jack@notlob.co.uk> | 2022-01-15 01:23:28 +0000 |
commit | 3e3d8e84692d64d3acff8ef61de1347ec955890c (patch) | |
tree | ca26896e52ffc454047ed179ba1dfe503350b3c5 | |
parent | 3f7c13c0df67d1e80ffafa65f9fb6d87c38f4653 (diff) | |
download | NorthstarMods-3e3d8e84692d64d3acff8ef61de1347ec955890c.tar.gz NorthstarMods-3e3d8e84692d64d3acff8ef61de1347ec955890c.zip |
GetTimeLimit_ForGameMode() is no longer a stub
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut | 6 |
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 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 |