author | Wuzzy <Wuzzy2@mail.ru> |
Tue, 11 Feb 2020 01:33:31 +0100 | |
changeset 15568 | 6b9655be1e7f |
parent 15188 | 9d4a6ab60dec |
permissions | -rw-r--r-- |
12794
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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:
12785
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 |
|
14670
e7b2542c4d28
More spawn height tweaking in missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14507
diff
changeset
|
93 |
nativePos = {{1474, 1209}, {923, 990}, {564, 1120}, {128, 1315}} |
7443
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} |
13764
f5eea79da795
Fix crash when defeating all enemies in ACF8 (HideHog was called too early)
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
102 |
cyborgHidePos = {1665, 1800} |
7443
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 |
14670
e7b2542c4d28
More spawn height tweaking in missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14507
diff
changeset
|
105 |
cyborgsPos = {{2893, 1723}, {2958, 1717}, {3027, 1710}, {3096, 1704}, |
e7b2542c4d28
More spawn height tweaking in missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14507
diff
changeset
|
106 |
{2584, 665}, {2047, 1562}, {115, 179}, {2162, 1916}} |
7443
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 = {} |
12782
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
diff
changeset
|
134 |
|
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
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}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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() |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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, {}}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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 |
|
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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"}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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}}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
diff
changeset
|
251 |
table.insert(startAnim, {func = AnimSay, args = {natives[2], loc("What the?"), SAY_THINK, 0}}) |
12785
d3f41a946d4c
ACF7: Fix two weird thinking bubbles which should be speech bubbles
Wuzzy <Wuzzy2@mail.ru>
parents:
12784
diff
changeset
|
252 |
table.insert(startAnim, {func = AnimSay, args = {natives[3], loc("Why?"), SAY_SAY, 1000}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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}}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
258 |
table.insert(startAnim, {func = AnimSay, args = {natives[1], loc("What?!"), SAY_THINK, 1000}}) |
12785
d3f41a946d4c
ACF7: Fix two weird thinking bubbles which should be speech bubbles
Wuzzy <Wuzzy2@mail.ru>
parents:
12784
diff
changeset
|
259 |
table.insert(startAnim, {func = AnimSay, args = {natives[3], loc("But you saved me!"), SAY_SAY, 2500}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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, {}}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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 |
|
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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"}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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() |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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}}) |
12900
a9e4e8fa852c
Fix various typos in translatable strings
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
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 |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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 |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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 |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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 |
|
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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"}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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}}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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}}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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}}) |
12900
a9e4e8fa852c
Fix various typos in translatable strings
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
345 |
table.insert(startAnim, {func = AnimSay, args = {enemy, loc("The oppression of the elders, of course!"), SAY_SHOUT, 6500}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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 |
|
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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"}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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}}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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}}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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 |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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 |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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 |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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 |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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 |
|
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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"}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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() |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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 |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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 |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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 |
|
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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"}}) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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 |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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:
12049
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:
12049
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:
12049
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:
12049
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) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
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) |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12900
diff
changeset
|
494 |
SpawnSupplyCrate(701, 1046, amGirder, 3) |
13742
2bb7141496a9
Use SetTurnTimeLeft and SetReadyTimeLeft in all scripts
Wuzzy <Wuzzy2@mail.ru>
parents:
13583
diff
changeset
|
495 |
SetTurnTimeLeft(TurnTime) |
7443
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)) |
14686
6608a68ca0ee
ACF8: Make sure leader looks left at mission start
Wuzzy <Wuzzy2@mail.ru>
parents:
14683
diff
changeset
|
501 |
HogTurnLeft(enemy, true) |
7454
ce7d7138b436
Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents:
7451
diff
changeset
|
502 |
end |
14506
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
503 |
if GetHogTeamName(CurrentHedgehog) ~= nativesTeamName then |
12555
d51ea6ac1ca1
ACF: Replace TurnTimeLeft=0 with EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12398
diff
changeset
|
504 |
EndTurn(true) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
505 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
506 |
AnimWait(enemy, 1) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
507 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
508 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
509 |
function AfterFleeAnim() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
510 |
SetHealth(SpawnHealthCrate(130, 455), 25) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
511 |
SetHealth(SpawnHealthCrate(2087, 50), 25) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
512 |
SetHealth(SpawnHealthCrate(2143, 54), 25) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
513 |
SetHealth(SpawnHealthCrate(70, 1308), 25) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
514 |
SetGearMessage(CurrentHedgehog, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
515 |
HideHedge(enemy) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
516 |
ShowMission(loc("Long Live The Queen"), loc("Coward"), loc("The leader escaped. Defeat the rest of the aliens!"), 1, 0) |
13742
2bb7141496a9
Use SetTurnTimeLeft and SetReadyTimeLeft in all scripts
Wuzzy <Wuzzy2@mail.ru>
parents:
13583
diff
changeset
|
517 |
SetTurnTimeLeft(TurnTime) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
518 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
519 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
520 |
function AfterLeaderDeadAnim() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
521 |
SetHealth(SpawnHealthCrate(130, 455), 25) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
522 |
SetHealth(SpawnHealthCrate(2087, 50), 25) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
523 |
SetHealth(SpawnHealthCrate(2143, 54), 25) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
524 |
SetHealth(SpawnHealthCrate(70, 1308), 25) |
12362
f57053c4551d
Fix Lua fail in Long Live the Queen mission on victory
Wuzzy <almikes@aol.com>
parents:
12264
diff
changeset
|
525 |
ShowMission(loc("Long Live The Queen"), loc("Bullseye"), loc("Good job! Defeat the rest of the aliens!"), 1, 0) |
12555
d51ea6ac1ca1
ACF: Replace TurnTimeLeft=0 with EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12398
diff
changeset
|
526 |
EndTurn(true) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
527 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
528 |
-----------------------------Events------------------------------------ |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
529 |
function CheckTurnsOver() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
530 |
return TotalRounds > 6 |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
531 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
532 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
533 |
function DoTurnsOver() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
534 |
SetGearMessage(CurrentHedgehog, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
535 |
enemyFled = "1" |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
536 |
AddAnim(fleeAnim) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
537 |
AddFunction({func = AfterFleeAnim, args = {}}) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
538 |
RemoveEventFunc(CheckGearDead, {enemy}) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
539 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
540 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
541 |
function CheckNativesDead() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
542 |
return nativesLeft == 0 |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
543 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
544 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
545 |
function DoNativesDead() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
546 |
RemoveEventFunc(CheckTurnsOver) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
547 |
RemoveEventFunc(CheckGearDead) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
548 |
RemoveEventFunc(CheckCyborgsDead) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
549 |
AddCaption(loc("And so the cyborgs took over the island.")) |
12555
d51ea6ac1ca1
ACF: Replace TurnTimeLeft=0 with EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12398
diff
changeset
|
550 |
EndTurn(true) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
551 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
552 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
553 |
function CheckCyborgsDead() |
7454
ce7d7138b436
Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents:
7451
diff
changeset
|
554 |
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
|
555 |
end |
ce7d7138b436
Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents:
7451
diff
changeset
|
556 |
|
ce7d7138b436
Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents:
7451
diff
changeset
|
557 |
function KillEnemy() |
ce7d7138b436
Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents:
7451
diff
changeset
|
558 |
if enemyFled == "1" then |
14506
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
559 |
DismissTeam(leaderbotTeamName) |
7454
ce7d7138b436
Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents:
7451
diff
changeset
|
560 |
end |
14506
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
561 |
DismissTeam(cyborgTeamName) |
12555
d51ea6ac1ca1
ACF: Replace TurnTimeLeft=0 with EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12398
diff
changeset
|
562 |
EndTurn(true) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
563 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
564 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
565 |
function DoCyborgsDead() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
566 |
SaveCampaignVariables() |
7454
ce7d7138b436
Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents:
7451
diff
changeset
|
567 |
RestoreHedge(cyborg) |
ce7d7138b436
Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents:
7451
diff
changeset
|
568 |
PlaceGirder(3292, 922, 4) |
ce7d7138b436
Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents:
7451
diff
changeset
|
569 |
SetGearPosition(cyborg, 3290, 902) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
570 |
SetupFinalAnim() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
571 |
AddAnim(finalAnim) |
7454
ce7d7138b436
Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents:
7451
diff
changeset
|
572 |
AddFunction({func = KillEnemy, args = {}}) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
573 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
574 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
575 |
function DoLeaderDead() |
12570
0fb15ad40595
ACF8: Fix mission panel being shown after victory (if the leader fled)
Wuzzy <almikes@aol.com>
parents:
12555
diff
changeset
|
576 |
if enemyFled ~= "1" then |
0fb15ad40595
ACF8: Fix mission panel being shown after victory (if the leader fled)
Wuzzy <almikes@aol.com>
parents:
12555
diff
changeset
|
577 |
leaderDead = true |
0fb15ad40595
ACF8: Fix mission panel being shown after victory (if the leader fled)
Wuzzy <almikes@aol.com>
parents:
12555
diff
changeset
|
578 |
SetGearMessage(CurrentHedgehog, 0) |
0fb15ad40595
ACF8: Fix mission panel being shown after victory (if the leader fled)
Wuzzy <almikes@aol.com>
parents:
12555
diff
changeset
|
579 |
SetupLeaderDeadAnim() |
0fb15ad40595
ACF8: Fix mission panel being shown after victory (if the leader fled)
Wuzzy <almikes@aol.com>
parents:
12555
diff
changeset
|
580 |
AddAnim(leaderDeadAnim) |
0fb15ad40595
ACF8: Fix mission panel being shown after victory (if the leader fled)
Wuzzy <almikes@aol.com>
parents:
12555
diff
changeset
|
581 |
AddFunction({func = AfterLeaderDeadAnim, args = {}}) |
0fb15ad40595
ACF8: Fix mission panel being shown after victory (if the leader fled)
Wuzzy <almikes@aol.com>
parents:
12555
diff
changeset
|
582 |
RemoveEventFunc(CheckTurnsOver) |
0fb15ad40595
ACF8: Fix mission panel being shown after victory (if the leader fled)
Wuzzy <almikes@aol.com>
parents:
12555
diff
changeset
|
583 |
end |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
584 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
585 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
586 |
function CheckGearsDead(gearList) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
587 |
for i = 1, # gearList do |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
588 |
if gearDead[gearList[i]] ~= true then |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
589 |
return false |
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 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
592 |
return true |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
593 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
594 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
595 |
function CheckGearDead(gear) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
596 |
return gearDead[gear] |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
597 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
598 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
599 |
-----------------------------Misc-------------------------------------- |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
600 |
function HideHedge(hedge) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
601 |
if hedgeHidden[hedge] ~= true then |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
602 |
HideHog(hedge) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
603 |
hedgeHidden[hedge] = true |
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 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
606 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
607 |
function RestoreHedge(hedge) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
608 |
if hedgeHidden[hedge] == true then |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
609 |
RestoreHog(hedge) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
610 |
hedgeHidden[hedge] = false |
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 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
613 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
614 |
function GetVariables() |
8944
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
615 |
progress = tonumber(GetCampaignVar("Progress")) |
13145
5083fb0a2992
A Classic Fairytale: Harden all missions against missing campaign variables in team file and assume default values
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
616 |
m5DeployedNum = tonumber(GetCampaignVar("M5DeployedNum")) or leaksNum |
5083fb0a2992
A Classic Fairytale: Harden all missions against missing campaign variables in team file and assume default values
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
617 |
m2Choice = tonumber(GetCampaignVar("M2Choice")) or choiceRefused |
5083fb0a2992
A Classic Fairytale: Harden all missions against missing campaign variables in team file and assume default values
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
618 |
m5Choice = tonumber(GetCampaignVar("M5Choice")) or choiceEliminate |
14682
0bba06a05d52
ACF: Dump unused campaign vars, use fallback values
Wuzzy <Wuzzy2@mail.ru>
parents:
14670
diff
changeset
|
619 |
m5LeaksDead = tonumber(GetCampaignVar("M5LeaksDead")) or 0 |
0bba06a05d52
ACF: Dump unused campaign vars, use fallback values
Wuzzy <Wuzzy2@mail.ru>
parents:
14670
diff
changeset
|
620 |
m5ChiefDead = tonumber(GetCampaignVar("M5ChiefDead")) or 0 |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
621 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
622 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
623 |
function SaveCampaignVariables() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
624 |
SaveCampaignVar("M8DeployedLeader", deployedLeader) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
625 |
SaveCampaignVar("M8PrincessLeader", princessLeader) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
626 |
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
|
627 |
SaveCampaignVar("M8Scene", "" .. scene) |
8944
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
628 |
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
|
629 |
SaveCampaignVar("Progress", "8") |
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
630 |
end |
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 SetupPlace() |
13764
f5eea79da795
Fix crash when defeating all enemies in ACF8 (HideHog was called too early)
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
634 |
HideHedge(cyborg) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
635 |
SetHogHat(natives[1], nativeHats[m5DeployedNum]) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
636 |
SetHogName(natives[1], nativeNames[m5DeployedNum]) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
637 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
638 |
if m5DeployedNum == denseNum then |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
639 |
dense = natives[1] |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
640 |
else |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
641 |
dense = enemy |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
642 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
643 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
644 |
if m2Choice == choiceAccepted and m5Choice ~= choiceEliminate then |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
645 |
scene = denseScene |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
646 |
SetHogHat(enemy, nativeHats[denseNum]) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
647 |
SetHogName(enemy, nativeNames[denseNum]) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
648 |
dense = enemy |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
649 |
elseif m2Choice == choiceAccepted then |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
650 |
scene = cyborgScene |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
651 |
SetHogHat(enemy, "cyborg2") |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
652 |
SetHogName(enemy, loc("Nancy Screw")) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
653 |
elseif m5Choice == choiceEliminate then |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
654 |
scene = princessScene |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
655 |
SetHogHat(enemy, "tiara") |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
656 |
SetHogName(enemy, loc("Fell From Heaven")) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
657 |
else |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
658 |
scene = waterScene |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
659 |
SetHogHat(enemy, nativeHats[waterNum]) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
660 |
SetHogName(enemy, nativeNames[waterNum]) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
661 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
662 |
for i = 1, 4 do |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
663 |
if GetHogName(natives[i]) == GetHogName(enemy) then |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7443
diff
changeset
|
664 |
AnimSetGearPosition(enemy, GetGearPosition(natives[i])) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
665 |
DeleteGear(natives[i]) |
12782
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
diff
changeset
|
666 |
-- triggers AfterSetupPlace when the gear is *actually* deleted |
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
diff
changeset
|
667 |
nativeAwaitingDeletion = natives[i] |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
668 |
DeleteGear(cyborgs[cyborgsLeft]) |
12782
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
diff
changeset
|
669 |
break |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
670 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
671 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
672 |
|
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12900
diff
changeset
|
673 |
SpawnSupplyCrate(34, 410, amBee, 2) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12900
diff
changeset
|
674 |
SpawnSupplyCrate(33, 374, amRCPlane, 1) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12900
diff
changeset
|
675 |
SpawnSupplyCrate(74, 410, amAirAttack, 3) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12900
diff
changeset
|
676 |
SpawnSupplyCrate(1313, 1481, amBazooka, 8) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12900
diff
changeset
|
677 |
SpawnSupplyCrate(80, 360, amSniperRifle, 4) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12900
diff
changeset
|
678 |
SpawnSupplyCrate(1037, 1508, amShotgun, 7) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12900
diff
changeset
|
679 |
SpawnSupplyCrate(1037, 1472, amMolotov, 3) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12900
diff
changeset
|
680 |
SpawnSupplyCrate(1146, 1576, amMortar, 8) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
681 |
|
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12900
diff
changeset
|
682 |
SpawnSupplyCrate(1147, 1431, amPortalGun, 2) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12900
diff
changeset
|
683 |
SpawnSupplyCrate(1219, 1542, amRope, 5) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12900
diff
changeset
|
684 |
SpawnSupplyCrate(1259, 1501, amJetpack, 2) |
12784
f12337d90d03
ACF7: Fix no animation starting for some possible scenes
Wuzzy <Wuzzy2@mail.ru>
parents:
12782
diff
changeset
|
685 |
|
f12337d90d03
ACF7: Fix no animation starting for some possible scenes
Wuzzy <Wuzzy2@mail.ru>
parents:
12782
diff
changeset
|
686 |
if not nativeAwaitingDeletion then |
f12337d90d03
ACF7: Fix no animation starting for some possible scenes
Wuzzy <Wuzzy2@mail.ru>
parents:
12782
diff
changeset
|
687 |
AfterSetupPlace() |
f12337d90d03
ACF7: Fix no animation starting for some possible scenes
Wuzzy <Wuzzy2@mail.ru>
parents:
12782
diff
changeset
|
688 |
end |
7443
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 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
691 |
function SetupEvents() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
692 |
AddNewEvent(CheckNativesDead, {}, DoNativesDead, {}, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
693 |
AddNewEvent(CheckGearDead, {enemy}, DoLeaderDead, {}, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
694 |
AddNewEvent(CheckTurnsOver, {}, DoTurnsOver, {}, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
695 |
AddNewEvent(CheckCyborgsDead, {}, DoCyborgsDead, {}, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
696 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
697 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
698 |
function SetupAmmo() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
699 |
AddAmmo(natives[1], amPickHammer, 2) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
700 |
AddAmmo(natives[1], amBazooka, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
701 |
AddAmmo(natives[1], amGrenade, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
702 |
AddAmmo(natives[1], amShotgun, 0) |
11038 | 703 |
AddAmmo(natives[1], amAirAttack, 0) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
704 |
AddAmmo(natives[1], amMolotov, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
705 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
706 |
|
14506
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
707 |
nativesTeamName = nil |
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
708 |
beepTeamName = nil |
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
709 |
corpTeamName = nil |
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
710 |
leaderbotTeamName = nil |
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
711 |
cyborgTeamName = nil |
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
712 |
|
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
713 |
function AddHogs() |
14507
f8c2b995c009
Use player team name in ACF campaign
Wuzzy <Wuzzy2@mail.ru>
parents:
14506
diff
changeset
|
714 |
nativesTeamName = AddMissionTeam(-2) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
715 |
for i = 7, 9 do |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
716 |
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
|
717 |
origNatives[i-6] = natives[i-6] |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
718 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
719 |
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
|
720 |
origNatives[4] = natives[4] |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
721 |
nativesLeft = nativesNum |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
722 |
|
14953
ff4003a90ff8
Enable automatic voicepack language selection for all missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14919
diff
changeset
|
723 |
beepTeamName = AddTeam(loc("Beep Loopers"), -1, "ring", "UFO", "Robot_qau", "cm_cyborg") |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
724 |
for i = 1, cyborgsTeamNum[1] do |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
725 |
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
|
726 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
727 |
|
14953
ff4003a90ff8
Enable automatic voicepack language selection for all missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14919
diff
changeset
|
728 |
corpTeamName = AddTeam(loc("Corporationals"), -1, "ring", "UFO", "Robot_qau", "cm_cyborg") |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
729 |
for i = cyborgsTeamNum[1] + 1, cyborgsNum do |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
730 |
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
|
731 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
732 |
cyborgsLeft = cyborgsTeamNum[1] + cyborgsTeamNum[2] |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
733 |
|
14953
ff4003a90ff8
Enable automatic voicepack language selection for all missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14919
diff
changeset
|
734 |
leaderbotTeamName = AddTeam(loc("Leaderbot"), -1, "ring", "UFO", "Robot_qau", "cm_cyborg") |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
735 |
enemy = AddHog(loc("Name"), 2, 200, "cyborg1") |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
736 |
|
14953
ff4003a90ff8
Enable automatic voicepack language selection for all missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14919
diff
changeset
|
737 |
cyborgTeamName = AddTeam(loc("011101001"), -1, "ring", "UFO", "Robot_qau", "cm_binary") |
7454
ce7d7138b436
Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents:
7451
diff
changeset
|
738 |
cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1") |
13764
f5eea79da795
Fix crash when defeating all enemies in ACF8 (HideHog was called too early)
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
739 |
SetGearPosition(cyborg, unpack(cyborgHidePos)) |
7454
ce7d7138b436
Modified final cutscene and fixed a skipping bug
belphegorr <szabibibi@gmail.com>
parents:
7451
diff
changeset
|
740 |
|
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
741 |
for i = 1, nativesNum do |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7443
diff
changeset
|
742 |
AnimSetGearPosition(natives[i], unpack(nativePos[i])) |
7443
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 |
|
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7443
diff
changeset
|
745 |
AnimSetGearPosition(enemy, unpack(enemyPos)) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
746 |
AnimTurn(enemy, "Left") |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
747 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
748 |
for i = 1, cyborgsNum do |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7443
diff
changeset
|
749 |
AnimSetGearPosition(cyborgs[i], unpack(cyborgsPos[i])) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
750 |
AnimTurn(cyborgs[i], cyborgsDir[i]) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
751 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
752 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
753 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
754 |
function CondNeedToTurn(hog1, hog2) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
755 |
xl, xd = GetX(hog1), GetX(hog2) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
756 |
if xl > xd then |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
757 |
AnimInsertStepNext({func = AnimTurn, args = {hog1, "Left"}}) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
758 |
AnimInsertStepNext({func = AnimTurn, args = {hog2, "Right"}}) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
759 |
elseif xl < xd then |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
760 |
AnimInsertStepNext({func = AnimTurn, args = {hog2, "Left"}}) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
761 |
AnimInsertStepNext({func = AnimTurn, args = {hog1, "Right"}}) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
762 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
763 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
764 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
765 |
-----------------------------Main Functions---------------------------- |
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 onGameInit() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
768 |
Seed = 0 |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
769 |
GameFlags = gfDisableGirders + gfDisableLandObjects |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
770 |
TurnTime = 60000 |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
771 |
CaseFreq = 0 |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
772 |
MinesNum = 0 |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
773 |
MinesTime = 3000 |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
774 |
Explosives = 0 |
10423 | 775 |
MapGen = mgDrawn |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
776 |
Theme = "Hell" |
15040
51fbc0034c6f
Disable Sudden Death for all A Classic Fairytale missions
Wuzzy <Wuzzy2@mail.ru>
parents:
15023
diff
changeset
|
777 |
HealthDecrease = 0 |
51fbc0034c6f
Disable Sudden Death for all A Classic Fairytale missions
Wuzzy <Wuzzy2@mail.ru>
parents:
15023
diff
changeset
|
778 |
WaterRise = 0 |
7443
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 |
for i = 1, #map do |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
781 |
ParseCommand('draw ' .. map[i]) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
782 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
783 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
784 |
GetVariables() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
785 |
AnimInit() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
786 |
AddHogs() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
787 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
788 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
789 |
function onGameStart() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
790 |
SetupAmmo() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
791 |
SetupPlace() |
12782
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
diff
changeset
|
792 |
-- Animation is setup in AfterSetupPlace |
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
diff
changeset
|
793 |
end |
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
diff
changeset
|
794 |
|
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
diff
changeset
|
795 |
function AfterSetupPlace() |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
796 |
AnimationSetup() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
797 |
SetupEvents() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
798 |
AddAnim(startAnim) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
799 |
AddFunction({func = AfterStartAnim, args = {}}) |
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 onGameTick() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
803 |
AnimUnWait() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
804 |
if ShowAnimation() == false then |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
805 |
return |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
806 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
807 |
ExecuteAfterAnimations() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
808 |
CheckEvents() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
809 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
810 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
811 |
function onGearDelete(gear) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
812 |
local toRemove = nil |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
813 |
gearDead[gear] = true |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
814 |
if GetGearType(gear) == gtHedgehog then |
14506
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
815 |
if GetHogTeamName(gear) == beepTeamName or GetHogTeamName(gear) == corpTeamName then |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
816 |
cyborgsLeft = cyborgsLeft - 1 |
14683
35fc8266a1e3
ACF8: Fix princess scene failing to initialize
Wuzzy <Wuzzy2@mail.ru>
parents:
14682
diff
changeset
|
817 |
elseif GetHogTeamName(gear) == nativesTeamName then |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
818 |
for i = 1, nativesLeft do |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
819 |
if natives[i] == gear then |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
820 |
toRemove = i |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
821 |
end |
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 |
table.remove(natives, toRemove) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
824 |
nativesLeft = nativesLeft - 1 |
12782
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
diff
changeset
|
825 |
if nativeAwaitingDeletion and gear == nativeAwaitingDeletion then |
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
diff
changeset
|
826 |
AfterSetupPlace() |
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
diff
changeset
|
827 |
nativeAwaitingDeletion = nil |
389453e1e09e
ACF7: Fix possible Lua error spam in intro sequence
Wuzzy <Wuzzy2@mail.ru>
parents:
12570
diff
changeset
|
828 |
end |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
829 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
830 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
831 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
832 |
|
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
833 |
function onAmmoStoreInit() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
834 |
SetAmmo(amBaseballBat, 9, 0, 0, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
835 |
SetAmmo(amFirePunch, 9, 0, 0, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
836 |
SetAmmo(amDEagle, 9, 0, 0, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
837 |
SetAmmo(amSkip, 9, 0, 0, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
838 |
SetAmmo(amSwitch, 9, 0, 0, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
839 |
SetAmmo(amBazooka, 9, 0, 0, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
840 |
SetAmmo(amGrenade, 9, 0, 0, 0) |
11885
80bc9802f54e
Fix Lua error message in A Classic Fairytale mission 8
Wuzzy <almikes@aol.com>
parents:
11038
diff
changeset
|
841 |
SetAmmo(amAirAttack, 1, 0, 0, 0) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
842 |
SetAmmo(amMolotov, 5, 0, 0, 0) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
843 |
SetAmmo(amShotgun, 9, 0, 0, 0) |
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 onNewTurn() |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
847 |
if AnimInProgress() then |
13752
110d6c1e817f
Lua: Rename globals: NoPointX→NO_CURSOR, cMaxTurnTime→MAX_TURN_TIME, cMaxHogHealth→MAX_HOG_HEALTH
Wuzzy <Wuzzy2@mail.ru>
parents:
13742
diff
changeset
|
848 |
SetTurnTimeLeft(MAX_TURN_TIME) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
849 |
return |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
850 |
end |
14506
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
851 |
if GetHogTeamName(CurrentHedgehog) == cyborgTeamName then |
12555
d51ea6ac1ca1
ACF: Replace TurnTimeLeft=0 with EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12398
diff
changeset
|
852 |
EndTurn(true) |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
853 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
854 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
855 |
|
15023
3ed1cbd31754
Backed out changeset 4596357d002d (onPreciseLocal causes desyncs)
Wuzzy <Wuzzy2@mail.ru>
parents:
14953
diff
changeset
|
856 |
function onPrecise() |
7443
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
857 |
if GameTime > 2500 and AnimInProgress() then |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
858 |
SetAnimSkip(true) |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
859 |
end |
a7f861f1c3b8
Added Mission 8: Long Live The Queen
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
860 |
end |
15188
9d4a6ab60dec
ACF: Show "Mission succeeded/failed" in stats screen
Wuzzy <Wuzzy2@mail.ru>
parents:
15040
diff
changeset
|
861 |
|
9d4a6ab60dec
ACF: Show "Mission succeeded/failed" in stats screen
Wuzzy <Wuzzy2@mail.ru>
parents:
15040
diff
changeset
|
862 |
function onGameResult(winner) |
9d4a6ab60dec
ACF: Show "Mission succeeded/failed" in stats screen
Wuzzy <Wuzzy2@mail.ru>
parents:
15040
diff
changeset
|
863 |
if winner == GetTeamClan(nativesTeamName) then |
9d4a6ab60dec
ACF: Show "Mission succeeded/failed" in stats screen
Wuzzy <Wuzzy2@mail.ru>
parents:
15040
diff
changeset
|
864 |
SendStat(siGameResult, loc("Mission succeeded!")) |
9d4a6ab60dec
ACF: Show "Mission succeeded/failed" in stats screen
Wuzzy <Wuzzy2@mail.ru>
parents:
15040
diff
changeset
|
865 |
else |
9d4a6ab60dec
ACF: Show "Mission succeeded/failed" in stats screen
Wuzzy <Wuzzy2@mail.ru>
parents:
15040
diff
changeset
|
866 |
SendStat(siGameResult, loc("Mission failed!")) |
9d4a6ab60dec
ACF: Show "Mission succeeded/failed" in stats screen
Wuzzy <Wuzzy2@mail.ru>
parents:
15040
diff
changeset
|
867 |
end |
9d4a6ab60dec
ACF: Show "Mission succeeded/failed" in stats screen
Wuzzy <Wuzzy2@mail.ru>
parents:
15040
diff
changeset
|
868 |
end |