mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-11 22:24:33 +00:00
Added DM cap
This commit is contained in:
parent
d93e6b7dc6
commit
45c13754dc
1 changed files with 6 additions and 1 deletions
|
|
@ -188,7 +188,12 @@ function DMGame::AIHasJoined(%game, %client)
|
||||||
|
|
||||||
function DMGame::checkScoreLimit(%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)
|
function DMGame::createPlayer(%game, %client, %spawnLoc, %respawn)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue