134 SaveCampaignVar("M4DenseDead", "0") |
138 SaveCampaignVar("M4DenseDead", "0") |
135 end |
139 end |
136 if progress and progress<4 then |
140 if progress and progress<4 then |
137 SaveCampaignVar("Progress", "4") |
141 SaveCampaignVar("Progress", "4") |
138 end |
142 end |
139 DismissTeam(loc("011101001")) |
143 DismissTeam(cyborgTeamName) |
140 EndTurn(true) |
144 EndTurn(true) |
141 end |
145 end |
142 -----------------------------Animations-------------------------------- |
146 -----------------------------Animations-------------------------------- |
143 function Wave2Reaction() |
147 function Wave2Reaction() |
144 local i = 1 |
148 local i = 1 |
321 AddAmmo(cannibals[5], amMolotov, 2) |
325 AddAmmo(cannibals[5], amMolotov, 2) |
322 AddAmmo(cannibals[5], amFlamethrower, 3) |
326 AddAmmo(cannibals[5], amFlamethrower, 3) |
323 end |
327 end |
324 |
328 |
325 function AddHogs() |
329 function AddHogs() |
326 AddTeam(loc("Natives"), -2, "Bone", "Island", "HillBilly", "cm_birdy") |
330 nativesTeamName = AddTeam(loc("Natives"), -2, "Bone", "Island", "HillBilly", "cm_birdy") |
327 leaks = AddHog(loc("Leaks A Lot"), 0, 100, "Rambo") |
331 leaks = AddHog(loc("Leaks A Lot"), 0, 100, "Rambo") |
328 dense = AddHog(loc("Dense Cloud"), 0, 100, "RobinHood") |
332 dense = AddHog(loc("Dense Cloud"), 0, 100, "RobinHood") |
329 water = AddHog(loc("Fiery Water"), 0, 100, "pirate_jack") |
333 water = AddHog(loc("Fiery Water"), 0, 100, "pirate_jack") |
330 buffalo = AddHog(loc("Raging Buffalo"), 0, 100, "zoo_Bunny") |
334 buffalo = AddHog(loc("Raging Buffalo"), 0, 100, "zoo_Bunny") |
331 chief = AddHog(loc("Righteous Beard"), 0, 100, "IndianChief") |
335 chief = AddHog(loc("Righteous Beard"), 0, 100, "IndianChief") |
332 natives = {leaks, dense, water, buffalo, chief} |
336 natives = {leaks, dense, water, buffalo, chief} |
340 AddTeam(loc("Heavy Cannfantry"), -1, "skull", "Island", "Pirate", "cm_vampire") |
344 AddTeam(loc("Heavy Cannfantry"), -1, "skull", "Island", "Pirate", "cm_vampire") |
341 for i = 5, 8 do |
345 for i = 5, 8 do |
342 cannibals[i] = AddHog(HogNames[i], 2, 55, "vampirichog") |
346 cannibals[i] = AddHog(HogNames[i], 2, 55, "vampirichog") |
343 end |
347 end |
344 |
348 |
345 AddTeam(loc("011101001"), -1, "ring", "UFO", "Robot", "cm_binary") |
349 cyborgTeamName = AddTeam(loc("011101001"), -1, "ring", "UFO", "Robot", "cm_binary") |
346 cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1") |
350 cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1") |
347 |
351 |
348 AnimSetGearPosition(leaks, unpack(leaksPos)) |
352 AnimSetGearPosition(leaks, unpack(leaksPos)) |
349 AnimSetGearPosition(dense, unpack(densePos)) |
353 AnimSetGearPosition(dense, unpack(densePos)) |
350 AnimSetGearPosition(water, unpack(waterPos)) |
354 AnimSetGearPosition(water, unpack(waterPos)) |
532 function onNewTurn() |
536 function onNewTurn() |
533 if AnimInProgress() then |
537 if AnimInProgress() then |
534 SetTurnTimeLeft(MAX_TURN_TIME) |
538 SetTurnTimeLeft(MAX_TURN_TIME) |
535 return |
539 return |
536 end |
540 end |
537 if freshDead ~= nil and GetHogTeamName(CurrentHedgehog) == loc("Natives") then |
541 if freshDead ~= nil and GetHogTeamName(CurrentHedgehog) == nativesTeamName then |
538 SetupHogDeadAnim(freshDead) |
542 SetupHogDeadAnim(freshDead) |
539 AddAnim(hogDeadAnim) |
543 AddAnim(hogDeadAnim) |
540 AddFunction({func = AfterHogDeadAnim, args = {}}) |
544 AddFunction({func = AfterHogDeadAnim, args = {}}) |
541 end |
545 end |
542 end |
546 end |