Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bool CheckForMatchWin(Controller winner) {
- if (CTSGameReplicationInfo(GameReplicationInfo).RoundScoreRed >= GoalScore || CTSGameReplicationInfo(GameReplicationInfo).RoundScoreBlue >= GoalScore) {
- winner.PlayerReplicationInfo.Team.Score = 1000;
- GameEnded = true;
- EndGame(winner.PlayerReplicationInfo, "scorelimit");
- return true;
- }
- return false;
- }
- //======================
- function bool CheckEndGame(PlayerReplicationInfo Winner, string Reason)
- {
- if (!GameEnded) return false;
- Super.CheckEndGame(Winner, Reason);
- return true;
- }
Add Comment
Please, Sign In to add comment