Guest User

Untitled

a guest
Oct 28th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function bool CheckForMatchWin(Controller winner) {
  2.     if (CTSGameReplicationInfo(GameReplicationInfo).RoundScoreRed >= GoalScore || CTSGameReplicationInfo(GameReplicationInfo).RoundScoreBlue >= GoalScore) {
  3.         winner.PlayerReplicationInfo.Team.Score = 1000;
  4.         GameEnded = true;
  5.         EndGame(winner.PlayerReplicationInfo, "scorelimit");
  6.         return true;
  7.     }
  8.     return false;
  9. }
  10.  
  11.  
  12. //======================
  13.  
  14. function bool CheckEndGame(PlayerReplicationInfo Winner, string Reason)
  15. {
  16.     if (!GameEnded) return false;
  17.     Super.CheckEndGame(Winner, Reason);
  18.     return true;
  19. }
Add Comment
Please, Sign In to add comment