aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut10
1 files changed, 10 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut b/Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut
index 50851dae..59bba002 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut
@@ -3957,6 +3957,16 @@ string function ReloadScripts()
return ( "reloaded server scripts" )
}
+void function SetGameEndTime(float seconds)
+{
+ SetServerVar( "gameEndTime", Time() + seconds )
+}
+
+void function SetRoundEndTime(float seconds)
+{
+ SetServerVar( "roundEndTime", Time() + seconds )
+}
+
int function GameTime_TimeLimitSeconds()
{
if ( IsRoundBased() )