share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua
author Wuzzy <Wuzzy2@mail.ru>
Tue, 22 Jan 2019 18:00:08 +0100
changeset 14683 35fc8266a1e3
parent 14633 bd15c8551318
child 14919 4596357d002d
permissions -rw-r--r--
ACF8: Fix princess scene failing to initialize
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12794
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     1
--[[
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     2
A Classic Fairytale: Epilogue
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     3
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     4
= SUMMARY =
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     5
The epilogue, a final animated sequence (with 4 possible endings),
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     6
plus a sandbox mode.
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     7
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     8
= GOALS =
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     9
You only need to finish the cut scene and quit.
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    10
The cut scene can be skipped, this is OK, too.
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    11
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    12
= FLOW CHART =
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    13
== Linear events ==
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    14
- Long cut scene. This is one of four possible endings.
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    15
- The chosen ending depends on the enemy leader chosen in ACF8:
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    16
| ACF8 leader: Dense Cloud
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    17
    - Dense Cloud is the traitor and in prison
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    18
    - See SetupAnimDense
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    19
| ACF8 leader: Fell from Heaven
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    20
    - Fell from Heaven is the traitor
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    21
    - See SetupAnimPrincess
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    22
| ACF8 leader: Fiery Water
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    23
    - Fiery Water is the traitor and in prison
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    24
    - See SetupAnimWater
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    25
| ACF8 leader: Nancy Screw (cyborg)
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    26
    - No traitors
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    27
    - See SetupAnimCyborg
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    28
- Mission is marked as completed after cut scene, but does not exit
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    29
- Mission panel with congratulation message appears
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    30
- Sandbox mode activated
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    31
- All hogs except the traitor are now playable
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    32
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    33
Note: This mission does not exit on its own.
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    34
The player has either to kill everyone or use the Esc key.
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    35
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    36
== Non-linear events ==
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    37
| All hogs except the traitor are dead
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    38
    - It's the traitor's turn now
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    39
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    40
]]
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    41
8043
da083f8d95e6 We need custom script loading function in lua now
unc0rr
parents: 7512
diff changeset
    42
HedgewarsScriptLoad("/Scripts/Locale.lua")
da083f8d95e6 We need custom script loading function in lua now
unc0rr
parents: 7512
diff changeset
    43
HedgewarsScriptLoad("/Scripts/Animate.lua")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    44
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    45
-----------------------------Constants---------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    46
leaksNum = 1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    47
denseNum = 2
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    48
waterNum = 3
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    49
buffaloNum = 4
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    50
chiefNum = 5
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    51
girlNum = 6
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    52
wiseNum = 7
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    53
ramonNum = 8
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    54
spikyNum = 9
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    55
princessNum = 10
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    56
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    57
denseScene = 1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    58
princessScene = 2
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    59
waterScene = 3
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    60
cyborgScene = 4
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    61
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    62
nativeNames = {loc("Leaks A Lot"), loc("Dense Cloud"), loc("Fiery Water"), 
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    63
               loc("Raging Buffalo"), loc("Righteous Beard"), loc("Fell From Grace"),
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    64
               loc("Wise Oak"), loc("Ramon"), loc("Spiky Cheese"),
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    65
               loc("Fell From Heaven")
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    66
              }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    67
