64 wave2Anim = {} |
64 wave2Anim = {} |
65 finalAnim = {} |
65 finalAnim = {} |
66 --------------------------Anim skip functions-------------------------- |
66 --------------------------Anim skip functions-------------------------- |
67 function AfterHogDeadAnim() |
67 function AfterHogDeadAnim() |
68 freshDead = nil |
68 freshDead = nil |
69 TurnTimeLeft = TurnTime |
69 SetTurnTimeLeft(TurnTime) |
70 end |
70 end |
71 |
71 |
72 function AfterStartAnim() |
72 function AfterStartAnim() |
73 local goal = loc("Defeat the cannibals!|") |
73 local goal = loc("Defeat the cannibals!|") |
74 local chiefgoal = loc("Try to protect the chief! You won't lose if he dies, but it is advised that he survives.") |
74 local chiefgoal = loc("Try to protect the chief! You won't lose if he dies, but it is advised that he survives.") |
75 TurnTimeLeft = TurnTime |
75 SetTurnTimeLeft(TurnTime) |
76 ShowMission(loc("United We Stand"), loc("Invasion"), goal .. chiefgoal, 1, 6000) |
76 ShowMission(loc("United We Stand"), loc("Invasion"), goal .. chiefgoal, 1, 6000) |
77 end |
77 end |
78 |
78 |
79 function SkipStartAnim() |
79 function SkipStartAnim() |
80 AnimSetGearPosition(water, 2467, 754) |
80 AnimSetGearPosition(water, 2467, 754) |
530 SetAmmo(amFlamethrower, 0, 0, 0, 3) |
530 SetAmmo(amFlamethrower, 0, 0, 0, 3) |
531 end |
531 end |
532 |
532 |
533 function onNewTurn() |
533 function onNewTurn() |
534 if AnimInProgress() then |
534 if AnimInProgress() then |
535 TurnTimeLeft = -1 |
535 SetTurnTimeLeft(cMaxTurnTime) |
536 return |
536 return |
537 end |
537 end |
538 if freshDead ~= nil and GetHogTeamName(CurrentHedgehog) == loc("Natives") then |
538 if freshDead ~= nil and GetHogTeamName(CurrentHedgehog) == loc("Natives") then |
539 SetupHogDeadAnim(freshDead) |
539 SetupHogDeadAnim(freshDead) |
540 AddAnim(hogDeadAnim) |
540 AddAnim(hogDeadAnim) |