574 table.insert(hogDeadAnim, {func = AnimSay, args = {CurrentHedgehog, hogDeadStrings[7 - nativesNum], SAY_SHOUT, 4000}}) |
574 table.insert(hogDeadAnim, {func = AnimSay, args = {CurrentHedgehog, hogDeadStrings[7 - nativesNum], SAY_SHOUT, 4000}}) |
575 end |
575 end |
576 |
576 |
577 function AfterHogDeadAnim() |
577 function AfterHogDeadAnim() |
578 freshDead = nil |
578 freshDead = nil |
579 TurnTimeLeft = TurnTime |
579 SetTurnTimeLeft(TurnTime) |
580 end |
580 end |
581 |
581 |
582 --------------------------Anim skip functions-------------------------- |
582 --------------------------Anim skip functions-------------------------- |
583 |
583 |
584 function AfterAfterChoiceAnim() |
584 function AfterAfterChoiceAnim() |
585 stage = 0 |
585 stage = 0 |
586 AddEvent(CheckWaveDead, {1}, DoWaveDead, {1}, 0) |
586 AddEvent(CheckWaveDead, {1}, DoWaveDead, {1}, 0) |
587 AddAmmo(speakerHog, amSwitch, 100) |
587 AddAmmo(speakerHog, amSwitch, 100) |
588 SetGearMessage(speakerHog, 0) |
588 SetGearMessage(speakerHog, 0) |
589 SetState(speakerHog, 0) |
589 SetState(speakerHog, 0) |
590 TurnTimeLeft = -1 |
590 SetTurnTimeLeft(cMaxTurnTime) |
591 ShowMission(loc("Backstab"), loc("The food bites back"), loc("Defeat the cannibals"), 1, 4000) |
591 ShowMission(loc("Backstab"), loc("The food bites back"), loc("Defeat the cannibals"), 1, 4000) |
592 SpawnCrates() |
592 SpawnCrates() |
593 end |
593 end |
594 |
594 |
595 function SkipAfterChoiceAnim() |
595 function SkipAfterChoiceAnim() |
600 function AfterWave2Anim() |
600 function AfterWave2Anim() |
601 AddEvent(CheckWaveDead, {2}, DoWaveDead, {2}, 0) |
601 AddEvent(CheckWaveDead, {2}, DoWaveDead, {2}, 0) |
602 SetGearMessage(CurrentHedgehog, 0) |
602 SetGearMessage(CurrentHedgehog, 0) |
603 SetState(CurrentHedgehog, 0) |
603 SetState(CurrentHedgehog, 0) |
604 SpawnCrates() |
604 SpawnCrates() |
605 TurnTimeLeft = TurnTime |
605 SetTurnTimeLeft(TurnTime) |
606 end |
606 end |
607 |
607 |
608 function SkipWave2DeadAnim() |
608 function SkipWave2DeadAnim() |
609 TeleportNatives() |
609 TeleportNatives() |
610 PutCircles() |
610 PutCircles() |
1129 if CurrentHedgehog == spyHog or GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then |
1129 if CurrentHedgehog == spyHog or GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then |
1130 EndTurn(true) |
1130 EndTurn(true) |
1131 else |
1131 else |
1132 SetGearMessage(CurrentHedgehog, 0) |
1132 SetGearMessage(CurrentHedgehog, 0) |
1133 --AnimSwitchHog(natives[leaksNum]) |
1133 --AnimSwitchHog(natives[leaksNum]) |
1134 TurnTimeLeft = -1 |
1134 SetTurnTimeLeft(cMaxTurnTime) |
1135 end |
1135 end |
1136 else |
1136 else |
1137 if freshDead ~= nil and GetHogTeamName(CurrentHedgehog) == loc("Natives") then |
1137 if freshDead ~= nil and GetHogTeamName(CurrentHedgehog) == loc("Natives") then |
1138 SetupHogDeadAnim(freshDead) |
1138 SetupHogDeadAnim(freshDead) |
1139 AddAnim(hogDeadAnim) |
1139 AddAnim(hogDeadAnim) |