From 572f913cfe3e4d37dfa0191b3f374b434c5d438f Mon Sep 17 00:00:00 2001 From: Barichello Date: Thu, 20 Jan 2022 11:05:46 -0300 Subject: Add end time util functions --- Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() ) -- cgit v1.2.3