10 |
10 |
11 ----------------- VARIABLES -------------------- |
11 ----------------- VARIABLES -------------------- |
12 -- globals |
12 -- globals |
13 local missionName = loc("Hard flying") |
13 local missionName = loc("Hard flying") |
14 local challengeStarted = false |
14 local challengeStarted = false |
|
15 local challengeStartRequested = false |
15 local currentWaypoint = 1 |
16 local currentWaypoint = 1 |
16 local radius = 75 -- Ring radius. Will become smaller and smaller |
17 local radius = 75 -- Ring radius. Will become smaller and smaller |
17 local totalTime = 15000 -- Total available time. Initial value is start time; is added to later when player wins extra time |
18 local totalTime = 15000 -- Total available time. Initial value is start time; is added to later when player wins extra time |
18 local totalSaucers = 3 |
19 local totalSaucers = 3 |
19 local gameEnded = false |
20 local gameEnded = false |
86 hero.gear = AddMissionHog(100) |
87 hero.gear = AddMissionHog(100) |
87 hero.name = GetHogName(hero.gear) |
88 hero.name = GetHogName(hero.gear) |
88 AnimSetGearPosition(hero.gear, hero.x, hero.y) |
89 AnimSetGearPosition(hero.gear, hero.x, hero.y) |
89 -- Ally |
90 -- Ally |
90 teamB.name = AddTeam(teamB.name, teamB.color, "heart", "Island", "Default", "cm_face") |
91 teamB.name = AddTeam(teamB.name, teamB.color, "heart", "Island", "Default", "cm_face") |
|
92 SetTeamPassive(teamB.name, true) |
91 ally.gear = AddHog(ally.name, 0, 100, "war_airwarden02") |
93 ally.gear = AddHog(ally.name, 0, 100, "war_airwarden02") |
92 AnimSetGearPosition(ally.gear, ally.x, ally.y) |
94 AnimSetGearPosition(ally.gear, ally.x, ally.y) |
93 HogTurnLeft(ally.gear, true) |
95 HogTurnLeft(ally.gear, true) |
94 |
96 |
95 timeRecord = tonumber(GetCampaignVar("IceStadiumBestTime")) |
97 timeRecord = tonumber(GetCampaignVar("IceStadiumBestTime")) |