share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua
author Wuzzy <almikes@aol.com>
Tue, 11 Apr 2017 02:44:59 +0200
changeset 12224 d62d6f8ebef1
parent 12049 030464f34d47
child 12264 41542ed28fe4
permissions -rw-r--r--
Disable Sudden Death consistently in all missions which don't require it
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8043
da083f8d95e6 We need custom script loading function in lua now
unc0rr
parents: 7512
diff changeset
     1
HedgewarsScriptLoad("/Scripts/Locale.lua")
da083f8d95e6 We need custom script loading function in lua now
unc0rr
parents: 7512
diff changeset
     2
HedgewarsScriptLoad("/Scripts/Animate.lua")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     3
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     4
-----------------------------Constants---------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     5
leaksNum = 1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     6
denseNum = 2
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     7
waterNum = 3
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     8
buffaloNum = 4
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     9
chiefNum = 5
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    10
girlNum = 6
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    11
wiseNum = 7
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    12
ramonNum = 8
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    13
spikyNum = 9
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    14
princessNum = 10
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    15
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    16
denseScene = 1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    17
princessScene = 2
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    18
waterScene = 3
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    19
cyborgScene = 4
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    20
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    21
nativeNames = {loc("Leaks A Lot"), loc("Dense Cloud"), loc("Fiery Water"), 
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    22
               loc("Raging Buffalo"), loc("Righteous Beard"), loc("Fell From Grace"),
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    23
               loc("Wise Oak"), loc("Ramon"), loc("Spiky Cheese"),
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    24
               loc("Fell From Heaven")
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    25
              }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    26
