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