Added Back

This commit is contained in:
ChocoTaco1 2020-11-18 16:24:32 -05:00
parent a75eba1536
commit ccf01e22f5
2 changed files with 19 additions and 0 deletions

View file

@ -2012,6 +2012,7 @@ function LakRabbitGame::gameOver(%game)
//Put everyone in observer
//Mainly for switching to CTF
%client.team = 0;
%client.lastTeam = 0;
}

View file

@ -31,6 +31,7 @@ function DefaultGame::setupClientTeams(%game)
%client = ClientGroup.getObject(%i);
//Put everyone in observer
%client.team = 0;
%client.lastTeam = 0;
}
}
@ -114,6 +115,23 @@ function serverCmdClientJoinTeam(%client, %team, %admin)
}
}
// So flag snatch sound wont play at the end of the match
function CTFGame::playerTouchEnemyFlag(%game, %player, %flag)
{
if(!$missionRunning)
return;
parent::playerTouchEnemyFlag(%game, %player, %flag);
}
function SCtFGame::playerTouchEnemyFlag(%game, %player, %flag)
{
if(!$missionRunning)
return;
parent::playerTouchEnemyFlag(%game, %player, %flag);
}
};
// Prevent package from being activated if it is already