85 |
85 |
86 function AfterMidAnimAlone() |
86 function AfterMidAnimAlone() |
87 SetupCourse() |
87 SetupCourse() |
88 for i = 5, 8 do |
88 for i = 5, 8 do |
89 RestoreHog(cannibals[i]) |
89 RestoreHog(cannibals[i]) |
90 SetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
90 AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
91 end |
91 end |
92 |
92 |
93 AddAmmo(cannibals[5], amDEagle, 0) |
93 AddAmmo(cannibals[5], amDEagle, 0) |
94 |
94 |
95 AddEvent(CheckGirderTaken, {}, DoGirderTaken, {}, 0) |
95 AddEvent(CheckGirderTaken, {}, DoGirderTaken, {}, 0) |
99 SetGearMessage(leaks, 0) |
99 SetGearMessage(leaks, 0) |
100 TurnsLeft = 12 |
100 TurnsLeft = 12 |
101 TurnTimeLeft = TurnTime |
101 TurnTimeLeft = TurnTime |
102 ShowMission(loc("The Journey Back"), loc("Collateral Damage"), loc("Save the princess by collecting the crate in under 12 turns!"), 0, 6000) |
102 ShowMission(loc("The Journey Back"), loc("Collateral Damage"), loc("Save the princess by collecting the crate in under 12 turns!"), 0, 6000) |
103 -----------------------///////////////------------ |
103 -----------------------///////////////------------ |
104 --SetGearPosition(leaks, 417, 1800) |
104 --AnimSetGearPosition(leaks, 417, 1800) |
105 end |
105 end |
106 |
106 |
107 function SkipEndAnimAlone() |
107 function SkipEndAnimAlone() |
108 if cyborgHidden then |
108 if cyborgHidden then |
109 RestoreHog(cyborg) |
109 RestoreHog(cyborg) |
124 end |
124 end |
125 if princessHidden then |
125 if princessHidden then |
126 RestoreHog(princess) |
126 RestoreHog(princess) |
127 princessHidden = false |
127 princessHidden = false |
128 end |
128 end |
129 SetGearPosition(cyborg, 437, 1700) |
129 AnimSetGearPosition(cyborg, 437, 1700) |
130 SetGearPosition(princess, 519, 1722) |
130 AnimSetGearPosition(princess, 519, 1722) |
131 SetGearPosition(leaks, 763, 1760) |
131 AnimSetGearPosition(leaks, 763, 1760) |
132 SetGearPosition(dense, 835, 1519) |
132 AnimSetGearPosition(dense, 835, 1519) |
133 HogTurnLeft(leaks, true) |
133 HogTurnLeft(leaks, true) |
134 HogTurnLeft(dense, true) |
134 HogTurnLeft(dense, true) |
135 end |
135 end |
136 |
136 |
137 function AfterEndAnimAlone() |
137 function AfterEndAnimAlone() |
155 AddEvent(CheckLost, {}, DoLost, {}, 0) |
155 AddEvent(CheckLost, {}, DoLost, {}, 0) |
156 AddEvent(CheckWon, {}, DoWon, {}, 0) |
156 AddEvent(CheckWon, {}, DoWon, {}, 0) |
157 end |
157 end |
158 |
158 |
159 function SkipMidAnimAlone() |
159 function SkipMidAnimAlone() |
160 SetGearPosition(leaks, 2656, 1842) |
160 AnimSetGearPosition(leaks, 2656, 1842) |
161 AnimSwitchHog(leaks) |
161 AnimSwitchHog(leaks) |
162 SetInputMask(0xFFFFFFFF) |
162 SetInputMask(0xFFFFFFFF) |
163 if princessHidden == false then |
163 if princessHidden == false then |
164 HideHog(princess) |
164 HideHog(princess) |
165 princessHidden = true |
165 princessHidden = true |
635 SetTimer(AddGear(2717, 1354, gtMine, 0, 0, 0, 0), 3000) |
635 SetTimer(AddGear(2717, 1354, gtMine, 0, 0, 0, 0), 3000) |
636 SetTimer(AddGear(2167, 1330, gtMine, 0, 0, 0, 0), 3000) |
636 SetTimer(AddGear(2167, 1330, gtMine, 0, 0, 0, 0), 3000) |
637 SetTimer(AddGear(2201, 1321, gtMine, 0, 0, 0, 0), 3000) |
637 SetTimer(AddGear(2201, 1321, gtMine, 0, 0, 0, 0), 3000) |
638 SetTimer(AddGear(2239, 1295, gtMine, 0, 0, 0, 0), 3000) |
638 SetTimer(AddGear(2239, 1295, gtMine, 0, 0, 0, 0), 3000) |
639 |
639 |
640 SetGearPosition(leaks, 3781, 1583) |
640 AnimSetGearPosition(leaks, 3781, 1583) |
641 --SetGearPosition(leaks, 1650, 1583) |
641 --AnimSetGearPosition(leaks, 1650, 1583) |
642 AddAmmo(cannibals[1], amShotgun, 100) |
642 AddAmmo(cannibals[1], amShotgun, 100) |
643 AddAmmo(leaks, amSwitch, 0) |
643 AddAmmo(leaks, amSwitch, 0) |
644 end |
644 end |
645 |
645 |
646 function SetupPlaceDuo() |
646 function SetupPlaceDuo() |
647 PlaceCratesDuo() |
647 PlaceCratesDuo() |
648 SetGearPosition(leaks, unpack(startLeaksPosDuo)) |
648 AnimSetGearPosition(leaks, unpack(startLeaksPosDuo)) |
649 SetGearPosition(dense, unpack(startDensePosDuo)) |
649 AnimSetGearPosition(dense, unpack(startDensePosDuo)) |
650 end |
650 end |
651 |
651 |
652 function SetupEventsDuo() |
652 function SetupEventsDuo() |
653 AddEvent(CheckPastFlower, {}, DoPastFlower, {}, 0) |
653 AddEvent(CheckPastFlower, {}, DoPastFlower, {}, 0) |
654 AddEvent(CheckLeaksDead, {}, DoLeaksDead, {}, 0) |
654 AddEvent(CheckLeaksDead, {}, DoLeaksDead, {}, 0) |
942 |
942 |
943 AddTeam(loc("Cannibal Sentry"), 14483456, "Skull", "Island", "Pirate","cm_vampire") |
943 AddTeam(loc("Cannibal Sentry"), 14483456, "Skull", "Island", "Pirate","cm_vampire") |
944 cannibals = {} |
944 cannibals = {} |
945 for i = 1, 4 do |
945 for i = 1, 4 do |
946 cannibals[i] = AddHog(cannibalNames[i], 3, 40, "Zombi") |
946 cannibals[i] = AddHog(cannibalNames[i], 3, 40, "Zombi") |
947 SetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
947 AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
948 end |
948 end |
949 |
949 |
950 for i = 5, 8 do |
950 for i = 5, 8 do |
951 cannibals[i] = AddHog(cannibalNames[i], 3, 40, "Zombi") |
951 cannibals[i] = AddHog(cannibalNames[i], 3, 40, "Zombi") |
952 SetGearPosition(cannibals[i], 0, 0) |
952 AnimSetGearPosition(cannibals[i], 0, 0) |
953 end |
953 end |
954 |
954 |
955 AddTeam(loc("011101001"), 14483456, "ring", "UFO", "Robot", "cm_star") |
955 AddTeam(loc("011101001"), 14483456, "ring", "UFO", "Robot", "cm_star") |
956 cyborg = AddHog(loc("Y3K1337"), 0, 200, "cyborg1") |
956 cyborg = AddHog(loc("Y3K1337"), 0, 200, "cyborg1") |
957 princess = AddHog(loc("Fell From Heaven"), 0, 200, "tiara") |
957 princess = AddHog(loc("Fell From Heaven"), 0, 200, "tiara") |
958 |
958 |
959 SetGearPosition(dense, 0, 0) |
959 AnimSetGearPosition(dense, 0, 0) |
960 SetGearPosition(leaks, 0, 0) |
960 AnimSetGearPosition(leaks, 0, 0) |
961 SetGearPosition(cyborg, 0, 0) |
961 AnimSetGearPosition(cyborg, 0, 0) |
962 SetGearPosition(princess, 0, 0) |
962 AnimSetGearPosition(princess, 0, 0) |
963 |
963 |
964 AnimInit() |
964 AnimInit() |
965 end |
965 end |
966 |
966 |
967 function onGameStart() |
967 function onGameStart() |