equal
deleted
inserted
replaced
12 ----------------- VARIABLES -------------------- |
12 ----------------- VARIABLES -------------------- |
13 -- globals |
13 -- globals |
14 local missionName = loc("The big bang") |
14 local missionName = loc("The big bang") |
15 local challengeObjectives = loc("Find a way to detonate all the explosives and stay alive!").."|".. |
15 local challengeObjectives = loc("Find a way to detonate all the explosives and stay alive!").."|".. |
16 loc("Red areas are indestructible").."|".. |
16 loc("Red areas are indestructible").."|".. |
17 loc("Green areas aren't portal enabled") |
17 loc("Green areas are portal-proof") |
18 local explosives = {} |
18 local explosives = {} |
19 local currentHealth = 1 |
19 local currentHealth = 1 |
20 local currentDamage = 0 |
20 local currentDamage = 0 |
21 -- hogs |
21 -- hogs |
22 local hero = { |
22 local hero = { |
55 end |
55 end |
56 |
56 |
57 function onGameStart() |
57 function onGameStart() |
58 AnimWait(hero.gear, 3000) |
58 AnimWait(hero.gear, 3000) |
59 FollowGear(hero.gear) |
59 FollowGear(hero.gear) |
60 ShowMission(missionName, loc("Challenge Objectives"), challengeObjectives, -amSkip, 0) |
60 ShowMission(missionName, loc("Challenge objectives"), challengeObjectives, -amSkip, 0) |
61 |
61 |
62 -- explosives |
62 -- explosives |
63 x = 400 |
63 x = 400 |
64 while x < 815 do |
64 while x < 815 do |
65 local gear = AddGear(x, 500, gtExplosives, 0, 0, 0, 0) |
65 local gear = AddGear(x, 500, gtExplosives, 0, 0, 0, 0) |
141 -------------- ACTIONS ------------------ |
141 -------------- ACTIONS ------------------ |
142 |
142 |
143 function heroDeath(gear) |
143 function heroDeath(gear) |
144 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
144 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
145 SendStat(siCustomAchievement, loc("You have to destroy all the explosives without dying!")) |
145 SendStat(siCustomAchievement, loc("You have to destroy all the explosives without dying!")) |
146 SendStat(siCustomAchievement, loc("Red areas are indestructible")) |
146 SendStat(siCustomAchievement, loc("Red areas are indestructible.")) |
147 SendStat(siCustomAchievement, loc("Green areas aren't portal enabled")) |
147 SendStat(siCustomAchievement, loc("Green areas are portal-proof and repel portals.")) |
148 SendStat(siPlayerKills,'0',teamA.name) |
148 SendStat(siPlayerKills,'0',teamA.name) |
149 EndGame() |
149 EndGame() |
150 end |
150 end |
151 |
151 |
152 function heroWin(gear) |
152 function heroWin(gear) |