aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-02-19 01:04:40 -0300
committerBarichello <artur@barichello.me>2022-02-19 01:04:40 -0300
commitf8d93a1085c9a35762eaa2cd26304c722306dd19 (patch)
tree606725d75be8346f450aef298e3916f88f8502d4
parent6890f7c79c33543036d14feadfa71aedd22ca183 (diff)
downloadNorthstarMods-f8d93a1085c9a35762eaa2cd26304c722306dd19.tar.gz
NorthstarMods-f8d93a1085c9a35762eaa2cd26304c722306dd19.zip
Add helper function SetScoreLimit
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut5
1 files changed, 5 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut b/Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut
index 1644afd9..c0e69ba5 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut
@@ -3967,6 +3967,11 @@ void function SetRoundEndTime(float seconds)
SetServerVar( "roundEndTime", Time() + seconds )
}
+void function SetScoreLimit(int newLimit)
+{
+ SetPlaylistVarOverride( "scorelimit", string(newLimit) )
+}
+
int function GameTime_TimeLimitSeconds()
{
if ( IsRoundBased() )