From 45c13754dcd2b274470ec2b293453bb71dc4e6bc Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Sat, 9 Feb 2019 14:12:29 -0500 Subject: [PATCH] Added DM cap --- Classic/scripts/DMGame.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Classic/scripts/DMGame.cs b/Classic/scripts/DMGame.cs index 2d82189..0d97157 100644 --- a/Classic/scripts/DMGame.cs +++ b/Classic/scripts/DMGame.cs @@ -188,7 +188,12 @@ function DMGame::AIHasJoined(%game, %client) function DMGame::checkScoreLimit(%game, %client) { - //there's no score limit in DM + %scoreLimit = MissionGroup.DM_scoreLimit; + + if(%scoreLimit $= "") + %scoreLimit = 50; + if(%client.score >= %scoreLimit) + %game.scoreLimitReached(); } function DMGame::createPlayer(%game, %client, %spawnLoc, %respawn)