diff options
author | Barichello <artur@barichello.me> | 2022-01-20 11:05:46 -0300 |
---|---|---|
committer | Barichello <artur@barichello.me> | 2022-01-20 11:05:46 -0300 |
commit | 572f913cfe3e4d37dfa0191b3f374b434c5d438f (patch) | |
tree | 7b1964e21f496b9563a8d9ac2d6c12ecc5e04ff4 | |
parent | 3d80ede8229b94185a3e14b87c48092602505f5a (diff) | |
download | NorthstarMods-572f913cfe3e4d37dfa0191b3f374b434c5d438f.tar.gz NorthstarMods-572f913cfe3e4d37dfa0191b3f374b434c5d438f.zip |
Add end time util functions
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut | 10 |
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() ) |