nativeHats = {"Rambo", "RobinHood", "pirate_jack", "zoo_Bunny", "IndianChief",
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    68
              "tiara", "AkuAku", "rasta", "hair_yellow", "tiara"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    69
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    70
nativePosCyborg = {{1900, 508}, {480, 1321}, {2927, 873},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    71
             {1325, 905}, {3190, 1424}, {1442, 857},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    72
             {1134, 1278}, {2881, 853}, {2974, 897},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    73
             {2033, 511}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    74
nativeDirCyborg = {"Right", "Right", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Left"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    75
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    76
nativePosPrincess = {{1930, 508}, {480, 1321}, {2927, 873},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    77
             {1325, 905}, {3190, 1424}, {2033, 511},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    78
             {1134, 1278}, {2881, 853}, {2974, 897},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    79
             {1900, 508}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    80
nativeDirPrincess = {"Right", "Right", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Right"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    81
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    82
nativePosDense = {{1930, 508}, {2285, 772}, {2927, 873},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    83
             {1325, 905}, {3190, 1424}, {1442, 857},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    84
             {1134, 1278}, {480, 1321}, {2974, 897},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    85
             {2033, 511}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    86
nativeDirDense = {"Right", "Left", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Left"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    87
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    88
nativePosWater = {{1900, 508}, {2033, 511}, {2285, 772},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    89
             {1325, 905}, {3190, 1424}, {1442, 857},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    90
             {1134, 1278}, {480, 1321}, {2974, 897},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    91
             {1980, 511}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    92
nativeDirWater = {"Right", "Left", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Left"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    93
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    94
prisonPos = {2285, 772}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    95
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    96
brainNum = 1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    97
corpseNum = 2
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    98
brutalNum = 3
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    99
earNum = 4
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   100
hanniNum = 5
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   101
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   102
cannibalNames = {loc("Brainiac"), loc("Corpse Thrower"), loc("Brutal Lily"), loc("Ear Sniffer"), loc("Hannibal")}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   103
cannibalHats = {"Zombi", "AkuAku", "Zombi", "Zombi", "IndianChief"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   104
cannibalPos = {{533, 1304}, {1184, 1282}, {1386, 883}, {2854, 834}, {3243, 1415}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   105
cannibalDir = {"Left", "Left", "Left", "Right", "Left"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   106
-----------------------------Variables---------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   107
natives = {}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   108
cannibals = {}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   109
traitor = nil
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   110
crate = nil
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   111
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   112
startAnim = {}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   113
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   114
gearDead = {}
12365
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   115
hogDead = {}
14633
bd15c8551318 Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents: 14508
diff changeset
   116
bd15c8551318 Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents: 14508
diff changeset
   117
local traitorTeamName = loc("Traitors")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   118
--------------------------Anim skip functions--------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   119
function SkipStartAnim()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   120
  SetGearMessage(CurrentHedgehog, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   121
  AnimSwitchHog(natives[1])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   122
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   123
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   124
function AfterStartAnim()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   125
  crate = SpawnHealthCrate(0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   126
  SetGearMessage(CurrentHedgehog, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   127
  AddNewEvent(CheckCrateTaken, {}, DoCrateTaken, {}, 1)
12364
5857936921ec Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents: 12264
diff changeset
   128
  EndTurn(true)
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   129
  ShowMission(loc("Epilogue"), loc("That's all, folks!"),
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   130
    loc("You have successfully finished the campaign!").."|"..
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   131
    loc("If you wish to replay, there are other possible endings, too!").."|"..
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   132
    loc("You can practice moving around and using utilities in this mission.|However, it will never end!"), 1, 0)
11955
d72a177dbaea Update campaign drop-down list after campaign victory
Wuzzy <almikes@aol.com>
parents: 11954
diff changeset
   133
  SaveCampaignVar("Progress", "10")
11954
62be63822a96 Fix final mission of Progress-based campaigns (like ACF) not being recognized as finished
Wuzzy <almikes@aol.com>
parents: 11038
diff changeset
   134
  SaveCampaignVar("Won", "true")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   135
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   136
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   137
---------------------------Events-------------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   138
function CheckCrateTaken()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   139
  return gearDead[crate]
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   140
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   141
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   142
function DoCrateTaken()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   143
  crate = SpawnHealthCrate(0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   144
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   145
-----------------------------Animations--------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   146
function AnimationSetup()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   147
  if m8Scene == cyborgScene then 
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   148
    SetupAnimCyborg()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   149
  elseif m8Scene == princessScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   150
    SetupAnimPrincess()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   151
  elseif m8Scene == waterScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   152
    SetupAnimWater()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   153
  else
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   154
    SetupAnimDense()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   155
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   156
  AddSkipFunction(startAnim, SkipStartAnim, {})
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   157
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   158
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   159
function SetupAnimWater()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   160
  startAnim = {
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   161
    {func = AnimWait, args = {natives[1], 3000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   162
    {func = AnimCaption, args = {natives[ramonNum], loc("Back in the village, the two tribes finally started to live in harmony."), 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   163
    {func = AnimSay, args = {natives[ramonNum], loc("You got a killer mask there, amigo!"), SAY_SAY, 5500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   164
    {func = AnimSay, args = {cannibals[brainNum], loc("Thanks, man! It really means a lot to me."), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   165
    {func = AnimSay, args = {natives[wiseNum], loc("So, uhmm, how did you manage to teleport them so far?"), SAY_SAY, 8000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   166
    {func = AnimSay, args = {cannibals[corpseNum], loc("It's all about the right carrots, you know."), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   167
    {func = AnimSay, args = {natives[wiseNum], loc("Of course! It's all obvious now!"), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   168
    {func = AnimSay, args = {natives[chiefNum], loc("I can't believe how blind we were."), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   169
    {func = AnimSay, args = {natives[chiefNum], loc("Fighting instead of cultivating a beautiful friendship."), SAY_SAY, 8500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   170
    {func = AnimSay, args = {cannibals[hanniNum], loc("One shall not judge one by one's appearance!"), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   171
    {func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   172
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   173
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   174
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   175
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   176
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   177
    {func = AnimWait, args = {natives[1], 1000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   178
    {func = AnimSay, args = {natives[leaksNum], loc("It's amazing how quickly our lives can change."), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   179
    {func = AnimSay, args = {natives[waterNum], loc("Aye! Fellow! Let me exit this chamber of doom!"), SAY_SAY, 7000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   180
    {func = AnimTurn, args = {natives[princessNum], "Right"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   181
    {func = AnimSay, args = {natives[princessNum], loc("It's your fault you're there!"), SAY_SAY, 5000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   182
    {func = AnimTurn, args = {natives[princessNum], "Left"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   183
    {func = AnimSay, args = {natives[leaksNum], loc("I always suspected him!"), SAY_SAY, 3000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   184
    {func = AnimSay, args = {natives[leaksNum], loc("Nobody takes walks every day!"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   185
    {func = AnimSay, args = {natives[princessNum], loc("I don't know who I can trust anymore."), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   186
    {func = AnimSay, args = {natives[princessNum], loc("Everywhere I look, I see hogs walking around …"), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   187
    {func = AnimSay, args = {natives[princessNum], loc("… and I think they are up to something. Something bad!"), SAY_SAY, 8000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   188
    {func = AnimMove, args = {natives[leaksNum], "Right", nativePosWater[princessNum][1] - 30, nativePosWater[princessNum][2]}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   189
    {func = AnimSay, args = {natives[leaksNum], loc("You can always trust me! I love you!"), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   190
    {func = AnimSay, args = {natives[princessNum], loc("I know and I'm terribly sorry!"), SAY_SAY, 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   191
    {func = AnimSay, args = {natives[princessNum], loc("I love Dense Cloud now!"), SAY_SAY, 4000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   192
    {func = AnimTurn, args = {natives[princessNum], "Right"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   193
    {func = AnimMove, args = {natives[denseNum], "Left", nativePosWater[princessNum][1] + 20, nativePosWater[princessNum][2]}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   194
    {func = AnimSay, args = {natives[denseNum], loc("Problems, dude? Chillax!"), SAY_SAY, 4000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   195
    {func = AnimTurn, args = {natives[leaksNum], "Left"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   196
    {func = AnimSay, args = {natives[leaksNum], loc("Sigh."), SAY_SAY, 6000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   197
    {func = AnimSwitchHog, args = {natives[leaksNum]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   198
  }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   199
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   200
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   201
function SetupAnimDense()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   202
  startAnim = {
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   203
    {func = AnimWait, args = {natives[1], 3000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   204
    {func = AnimCaption, args = {natives[ramonNum], loc("Back in the village, the two tribes finally started to live in harmony."), 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   205
    {func = AnimSay, args = {natives[ramonNum], loc("You got a killer mask there, amigo!"), SAY_SAY, 5500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   206
    {func = AnimSay, args = {cannibals[brainNum], loc("Thanks, man! It really means a lot to me."), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   207
    {func = AnimSay, args = {natives[wiseNum], loc("So, uhmm, how did you manage to teleport them so far?"), SAY_SAY, 8000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   208
    {func = AnimSay, args = {cannibals[corpseNum], loc("It's all about the right carrots, you know."), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   209
    {func = AnimSay, args = {natives[wiseNum], loc("Of course! It's all obvious now!"), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   210
    {func = AnimSay, args = {natives[chiefNum], loc("I can't believe how blind we were."), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   211
    {func = AnimSay, args = {natives[chiefNum], loc("Fighting instead of cultivating a beautiful friendship."), SAY_SAY, 8500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   212
    {func = AnimSay, args = {cannibals[hanniNum], loc("One shall not judge one by one's appearance!"), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   213
    {func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   214
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   215
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   216
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   217
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   218
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   219
    {func = AnimWait, args = {natives[1], 1000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   220
    {func = AnimSay, args = {natives[waterNum], loc("… and then I took a stroll …"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   221
    {func = AnimSay, args = {natives[leaksNum], loc("It's amazing how quickly our lives can change."), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   222
    {func = AnimSay, args = {natives[denseNum], loc("Dude, let me out!"), SAY_SAY, 3000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   223
    {func = AnimSay, args = {natives[denseNum], loc("I already said I'm sorry!"), SAY_SAY, 4000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   224
    {func = AnimTurn, args = {natives[princessNum], "Right"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   225
    {func = AnimSay, args = {natives[princessNum], loc("Traitors don't get to shout around here!"), SAY_SAY, 7000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   226
    {func = AnimTurn, args = {natives[princessNum], "Left"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   227
    {func = AnimSay, args = {natives[leaksNum], loc("I still can't believe he sold us out like that."), SAY_SAY, 8000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   228
    {func = AnimSay, args = {natives[princessNum], loc("I don't know who I can trust anymore."), SAY_SAY, 6000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   229
    {func = AnimMove, args = {natives[leaksNum], "Right", nativePosDense[princessNum][1] - 30, nativePosDense[princessNum][2]}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   230
    {func = AnimSay, args = {natives[leaksNum], loc("You can always trust me!"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   231
    {func = AnimSay, args = {natives[princessNum], loc("I know, my hero!"), SAY_SAY, 3000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   232
    {func = AnimSay, args = {natives[princessNum], loc("I love you."), SAY_SAY, 2000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   233
    {func = AnimSwitchHog, args = {natives[leaksNum]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   234
  }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   235
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   236
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   237
function SetupAnimCyborg()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   238
  startAnim = {
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   239
    {func = AnimWait, args = {natives[1], 3000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   240
    {func = AnimCaption, args = {natives[denseNum], loc("Back in the village, the two tribes finally started to live in harmony."), 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   241
    {func = AnimSay, args = {natives[denseNum], loc("Dude, that outfit is so cool!"), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   242
    {func = AnimSay, args = {cannibals[brainNum], loc("Thanks, dude! It really means a lot to me."), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   243
    {func = AnimSay, args = {natives[wiseNum], loc("So, uhmm, how did you manage to teleport them so far?"), SAY_SAY, 8000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   244
    {func = AnimSay, args = {cannibals[corpseNum], loc("It's all about the right carrots, you know."), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   245
    {func = AnimSay, args = {natives[wiseNum], loc("Of course! It's all obvious now!"), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   246
    {func = AnimSay, args = {natives[chiefNum], loc("I can't believe how blind we were."), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   247
    {func = AnimSay, args = {natives[chiefNum], loc("Fighting instead of cultivating a beautiful friendship."), SAY_SAY, 8500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   248
    {func = AnimSay, args = {cannibals[hanniNum], loc("One shall not judge one by one's appearance!"), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   249
    {func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   250
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   251
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   252
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   253
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   254
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   255
    {func = AnimWait, args = {natives[1], 1000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   256
    {func = AnimSay, args = {natives[waterNum], loc("… and then I took a stroll …"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   257
    {func = AnimSay, args = {natives[leaksNum], loc("I'm glad this is over!"), SAY_SAY, 4000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   258
    {func = AnimMove, args = {natives[princessNum], "Right", nativePosCyborg[princessNum][1] + 30, nativePosCyborg[princessNum][2]}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   259
    {func = AnimSay, args = {natives[princessNum], loc("I was so scared."), SAY_SAY, 2500}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   260
    {func = AnimMove, args = {natives[leaksNum], "Right", nativePosCyborg[princessNum][1], nativePosCyborg[princessNum][2]}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   261
    {func = AnimSay, args = {natives[leaksNum], loc("You have nothing to be afraid of now."), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   262
    {func = AnimSay, args = {natives[leaksNum], loc("I'll protect you!"), SAY_SAY, 3000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   263
    {func = AnimTurn, args = {natives[princessNum], "Left"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   264
    {func = AnimSay, args = {natives[princessNum], loc("You're so brave! I feel safe with you."), SAY_SAY, 6500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   265
    {func = AnimSay, args = {natives[princessNum], loc("I think I love you!"), SAY_SAY, 3500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   266
    {func = AnimSay, args = {natives[leaksNum], loc("I … like being with you, too."), SAY_SAY, 4500}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   267
  }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   268
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   269
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   270
function SetupAnimPrincess()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   271
  startAnim = {
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   272
    {func = AnimWait, args = {natives[1], 3000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   273
    {func = AnimCaption, args = {natives[denseNum], loc("Back in the village, the two tribes finally started to live in harmony."), 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   274
    {func = AnimSay, args = {natives[denseNum], loc("Dude, that outfit is so cool!"), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   275
    {func = AnimSay, args = {cannibals[brainNum], loc("Thanks, dude! It really means a lot to me."), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   276
    {func = AnimSay, args = {natives[wiseNum], loc("So, uhmm, how did you manage to teleport them so far?"), SAY_SAY, 8000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   277
    {func = AnimSay, args = {cannibals[corpseNum], loc("It's all about the right carrots, you know."), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   278
    {func = AnimSay, args = {natives[wiseNum], loc("Of course! It's all obvious now!"), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   279
    {func = AnimSay, args = {natives[chiefNum], loc("I can't believe how blind we were."), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   280
    {func = AnimSay, args = {natives[chiefNum], loc("Fighting instead of cultivating a beautiful friendship."), SAY_SAY, 8500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   281
    {func = AnimSay, args = {cannibals[hanniNum], loc("One shall not judge one by one's appearance!"), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   282
    {func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   283
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   284
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   285
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   286
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   287
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   288
    {func = AnimWait, args = {natives[1], 1000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   289
    {func = AnimSay, args = {natives[buffaloNum], loc("So I shook my fist in the air!"), SAY_SAY, 5000}},
12900
a9e4e8fa852c Fix various typos in translatable strings
Wuzzy <Wuzzy2@mail.ru>
parents: 12794
diff changeset
   290
    {func = AnimSay, args = {cannibals[brutalNum], loc("Well, that was an unnecessary act of violence."), SAY_SAY, 7000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   291
    {func = AnimSay, args = {natives[waterNum], loc("… and then I took a stroll …"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   292
    {func = AnimSay, args = {natives[leaksNum], loc("I'm glad this is over!"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   293
    {func = AnimSay, args = {natives[girlNum], loc("I still can't believe you forgave her!"), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   294
    {func = AnimSay, args = {natives[girlNum], loc("She endangered the whole tribe!"), SAY_SAY, 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   295
    {func = AnimSay, args = {natives[leaksNum], loc("It wasn't her fault!"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   296
    {func = AnimSay, args = {natives[leaksNum], loc("We oppressed her, the only woman in the tribe!"), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   297
    {func = AnimSay, args = {natives[girlNum], loc("The only woman, huh?"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   298
    {func = AnimSay, args = {natives[girlNum], loc("Then what am I?"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   299
    {func = AnimSay, args = {natives[leaksNum], loc("Of course, but you're … special."), SAY_SAY, 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   300
    {func = AnimSay, args = {natives[girlNum], loc("Sure!"), SAY_SAY, 2000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   301
    {func = AnimTurn, args = {natives[leaksNum], "Left"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   302
    {func = AnimSay, args = {natives[leaksNum], loc("We're terribly sorry!"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   303
    {func = AnimSay, args = {natives[princessNum], loc("I don't know if I can forget what you've done!"), SAY_SAY, 7000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   304
    {func = AnimTurn, args = {natives[princessNum], "Left"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   305
    {func = AnimMove, args = {natives[princessNum], "Left", nativePosPrincess[princessNum][1] - 10, nativePosPrincess[princessNum][2]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   306
    {func = AnimSwitchHog, args = {natives[leaksNum]}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   307
  }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   308
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   309
-----------------------------Misc--------------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   310
function GetVariables()
13145
5083fb0a2992 A Classic Fairytale: Harden all missions against missing campaign variables in team file and assume default values
Wuzzy <Wuzzy2@mail.ru>
parents: 12900
diff changeset
   311
  m8Scene = tonumber(GetCampaignVar("M8Scene")) or princessScene
5083fb0a2992 A Classic Fairytale: Harden all missions against missing campaign variables in team file and assume default values
Wuzzy <Wuzzy2@mail.ru>
parents: 12900
diff changeset
   312
  -- princessScene is for fallback if campaign var was not found
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   313
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   314
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   315
function AddHogs()
14507
f8c2b995c009 Use player team name in ACF campaign
Wuzzy <Wuzzy2@mail.ru>
parents: 14506
diff changeset
   316
  local nativesTeamName = AddMissionTeam(-2)
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   317
  for i = 1, 5 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   318
    natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   319
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   320
14507
f8c2b995c009 Use player team name in ACF campaign
Wuzzy <Wuzzy2@mail.ru>
parents: 14506
diff changeset
   321
  local grave, voice, flag = GetHogGrave(natives[1]), GetHogVoicepack(natives[1]), GetHogFlag(natives[1])
f8c2b995c009 Use player team name in ACF campaign
Wuzzy <Wuzzy2@mail.ru>
parents: 14506
diff changeset
   322
  AddTeam(string.format(loc("%s (contd.)"), nativesTeamName), -2, grave, "Island", voice, flag)
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   323
  for i = 6, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   324
    natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   325
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   326
14508
d72fb761aa59 ACF: Consistent cannibals flag/voice, change Princess flag
Wuzzy <Wuzzy2@mail.ru>
parents: 14507
diff changeset
   327
  AddTeam(loc("Cannibals"), -2, "skull", "Island", "Pirate", "cm_vampire")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   328
  for i = 1, 5 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   329
    cannibals[i] = AddHog(cannibalNames[i], 0, 100, cannibalHats[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   330
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   331
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   332
  if m8Scene == denseScene or m8Scene == waterScene then
14633
bd15c8551318 Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents: 14508
diff changeset
   333
    traitorTeamName = AddTeam(traitorTeamName, -2, grave, "Island", voice, "cm_bloodyblade")
bd15c8551318 Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents: 14508
diff changeset
   334
    SetTeamPassive(traitorTeamName, true)
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   335
    if m8Scene == denseScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   336
      DeleteGear(natives[2])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   337
      natives[2] = AddHog(nativeNames[2], 0, 100, nativeHats[2])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   338
    else
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   339
      DeleteGear(natives[3])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   340
      natives[3] = AddHog(nativeNames[3], 0, 100, nativeHats[3])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   341
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   342
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   343
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   344
  SetGearPositions()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   345
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   346
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   347
function SetGearPositions()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   348
  if m8Scene == cyborgScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   349
    for i = 1, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   350
      AnimSetGearPosition(natives[i], unpack(nativePosCyborg[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   351
      AnimTurn(natives[i], nativeDirCyborg[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   352
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   353
  elseif m8Scene == waterScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   354
    for i = 1, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   355
      AnimSetGearPosition(natives[i], unpack(nativePosWater[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   356
      AnimTurn(natives[i], nativeDirWater[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   357
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   358
  elseif m8Scene == denseScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   359
    for i = 1, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   360
      AnimSetGearPosition(natives[i], unpack(nativePosDense[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   361
      AnimTurn(natives[i], nativeDirDense[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   362
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   363
  else
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   364
    for i = 1, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   365
      AnimSetGearPosition(natives[i], unpack(nativePosPrincess[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   366
      AnimTurn(natives[i], nativeDirPrincess[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   367
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   368
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   369
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   370
  for i = 1, 5 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   371
    AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   372
    AnimTurn(cannibals[i], cannibalDir[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   373
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   374
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   375
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   376
function SetupPlace()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   377
  if m8Scene == denseScene or m8Scene == waterScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   378
    PlaceGirder(2296, 798, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   379
    PlaceGirder(2296, 700, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   380
    PlaceGirder(2225, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   381
    PlaceGirder(2245, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   382
    PlaceGirder(2265, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   383
    PlaceGirder(2305, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   384
    PlaceGirder(2345, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   385
    PlaceGirder(2365, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   386
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   387
  if m8Scene == denseScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   388
    traitor = natives[denseNum]
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   389
  elseif m8Scene == waterScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   390
    traitor = natives[waterNum]
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   391
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   392
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   393
-----------------------------Main Functions----------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   394
function onGameInit()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   395
	Seed = 1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   396
	GameFlags = gfOneClanMode
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   397
	TurnTime = 60000 
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   398
	CaseFreq = 0
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   399
	MinesNum = 0
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   400
	MinesTime = 3000
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   401
	Explosives = 0
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   402
  Map = "Hogville"
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   403
	Theme = "Nature"
12224
d62d6f8ebef1 Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents: 12049
diff changeset
   404
  -- Disable Sudden Death
d62d6f8ebef1 Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents: 12049
diff changeset
   405
  HealthDecrease = 0
d62d6f8ebef1 Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents: 12049
diff changeset
   406
  WaterRise = 0
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   407
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   408
  GetVariables()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   409
  AddHogs()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   410
  AnimInit()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   411
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   412
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   413
function onGameStart()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   414
  SetupPlace()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   415
  AnimationSetup()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   416
  AddAnim(startAnim)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   417
  AddFunction({func = AfterStartAnim, args = {}})
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   418
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   419
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   420
function onGameTick()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   421
  AnimUnWait()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   422
  if ShowAnimation() == false then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   423
    return
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   424
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   425
  ExecuteAfterAnimations()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   426
  CheckEvents()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   427
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   428
12365
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   429
function onGearAdd(gear)
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   430
  if GetGearType(gear) == gtHedgehog then
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   431
    hogDead[gear] = false
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   432
  end
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   433
end
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   434
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   435
function onGearDelete(gear)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   436
  gearDead[gear] = true
12365
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   437
  if GetGearType(gear) == gtHedgehog then
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   438
    hogDead[gear] = true
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   439
  end
14633
bd15c8551318 Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents: 14508
diff changeset
   440
  if IsEveryoneExceptTraitorDead() then
bd15c8551318 Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents: 14508
diff changeset
   441
    SetTeamPassive(traitorTeamName, false)
bd15c8551318 Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents: 14508
diff changeset
   442
  end
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   443
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   444
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   445
function onAmmoStoreInit()
11038
5a9dde74127e Fix weapon name - bug #967
nemo
parents: 9306
diff changeset
   446
  SetAmmo(amAirAttack, 9, 0, 0, 0)
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   447
  SetAmmo(amBaseballBat, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   448
  SetAmmo(amBazooka, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   449
  SetAmmo(amBlowTorch, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   450
	SetAmmo(amClusterBomb,9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   451
  SetAmmo(amDEagle, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   452
  SetAmmo(amDrill, 9, 0, 0, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   453
  SetAmmo(amDynamite, 9, 0, 0, 3)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   454
  SetAmmo(amFirePunch, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   455
  SetAmmo(amFlamethrower, 9, 0, 0, 3)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   456
  SetAmmo(amGirder, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   457
  SetAmmo(amGrenade, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   458
  SetAmmo(amHammer, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   459
  SetAmmo(amJetpack, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   460
  SetAmmo(amLandGun, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   461
  SetAmmo(amLowGravity, 9, 0, 0, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   462
  SetAmmo(amMine, 9, 0, 0, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   463
  SetAmmo(amMolotov, 9, 0, 0, 3)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   464
  SetAmmo(amMortar, 9, 0, 0, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   465
  SetAmmo(amNapalm, 9, 0, 0, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   466
  SetAmmo(amParachute, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   467
  SetAmmo(amPickHammer, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   468
  SetAmmo(amPortalGun, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   469
  SetAmmo(amRope, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   470
  SetAmmo(amRCPlane, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   471
  SetAmmo(amSkip, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   472
  SetAmmo(amShotgun, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   473
  SetAmmo(amSMine, 9, 0, 0, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   474
  SetAmmo(amSniperRifle, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   475
  SetAmmo(amSnowball, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   476
  SetAmmo(amSwitch, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   477
  SetAmmo(amTeleport, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   478
	SetAmmo(amWatermelon, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   479
  SetAmmo(amWhip, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   480
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   481
12365
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   482
function IsEveryoneExceptTraitorDead()
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   483
  for id, isDead in pairs(hogDead) do
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   484
    if id ~= traitor and not isDead then
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   485
      return false
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   486
    end
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   487
  end
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   488
  return true
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   489
end
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   490
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   491
function onNewTurn()
14633
bd15c8551318 Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents: 14508
diff changeset
   492
  SetTurnTimeLeft(MAX_TURN_TIME)
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   493
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   494
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   495
function onPrecise()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   496
  if GameTime > 2500 then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   497
    SetAnimSkip(true)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   498
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   499
end