share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/queen.lua
author belphegorr <szabibibi@gmail.com>
Wed, 05 Sep 2012 16:54:13 +0300
changeset 7675 58620e9e5ed5
parent 7527 35d154745d7a
child 8043 da083f8d95e6
permissions -rw-r--r--
Fixed grammar/vocabulary and improved balance Mission 7: Added more pickhammers so that it's harder to run out of them, added more weapons to the AI Mission 6: Removed reset possibility, added sticky mines, more weapons for AI every six turns Enter commit message. Lines beginning with 'HG:' are removed.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     1
loadfile(GetDataPath() .. "Scripts/Locale.lua")()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     2
loadfile(GetDataPath() .. "Scripts/Animate.lua")()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     3
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     4
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     5
-----------------------------Map--------------------------------------
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     6
local map =
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     7
{
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     8
	"\16\7\0\225\132\15\200\1\40\0\15\200\1\40\132\15\105\8\81\0\16\14\1\64\143\15\200\7\249\0\13\50\7\252\132\12\243\7\172\0",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
     9
	"\12\236\7\168\132\12\127\6\192\0\12\127\6\192\132\11\52\6\223\0\11\52\6\223\132\10\62\8\35\0\8\201\8\4\132\8\63\7\126\0",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    10
	"\8\63\7\126\132\8\4\6\58\0\8\0\6\65\132\7\147\6\241\0\7\133\6\195\132\7\20\4\151\0\7\143\6\195\132\7\140\6\234\0",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    11
	"\7\17\4\151\132\5\191\4\222\0\5\191\4\222\132\3\136\3\252\0\3\136\3\252\132\2\12\4\151\0\2\12\4\151\132\1\138\5\15\0",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    12
	"\1\138\5\15\132\1\54\5\156\0\1\54\5\156\132\0\130\5\64\0\0\130\5\64\132\255\214\5\135\0\8\141\1\85\179\8\141\1\85\0",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    13
	"\10\30\2\220\139\10\30\2\220\0\11\77\1\142\131\11\77\1\142\0\10\188\0\113\129\10\188\0\113\0\255\235\0\162\132\0\130\0\225\0",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    14
	"\0\130\0\229\0\0\127\0\236\132\255\231\0\250\0\0\28\0\215\136\0\4\0\211\0\0\95\5\212\154\0\95\7\238\0\0\246\6\2\154",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    15
	"\1\71\8\0\0\1\205\5\145\154\2\132\4\239\0\3\98\4\141\154\1\135\5\216\0\3\179\4\151\154\6\213\5\247\0\6\223\5\124\151",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    16
	"\6\185\5\22\0\6\181\5\29\151\6\37\5\64\0\0\179\5\198\148\0\179\5\198\0\6\216\4\253\148\6\216\4\253\0\1\230\7\147\153",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    17
	"\8\32\8\18\0\1\187\6\174\153\7\179\7\108\0\2\199\5\177\179\6\128\6\167\0\7\231\7\10\143\7\231\6\202\0\12\148\8\4\156",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    18
	"\10\241\8\11\0\11\112\7\101\156\12\56\7\91\0\1\89\5\223\199\4\11\5\208\0\4\67\5\212\200\4\172\6\58\0\4\172\6\58\200",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    19
	"\5\36\5\212\0\5\40\5\194\200\4\169\5\57\0\4\169\5\57\200\4\42\5\205\0\4\130\5\142\200\4\218\5\205\0\4\137\5\194\200",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    20
	"\4\179\5\251\0\255\245\1\198\133\0\77\1\198\0\0\77\1\198\133\0\102\1\226\0\0\102\1\230\133\255\221\1\244\0\255\245\0\148\195",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    21
	"\255\231\1\11\0\0\32\0\162\195\255\231\0\169\0\0\60\0\158\195\0\32\0\172\0\0\21\0\176\195\255\242\0\222\0\255\245\0\215\195",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    22
	"\0\7\0\246\0\255\245\0\243\195\0\11\1\33\0\0\4\1\4\195\0\56\1\36\0\255\245\1\173\195\0\35\1\110\0\255\242\1\180\195",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    23
	"\255\224\2\9\0\255\238\1\240\195\0\28\2\30\0\0\21\2\19\195\0\102\2\23\0\16\18\1\1\195\16\35\0\222\0\16\14\1\11\195",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    24
	"\16\7\2\9\0\16\0\2\16\195\16\35\3\34\0\16\11\2\252\195\16\11\4\208\0\16\11\4\208\195\16\0\6\55\0\16\0\6\55\195",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    25
	"\16\14\8\25\0",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    26
}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    27
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    28
--------------------------------------------Constants------------------------------------
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    29
choiceAccepted = 1
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    30
choiceRefused = 2
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    31
choiceAttacked = 3
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    32
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    33
choiceEliminate = 1
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    34
choiceSpare = 2
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    35
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    36
leaksNum = 1
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    37
denseNum = 2
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    38
waterNum = 3
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    39
buffaloNum = 4
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    40
chiefNum = 5
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    41
girlNum = 6
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    42
wiseNum = 7
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    43
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    44
denseScene = 1
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    45
princessScene = 2
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    46
waterScene = 3
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    47
cyborgScene = 4
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    48
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    49
nativeNames = {loc("Leaks A Lot"), loc("Dense Cloud"), loc("Fiery Water"), 
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    50
               loc("Raging Buffalo"), loc("Righteous Beard"), loc("Fell From Grace"),
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    51
               loc("Wise Oak"), loc("Ramon"), loc("Spiky Cheese")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    52
              }
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    53
nativeSaveNames = {"M8DeployedDead", "M8RamonDead", "M8SpikyDead", "M8PrincessDead"}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    54
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    55
nativeUnNames = {loc("Zork"), loc("Steve"), loc("Jack"),
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    56
                 loc("Lee"), loc("Elmo"), loc("Rachel"),
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    57
                 loc("Muriel")}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    58
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    59
nativeHats = {"Rambo", "RobinHood", "pirate_jack", "zoo_Bunny", "IndianChief",
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    60
              "tiara", "AkuAku", "rasta", "hair_yellow"}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    61
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    62
nativePos = {{1474, 1188}, {923, 986}, {564, 1120}, {128, 1315}}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    63
nativesNum = 4
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    64
nativesLeft = 4
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    65
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    66
cyborgNames = {loc("Artur Detour"), loc("Led Heart"), loc("Orlando Boom!"), loc("Nilarian"), 
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    67
               loc("Steel Eye"), loc("Rusty Joe"), loc("Hatless Jerry"), loc("Gas Gargler")}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    68
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    69
cyborgsDif = {2, 2, 2, 2, 2, 2, 2, 2}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    70
cyborgsHealth = {100, 100, 100, 100, 100, 100, 100, 100}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    71
cyborgPos = {1765, 1145}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    72
cyborgsTeamNum = {4, 3}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    73
cyborgsNum = 7
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    74
cyborgsPos = {{2893, 1717}, {2958, 1701}, {3027, 1696}, {3096, 1698},
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    75
              {2584, 655},  {2047, 1534}, {115, 179}, {2162, 1916}}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    76
