582 string.format(loc("Rounds complete: %d/%d"), SI.roundNumber, SI.roundLimit) .. "| " .. "|" .. |
583 string.format(loc("Rounds complete: %d/%d"), SI.roundNumber, SI.roundLimit) .. "| " .. "|" .. |
583 scoreText .. " |" ..entireC, icon, displayTime) |
584 scoreText .. " |" ..entireC, icon, displayTime) |
584 |
585 |
585 if lGameOver then |
586 if lGameOver then |
586 local winnerTeam = teamStats[1].name |
587 local winnerTeam = teamStats[1].name |
587 AddCaption(string.format(loc("%s wins!"), winnerTeam), capcolDefault, capgrpGameState) |
588 local winText = formatEngineString(GetEngineString("TMsgStrId", sidWinner), winnerTeam) |
588 SendStat(siGameResult, string.format(loc("%s wins!"), winnerTeam)) |
589 |
|
590 AddCaption(winText, capcolDefault, capgrpGameState) |
|
591 SendStat(siGameResult, winText) |
589 |
592 |
590 for i = 1, TeamsCount do |
593 for i = 1, TeamsCount do |
591 SendStat(siPointType, "!POINTS") |
594 SendStat(siPointType, "!POINTS") |
592 SendStat(siPlayerKills, tostring(teamStats[i].score), teamStats[i].name) |
595 SendStat(siPlayerKills, tostring(teamStats[i].score), teamStats[i].name) |
593 end |
596 end |