nativeHats = {"Rambo", "RobinHood", "pirate_jack", "zoo_Bunny", "IndianChief",
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    27
              "tiara", "AkuAku", "rasta", "hair_yellow", "tiara"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    28
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    29
nativePosCyborg = {{1900, 508}, {480, 1321}, {2927, 873},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    30
             {1325, 905}, {3190, 1424}, {1442, 857},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    31
             {1134, 1278}, {2881, 853}, {2974, 897},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    32
             {2033, 511}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    33
nativeDirCyborg = {"Right", "Right", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Left"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    34
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    35
nativePosPrincess = {{1930, 508}, {480, 1321}, {2927, 873},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    36
             {1325, 905}, {3190, 1424}, {2033, 511},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    37
             {1134, 1278}, {2881, 853}, {2974, 897},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    38
             {1900, 508}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    39
nativeDirPrincess = {"Right", "Right", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Right"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    40
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    41
nativePosDense = {{1930, 508}, {2285, 772}, {2927, 873},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    42
             {1325, 905}, {3190, 1424}, {1442, 857},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    43
             {1134, 1278}, {480, 1321}, {2974, 897},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    44
             {2033, 511}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    45
nativeDirDense = {"Right", "Left", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Left"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    46
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    47
nativePosWater = {{1900, 508}, {2033, 511}, {2285, 772},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    48
             {1325, 905}, {3190, 1424}, {1442, 857},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    49
             {1134, 1278}, {480, 1321}, {2974, 897},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    50
             {1980, 511}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    51
nativeDirWater = {"Right", "Left", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Left"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    52
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    53
prisonPos = {2285, 772}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    54
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    55
brainNum = 1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    56
corpseNum = 2
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    57
brutalNum = 3
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    58
earNum = 4
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    59
hanniNum = 5
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    60
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    61
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
    62
cannibalHats = {"Zombi", "AkuAku", "Zombi", "Zombi", "IndianChief"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    63
cannibalPos = {{533, 1304}, {1184, 1282}, {1386, 883}, {2854, 834}, {3243, 1415}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    64
cannibalDir = {"Left", "Left", "Left", "Right", "Left"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    65
-----------------------------Variables---------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    66
natives = {}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    67
cannibals = {}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    68
traitor = nil
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    69
crate = nil
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    70
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    71
startAnim = {}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    72
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    73
gearDead = {}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    74
--------------------------Anim skip functions--------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    75
function SkipStartAnim()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    76
  SetGearMessage(CurrentHedgehog, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    77
  AnimSwitchHog(natives[1])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    78
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    79
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    80
function AfterStartAnim()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    81
  crate = SpawnHealthCrate(0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    82
  SetGearMessage(CurrentHedgehog, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    83
  AddNewEvent(CheckCrateTaken, {}, DoCrateTaken, {}, 1)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    84
  TurnTimeLeft = 0
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    85
  ShowMission("Epilogue", "That's all folks!", "You have successfully finished the campaign!|If you wish to replay, there are other possible endings, too!|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
    86
  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
    87
  SaveCampaignVar("Won", "true")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    88
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    89
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    90
---------------------------Events-------------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    91
function CheckCrateTaken()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    92
  return gearDead[crate]
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    93
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    94
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    95
function DoCrateTaken()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    96
  crate = SpawnHealthCrate(0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    97
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    98
-----------------------------Animations--------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    99
function AnimationSetup()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   100
  if m8Scene == cyborgScene then 
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   101
    SetupAnimCyborg()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   102
  elseif m8Scene == princessScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   103
    SetupAnimPrincess()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   104
  elseif m8Scene == waterScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   105
    SetupAnimWater()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   106
  else
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   107
    SetupAnimDense()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   108
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   109
  AddSkipFunction(startAnim, SkipStartAnim, {})
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   110
end
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
function SetupAnimWater()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   113
  startAnim = {
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   114
    {func = AnimWait, args = {natives[1], 3000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   115
    {func = AnimCaption, args = {natives[ramonNum], "Back in the village, the two tribes finally started to live in harmony.", 5000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   116
    {func = AnimSay, args = {natives[ramonNum], "You got a killer mask there, amigo!", SAY_SAY, 5500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   117
    {func = AnimSay, args = {cannibals[brainNum], "Thanks, man! It really means a lot to me.", SAY_SAY, 6000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   118
    {func = AnimSay, args = {natives[wiseNum], "So, uhmm, how did you manage to teleport them so far?", SAY_SAY, 8000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   119
    {func = AnimSay, args = {cannibals[corpseNum], "It's all about the right carrots, you know.", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   120
    {func = AnimSay, args = {natives[wiseNum], "Of course! It's all obvious now!", SAY_SAY, 4500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   121
    {func = AnimSay, args = {natives[chiefNum], "I can't believe how blind we were...", SAY_SAY, 4500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   122
    {func = AnimSay, args = {natives[chiefNum], "Fighting instead of cultivating a beautiful friendship.", SAY_SAY, 8500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   123
    {func = AnimSay, args = {cannibals[hanniNum], "One shall not judge one by one's appearance!", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   124
    {func = AnimSay, args = {natives[chiefNum], "You speak great truth, Hannibal. Here, take a sip!", SAY_SAY, 7500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   125
    {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
   126
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   127
    {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
   128
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   129
    {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
   130
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   131
    {func = AnimSay, args = {natives[leaksNum], "It's amazing how quickly our lives can change...", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   132
    {func = AnimSay, args = {natives[waterNum], "Aye! Fellow! Let me exit this chamber of doom!", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   133
    {func = AnimTurn, args = {natives[princessNum], "Right"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   134
    {func = AnimSay, args = {natives[princessNum], "It's your fault you're there!", SAY_SAY, 5000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   135
    {func = AnimTurn, args = {natives[princessNum], "Left"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   136
    {func = AnimSay, args = {natives[leaksNum], "I always suspected him!", SAY_SAY, 3000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   137
    {func = AnimSay, args = {natives[leaksNum], "Nobody takes walks every day!", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   138
    {func = AnimSay, args = {natives[princessNum], "I don't know who I can trust anymore.", SAY_SAY, 6000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   139
    {func = AnimSay, args = {natives[princessNum], "Everywhere I look, I see hogs walking around...", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   140
    {func = AnimSay, args = {natives[princessNum], "...and I think they are up to something. Something bad!", SAY_SAY, 8000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   141
    {func = AnimMove, args = {natives[leaksNum], "Right", nativePosWater[princessNum][1] - 30, nativePosWater[princessNum][2]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   142
    {func = AnimSay, args = {natives[leaksNum], "You can always trust me! I love you!", SAY_SAY, 6000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   143
    {func = AnimSay, args = {natives[princessNum], "I know and I'm terribly sorry!", SAY_SAY, 5000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   144
    {func = AnimSay, args = {natives[princessNum], "I love Dense Cloud now!", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   145
    {func = AnimTurn, args = {natives[princessNum], "Right"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   146
    {func = AnimMove, args = {natives[denseNum], "Left", nativePosWater[princessNum][1] + 20, nativePosWater[princessNum][2]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   147
    {func = AnimSay, args = {natives[denseNum], "Problems, dude? Chillax!", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   148
    {func = AnimTurn, args = {natives[leaksNum], "Left"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   149
    {func = AnimSay, args = {natives[leaksNum], "(T_T)", SAY_SAY, 6000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   150
    {func = AnimSwitchHog, args = {natives[leaksNum]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   151
  }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   152
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   153
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   154
function SetupAnimDense()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   155
  startAnim = {
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   156
    {func = AnimWait, args = {natives[1], 3000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   157
    {func = AnimCaption, args = {natives[ramonNum], "Back in the village, the two tribes finally started to live in harmony.", 5000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   158
    {func = AnimSay, args = {natives[ramonNum], "You got a killer mask there, amigo!", SAY_SAY, 5500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   159
    {func = AnimSay, args = {cannibals[brainNum], "Thanks, man! It really means a lot to me.", SAY_SAY, 6000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   160
    {func = AnimSay, args = {natives[wiseNum], "So, uhmm, how did you manage to teleport them so far?", SAY_SAY, 8000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   161
    {func = AnimSay, args = {cannibals[corpseNum], "It's all about the right carrots, you know.", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   162
    {func = AnimSay, args = {natives[wiseNum], "Of course! It's all obvious now!", SAY_SAY, 4500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   163
    {func = AnimSay, args = {natives[chiefNum], "I can't believe how blind we were...", SAY_SAY, 4500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   164
    {func = AnimSay, args = {natives[chiefNum], "Fighting instead of cultivating a beautiful friendship.", SAY_SAY, 8500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   165
    {func = AnimSay, args = {cannibals[hanniNum], "One shall not judge one by one's appearance!", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   166
    {func = AnimSay, args = {natives[chiefNum], "You speak great truth, Hannibal. Here, take a sip!", SAY_SAY, 7500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   167
    {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
   168
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   169
    {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
   170
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   171
    {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
   172
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   173
    {func = AnimSay, args = {natives[waterNum], "...And then I took a stroll...", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   174
    {func = AnimSay, args = {natives[leaksNum], "It's amazing how quickly our lives can change...", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   175
    {func = AnimSay, args = {natives[denseNum], "Dude, let me out!", SAY_SAY, 3000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   176
    {func = AnimSay, args = {natives[denseNum], "I already said I'm sorry!", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   177
    {func = AnimTurn, args = {natives[princessNum], "Right"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   178
    {func = AnimSay, args = {natives[princessNum], "Traitors don't get to shout around here!", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   179
    {func = AnimTurn, args = {natives[princessNum], "Left"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   180
    {func = AnimSay, args = {natives[leaksNum], "I still can't believe he sold us out like that.", SAY_SAY, 8000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   181
    {func = AnimSay, args = {natives[princessNum], "I don't know who I can trust anymore.", SAY_SAY, 6000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   182
    {func = AnimMove, args = {natives[leaksNum], "Right", nativePosDense[princessNum][1] - 30, nativePosDense[princessNum][2]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   183
    {func = AnimSay, args = {natives[leaksNum], "You can always trust me!", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   184
    {func = AnimSay, args = {natives[princessNum], "I know, my hero!", SAY_SAY, 3000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   185
    {func = AnimSay, args = {natives[princessNum], "...xoxo...", SAY_SAY, 2000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   186
    {func = AnimSwitchHog, args = {natives[leaksNum]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   187
  }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   188
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   189
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   190
function SetupAnimCyborg()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   191
  startAnim = {
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   192
    {func = AnimWait, args = {natives[1], 3000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   193
    {func = AnimCaption, args = {natives[denseNum], "Back in the village, the two tribes finally started to live in harmony.", 5000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   194
    {func = AnimSay, args = {natives[denseNum], "Dude, that outfit is so kool!", SAY_SAY, 4500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   195
    {func = AnimSay, args = {cannibals[brainNum], "Thanks, dude! It really means a lot to me.", SAY_SAY, 6000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   196
    {func = AnimSay, args = {natives[wiseNum], "So, uhmm, how did you manage to teleport them so far?", SAY_SAY, 8000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   197
    {func = AnimSay, args = {cannibals[corpseNum], "It's all about the right carrots, you know.", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   198
    {func = AnimSay, args = {natives[wiseNum], "Of course! It's all obvious now!", SAY_SAY, 4500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   199
    {func = AnimSay, args = {natives[chiefNum], "I can't believe how blind we were...", SAY_SAY, 4500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   200
    {func = AnimSay, args = {natives[chiefNum], "Fighting instead of cultivating a beautiful friendship.", SAY_SAY, 8500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   201
    {func = AnimSay, args = {cannibals[hanniNum], "One shall not judge one by one's appearance!", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   202
    {func = AnimSay, args = {natives[chiefNum], "You speak great truth, Hannibal. Here, take a sip!", SAY_SAY, 7500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   203
    {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
   204
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   205
    {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
   206
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   207
    {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
   208
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   209
    {func = AnimSay, args = {natives[waterNum], "...And then I took a stroll...", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   210
    {func = AnimSay, args = {natives[leaksNum], "I'm glad this is over!", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   211
    {func = AnimMove, args = {natives[princessNum], "Right", nativePosCyborg[princessNum][1] + 30, nativePosCyborg[princessNum][2]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   212
    {func = AnimSay, args = {natives[princessNum], "I was so scared.", SAY_SAY, 2500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   213
    {func = AnimMove, args = {natives[leaksNum], "Right", nativePosCyborg[princessNum][1], nativePosCyborg[princessNum][2]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   214
    {func = AnimSay, args = {natives[leaksNum], "You have nothing to be afraid of now.", SAY_SAY, 6000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   215
    {func = AnimSay, args = {natives[leaksNum], "I'll protect you!", SAY_SAY, 3000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   216
    {func = AnimTurn, args = {natives[princessNum], "Left"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   217
    {func = AnimSay, args = {natives[princessNum], "You're so brave...I feel safe with you.", SAY_SAY, 6500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   218
    {func = AnimSay, args = {natives[princessNum], "I think I love you!", SAY_SAY, 3500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   219
    {func = AnimSay, args = {natives[leaksNum], "I...like being with you too.", SAY_SAY, 4500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   220
  }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   221
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   222
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   223
function SetupAnimPrincess()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   224
  startAnim = {
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   225
    {func = AnimWait, args = {natives[1], 3000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   226
    {func = AnimCaption, args = {natives[denseNum], "Back in the village, the two tribes finally started to live in harmony.", 5000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   227
    {func = AnimSay, args = {natives[denseNum], "Dude, that outfit is so kool!", SAY_SAY, 4500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   228
    {func = AnimSay, args = {cannibals[brainNum], "Thanks, dude! It really means a lot to me.", SAY_SAY, 6000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   229
    {func = AnimSay, args = {natives[wiseNum], "So, uhmm, how did you manage to teleport them so far?", SAY_SAY, 8000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   230
    {func = AnimSay, args = {cannibals[corpseNum], "It's all about the right carrots, you know.", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   231
    {func = AnimSay, args = {natives[wiseNum], "Of course! It's all obvious now!", SAY_SAY, 4500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   232
    {func = AnimSay, args = {natives[chiefNum], "I can't believe how blind we were...", SAY_SAY, 4500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   233
    {func = AnimSay, args = {natives[chiefNum], "Fighting instead of cultivating a beautiful friendship.", SAY_SAY, 8500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   234
    {func = AnimSay, args = {cannibals[hanniNum], "One shall not judge one by one's appearance!", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   235
    {func = AnimSay, args = {natives[chiefNum], "You speak great truth, Hannibal. Here, take a sip!", SAY_SAY, 7500}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   236
    {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
   237
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   238
    {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
   239
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   240
    {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
   241
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   242
    {func = AnimSay, args = {natives[buffaloNum], "So I shook my fist in the air!", SAY_SAY, 5000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   243
    {func = AnimSay, args = {cannibals[brutalNum], "Well that was an unnecessary act of violence.", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   244
    {func = AnimSay, args = {natives[waterNum], "...And then I took a stroll...", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   245
    {func = AnimSay, args = {natives[leaksNum], "I'm glad this is over!", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   246
    {func = AnimSay, args = {natives[girlNum], "I still can't believe you forgave her!", SAY_SAY, 6000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   247
    {func = AnimSay, args = {natives[girlNum], "She endangered the whole tribe!", SAY_SAY, 5000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   248
    {func = AnimSay, args = {natives[leaksNum], "It wasn't her fault!", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   249
    {func = AnimSay, args = {natives[leaksNum], "We oppressed her, the only woman in the tribe!", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   250
    {func = AnimSay, args = {natives[girlNum], "The only woman, huh?", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   251
    {func = AnimSay, args = {natives[girlNum], "Then what am I?", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   252
    {func = AnimSay, args = {natives[leaksNum], "Of course, but you're...special.", SAY_SAY, 5000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   253
    {func = AnimSay, args = {natives[girlNum], "Sure!", SAY_SAY, 2000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   254
    {func = AnimTurn, args = {natives[leaksNum], "Left"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   255
    {func = AnimSay, args = {natives[leaksNum], "We're terribly sorry!", SAY_SAY, 4000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   256
    {func = AnimSay, args = {natives[princessNum], "I don't know if I can forget what you've done!", SAY_SAY, 7000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   257
    {func = AnimTurn, args = {natives[princessNum], "Left"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   258
    {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
   259
    {func = AnimSwitchHog, args = {natives[leaksNum]}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   260
  }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   261
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   262
-----------------------------Misc--------------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   263
function GetVariables()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   264
  m8Scene = tonumber(GetCampaignVar("M8Scene"))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   265
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   266
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   267
function AddHogs()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   268
	AddTeam(loc("Natives"), 29439, "Bone", "Island", "HillBilly", "cm_birdy")
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   269
  for i = 1, 5 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   270
    natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   271
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   272
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   273
	AddTeam(loc("More Natives"), 29439, "Bone", "Island", "HillBilly", "cm_birdy")
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   274
  for i = 6, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   275
    natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   276
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   277
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   278
	AddTeam(loc("Cannibals"), 29439, "Bone", "Island", "HillBilly", "cm_birdy")
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   279
  for i = 1, 5 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   280
    cannibals[i] = AddHog(cannibalNames[i], 0, 100, cannibalHats[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   281
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   282
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   283
  if m8Scene == denseScene or m8Scene == waterScene then
12049
030464f34d47 Tweak flags used in all missions to fit more to the theme
Wuzzy <almikes@aol.com>
parents: 11955
diff changeset
   284
    AddTeam(loc("Traitors"), 29439, "Bone", "Island", "HillBilly", "cm_bloodyblade")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   285
    if m8Scene == denseScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   286
      DeleteGear(natives[2])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   287
      natives[2] = AddHog(nativeNames[2], 0, 100, nativeHats[2])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   288
    else
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   289
      DeleteGear(natives[3])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   290
      natives[3] = AddHog(nativeNames[3], 0, 100, nativeHats[3])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   291
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   292
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   293
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   294
  SetGearPositions()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   295
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   296
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   297
function SetGearPositions()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   298
  if m8Scene == cyborgScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   299
    for i = 1, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   300
      AnimSetGearPosition(natives[i], unpack(nativePosCyborg[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   301
      AnimTurn(natives[i], nativeDirCyborg[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   302
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   303
  elseif m8Scene == waterScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   304
    for i = 1, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   305
      AnimSetGearPosition(natives[i], unpack(nativePosWater[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   306
      AnimTurn(natives[i], nativeDirWater[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   307
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   308
  elseif m8Scene == denseScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   309
    for i = 1, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   310
      AnimSetGearPosition(natives[i], unpack(nativePosDense[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   311
      AnimTurn(natives[i], nativeDirDense[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   312
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   313
  else
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   314
    for i = 1, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   315
      AnimSetGearPosition(natives[i], unpack(nativePosPrincess[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   316
      AnimTurn(natives[i], nativeDirPrincess[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   317
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   318
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   319
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   320
  for i = 1, 5 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   321
    AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   322
    AnimTurn(cannibals[i], cannibalDir[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   323
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   324
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   325
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   326
function SetupPlace()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   327
  if m8Scene == denseScene or m8Scene == waterScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   328
    PlaceGirder(2296, 798, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   329
    PlaceGirder(2296, 700, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   330
    PlaceGirder(2225, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   331
    PlaceGirder(2245, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   332
    PlaceGirder(2265, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   333
    PlaceGirder(2305, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   334
    PlaceGirder(2345, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   335
    PlaceGirder(2365, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   336
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   337
  if m8Scene == denseScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   338
    traitor = natives[denseNum]
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   339
  elseif m8Scene == waterScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   340
    traitor = natives[waterNum]
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
-----------------------------Main Functions----------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   344
function onGameInit()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   345
	Seed = 1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   346
	GameFlags = gfOneClanMode
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   347
	TurnTime = 60000 
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   348
	CaseFreq = 0
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   349
	MinesNum = 0
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   350
	MinesTime = 3000
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   351
	Explosives = 0
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   352
	Delay = 10 
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   353
  Map = "Hogville"
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   354
	Theme = "Nature"
12224
d62d6f8ebef1 Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents: 12049
diff changeset
   355
  -- Disable Sudden Death
d62d6f8ebef1 Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents: 12049
diff changeset
   356
  HealthDecrease = 0
d62d6f8ebef1 Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents: 12049
diff changeset
   357
  WaterRise = 0
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   358
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   359
  GetVariables()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   360
  AddHogs()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   361
  AnimInit()
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
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   364
function onGameStart()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   365
  SetupPlace()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   366
  AnimationSetup()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   367
  AddAnim(startAnim)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   368
  AddFunction({func = AfterStartAnim, args = {}})
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   369
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   370
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   371
function onGameTick()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   372
  AnimUnWait()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   373
  if ShowAnimation() == false then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   374
    return
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   375
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   376
  ExecuteAfterAnimations()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   377
  CheckEvents()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   378
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   379
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   380
function onGearDelete(gear)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   381
  gearDead[gear] = true
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   382
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   383
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   384
function onAmmoStoreInit()
11038
5a9dde74127e Fix weapon name - bug #967
nemo
parents: 9306
diff changeset
   385
  SetAmmo(amAirAttack, 9, 0, 0, 0)
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   386
  SetAmmo(amBaseballBat, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   387
  SetAmmo(amBazooka, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   388
  SetAmmo(amBlowTorch, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   389
	SetAmmo(amClusterBomb,9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   390
  SetAmmo(amDEagle, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   391
  SetAmmo(amDrill, 9, 0, 0, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   392
  SetAmmo(amDynamite, 9, 0, 0, 3)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   393
  SetAmmo(amFirePunch, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   394
  SetAmmo(amFlamethrower, 9, 0, 0, 3)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   395
  SetAmmo(amGirder, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   396
  SetAmmo(amGrenade, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   397
  SetAmmo(amHammer, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   398
  SetAmmo(amJetpack, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   399
  SetAmmo(amLandGun, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   400
  SetAmmo(amLowGravity, 9, 0, 0, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   401
  SetAmmo(amMine, 9, 0, 0, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   402
  SetAmmo(amMolotov, 9, 0, 0, 3)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   403
  SetAmmo(amMortar, 9, 0, 0, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   404
  SetAmmo(amNapalm, 9, 0, 0, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   405
  SetAmmo(amParachute, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   406
  SetAmmo(amPickHammer, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   407
  SetAmmo(amPortalGun, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   408
  SetAmmo(amRope, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   409
  SetAmmo(amRCPlane, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   410
  SetAmmo(amSkip, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   411
  SetAmmo(amShotgun, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   412
  SetAmmo(amSMine, 9, 0, 0, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   413
  SetAmmo(amSniperRifle, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   414
  SetAmmo(amSnowball, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   415
  SetAmmo(amSwitch, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   416
  SetAmmo(amTeleport, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   417
	SetAmmo(amWatermelon, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   418
  SetAmmo(amWhip, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   419
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   420
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   421
function onNewTurn()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   422
  if AnimInProgress() then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   423
    TurnTimeLeft = -1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   424
    return
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   425
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   426
  if CurrentHedgehog == traitor then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   427
    TurnTimeLeft = 0
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   428
  else
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   429
    TurnTimeLeft = -1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   430
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   431
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   432
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   433
function onPrecise()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   434
  if GameTime > 2500 then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   435
    SetAnimSkip(true)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   436
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   437
end