cyborgsDir = {"Left", "Left", "Left", "Left", "Left", "Left", "Right", "Left"}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    77
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    78
crateConsts = {}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    79
reactions = {}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    80
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    81
enemyPos = {4078, 195}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    82
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    83
-----------------------------Variables---------------------------------
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    84
natives = {}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    85
origNatives = {}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    86
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    87
cyborgs = {}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    88
cyborg = nil
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    89
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    90
gearDead = {}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    91
hedgeHidden = {}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    92
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    93
scene = 0
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    94
enemyFled = "0"
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    95
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    96
deployedLeader = "0"
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    97
princessLeader = "0"
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    98
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    99
startAnim = {}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   100
fleeAnim = {}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   101
finalAnim = {}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   102
leaderDeadAnim = {}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   103
-----------------------------Animations--------------------------------
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   104
function EmitDenseClouds(dir)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   105
  local dif
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   106
  if dir == "Left" then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   107
    dif = 10
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   108
  else
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   109
    dif = -10
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   110
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   111
  if dir == nil then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   112
    dx, dy = GetGearVelocity(dense)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   113
    if dx < 0 then 
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   114
      dif = 10
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   115
    else 
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   116
      dif = -10
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   117
    end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   118
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   119
  AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + dif, GetY(dense) + dif, vgtSteam, 0, true}, swh = false})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   120
  AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + dif, GetY(dense) + dif, vgtSteam, 0, true}, swh = false})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   121
  AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + dif, GetY(dense) + dif, vgtSteam, 0, true}, swh = false})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   122
  AnimInsertStepNext({func = AnimWait, args = {dense, 800}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   123
  AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + dif, GetY(dense) + dif, vgtSteam, 0, true}, swh = false})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   124
  AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + dif, GetY(dense) + dif, vgtSteam, 0, true}, swh = false})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   125
  AnimInsertStepNext({func = AnimWait, args = {dense, 800}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   126
  AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + dif, GetY(dense) + dif, vgtSteam, 0, true}, swh = false})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   127
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   128
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   129
function AnimationSetup()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   130
  table.insert(startAnim, {func = AnimWait, args = {enemy, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   131
  table.insert(startAnim, {func = AnimCaption, swh = false, args = {natives[1], "The team continued their quest of finding the rest of the tribe.", 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   132
  table.insert(startAnim, {func = AnimCaption, swh = false, args = {natives[1], "They stumbled upon a pile of weapons, they seemed to be getting closer.", 4500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   133
  if scene == denseScene then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   134
    if m5DeployedNum == denseNum then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   135
      deployedLeader = "1"
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   136
      SetupDenseAnimDeployed()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   137
    else
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   138
      SetupDenseAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   139
    end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   140
  elseif scene == waterScene then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   141
    if m5DeployedNum == waterNum then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   142
      deployedLeader = "1"
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   143
      SetupWaterAnimDeployed()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   144
    else
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   145
      SetupWaterAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   146
    end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   147
  elseif scene == princessScene then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   148
    princessLeader = "1"
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   149
    SetupPrincessAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   150
  else
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   151
    SetupCyborgAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   152
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   153
7454
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   154
  AddSkipFunction(startAnim, SkipAnim, {startAnim})
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   155
  AddSkipFunction(fleeAnim, SkipAnim, {fleeAnim})
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   156
  AddSkipFunction(leaderDeadAnim, SkipAnim, {leaderDeadAnim})
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   157
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   158
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   159
function SetupLeaderDeadAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   160
  local gear = nil
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   161
  if CheckCyborgsDead() then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   162
    return
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   163
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   164
  for i = nativesLeft, 1, -1 do
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   165
    if band(GetState(natives[i]), gstDrowning) == 0 then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   166
      gear = natives[i]
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   167
    end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   168
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   169
  if gear == nil then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   170
    return
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   171
  end
7475
7b18314bed2b Added a FollowGear to the leaderDead animation in mission 9
belphegorr <szabibibi@gmail.com>
parents: 7454
diff changeset
   172
  table.insert(leaderDeadAnim, {func = AnimFollowGear, args = {gear}})
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   173
  table.insert(leaderDeadAnim, {func = AnimSay, args = {gear, "That traitor won't be killing us anymore!", SAY_THINK, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   174
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   175
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   176
function SetupDenseAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   177
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Yo, dude! Get away from our weapons!", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   178
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Dense Cloud?! What are you doing?!", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   179
  table.insert(startAnim, {func = AnimSay, args = {enemy, "What does it look like?", SAY_SHOUT, 3500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   180
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Are you helping the aliens?!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   181
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Lolz, I love the look on your face!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   182
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Did you really think that I'd changed?", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   183
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "But why did you betray us?!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   184
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Yo, the aliens gave me plants...medicinal plants...lots of it.", SAY_SHOUT, 6500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   185
  table.insert(startAnim, {func = AnimSay, args = {enemy, "You never give me plants!", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   186
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Besides, why would I choose certain death?", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   187
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Do you have any idea how bad an exploding arrow hurts?", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   188
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Dude, it's unbearable!", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   189
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "You're a coward!", SAY_SHOUT, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   190
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "You endangered your whole tribe, you bastard!", SAY_SHOUT, 7000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   191
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Yeah, well, for some dude to be happy, some other dude has to suffer.", SAY_SHOUT, 11000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   192
  table.insert(startAnim, {func = AnimSay, args = {enemy, "That's just the way it works, you know.", SAY_SHOUT, 6500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   193
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "You're some piece of hypocrite junkie!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   194
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Why do you always have to call me names?", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   195
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, EmitDenseClouds, {}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   196
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Make fun of me when I fart...", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   197
  table.insert(startAnim, {func = AnimSay, args = {enemy, "IT'S A SERIOUS MEDICAL CONDITION!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   198
  table.insert(startAnim, {func = AnimSay, args = {enemy, "You don't deserve my sacrifice!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   199
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "I won't let you kill the tribe!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   200
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   201
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Dude, this is boring!", SAY_SAY, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   202
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "I ain't gonna sit around no more!", SAY_SAY, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   203
  table.insert(fleeAnim, {func = AnimTurn, args = {enemy, "Right"}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   204
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Yo, escort my buttocks!", SAY_SHOUT, 3500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   205
  table.insert(fleeAnim, {func = AnimSwitchHog, args = {natives[1]}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   206
  table.insert(fleeAnim, {func = AnimWait, args = {natives[1], 1}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   207
  table.insert(fleeAnim, {func = AnimDisappear, swh = false, args = {enemy, 0, 0}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   208
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   209
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   210
function SetupDenseAnimDeployed()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   211
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, EmitDenseClouds, {}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   212
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[3], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   213
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[2], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   214
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[1], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   215
  table.insert(startAnim, {func = AnimSay, args = {enemy, "I'm afraid I can't let you proceed!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   216
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "???", SAY_THINK, 0}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   217
  table.insert(startAnim, {func = AnimSay, args = {natives[2], "???", SAY_THINK, 0}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   218
  table.insert(startAnim, {func = AnimSay, args = {natives[3], "???", SAY_THINK, 1000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   219
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Dude, wow, you're so cute!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   220
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Did you really think I'd change?", SAY_SHOUT, 4500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   221
  table.insert(startAnim, {func = AnimSay, args = {enemy, "I'm still with the aliens.", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   222
  table.insert(startAnim, {func = AnimTeleportGear, args = {enemy, unpack(enemyPos)}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   223
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[1], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   224
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "WHAT?!", SAY_THINK, 1000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   225
  table.insert(startAnim, {func = AnimSay, args = {natives[3], "But you saved me!", SAY_THINK, 2500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   226
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Haha, that was just a coincidence!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   227
  table.insert(startAnim, {func = AnimSay, args = {enemy, "I was heading home, you see!", SAY_SHOUT, 3500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   228
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "We were your home! Your family...", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   229
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "How could you betray us?!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   230
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Yo, the aliens gave me plants...medicinal plants...lots of it.", SAY_SHOUT, 6500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   231
  table.insert(startAnim, {func = AnimSay, args = {enemy, "You never give me plants!", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   232
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Besides, why would I choose certain death?", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   233
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Do you have any idea how bad an exploding arrow hurts?", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   234
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Dude, it's unbearable!", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   235
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "You're a coward!", SAY_SHOUT, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   236
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "You endangered your whole tribe, you bastard!", SAY_SHOUT, 7000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   237
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Yeah, well, for some dude to be happy, some other dude has to suffer.", SAY_SHOUT, 11000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   238
  table.insert(startAnim, {func = AnimSay, args = {enemy, "That's just the way it works, you know.", SAY_SHOUT, 6500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   239
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "You're some piece of hypocrite junkie!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   240
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Why do you always have to call me names?", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   241
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, EmitDenseClouds, {}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   242
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Make fun of me when I fart...", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   243
  table.insert(startAnim, {func = AnimSay, args = {enemy, "IT'S A SERIOUS MEDICAL CONDITION!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   244
  table.insert(startAnim, {func = AnimSay, args = {enemy, "You don't deserve my sacrifice!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   245
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "I won't let you kill the tribe!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   246
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   247
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Dude, this is boring!", SAY_SAY, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   248
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "I ain't gonna sit around no more!", SAY_SAY, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   249
  table.insert(fleeAnim, {func = AnimTurn, args = {enemy, "Right"}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   250
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Yo, escort my buttocks!", SAY_SHOUT, 3500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   251
  table.insert(fleeAnim, {func = AnimSwitchHog, args = {natives[1]}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   252
  table.insert(fleeAnim, {func = AnimWait, args = {natives[1], 1}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   253
  table.insert(fleeAnim, {func = AnimDisappear, swh = false, args = {enemy, 0, 0}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   254
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   255
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   256
function SetupWaterAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   257
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Stay there, comrades!", SAY_SHOUT, 2500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   258
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Come closer and die...burp!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   259
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Fiery Water?! Are you drunk again?", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   260
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Drunk with power, perhappss!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   261
  table.insert(startAnim, {func = AnimSay, args = {enemy, "The power of love! No, wait, the power of the aliens!", SAY_SHOUT, 7500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   262
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "We trusted you, you fool!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   263
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Why do you keep betraying us?", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   264
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Why, why, why, why!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   265
  table.insert(startAnim, {func = AnimSay, args = {enemy, "I grew sick of the oppression! I brock free!", SAY_SHOUT, 6500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   266
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "What oppression?! You were the most unoppressed member of the tribe!", SAY_SHOUT, 10000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   267
  table.insert(startAnim, {func = AnimSay, args = {enemy, "The opression of the elders, of course!", SAY_SHOUT, 6500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   268
  if m5DeployedNum == leaksNum then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   269
    table.insert(startAnim, {func = AnimSay, args = {enemy, "You should know this more than anyone, Leaks!", SAY_SHOUT, 7000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   270
  elseif m5LeaksDead == 1 then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   271
    table.insert(startAnim, {func = AnimSay, args = {enemy, "Just look at Leaks, may he rest in peace!", SAY_SHOUT, 6500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   272
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   273
  table.insert(startAnim, {func = AnimSay, args = {enemy, "We, the youth, have to constantly prove our value...", SAY_SHOUT, 7000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   274
  table.insert(startAnim, {func = AnimSay, args = {enemy, "We work and work until we sweat blood...", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   275
  table.insert(startAnim, {func = AnimSay, args = {enemy, "We risk our lives going through challenges...", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   276
  table.insert(startAnim, {func = AnimSay, args = {enemy, "All this to please our beloved 'elders'...hick...", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   277
  table.insert(startAnim, {func = AnimSay, args = {enemy, "And what do they do in the meantime? NOTHING!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   278
  table.insert(startAnim, {func = AnimSay, args = {enemy, "All they do is sit around and judge us!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   279
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "You have never worked a bit in your life!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   280
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "All *you* do is take long walks when everyone else works.", SAY_SHOUT, 9000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   281
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Anyway, the aliens accept me for who I am.", SAY_SHOUT, 7000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   282
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "We won't accept you destroying our village!", SAY_SHOUT, 7000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   283
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   284
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Argh, the borrdommm!", SAY_SAY, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   285
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "I have more important things to do!", SAY_SAY, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   286
  table.insert(fleeAnim, {func = AnimTurn, args = {enemy, "Right"}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   287
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Comrades! Sail me away!", SAY_SHOUT, 3500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   288
  table.insert(fleeAnim, {func = AnimSwitchHog, args = {natives[1]}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   289
  table.insert(fleeAnim, {func = AnimWait, args = {natives[1], 1}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   290
  table.insert(fleeAnim, {func = AnimDisappear, swh = false, args = {enemy, 0, 0}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   291
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   292
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   293
function SetupWaterAnimDeployed()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   294
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[3], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   295
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[2], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   296
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[1], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   297
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Stop, comrades!", SAY_SHOUT, 2500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   298
  table.insert(startAnim, {func = AnimSay, args = {enemy, "I cannot let you go any farther...burp!", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   299
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Fiery Water?! Are you drunk again?", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   300
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Drunk with power, perhappss!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   301
  table.insert(startAnim, {func = AnimSay, args = {enemy, "The power of love! No, wait, the power of the aliens!", SAY_SHOUT, 7500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   302
  table.insert(startAnim, {func = AnimTeleportGear, args = {enemy, unpack(enemyPos)}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   303
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[3], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   304
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[2], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   305
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[1], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   306
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "We trusted you, you fool!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   307
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Why do you keep betraying us?", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   308
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Why, why, why, why!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   309
  table.insert(startAnim, {func = AnimSay, args = {enemy, "I grew sick of the oppression! I brock free!", SAY_SHOUT, 6500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   310
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "What oppression?! You were the most unoppressed member of the tribe!", SAY_SHOUT, 10000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   311
  table.insert(startAnim, {func = AnimSay, args = {enemy, "The opression of the elders, of course!", SAY_SHOUT, 6500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   312
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Just look at Leaks, may he rest in peace!", SAY_SHOUT, 6500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   313
  table.insert(startAnim, {func = AnimSay, args = {enemy, "We, the youth, have to constantly prove our value...", SAY_SHOUT, 7000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   314
  table.insert(startAnim, {func = AnimSay, args = {enemy, "We work and work until we sweat blood...", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   315
  table.insert(startAnim, {func = AnimSay, args = {enemy, "We risk our lives going through challenges...", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   316
  table.insert(startAnim, {func = AnimSay, args = {enemy, "All this to please our beloved 'elders'...hick...", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   317
  table.insert(startAnim, {func = AnimSay, args = {enemy, "And what do they do in the meantime? NOTHING!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   318
  table.insert(startAnim, {func = AnimSay, args = {enemy, "All they do is sit around and judge us!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   319
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "You have never worked a bit in your life!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   320
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "All *you* do is take long walks when everyone else works.", SAY_SHOUT, 9000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   321
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Anyway, the aliens accept me for who I am.", SAY_SHOUT, 7000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   322
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "We won't accept you destroying our village!", SAY_SHOUT, 7000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   323
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   324
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Argh, the borrdommm!", SAY_SAY, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   325
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "I have more important things to do!", SAY_SAY, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   326
  table.insert(fleeAnim, {func = AnimTurn, args = {enemy, "Right"}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   327
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Comrades! Sail me away!", SAY_SHOUT, 3500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   328
  table.insert(fleeAnim, {func = AnimSwitchHog, args = {natives[1]}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   329
  table.insert(fleeAnim, {func = AnimWait, args = {natives[1], 1}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   330
  table.insert(fleeAnim, {func = AnimDisappear, swh = false, args = {enemy, 0, 0}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   331
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   332
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   333
function SetupPrincessAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   334
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[3], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   335
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[2], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   336
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[1], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   337
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Oh, my! I forgot something!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   338
  table.insert(startAnim, {func = AnimSay, args = {enemy, "We need to go back!", SAY_SHOUT, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   339
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "What could you possibly forget in that cage?", SAY_SHOUT, 7000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   340
  table.insert(startAnim, {func = AnimSay, args = {enemy, "I don't like your tone! You're hurting me!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   341
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "I'm terribly sorry!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   342
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "What is it that you forgot?", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   343
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Uhmm, it's...uhm...my ring!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   344
  table.insert(startAnim, {func = AnimSay, args = {enemy, "It's precious to me!", SAY_SHOUT, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   345
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "We don't have time for that now!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   346
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "We have to find our folk!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   347
  table.insert(startAnim, {func = AnimSay, args = {enemy, "But I want my sandals!", SAY_SHOUT, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   348
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Sandals?! I thought you left your ring!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   349
  table.insert(startAnim, {func = AnimSay, args = {enemy, "All right, you got me...", SAY_SHOUT, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   350
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Got you? You're acting weird...", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   351
  table.insert(startAnim, {func = AnimSay, args = {enemy, "You just can't let it go, can you!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   352
  table.insert(startAnim, {func = AnimSay, args = {enemy, "All right, I'll admit it!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   353
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Admit what?", SAY_SHOUT, 2000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   354
  table.insert(startAnim, {func = AnimSay, args = {enemy, "You give me no choice!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   355
  table.insert(startAnim, {func = AnimSay, args = {enemy, "I can't let you go further because...", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   356
  table.insert(startAnim, {func = AnimSay, args = {enemy, "I'm the spy! I've been giving you out!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   357
  table.insert(startAnim, {func = AnimTeleportGear, args = {enemy, unpack(enemyPos)}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   358
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[3], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   359
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[2], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   360
  table.insert(startAnim, {func = AnimCustomFunction, args = {enemy, CondNeedToTurn, {natives[1], enemy}}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   361
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "But...they kidnapped you!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   362
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Oh, that. We were just having fun!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   363
  table.insert(startAnim, {func = AnimSay, args = {enemy, "It's an ancient ritual of theirs.", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   364
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Why did you do this?", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   365
  if m5ChiefDead == 1 then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   366
    table.insert(startAnim, {func = AnimSay, args = {natives[1], "Why did you kill your father?", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   367
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   368
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Do you have any idea what it's like in the village for a woman?", SAY_SHOUT, 10000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   369
  table.insert(startAnim, {func = AnimSay, args = {enemy, "How would you like being discriminated against?", SAY_SHOUT, 7000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   370
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Not being able to fight, hunt...", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   371
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Gathering fruits all day long...", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   372
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Doing stuff a monkey could do...", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   373
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Always being considered weak and fragile...", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   374
  if m5DeployedNum == girlNum then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   375
    table.insert(startAnim, {func = AnimSay, args = {natives[1], "In case you haven't noticed, I'm a woman, too!", SAY_SHOUT, 8000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   376
    table.insert(startAnim, {func = AnimSay, args = {enemy, "Yes, but you're...different!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   377
    table.insert(startAnim, {func = AnimSay, args = {natives[1], "Of course I am...", SAY_SHOUT, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   378
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   379
  table.insert(startAnim, {func = AnimSay, args = {enemy, "The aliens respect me, even worship me!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   380
  table.insert(startAnim, {func = AnimSay, args = {enemy, "I'm living a dream!", SAY_SHOUT, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   381
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Well, you're about to wake up!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   382
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   383
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Hmm...it's going slower than expected.", SAY_SAY, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   384
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "I am going to leave the kids play by themselves.", SAY_SAY, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   385
  table.insert(fleeAnim, {func = AnimTurn, args = {enemy, "Right"}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   386
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Alien! I wish to be moved!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   387
  table.insert(fleeAnim, {func = AnimSwitchHog, args = {natives[1]}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   388
  table.insert(fleeAnim, {func = AnimWait, args = {natives[1], 1}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   389
  table.insert(fleeAnim, {func = AnimDisappear, swh = false, args = {enemy, 0, 0}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   390
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   391
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   392
function SetupCyborgAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   393
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Stop right there, puny worms!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   394
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Stay away from our weapons!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   395
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "We come in peace! Just let our friends go!", SAY_SHOUT, 5500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   396
  table.insert(startAnim, {func = AnimSay, args = {enemy, "I'm afraid we cannot afford that...", SAY_SHOUT, 4500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   397
  table.insert(startAnim, {func = AnimSay, args = {enemy, "You see, hedgehog spikes are very very valuable.", SAY_SHOUT, 6500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   398
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Very valuable, haha!", SAY_SHOUT, 3500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   399
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Don't you dare harm our tribe!", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   400
  table.insert(startAnim, {func = AnimSay, args = {enemy, "It's a shame, really!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   401
  table.insert(startAnim, {func = AnimSay, args = {enemy, "I regret to end your little odyssey.", SAY_SHOUT, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   402
  table.insert(startAnim, {func = AnimSay, args = {enemy, "It was fun to watch...", SAY_SHOUT, 3500}})
7675
58620e9e5ed5 Fixed grammar/vocabulary and improved balance
belphegorr <szabibibi@gmail.com>
parents: 7527
diff changeset
   403
  table.insert(startAnim, {func = AnimSay, args = {enemy, "The way you handled your little internal conflicts...", SAY_SHOUT, 6500}})
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   404
  table.insert(startAnim, {func = AnimSay, args = {enemy, "Did you really think that we needed the help of one of you?", SAY_SHOUT, 7500}})
7527
35d154745d7a All missions: switched blood needers with meatbags in dialogues
belphegorr <szabibibi@gmail.com>
parents: 7512
diff changeset
   405
  table.insert(startAnim, {func = AnimSay, args = {enemy, "You should have known that we don't rely on meatbags!", SAY_SHOUT, 7500}})
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   406
  table.insert(startAnim, {func = AnimSay, args = {enemy, "It was fun to watch though...", SAY_SHOUT, 3500}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   407
  if m5Choice == choiceEliminate then
7675
58620e9e5ed5 Fixed grammar/vocabulary and improved balance
belphegorr <szabibibi@gmail.com>
parents: 7527
diff changeset
   408
    table.insert(startAnim, {func = AnimSay, args = {enemy, "Heck, you even executed one of your own!", SAY_SHOUT, 6000}})
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   409
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   410
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "It was all a trick?!", SAY_SHOUT, 3000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   411
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "Some sick game of yours?!", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   412
  table.insert(startAnim, {func = AnimSay, args = {natives[1], "We won't let you hurt any more of us!", SAY_SHOUT, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   413
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   414
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Entered boredom phase! Discrepancies detected...", SAY_SAY, 5000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   415
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Initiate escape wish!", SAY_SAY, 6000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   416
  table.insert(fleeAnim, {func = AnimTurn, args = {enemy, "Right"}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   417
  table.insert(fleeAnim, {func = AnimSay, args = {enemy, "Running displacement algorithm...", SAY_SHOUT, 4000}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   418
  table.insert(fleeAnim, {func = AnimSwitchHog, args = {natives[1]}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   419
  table.insert(fleeAnim, {func = AnimWait, args = {natives[1], 1}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   420
  table.insert(fleeAnim, {func = AnimDisappear, swh = false, args = {enemy, 0, 0}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   421
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   422
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   423
function SetupFinalAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   424
  local found = 0
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   425
  local gears = {}
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   426
  for i = nativesLeft, 1, -1 do
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   427
    if band(GetState(natives[i]), gstDrowning) == 0 then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   428
      found = found + 1
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   429
      gears[found] = natives[i]
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   430
    end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   431
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   432
  if found == 0 then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   433
    return
7454
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   434
  else
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   435
    for i = 1, found do
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   436
      table.insert(finalAnim, {func = AnimCustomFunction, args = {gears[1], CondNeedToTurn, {cyborg, gears[i]}}})
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   437
    end
7527
35d154745d7a All missions: switched blood needers with meatbags in dialogues
belphegorr <szabibibi@gmail.com>
parents: 7512
diff changeset
   438
    table.insert(finalAnim, {func = AnimSay, args = {cyborg, "Nice work, meatbags!", SAY_SAY, 3000}})
7454
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   439
    table.insert(finalAnim, {func = AnimSay, args = {cyborg, "You're on your way to freeing your tribe!", SAY_SAY, 5500}})
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   440
    table.insert(finalAnim, {func = AnimSay, args = {gears[1], "Do you know where they are?", SAY_SAY, 4000}})
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   441
    table.insert(finalAnim, {func = AnimSay, args = {gears[found], "We need to hurry!", SAY_SAY, 3000}})
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   442
    table.insert(finalAnim, {func = AnimSay, args = {cyborg, "Haha! Come!", SAY_SAY, 2000}})
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   443
    table.insert(finalAnim, {func = AnimJump, args = {cyborg, "high"}})
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   444
    table.insert(finalAnim, {func = AnimDisappear, args = {cyborg, GetGearPosition(cyborg)}})
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   445
    for i = 1, found do
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   446
      table.insert(finalAnim, {func = HideHedge, swh = false, args = {gears[i]}})
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   447
    end
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   448
    table.insert(finalAnim, {func = SetState, swh = false, args = {cyborg, gstInvisible}})
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   449
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   450
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   451
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   452
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   453
--------------------------Anim skip functions--------------------------
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   454
function AfterStartAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   455
  SetGearMessage(natives[1], 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   456
  ShowMission("Long Live The Queen", "Closing in", "Defeat the enemy!|The leader seems scared, he will probably flee.", 1, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   457
  SetHealth(SpawnHealthCrate(2207, 44), 25)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   458
  SetHealth(SpawnHealthCrate(519, 1519), 25)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   459
  SetHealth(SpawnHealthCrate(826, 895), 25)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   460
  SpawnUtilityCrate(701, 1046, amGirder, 3)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   461
  TurnTimeLeft = TurnTime
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   462
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   463
7454
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   464
function SkipAnim(anim)
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   465
  if anim == startAnim then
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   466
    SetGearPosition(enemy, unpack(enemyPos))
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   467
  end
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   468
  if GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   469
    TurnTimeLeft = 0
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   470
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   471
  AnimWait(enemy, 1)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   472
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   473
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   474
function AfterFleeAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   475
  SetHealth(SpawnHealthCrate(130, 455), 25)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   476
  SetHealth(SpawnHealthCrate(2087, 50), 25)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   477
  SetHealth(SpawnHealthCrate(2143, 54), 25)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   478
  SetHealth(SpawnHealthCrate(70, 1308), 25)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   479
  SetGearMessage(CurrentHedgehog, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   480
  HideHedge(enemy)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   481
  ShowMission("Long Live The Queen", "Coward", "The leader escaped. Defeat the rest of the aliens!", 1, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   482
  TurnTimeLeft = TurnTime
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   483
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   484
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   485
function AfterLeaderDeadAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   486
  SetHealth(SpawnHealthCrate(130, 455), 25)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   487
  SetHealth(SpawnHealthCrate(2087, 50), 25)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   488
  SetHealth(SpawnHealthCrate(2143, 54), 25)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   489
  SetHealth(SpawnHealthCrate(70, 1308), 25)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   490
  ShowMission("Long Live The Queen", "Bullseye", "Good Job! Defeat the rest of the aliens!", 1, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   491
  TurnTimeLeft = 0
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   492
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   493
-----------------------------Events------------------------------------
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   494
function CheckTurnsOver()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   495
  return TotalRounds > 6
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   496
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   497
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   498
function DoTurnsOver()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   499
  SetGearMessage(CurrentHedgehog, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   500
  enemyFled = "1"
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   501
  AddAnim(fleeAnim)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   502
  AddFunction({func = AfterFleeAnim, args = {}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   503
  RemoveEventFunc(CheckGearDead, {enemy})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   504
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   505
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   506
function CheckNativesDead()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   507
  return nativesLeft == 0
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   508
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   509
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   510
function DoNativesDead()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   511
  RemoveEventFunc(CheckTurnsOver)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   512
  RemoveEventFunc(CheckGearDead)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   513
  RemoveEventFunc(CheckCyborgsDead)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   514
  AddCaption("...and the cyborgs took over the island.")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   515
  TurnTimeLeft = 0
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   516
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   517
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   518
function CheckCyborgsDead()
7454
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   519
  return (cyborgsLeft == 0 and (gearDead[enemy] == true or enemyFled == "1"))
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   520
end
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   521
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   522
function KillEnemy()
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   523
  if enemyFled == "1" then
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   524
    ParseCommand("teamgone " .. loc("Leaderbot"))
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   525
  end
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   526
  ParseCommand("teamgone " .. loc("011101001"))
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   527
  TurnTimeLeft = 0
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   528
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   529
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   530
function DoCyborgsDead()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   531
  SaveCampaignVariables()
7454
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   532
  RestoreHedge(cyborg)
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   533
  PlaceGirder(3292, 922, 4)
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   534
  SetGearPosition(cyborg, 3290, 902)
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   535
  SetupFinalAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   536
  AddAnim(finalAnim)
7454
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   537
  AddFunction({func = KillEnemy, args = {}})
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   538
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   539
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   540
function DoLeaderDead()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   541
  leaderDead = true
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   542
  SetGearMessage(CurrentHedgehog, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   543
  SetupLeaderDeadAnim()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   544
  AddAnim(leaderDeadAnim)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   545
  AddFunction({func = AfterLeaderDeadAnim, args = {}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   546
  RemoveEventFunc(CheckTurnsOver)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   547
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   548
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   549
function CheckGearsDead(gearList)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   550
  for i = 1, # gearList do
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   551
    if gearDead[gearList[i]] ~= true then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   552
      return false
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   553
    end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   554
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   555
  return true
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   556
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   557
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   558
function CheckGearDead(gear)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   559
  return gearDead[gear]
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   560
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   561
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   562
-----------------------------Misc--------------------------------------
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   563
function HideHedge(hedge)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   564
  if hedgeHidden[hedge] ~= true then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   565
    HideHog(hedge)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   566
    hedgeHidden[hedge] = true
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   567
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   568
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   569
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   570
function RestoreHedge(hedge)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   571
  if hedgeHidden[hedge] == true then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   572
    RestoreHog(hedge)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   573
    hedgeHidden[hedge] = false
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   574
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   575
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   576
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   577
function GetVariables()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   578
  m5DeployedNum = tonumber(GetCampaignVar("M5DeployedNum"))
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   579
  m2Choice = tonumber(GetCampaignVar("M2Choice"))
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   580
  m5Choice = tonumber(GetCampaignVar("M5Choice"))
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   581
  m2DenseDead = tonumber(GetCampaignVar("M2DenseDead"))
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   582
  m4DenseDead = tonumber(GetCampaignVar("M4DenseDead"))
7451
d2dce3b530f8 Fixed variable loading errors and added saving of "M8Scene" in mission 8
belphegorr <szabibibi@gmail.com>
parents: 7448
diff changeset
   583
  m5DenseDead = tonumber(GetCampaignVar("M5DenseDead"))
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   584
  m4LeaksDead = tonumber(GetCampaignVar("M4LeaksDead"))
7451
d2dce3b530f8 Fixed variable loading errors and added saving of "M8Scene" in mission 8
belphegorr <szabibibi@gmail.com>
parents: 7448
diff changeset
   585
  m5LeaksDead = tonumber(GetCampaignVar("M5LeaksDead"))
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   586
  m4ChiefDead = tonumber(GetCampaignVar("M4ChiefDead"))
7451
d2dce3b530f8 Fixed variable loading errors and added saving of "M8Scene" in mission 8
belphegorr <szabibibi@gmail.com>
parents: 7448
diff changeset
   587
  m5ChiefDead = tonumber(GetCampaignVar("M5ChiefDead"))
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   588
  m4WaterDead = tonumber(GetCampaignVar("M4WaterDead"))
7451
d2dce3b530f8 Fixed variable loading errors and added saving of "M8Scene" in mission 8
belphegorr <szabibibi@gmail.com>
parents: 7448
diff changeset
   589
  m5WaterDead = tonumber(GetCampaignVar("M5WaterDead"))
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   590
  m4BuffaloDead = tonumber(GetCampaignVar("M4BuffaloDead"))
7451
d2dce3b530f8 Fixed variable loading errors and added saving of "M8Scene" in mission 8
belphegorr <szabibibi@gmail.com>
parents: 7448
diff changeset
   591
  m5BuffaloDead = tonumber(GetCampaignVar("M5BuffaloDead"))
d2dce3b530f8 Fixed variable loading errors and added saving of "M8Scene" in mission 8
belphegorr <szabibibi@gmail.com>
parents: 7448
diff changeset
   592
  m5WiseDead = tonumber(GetCampaignVar("M5WiseDead"))
d2dce3b530f8 Fixed variable loading errors and added saving of "M8Scene" in mission 8
belphegorr <szabibibi@gmail.com>
parents: 7448
diff changeset
   593
  m5GirlDead = tonumber(GetCampaignVar("M5GirlDead"))
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   594
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   595
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   596
function SaveCampaignVariables()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   597
  for i = 1, 4 do
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   598
    if gearDead[origNatives[i]] ~= true then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   599
      SaveCampaignVar(nativeSaveNames[i], "0")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   600
    else
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   601
      SaveCampaignVar(nativeSaveNames[i], "1")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   602
    end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   603
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   604
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   605
  SaveCampaignVar("M8DeployedLeader", deployedLeader)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   606
  SaveCampaignVar("M8PrincessLeader", princessLeader)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   607
  SaveCampaignVar("M8EnemyFled", enemyFled)
7451
d2dce3b530f8 Fixed variable loading errors and added saving of "M8Scene" in mission 8
belphegorr <szabibibi@gmail.com>
parents: 7448
diff changeset
   608
  SaveCampaignVar("M8Scene", "" .. scene)
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   609
  SaveCampaignVar("Progress", "8")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   610
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   611
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   612
function SetupPlace()
7454
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   613
  HideHedge(cyborg)
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   614
  SetHogHat(natives[1], nativeHats[m5DeployedNum])
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   615
  SetHogName(natives[1], nativeNames[m5DeployedNum])
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   616
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   617
  if m5DeployedNum == denseNum then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   618
    dense = natives[1]
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   619
  else
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   620
    dense = enemy
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   621
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   622
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   623
  if m2Choice == choiceAccepted and m5Choice ~= choiceEliminate then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   624
    scene = denseScene
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   625
    SetHogHat(enemy, nativeHats[denseNum])
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   626
    SetHogName(enemy, nativeNames[denseNum])
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   627
    dense = enemy
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   628
  elseif m2Choice == choiceAccepted then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   629
    scene = cyborgScene
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   630
    SetHogHat(enemy, "cyborg2")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   631
    SetHogName(enemy, loc("Nancy Screw"))
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   632
  elseif m5Choice == choiceEliminate then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   633
    scene = princessScene
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   634
    SetHogHat(enemy, "tiara")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   635
    SetHogName(enemy, loc("Fell From Heaven"))
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   636
  else
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   637
    scene = waterScene
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   638
    SetHogHat(enemy, nativeHats[waterNum])
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   639
    SetHogName(enemy, nativeNames[waterNum])
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   640
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   641
  for i = 1, 4 do 
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   642
    if GetHogName(natives[i]) == GetHogName(enemy) then
7448
d0521a3a4358 Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents: 7443
diff changeset
   643
      AnimSetGearPosition(enemy, GetGearPosition(natives[i]))
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   644
      DeleteGear(natives[i])
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   645
      DeleteGear(cyborgs[cyborgsLeft])
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   646
    end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   647
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   648
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   649
  SpawnAmmoCrate(34, 395, amBee, 2)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   650
  SpawnAmmoCrate(33, 374, amRCPlane, 1)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   651
  SpawnAmmoCrate(74, 393, amAirAttack, 3)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   652
  SpawnAmmoCrate(1313, 1481, amBazooka, 8)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   653
  SpawnAmmoCrate(80, 360, amSniperRifle, 4)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   654
  SpawnAmmoCrate(1037, 1494, amShotgun, 7)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   655
  SpawnAmmoCrate(1037, 1472, amMolotov, 3)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   656
  SpawnAmmoCrate(1146, 1503, amMortar, 8)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   657
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   658
  SpawnUtilityCrate(1147, 1431, amPortalGun, 2)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   659
  SpawnUtilityCrate(1219, 1542, amRope, 5)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   660
  SpawnUtilityCrate(1259, 1501, amJetpack, 2)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   661
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   662
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   663
function SetupEvents()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   664
  AddNewEvent(CheckNativesDead, {}, DoNativesDead, {}, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   665
  AddNewEvent(CheckGearDead, {enemy}, DoLeaderDead, {}, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   666
  AddNewEvent(CheckTurnsOver, {}, DoTurnsOver, {}, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   667
  AddNewEvent(CheckCyborgsDead, {}, DoCyborgsDead, {}, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   668
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   669
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   670
function SetupAmmo()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   671
  AddAmmo(natives[1], amPickHammer, 2)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   672
  AddAmmo(natives[1], amBazooka, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   673
  AddAmmo(natives[1], amGrenade, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   674
  AddAmmo(natives[1], amShotgun, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   675
  AddAmmo(natives[1], amAirStrike, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   676
  AddAmmo(natives[1], amMolotov, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   677
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   678
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   679
function AddHogs()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   680
	AddTeam(loc("Natives"), 29439, "Bone", "Island", "HillBilly", "cm_birdy")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   681
  for i = 7, 9 do
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   682
    natives[i-6] = AddHog(nativeNames[i], 0, 100, nativeHats[i])
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   683
    origNatives[i-6] = natives[i-6]
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   684
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   685
  natives[4] = AddHog(loc("Fell From Heaven"), 0, 133, "tiara")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   686
  origNatives[4] = natives[4]
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   687
  nativesLeft = nativesNum
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   688
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   689
  AddTeam(loc("Beep Loopers"), 14483456, "ring", "UFO", "Robot", "cm_star")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   690
  for i = 1, cyborgsTeamNum[1] do
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   691
    cyborgs[i] = AddHog(cyborgNames[i], cyborgsDif[i], cyborgsHealth[i], "cyborg2")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   692
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   693
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   694
  AddTeam(loc("Corporationals"), 14483456, "ring", "UFO", "Robot", "cm_star")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   695
  for i = cyborgsTeamNum[1] + 1, cyborgsNum do
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   696
    cyborgs[i] = AddHog(cyborgNames[i], cyborgsDif[i], cyborgsHealth[i], "cyborg2")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   697
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   698
  cyborgsLeft = cyborgsTeamNum[1] + cyborgsTeamNum[2]
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   699
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   700
  AddTeam(loc("Leaderbot"), 14483456, "ring", "UFO", "Robot", "cm_star")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   701
  enemy = AddHog(loc("Name"), 2, 200, "cyborg1")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   702
7454
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   703
  AddTeam(loc("011101001"), 14483456, "ring", "UFO", "Robot", "cm_star")
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   704
  cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1")
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   705
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   706
  SetGearPosition(cyborg, 0, 0)
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   707
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   708
  for i = 1, nativesNum do
7448
d0521a3a4358 Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents: 7443
diff changeset
   709
    AnimSetGearPosition(natives[i], unpack(nativePos[i]))
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   710
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   711
7448
d0521a3a4358 Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents: 7443
diff changeset
   712
  AnimSetGearPosition(enemy, unpack(enemyPos))
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   713
  AnimTurn(enemy, "Left")
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   714
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   715
  for i = 1, cyborgsNum do
7448
d0521a3a4358 Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents: 7443
diff changeset
   716
    AnimSetGearPosition(cyborgs[i], unpack(cyborgsPos[i]))
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   717
    AnimTurn(cyborgs[i], cyborgsDir[i])
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   718
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   719
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   720
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   721
function CondNeedToTurn(hog1, hog2)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   722
  xl, xd = GetX(hog1), GetX(hog2)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   723
  if xl > xd then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   724
    AnimInsertStepNext({func = AnimTurn, args = {hog1, "Left"}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   725
    AnimInsertStepNext({func = AnimTurn, args = {hog2, "Right"}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   726
  elseif xl < xd then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   727
    AnimInsertStepNext({func = AnimTurn, args = {hog2, "Left"}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   728
    AnimInsertStepNext({func = AnimTurn, args = {hog1, "Right"}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   729
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   730
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   731
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   732
-----------------------------Main Functions----------------------------
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   733
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   734
function onGameInit()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   735
	Seed = 0
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   736
	GameFlags = gfDisableGirders + gfDisableLandObjects
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   737
	TurnTime = 60000 
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   738
	CaseFreq = 0
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   739
	MinesNum = 0
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   740
	MinesTime = 3000
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   741
	Explosives = 0
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   742
	Delay = 10 
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   743
  MapGen = 2
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   744
	Theme = "Hell"
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   745
  SuddenDeathTurns = 20
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   746
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   747
	for i = 1, #map do
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   748
		ParseCommand('draw ' .. map[i])
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   749
	end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   750
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   751
  GetVariables()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   752
  AnimInit()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   753
  AddHogs()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   754
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   755
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   756
function onGameStart()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   757
  SetupAmmo()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   758
  SetupPlace()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   759
  AnimationSetup()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   760
  SetupEvents()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   761
  AddAnim(startAnim)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   762
  AddFunction({func = AfterStartAnim, args = {}})
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   763
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   764
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   765
function onGameTick()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   766
  AnimUnWait()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   767
  if ShowAnimation() == false then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   768
    return
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   769
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   770
  ExecuteAfterAnimations()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   771
  CheckEvents()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   772
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   773
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   774
function onGearDelete(gear)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   775
  local toRemove = nil
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   776
  gearDead[gear] = true
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   777
  if GetGearType(gear) == gtHedgehog then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   778
    if GetHogTeamName(gear) == loc("Beep Loopers") or GetHogTeamName(gear) == loc("Corporationals") then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   779
      cyborgsLeft = cyborgsLeft - 1
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   780
    elseif GetHogTeamName(gear) == loc("Natives") then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   781
      for i = 1, nativesLeft do
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   782
        if natives[i] == gear then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   783
          toRemove = i
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   784
        end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   785
      end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   786
      table.remove(natives, toRemove)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   787
      nativesLeft = nativesLeft - 1
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   788
    end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   789
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   790
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   791
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   792
function onAmmoStoreInit()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   793
  SetAmmo(amBaseballBat, 9, 0, 0, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   794
  SetAmmo(amFirePunch, 9, 0, 0, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   795
  SetAmmo(amDEagle, 9, 0, 0, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   796
  SetAmmo(amSkip, 9, 0, 0, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   797
  SetAmmo(amSwitch, 9, 0, 0, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   798
  SetAmmo(amBazooka, 9, 0, 0, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   799
  SetAmmo(amGrenade, 9, 0, 0, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   800
  SetAmmo(amAirStrike, 1, 0, 0, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   801
  SetAmmo(amMolotov, 5, 0, 0, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   802
  SetAmmo(amShotgun, 9, 0, 0, 0)
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   803
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   804
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   805
function onNewTurn()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   806
  if AnimInProgress() then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   807
    TurnTimeLeft = -1
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   808
    return
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   809
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   810
  if GetHogTeamName(CurrentHedgehog) == loc("011101001") then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   811
    TurnTimeLeft = 0
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   812
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   813
end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   814
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   815
function onPrecise()
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   816
  if GameTime > 2500 and AnimInProgress() then
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   817
    SetAnimSkip(true)
7454
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   818
--  else
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   819
--    DeleteGear(cyborgs[1])
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   820
--    table.remove(cyborgs, 1)
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   821
--    if cyborgsLeft == 0 then
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   822
--      DeleteGear(enemy)
ce7d7138b436 Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents: 7451
diff changeset
   823
--    end
7443
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   824
  end
a7f861f1c3b8 Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   825
end