equal
deleted
inserted
replaced
28 Theme = "Bath" -- The theme to be used |
28 Theme = "Bath" -- The theme to be used |
29 -- Disable Sudden Death |
29 -- Disable Sudden Death |
30 HealthDecrease = 0 |
30 HealthDecrease = 0 |
31 WaterRise = 0 |
31 WaterRise = 0 |
32 |
32 |
33 AddTeam(loc("Bloody Rookies"), -1, "Rubberduck", "Island", "Default", "cm_duckhead") |
33 AddMissionTeam(-1) |
34 player = AddHog(loc("Hunter"), 0, 1, "NoHat") |
34 player = AddMissionHog(1) |
35 instructor = AddHog(loc("Instructor"), 0, 100, "sf_vega") |
35 instructor = AddHog(loc("Instructor"), 0, 100, "sf_vega") |
36 |
36 |
37 AddTeam(loc("Blue Team"), -2, "bubble", "Island", "Default", "somalia") |
37 AddTeam(loc("Blue Team"), -2, "bubble", "Island", "Default", "somalia") |
38 enemy = AddHog(loc("Filthy Blue"), 1, 100, "Skull") |
38 enemy = AddHog(loc("Filthy Blue"), 1, 100, "Skull") |
39 |
39 |
52 SpawnSupplyCrate(475,476,amRope) |
52 SpawnSupplyCrate(475,476,amRope) |
53 SpawnSupplyCrate(1729,476,amFirePunch) |
53 SpawnSupplyCrate(1729,476,amFirePunch) |
54 |
54 |
55 FollowGear(player) |
55 FollowGear(player) |
56 |
56 |
57 ShowMission(loc("Dangerous Ducklings"), loc("Scenario"), loc("Eliminate the Blue Team before the time runs out."), -amRope, 5000); |
57 ShowMission(loc("Dangerous Ducklings"), loc("Scenario"), loc("Eliminate the enemy before the time runs out."), -amRope, 5000); |
58 |
58 |
59 end |
59 end |
60 |
60 |
61 |
61 |
62 function onGameTick() |
62 function onGameTick() |
112 endTimer = endTimer + 1 |
112 endTimer = endTimer + 1 |
113 if (CurrentHedgehog ~= nil) and (CurrentHedgehog == instructor) then |
113 if (CurrentHedgehog ~= nil) and (CurrentHedgehog == instructor) then |
114 if endTimer >= 3000 then |
114 if endTimer >= 3000 then |
115 --SetHealth(instructor,0) |
115 --SetHealth(instructor,0) |
116 SetTurnTimeLeft(1) |
116 SetTurnTimeLeft(1) |
117 DismissTeam(loc("Bloody Rookies")) |
117 DismissTeam(GetHogTeamName(player)) |
118 end |
118 end |
119 ShowMission(loc("Dangerous Ducklings"), loc("MISSION FAILED"), loc("You've failed. Try again."), -amRope, 5000); |
119 ShowMission(loc("Dangerous Ducklings"), loc("MISSION FAILED"), loc("You've failed. Try again."), -amRope, 5000); |
120 end |
120 end |
121 end |
121 end |
122 |
122 |
135 gameLost = true |
135 gameLost = true |
136 elseif (gear == instructor) and (GetY(gear) > WaterLine) then |
136 elseif (gear == instructor) and (GetY(gear) > WaterLine) then |
137 HogSay(player, loc("See ya!"), SAY_THINK) |
137 HogSay(player, loc("See ya!"), SAY_THINK) |
138 Retreat(3000) |
138 Retreat(3000) |
139 awardAchievement(loc("Naughty Ninja")) |
139 awardAchievement(loc("Naughty Ninja")) |
140 DismissTeam(loc("Blue Team")) |
140 DismissTeam(GetHogTeamName(enemy)) |
141 gameWon = true |
141 gameWon = true |
142 SaveMissionVar("Won", "true") |
142 SaveMissionVar("Won", "true") |
143 elseif gear == enemy then |
143 elseif gear == enemy then |
144 HogSay(player, loc("Enjoy the swim..."), SAY_THINK) |
144 HogSay(player, loc("Enjoy the swim..."), SAY_THINK) |
145 gameWon = true |
145 gameWon = true |