|
11 | 11 | function SiteScan:StartActivity()
|
12 | 12 | print("START! -- SiteScan:StartActivity()!");
|
13 | 13 |
|
| 14 | + self.GameOverPeriod = 0; |
| 15 | + |
14 | 16 | -- Orbit Scene Scanning vars
|
15 | 17 | self.ScanStage = { PRESCAN = 0, SCANNING = 1, POSTSCAN = 2, SCANSTAGECOUNT = 3 };
|
16 | 18 | self.CurrentScanStage = self.ScanStage.PRESCAN;
|
|
57 | 59 |
|
58 | 60 | function SiteScan:EndActivity()
|
59 | 61 | print("END! -- SiteScan:EndActivity()!");
|
| 62 | + for player = Activity.PLAYER_1, Activity.MAXPLAYERCOUNT - 1 do |
| 63 | + if self:PlayerActive(player) and self:PlayerHuman(player) then |
| 64 | + FrameMan:ClearScreenText(self:ScreenOfPlayer(player)); |
| 65 | + self:GetBanner(GUIBanner.RED, player):ClearText(); |
| 66 | + self:GetBanner(GUIBanner.YELLOW, player):ClearText(); |
| 67 | + end |
| 68 | + end |
60 | 69 | end
|
61 | 70 |
|
62 | 71 | -----------------------------------------------------------------------------------------
|
@@ -86,7 +95,7 @@ function SiteScan:UpdateActivity()
|
86 | 95 | for team = Activity.TEAM_1, Activity.MAXTEAMCOUNT - 1 do
|
87 | 96 | if self:TeamActive(team) then
|
88 | 97 | -- Time to do a scan step?
|
89 |
| - if self.ScanTimer[team]:IsPastRealMS(SceneMan:GetUnseenResolution(team).X * 2) then |
| 98 | + if self.ScanTimer[team]:IsPastRealMS(SceneMan:GetUnseenResolution(team).X) then |
90 | 99 | -- Scan the column, find the end where the ray is blocked
|
91 | 100 | SceneMan:CastSeeRay(team, Vector(self.ScanPosX[team], 0), Vector(0, SceneMan.Scene.Height), self.ScanEndPos, 50, SceneMan:GetUnseenResolution(team).Y / 2);
|
92 | 101 | -- Adjust up a bit so one sees more of the sky than blackness
|
@@ -130,11 +139,8 @@ function SiteScan:UpdateActivity()
|
130 | 139 | for player = Activity.PLAYER_1, Activity.MAXPLAYERCOUNT - 1 do
|
131 | 140 | if self:PlayerActive(player) and self:PlayerHuman(player) then
|
132 | 141 | FrameMan:ClearScreenText(self:ScreenOfPlayer(player));
|
133 |
| ---[[ |
134 |
| - -- Create the landing crew and add to the override purchase list |
135 |
| - self:SetOverridePurchaseList("Infantry Brain", player); |
136 |
| - self:SetViewState(Activity.LZSELECT, player); |
137 |
| ---]] |
| 142 | + self:GetBanner(GUIBanner.RED, player):ClearText(); |
| 143 | + self:GetBanner(GUIBanner.YELLOW, player):ClearText(); |
138 | 144 | end
|
139 | 145 | end
|
140 | 146 | self.WinnerTeam = self.ScanTeam;
|
|
0 commit comments