mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Added DM cap
This commit is contained in:
parent
d93e6b7dc6
commit
45c13754dc
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue