Added DM cap

This commit is contained in:
ChocoTaco 2019-02-09 14:12:29 -05:00
parent d93e6b7dc6
commit 45c13754dc

View file

@ -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)