aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-01-20 11:05:46 -0300
committerBarichello <artur@barichello.me>2022-01-20 11:05:46 -0300
commit572f913cfe3e4d37dfa0191b3f374b434c5d438f (patch)
tree7b1964e21f496b9563a8d9ac2d6c12ecc5e04ff4 /Northstar.CustomServers/mod/scripts/vscripts
parent3d80ede8229b94185a3e14b87c48092602505f5a (diff)
downloadNorthstarMods-572f913cfe3e4d37dfa0191b3f374b434c5d438f.tar.gz
NorthstarMods-572f913cfe3e4d37dfa0191b3f374b434c5d438f.zip
Add end time util functions
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() )