503 teamComment[i] = string.format(loc("%s: Did not finish"), teamNameArr[i]) .. "|" |
503 teamComment[i] = string.format(loc("%s: Did not finish"), teamNameArr[i]) .. "|" |
504 end |
504 end |
505 totalComment = totalComment .. teamComment[i] |
505 totalComment = totalComment .. teamComment[i] |
506 end |
506 end |
507 |
507 |
|
508 local icon |
|
509 if roundNumber >= roundLimit then |
|
510 icon = 0 |
|
511 else |
|
512 icon = 2 |
|
513 end |
508 ShowMission( loc("Racer"), |
514 ShowMission( loc("Racer"), |
509 loc("Status update"), |
515 loc("Status update"), |
510 string.format(loc("Rounds complete: %d/%d"), roundNumber, roundLimit) .. "|" .. " " .. "|" .. |
516 string.format(loc("Rounds complete: %d/%d"), roundNumber, roundLimit) .. "|" .. " " .. "|" .. |
511 loc("Best team times: ") .. "|" .. totalComment, 0, 4000) |
517 loc("Best team times: ") .. "|" .. totalComment, icon, 4000) |
512 |
518 |
513 -- end game if its at round limit |
519 -- end game if its at round limit |
514 if roundNumber >= roundLimit then |
520 if roundNumber >= roundLimit then |
515 -- Sort the scores for the ranking list |
521 -- Sort the scores for the ranking list |
516 local unfinishedArray = {} |
522 local unfinishedArray = {} |
855 infoString = string.format(loc("Place 2-%d waypoints using the waypoint placement tool."), wpLimit) |
861 infoString = string.format(loc("Place 2-%d waypoints using the waypoint placement tool."), wpLimit) |
856 else |
862 else |
857 infoString = loc("Place 2 waypoints using the waypoint placement tool.") |
863 infoString = loc("Place 2 waypoints using the waypoint placement tool.") |
858 end |
864 end |
859 ShowMission(loc("Racer"), |
865 ShowMission(loc("Racer"), |
860 loc("Waypoint placement phase"), infoString, 2, 4000) |
866 loc("Waypoint placement phase"), infoString, -amAirAttack, 4000) |
861 AddAmmo(CurrentHedgehog, amAirAttack, 4000) |
867 AddAmmo(CurrentHedgehog, amAirAttack, 4000) |
862 SetWeapon(amAirAttack) |
868 SetWeapon(amAirAttack) |
863 end |
869 end |
864 end |
870 end |
865 |
871 |