From f8d93a1085c9a35762eaa2cd26304c722306dd19 Mon Sep 17 00:00:00 2001 From: Barichello Date: Sat, 19 Feb 2022 01:04:40 -0300 Subject: Add helper function SetScoreLimit --- Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Northstar.CustomServers') 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() ) -- cgit v1.2.3