author | Wuzzy <Wuzzy2@mail.ru> |
Tue, 24 Oct 2017 06:25:12 +0200 | |
changeset 12750 | 6cec6b881a1c |
parent 12611 | fb0734d5dd87 |
child 12779 | 1f8a62d1609d |
permissions | -rw-r--r-- |
8043 | 1 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
2 |
HedgewarsScriptLoad("/Scripts/Animate.lua") |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
3 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
4 |
-----------------------------Constants--------------------------------- |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
5 |
choiceAccepted = 1 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
6 |
choiceRefused = 2 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
7 |
choiceAttacked = 3 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
8 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
9 |
choiceEliminate = 1 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
10 |
choiceSpare = 2 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
11 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
12 |
leaksNum = 1 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
13 |
denseNum = 2 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
14 |
waterNum = 3 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
15 |
buffaloNum = 4 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
16 |
chiefNum = 5 |
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
17 |
girlNum = 6 |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
18 |
wiseNum = 7 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
19 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
20 |
spyKillStage = 1 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
21 |
platformStage = 2 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
22 |
wave3Stage = 3 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
23 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
24 |
tmpVar = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
25 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
26 |
nativeNames = {loc("Leaks A Lot"), loc("Dense Cloud"), loc("Fiery Water"), |
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
27 |
loc("Raging Buffalo"), loc("Righteous Beard"), loc("Fell From Grace"), |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
28 |
loc("Wise Oak"), loc("Eagle Eye"), loc("Flaming Worm")} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
29 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
30 |
nativeHats = {"Rambo", "RobinHood", "pirate_jack", "zoo_Bunny", "IndianChief", |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
31 |
"tiara", "AkuAku", "None", "None"} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
32 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
33 |
nativePos = {{887, 329}, {1050, 288}, {1731, 707}, |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
34 |
{830, 342}, {1001, 290}, {773, 340}, |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
35 |
{953, 305}, {347, 648}, {314, 647}} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
36 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
37 |
nativeDir = {"Right", "Left", "Left", |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
38 |
"Right", "Left", "Right", |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
39 |
"Left", "Right", "Right"} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
40 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
41 |
cannibalNames = {loc("Brain Teaser"), loc("Bone Jackson"), loc("Gimme Bones"), |
7463
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
42 |
loc("Hedgibal Lecter"), loc("Bloodpie"), loc("Scalp Muncher"), |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
43 |
loc("Back Breaker"), loc("Dahmer"), loc("Meiwes"), |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
44 |
loc("Ear Sniffer"), loc("Regurgitator"), loc("Muriel")} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
45 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
46 |
cannibalPos = {{3607, 1472}, {3612, 1487}, {3646, 1502}, |
7425 | 47 |
{3507, 195}, {3612, 1487}, {840, 1757}, |
48 |
{3056, 1231}, {2981, 1222}, {2785, 1258}} |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
49 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
50 |
cannibalDir = {"Left", "Left", "Left", |
7425 | 51 |
"Left", "Right", "Right", |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
52 |
"Left", "Left", "Left"} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
53 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
54 |
cyborgPos = {1369, 574} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
55 |
cyborgPos2 = {1308, 148} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
56 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
57 |
deployedPos = {2522, 1365} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
58 |
-----------------------------Variables--------------------------------- |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
59 |
natives = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
60 |
nativeDead = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
61 |
nativeHidden = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
62 |
nativeRevived = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
63 |
nativesNum = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
64 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
65 |
cannibals = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
66 |
cannibalDead = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
67 |
cannibalHidden = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
68 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
69 |
speakerHog = nil |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
70 |
spyHog = nil |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
71 |
deployedHog = nil |
7463
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
72 |
deployedDead = false |
12361
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
73 |
nativesTeleported = false |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
74 |
nativesIsolated = false |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
75 |
hogDeployed = false |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
76 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
77 |
cyborgHidden = false |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
78 |
needToAct = 0 |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
79 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
80 |
m2Choice = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
81 |
m2DenseDead = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
82 |
m4DenseDead = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
83 |
m4BuffaloDead = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
84 |
m4WaterDead = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
85 |
m4ChiefDead = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
86 |
m4LeaksDead = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
87 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
88 |
needRevival = false |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
89 |
gearr = nil |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
90 |
startElimination = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
91 |
stage = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
92 |
choice = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
93 |
highJumped = false |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
94 |
TurnsLeft = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
95 |
startNativesNum = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
96 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
97 |
startAnim = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
98 |
afterChoiceAnim = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
99 |
wave2Anim = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
100 |
wave2DeadAnim = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
101 |
wave3DeadAnim = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
102 |
|
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
103 |
vCircs = {} |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
104 |
-----------------------------Animations-------------------------------- |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
105 |
function Wave2Reaction() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
106 |
local i = 1 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
107 |
local gearr = nil |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
108 |
while nativeDead[i] == true do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
109 |
i = i + 1 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
110 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
111 |
gearr = natives[i] |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
112 |
if nativeDead[denseNum] ~= true and band(GetState(natives[denseNum]), gstDrowning) == 0 then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
113 |
AnimInsertStepNext({func = AnimCustomFunction, args = {dense, EmitDenseClouds, {"Left"}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
114 |
AnimInsertStepNext({func = AnimTurn, args = {dense, "Left"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
115 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
116 |
if nativeDead[buffaloNum] ~= true and band(GetState(natives[buffaloNum]), gstDrowning) == 0 then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
117 |
AnimInsertStepNext({func = AnimSay, args = {natives[buffaloNum], loc("Let them have a taste of my fury!"), SAY_SHOUT, 6000}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
118 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
119 |
AnimInsertStepNext({func = AnimSay, args = {gearr, loc("There's more of them? When did they become so hungry?"), SAY_SHOUT, 8000}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
120 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
121 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
122 |
function EmitDenseClouds(dir) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
123 |
local dif |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
124 |
if dir == "Left" then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
125 |
dif = 10 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
126 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
127 |
dif = -10 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
128 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
129 |
AnimInsertStepNext({func = AnimVisualGear, args = {natives[denseNum], GetX(natives[denseNum]) + dif, GetY(natives[denseNum]) + dif, vgtSteam, 0, true}, swh = false}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
130 |
AnimInsertStepNext({func = AnimVisualGear, args = {natives[denseNum], GetX(natives[denseNum]) + dif, GetY(natives[denseNum]) + dif, vgtSteam, 0, true}, swh = false}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
131 |
AnimInsertStepNext({func = AnimVisualGear, args = {natives[denseNum], GetX(natives[denseNum]) + dif, GetY(natives[denseNum]) + dif, vgtSteam, 0, true}, swh = false}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
132 |
AnimInsertStepNext({func = AnimWait, args = {natives[denseNum], 800}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
133 |
AnimInsertStepNext({func = AnimVisualGear, args = {natives[denseNum], GetX(natives[denseNum]) + dif, GetY(natives[denseNum]) + dif, vgtSteam, 0, true}, swh = false}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
134 |
AnimInsertStepNext({func = AnimVisualGear, args = {natives[denseNum], GetX(natives[denseNum]) + dif, GetY(natives[denseNum]) + dif, vgtSteam, 0, true}, swh = false}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
135 |
AnimInsertStepNext({func = AnimWait, args = {natives[denseNum], 800}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
136 |
AnimInsertStepNext({func = AnimVisualGear, args = {natives[denseNum], GetX(natives[denseNum]) + dif, GetY(natives[denseNum]) + dif, vgtSteam, 0, true}, swh = false}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
137 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
138 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
139 |
function SaySafe() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
140 |
local i = 1 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
141 |
while gearr == nil do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
142 |
if nativeDead[i] ~= true and nativeHidden[i] ~= true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
143 |
gearr = natives[i] |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
144 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
145 |
i = i + 1 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
146 |
end |
7259 | 147 |
AnimInsertStepNext({func = AnimSay, args = {natives[wiseNum], loc("We are indeed."), SAY_SAY, 2500}}) |
148 |
AnimInsertStepNext({func = AnimSay, args = {gearr, loc("I think we are safe here."), SAY_SAY, 4000}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
149 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
150 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
151 |
function ReviveNatives() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
152 |
for i = 1, 7 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
153 |
if nativeHidden[i] == true and nativeDead[i] ~= true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
154 |
RestoreHog(natives[i]) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
155 |
nativeHidden[i] = false |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
156 |
nativeRevived[i] = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
157 |
AnimInsertStepNext({func = AnimOutOfNowhere, args = {natives[i], unpack(nativePos[i])}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
158 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
159 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
160 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
161 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
162 |
function WonderAlive() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
163 |
if nativeRevived[waterNum] == true then |
7259 | 164 |
AnimInsertStepNext({func = AnimSay, args = {natives[waterNum], loc("I'm...alive? How? Why?"), SAY_THINK, 3500}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
165 |
AnimInsertStepNext({func = AnimWait, args = {natives[waterNum], 800}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
166 |
AnimInsertStepNext({func = AnimTurn, args = {natives[waterNum], "Left"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
167 |
AnimInsertStepNext({func = AnimWait, args = {natives[waterNum], 800}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
168 |
AnimInsertStepNext({func = AnimTurn, args = {natives[waterNum], "Right"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
169 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
170 |
if nativeRevived[leaksNum] == true and nativeRevived[denseNum] == true then |
7259 | 171 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("But why would they help us?"), SAY_SAY, 4000}}) |
172 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("It must be the aliens!"), SAY_SAY, 3500}}) |
|
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
173 |
AnimInsertStepNext({func = AnimSay, args = {natives[girlNum], loc("You just appeared out of thin air!"), SAY_SAY, 5000}}) |
7259 | 174 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("But...we died!"), SAY_SAY, 2500}}) |
175 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("This must be the caves!"), SAY_SAY, 3500}}) |
|
176 |
AnimInsertStepNext({func = AnimSay, args = {natives[denseNum], loc("Dude, where are we?"), SAY_SAY, 3000}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
177 |
AnimInsertStepNext({func = AnimWait, args = {natives[leaksNum], 800}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
178 |
AnimInsertStepNext({func = AnimTurn, args = {natives[leaksNum], "Right"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
179 |
AnimInsertStepNext({func = AnimTurn, args = {natives[denseNum], "Left"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
180 |
AnimInsertStepNext({func = AnimWait, args = {natives[leaksNum], 800}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
181 |
AnimInsertStepNext({func = AnimTurn, args = {natives[leaksNum], "Left"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
182 |
AnimInsertStepNext({func = AnimTurn, args = {natives[denseNum], "Right"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
183 |
AnimInsertStepNext({func = AnimWait, args = {natives[leaksNum], 800}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
184 |
AnimInsertStepNext({func = AnimTurn, args = {natives[leaksNum], "Right"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
185 |
AnimInsertStepNext({func = AnimTurn, args = {natives[denseNum], "Left"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
186 |
AnimInsertStepNext({func = AnimWait, args = {natives[leaksNum], 800}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
187 |
AnimInsertStepNext({func = AnimTurn, args = {natives[leaksNum], "Left"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
188 |
AnimInsertStepNext({func = AnimTurn, args = {natives[denseNum], "Right"}}) |
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
189 |
AnimInsertStepNext({func = AnimCustomFunction, swh = false, args = {natives[leaksNum], CondNeedToTurn, {natives[leaksNum], natives[girlNum]}}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
190 |
if nativeDead[chiefNum] ~= true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
191 |
AnimInsertStepNext({func = AnimTurn, args = {natives[chiefNum], "Right"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
192 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
193 |
elseif nativeRevived[leaksNum] == true then |
7259 | 194 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("Why would they do this?"), SAY_SAY, 6000}}) |
195 |
AnimInsertStepNext({func = AnimSay, args = {natives[wiseNum], loc("It must be the aliens' deed."), SAY_SAY, 5000}}) |
|
196 |
AnimInsertStepNext({func = AnimSay, args = {natives[wiseNum], loc("Do not laugh, inexperienced one, for he speaks the truth!"), SAY_SAY, 10000}}) |
|
197 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("Yeah, sure! I died. Hillarious!"), SAY_SAY, 6000}}) |
|
198 |
AnimInsertStepNext({func = AnimSay, args = {gearr, loc("You're...alive!? But we saw you die!"), SAY_SAY, 6000}}) |
|
12263
2c8e7e73ef58
Use format strings everywhere in A Classic Fairytale (for translators)
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
199 |
AnimInsertStepNext({func = AnimSay, args = {gearr, loc("Huh?"), SAY_SAY, 2000}}) |
7259 | 200 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("Wow, what a dream!"), SAY_SAY, 3000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
201 |
if nativeDead[chiefNum] ~= true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
202 |
AnimInsertStepNext({func = AnimTurn, args = {natives[chiefNum], "Right"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
203 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
204 |
AnimInsertStepNext({func = AnimCustomFunction, swh = false, args = {natives[leaksNum], CondNeedToTurn, {natives[leaksNum], natives[wiseNum]}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
205 |
AnimInsertStepNext({func = AnimCustomFunction, swh = false, args = {natives[leaksNum], CondNeedToTurn, {natives[leaksNum], gearr}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
206 |
elseif nativeRevived[denseNum] == true then |
7259 | 207 |
AnimInsertStepNext({func = AnimSay, args = {natives[denseNum], loc("Dude, that's so cool!"), SAY_SAY, 3000}}) |
208 |
AnimInsertStepNext({func = AnimSay, args = {natives[wiseNum], loc("It must be the aliens' deed."), SAY_SAY, 5000}}) |
|
209 |
AnimInsertStepNext({func = AnimSay, args = {natives[denseNum], loc("But that's impossible!"), SAY_SAY, 3000}}) |
|
210 |
AnimInsertStepNext({func = AnimSay, args = {natives[wiseNum], loc("It was not a dream, unwise one!"), SAY_SAY, 5000}}) |
|
211 |
AnimInsertStepNext({func = AnimSay, args = {natives[denseNum], loc("Exactly, man! That was my dream."), SAY_SAY, 5000}}) |
|
212 |
AnimInsertStepNext({func = AnimSay, args = {gearr, loc("You're...alive!? But we saw you die!"), SAY_SAY, 6000}}) |
|
12263
2c8e7e73ef58
Use format strings everywhere in A Classic Fairytale (for translators)
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
213 |
AnimInsertStepNext({func = AnimSay, args = {gearr, loc("Huh?"), SAY_SAY, 2000}}) |
7259 | 214 |
AnimInsertStepNext({func = AnimSay, args = {natives[denseNum], loc("Dude, wow! I just had the weirdest high!"), SAY_SAY, 6000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
215 |
if nativeDead[chiefNum] ~= true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
216 |
AnimInsertStepNext({func = AnimTurn, args = {natives[chiefNum], "Right"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
217 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
218 |
AnimInsertStepNext({func = AnimCustomFunction, swh = false, args = {natives[denseNum], CondNeedToTurn, {natives[denseNum], natives[wiseNum]}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
219 |
AnimInsertStepNext({func = AnimCustomFunction, swh = false, args = {natives[denseNum], CondNeedToTurn, {natives[denseNum], gearr}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
220 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
221 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
222 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
223 |
function ExplainAlive() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
224 |
if needRevival == true and m4WaterDead == 1 then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
225 |
RestoreCyborg() |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
226 |
AnimSetGearPosition(cyborg, unpack(cyborgPos)) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
227 |
AnimInsertStepNext({func = AnimCustomFunction, args = {water, HideCyborg, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
228 |
AnimInsertStepNext({func = AnimSwitchHog, args = {water}}) |
7259 | 229 |
AnimInsertStepNext({func = AnimSay, args = {cyborg, loc("The answer is...entertaintment. You'll see what I mean."), SAY_SAY, 8000}}) |
230 |
AnimInsertStepNext({func = AnimSay, args = {cyborg, loc("You're probably wondering why I bought you back..."), SAY_SAY, 8000}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
231 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
232 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
233 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
234 |
function SpyDebate() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
235 |
if m2Choice == choiceAccepted then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
236 |
spyHog = natives[denseNum] |
7259 | 237 |
AnimInsertStepNext({func = AnimSay, args = {natives[wiseNum], loc("What shall we do with the traitor?"), SAY_SAY, 6000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
238 |
AnimInsertStepNext({func = SetHealth, swh = false, args = {natives[denseNum], 26}}) |
7425 | 239 |
AnimInsertStepNext({func = AnimVisualGear, args = {natives[wiseNum], GetGearPosition(natives[denseNum]), vgtExplosion, 0, true}}) |
7259 | 240 |
AnimInsertStepNext({func = AnimSay, args = {natives[wiseNum], loc("Here, let me help you!"), SAY_SAY, 3000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
241 |
if nativeDead[chiefNum] == true then |
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
242 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("I forgot that she's the daughter of the chief, too..."), SAY_THINK, 7000}}) |
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
243 |
AnimInsertStepNext({func = AnimSay, args = {natives[girlNum], loc("You killed my father, you monster!"), SAY_SAY, 5000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
244 |
end |
7259 | 245 |
AnimInsertStepNext({func = AnimSay, args = {natives[denseNum], loc("Look, I had no choice!"), SAY_SAY, 3000}}) |
246 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("You have been giving us out to the enemy, haven't you!"), SAY_SAY, 7000}}) |
|
247 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("You're a pathetic liar!"), SAY_SAY, 3000}}) |
|
248 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("Interesting! Last time you said you killed a cannibal!"), SAY_SAY, 7000}}) |
|
249 |
AnimInsertStepNext({func = AnimSay, args = {natives[denseNum], loc("I told you, I just found them."), SAY_SAY, 4500}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
250 |
AnimInsertStepNext({func = AnimCustomFunction, args = {natives[denseNum], EmitDenseClouds, {"Left"}}}) |
7259 | 251 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("Where did you get the weapons in the forest, Dense Cloud?"), SAY_SAY, 8000}}) |
252 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("Not now, Fiery Water!"), SAY_SAY, 3000}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
253 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
254 |
spyHog = natives[waterNum] |
7259 | 255 |
AnimInsertStepNext({func = AnimSay, args = {natives[wiseNum], loc("What shall we do with the traitor?"), SAY_SAY, 5000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
256 |
AnimInsertStepNext({func = SetHealth, swh = false, args = {natives[waterNum], 26}}) |
7425 | 257 |
AnimInsertStepNext({func = AnimVisualGear, args = {natives[wiseNum], nativePos[denseNum][1] + 50, nativePos[denseNum][2], vgtExplosion, 0, true}}) |
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
258 |
AnimInsertStepNext({func = AnimSay, args = {natives[girlNum], loc("I can't believe what I'm hearing!"), SAY_SAY, 5500}}) |
7259 | 259 |
AnimInsertStepNext({func = AnimSay, args = {natives[waterNum], loc("You know what? I don't even regret anything!"), SAY_SAY, 7000}}) |
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
260 |
AnimInsertStepNext({func = AnimSay, args = {natives[girlNum], loc("In fact, you are the only one that's been acting strangely."), SAY_SAY, 8000}}) |
7259 | 261 |
AnimInsertStepNext({func = AnimSay, args = {natives[waterNum], loc("Are you accusing me of something?"), SAY_SAY, 3500}}) |
12263
2c8e7e73ef58
Use format strings everywhere in A Classic Fairytale (for translators)
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
262 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("Seems like every time you take a \"walk\", the enemy finds us!"), SAY_SAY, 8000}}) |
7259 | 263 |
AnimInsertStepNext({func = AnimSay, args = {natives[waterNum], loc("You know...taking a stroll."), SAY_SAY, 3500}}) |
264 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("Where have you been?!"), SAY_SAY, 3000}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
265 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
266 |
if nativeRevived[waterNum] == true then |
7259 | 267 |
AnimInsertStepNext({func = AnimSay, args = {natives[waterNum], loc("You won't believe what happened to me!"), SAY_SAY, 5500}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
268 |
end |
7259 | 269 |
AnimInsertStepNext({func = AnimSay, args = {natives[waterNum], loc("Hey, guys!"), SAY_SAY, 2000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
270 |
AnimInsertStepNext({func = AnimMove, args = {natives[waterNum], "Left", nativePos[denseNum][1] + 50, nativePos[denseNum][2]}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
271 |
AnimInsertStepNext({func = AnimJump, args = {natives[waterNum], "back"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
272 |
AnimInsertStepNext({func = AnimTurn, args = {natives[waterNum], "Right"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
273 |
AnimInsertStepNext({func = AnimMove, args = {natives[waterNum], "Left", 1228, 412}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
274 |
AnimInsertStepNext({func = AnimJump, args = {natives[waterNum], "long"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
275 |
AnimInsertStepNext({func = AnimJump, args = {natives[waterNum], "long"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
276 |
AnimInsertStepNext({func = AnimJump, args = {natives[waterNum], "long"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
277 |
AnimInsertStepNext({func = AnimTurn, args = {natives[waterNum], "Left"}}) |
7259 | 278 |
AnimInsertStepNext({func = AnimSay, args = {natives[wiseNum], loc("There must be a spy among us!"), SAY_SAY, 4000}}) |
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
279 |
AnimInsertStepNext({func = AnimSay, args = {natives[girlNum], loc("We made sure noone followed us!"), SAY_SAY, 4000}}) |
7259 | 280 |
AnimInsertStepNext({func = AnimSay, args = {natives[leaksNum], loc("What? Here? How did they find us?!"), SAY_SAY, 5000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
281 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
282 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
283 |
function AnimationSetup() |
7518
70babd9073a2
Mission 5: fixed a few bugs that came with the update (ammo menu bug and initial gear elimination bug)
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
284 |
table.insert(startAnim, {func = AnimWait, swh = false, args = {natives[leaksNum], 3000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
285 |
table.insert(startAnim, {func = AnimCustomFunction, swh = false, args = {natives[leaksNum], SaySafe, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
286 |
if needRevival == true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
287 |
table.insert(startAnim, {func = AnimCustomFunction, swh = false, args = {cyborg, ReviveNatives, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
288 |
table.insert(startAnim, {func = AnimCustomFunction, swh = false, args = {natives[leaksNum], WonderAlive, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
289 |
table.insert(startAnim, {func = AnimCustomFunction, swh = false, args = {cyborg, ExplainAlive, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
290 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
291 |
table.insert(startAnim, {func = AnimCustomFunction, swh = false, args = {natives[leaksNum], RestoreWave, {1}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
292 |
table.insert(startAnim, {func = AnimOutOfNowhere, args = {cannibals[1], unpack(cannibalPos[1])}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
293 |
table.insert(startAnim, {func = AnimOutOfNowhere, args = {cannibals[2], unpack(cannibalPos[2])}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
294 |
table.insert(startAnim, {func = AnimOutOfNowhere, args = {cannibals[3], unpack(cannibalPos[3])}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
295 |
table.insert(startAnim, {func = AnimWait, args = {natives[leaksNum], 1000}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
296 |
table.insert(startAnim, {func = AnimCustomFunction, swh = false, args = {natives[leaksNum], SpyDebate, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
297 |
AddSkipFunction(startAnim, SkipStartAnim, {}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
298 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
299 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
300 |
function SetupWave2Anim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
301 |
for i = 7, 1, -1 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
302 |
if nativeDead[i] ~= true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
303 |
speakerHog = natives[i] |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
304 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
305 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
306 |
table.insert(wave2Anim, {func = AnimOutOfNowhere, args = {cannibals[4], unpack(cannibalPos[4])}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
307 |
table.insert(wave2Anim, {func = AnimOutOfNowhere, args = {cannibals[5], unpack(cannibalPos[5])}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
308 |
table.insert(wave2Anim, {func = AnimOutOfNowhere, args = {cannibals[6], unpack(cannibalPos[6])}}) |
7259 | 309 |
table.insert(wave2Anim, {func = AnimSay, args = {speakerHog, loc("Look out! There's more of them!"), SAY_SHOUT, 5000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
310 |
AddSkipFunction(wave2Anim, SkipWave2Anim, {}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
311 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
312 |
|
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
313 |
function PutCircles() |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
314 |
if circlesPut then |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
315 |
return |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
316 |
end |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
317 |
vCircs[1] = AddVisualGear(0,0,vgtCircle,0,true) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
318 |
vCircs[2] = AddVisualGear(0,0,vgtCircle,0,true) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
319 |
vCircs[3] = AddVisualGear(0,0,vgtCircle,0,true) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
320 |
SetVisualGearValues(vCircs[1], cannibalPos[7][1], cannibalPos[7][2], 100, 255, 1, 10, 0, 120, 3, 0xff00ffff) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
321 |
SetVisualGearValues(vCircs[2], cannibalPos[8][1], cannibalPos[8][2], 100, 255, 1, 10, 0, 120, 3, 0xff00ffff) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
322 |
SetVisualGearValues(vCircs[3], cannibalPos[9][1], cannibalPos[9][2], 100, 255, 1, 10, 0, 120, 3, 0xff00ffff) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
323 |
circlesPut = true |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
324 |
end |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
325 |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
326 |
function SetupWave2DeadAnim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
327 |
for i = 7, 1, -1 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
328 |
if nativeDead[i] ~= true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
329 |
deployedHog = natives[i] |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
330 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
331 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
332 |
if nativeDead[wiseNum] ~= true and band(GetState(natives[wiseNum]), gstDrowning) == 0 then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
333 |
if nativesNum > 1 then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
334 |
table.insert(wave2DeadAnim, {func = AnimWait, args = {natives[wiseNum], 1500}}) |
7259 | 335 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("What a strange feeling!"), SAY_THINK, 3000}}) |
336 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("I need to warn the others."), SAY_THINK, 3000}}) |
|
337 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("If only I had a way..."), SAY_THINK, 3000}}) |
|
338 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("Oh, silly me! I forgot that I'm the shaman."), SAY_THINK, 6000}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
339 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {natives[wiseNum], TeleportNatives, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
340 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {natives[wiseNum], TurnNatives, {natives[wiseNum]}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
341 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {natives[wiseNum], CondNeedToTurn, {natives[wiseNum], deployedHog}}}) |
7259 | 342 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("I sense another wave of cannibals heading our way!"), SAY_SAY, 6500}}) |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
343 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("I feel something...a place! They will arrive near the circles!"), SAY_SAY, 7500}}) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
344 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {natives[wiseNum], PutCircles, {}}}) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
345 |
table.insert(wave2DeadAnim, {func = AnimFollowGear, swh = false, args = {vCircs[1]}}) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
346 |
table.insert(wave2DeadAnim, {func = AnimWait, args = {natives[wiseNum], 1500}}) |
7259 | 347 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("We need to prevent their arrival!"), SAY_SAY, 4500}}) |
348 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("Go, quick!"), SAY_SAY, 2500}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
349 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {natives[wiseNum], DeployHog, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
350 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {natives[wiseNum], RestoreCyborg, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
351 |
table.insert(wave2DeadAnim, {func = AnimOutOfNowhere, swh = false, args = {cyborg, cyborgPos2[1], cyborgPos2[2]}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
352 |
table.insert(wave2DeadAnim, {func = AnimTurn, args = {cyborg, "Left"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
353 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {cyborg, IsolateNatives, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
354 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {cyborg, PutCGI, {}}}) |
7259 | 355 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {cyborg, loc("I want to see how it handles this!"), SAY_SAY, 6000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
356 |
table.insert(wave2DeadAnim, {func = AnimSwitchHog, args = {deployedHog}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
357 |
table.insert(wave2DeadAnim, {func = AnimDisappear, args = {cyborg, 0, 0}}) |
7425 | 358 |
-- table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {cyborg, DeployHog, {}}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
359 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, swh = false, args = {cyborg, HideCyborg, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
360 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
361 |
table.insert(wave2DeadAnim, {func = AnimWait, args = {natives[wiseNum], 1500}}) |
7259 | 362 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("What a strange feeling!"), SAY_THINK, 3000}}) |
363 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("I sense another wave of cannibals heading my way!"), SAY_THINK, 6500}}) |
|
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
364 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("I feel something...a place! They will arrive near the circles!"), SAY_SAY, 7500}}) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
365 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {natives[wiseNum], PutCircles, {}}}) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
366 |
table.insert(wave2DeadAnim, {func = AnimFollowGear, swh = false, args = {vCircs[1]}}) |
7259 | 367 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("I need to prevent their arrival!"), SAY_THINK, 4500}}) |
368 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("If only I had a way..."), SAY_THINK, 3000}}) |
|
369 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {natives[wiseNum], loc("Oh, silly me! I forgot that I'm the shaman."), SAY_THINK, 6000}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
370 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
371 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
372 |
table.insert(wave2DeadAnim, {func = AnimWait, args = {cyborg, 1500}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
373 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, swh = false, args = {cyborg, RestoreCyborg, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
374 |
table.insert(wave2DeadAnim, {func = AnimOutOfNowhere, args = {cyborg, cyborgPos2[1], cyborgPos2[2]}}) |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
375 |
table.insert(wave2DeadAnim, {func = AnimTurn, args = {cyborg, "Left"}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
376 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {cyborg, TeleportNatives, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
377 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {cyborg, TurnNatives, {cyborg}}}) |
7259 | 378 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {cyborg, loc("Oh, my! This is even more entertaining than I've expected!"), SAY_SAY, 7500}}) |
379 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {cyborg, loc("You might want to find a way to instantly kill arriving cannibals!"), SAY_SAY, 8000}}) |
|
380 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {cyborg, loc("I believe there's more of them."), SAY_SAY, 4000}}) |
|
7425 | 381 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {cyborg, loc("I marked the place of their arrival. You're welcome!"), SAY_SAY, 6000}}) |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
382 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {natives[wiseNum], PutCircles, {}}}) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
383 |
table.insert(wave2DeadAnim, {func = AnimFollowGear, swh = false, args = {vCircs[1]}}) |
7425 | 384 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {deployedHog, DeployHog, {}}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
385 |
if nativesNum > 1 then |
7425 | 386 |
-- table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {natives[wiseNum], RestoreCyborg, {}}}) |
387 |
-- table.insert(wave2DeadAnim, {func = AnimOutOfNowhere, swh = false, args = {cyborg, cyborgPos2[1], cyborgPos2[2]}}) |
|
388 |
-- table.insert(wave2DeadAnim, {func = AnimTurn, args = {cyborg, "Left"}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
389 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {cyborg, IsolateNatives, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
390 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, args = {cyborg, PutCGI, {}}}) |
7259 | 391 |
table.insert(wave2DeadAnim, {func = AnimSay, args = {cyborg, loc("I want to see how it handles this!"), SAY_SAY, 6000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
392 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
393 |
table.insert(wave2DeadAnim, {func = AnimSwitchHog, args = {deployedHog}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
394 |
table.insert(wave2DeadAnim, {func = AnimDisappear, swh = false, args = {cyborg, 0, 0}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
395 |
table.insert(wave2DeadAnim, {func = AnimCustomFunction, swh = false, args = {cyborg, HideCyborg, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
396 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
397 |
AddSkipFunction(wave2DeadAnim, SkipWave2DeadAnim, {}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
398 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
399 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
400 |
function IsolateNatives() |
12361
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
401 |
if not nativesIsolated then |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
402 |
PlaceGirder(710, 299, 6) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
403 |
PlaceGirder(690, 299, 6) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
404 |
PlaceGirder(761, 209, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
405 |
PlaceGirder(921, 209, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
406 |
PlaceGirder(1081, 209, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
407 |
PlaceGirder(761, 189, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
408 |
PlaceGirder(921, 189, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
409 |
PlaceGirder(1081, 189, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
410 |
PlaceGirder(761, 169, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
411 |
PlaceGirder(921, 169, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
412 |
PlaceGirder(1081, 169, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
413 |
PlaceGirder(761, 149, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
414 |
PlaceGirder(921, 149, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
415 |
PlaceGirder(1081, 149, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
416 |
PlaceGirder(761, 129, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
417 |
PlaceGirder(921, 129, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
418 |
PlaceGirder(1081, 129, 4) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
419 |
PlaceGirder(1120, 261, 2) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
420 |
PlaceGirder(1140, 261, 2) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
421 |
PlaceGirder(1160, 261, 2) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
422 |
AddAmmo(deployedHog, amDEagle, 0) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
423 |
AddAmmo(deployedHog, amFirePunch, 0) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
424 |
nativesIsolated = true |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
425 |
end |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
426 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
427 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
428 |
function PutCGI() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
429 |
AddVisualGear(710, 299, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
430 |
AddVisualGear(690, 299, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
431 |
AddVisualGear(761, 209, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
432 |
AddVisualGear(921, 209, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
433 |
AddVisualGear(1081, 209, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
434 |
AddVisualGear(761, 189, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
435 |
AddVisualGear(921, 189, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
436 |
AddVisualGear(1081, 189, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
437 |
AddVisualGear(761, 169, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
438 |
AddVisualGear(921, 169, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
439 |
AddVisualGear(1081, 169, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
440 |
AddVisualGear(761, 149, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
441 |
AddVisualGear(921, 149, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
442 |
AddVisualGear(1081, 149, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
443 |
AddVisualGear(761, 129, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
444 |
AddVisualGear(921, 129, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
445 |
AddVisualGear(1081, 129, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
446 |
AddVisualGear(1120, 261, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
447 |
AddVisualGear(1140, 261, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
448 |
AddVisualGear(1160, 261, vgtExplosion, 0, true) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
449 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
450 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
451 |
function TeleportNatives() |
12361
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
452 |
if not nativesTeleported then |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
453 |
nativePos[waterNum] = {1100, 288} |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
454 |
for i = 1, 7 do |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
455 |
if nativeDead[i] ~= true then |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
456 |
AnimTeleportGear(natives[i], unpack(nativePos[i])) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
457 |
end |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
458 |
end |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
459 |
nativesTeleported = true |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
460 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
461 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
462 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
463 |
function TurnNatives(hog) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
464 |
for i = 1, 7 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
465 |
if nativeDead[i] == false then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
466 |
if GetX(natives[i]) < GetX(hog) then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
467 |
AnimTurn(natives[i], "Right") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
468 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
469 |
AnimTurn(natives[i], "Left") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
470 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
471 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
472 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
473 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
474 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
475 |
function DeployHog() |
12361
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
476 |
if not hogDeployed then |
12750
6cec6b881a1c
ACF mission 5: Take away switch and always play with deployed hog in final mission stage
Wuzzy <Wuzzy2@mail.ru>
parents:
12611
diff
changeset
|
477 |
-- Steal switch to force the deployed hog to be on its own |
6cec6b881a1c
ACF mission 5: Take away switch and always play with deployed hog in final mission stage
Wuzzy <Wuzzy2@mail.ru>
parents:
12611
diff
changeset
|
478 |
AddAmmo(deployedHog, amSwitch, 0) |
12361
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
479 |
AnimSwitchHog(deployedHog) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
480 |
AnimTeleportGear(deployedHog, unpack(deployedPos)) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
481 |
if deployedHog ~= natives[wiseNum] then |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
482 |
AnimSay(deployedHog, loc("Why me?!"), SAY_THINK, 2000) |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
483 |
end |
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
484 |
hogDeployed = true |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
485 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
486 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
487 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
488 |
function SetupAfterChoiceAnim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
489 |
for i = 7, 1, -1 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
490 |
if nativeDead[i] ~= true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
491 |
if natives[i] ~= spyHog then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
492 |
speakerHog = natives[i] |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
493 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
494 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
495 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
496 |
if choice == choiceEliminate then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
497 |
table.insert(afterChoiceAnim, {func = AnimWait, args = {speakerHog, 1500}}) |
7259 | 498 |
table.insert(afterChoiceAnim, {func = AnimSay, args = {speakerHog, loc("He won't be selling us out anymore!"), SAY_SAY, 6000}}) |
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
499 |
if nativeDead[girlNum] ~= true and m4ChiefDead == 1 then |
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
500 |
table.insert(afterChoiceAnim, {func = AnimSay, args = {natives[girlNum], loc("That's for my father!"), SAY_SAY, 3500}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
501 |
end |
7259 | 502 |
table.insert(afterChoiceAnim, {func = AnimSay, args = {speakerHog, loc("Let's show those cannibals what we're made of!"), SAY_SAY, 7000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
503 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
504 |
table.insert(afterChoiceAnim, {func = AnimCustomFunction, swh = false, args = {natives[leaksNum], CondNeedToTurn, {speakerHog, spyHog}}}) |
7259 | 505 |
table.insert(afterChoiceAnim, {func = AnimSay, args = {speakerHog, loc("We'll spare your life for now!"), SAY_SAY, 4500}}) |
506 |
table.insert(afterChoiceAnim, {func = AnimSay, args = {spyHog, loc("May the spirits aid you in all your quests!"), SAY_SAY, 7000}}) |
|
507 |
table.insert(afterChoiceAnim, {func = AnimSay, args = {speakerHog, loc("I just don't want to sink to your level."), SAY_SAY, 6000}}) |
|
508 |
table.insert(afterChoiceAnim, {func = AnimSay, args = {speakerHog, loc("Let's show those cannibals what we're made of!"), SAY_SAY, 7000}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
509 |
end |
7259 | 510 |
table.insert(afterChoiceAnim, {func = AnimSay, args = {natives[8], loc("Let us help, too!"), SAY_SAY, 3000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
511 |
table.insert(afterChoiceAnim, {func = AnimTurn, args = {speakerHog, "Left", SAY_SAY, 7000}}) |
7259 | 512 |
table.insert(afterChoiceAnim, {func = AnimSay, args = {speakerHog, loc("No. You and the rest of the tribe are safer there!"), SAY_SAY, 7000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
513 |
AddSkipFunction(afterChoiceAnim, SkipAfterChoiceAnim, {}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
514 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
515 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
516 |
function SetupHogDeadAnim(gear) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
517 |
hogDeadAnim = {} |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
518 |
if nativesNum == 0 then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
519 |
return |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
520 |
end |
12263
2c8e7e73ef58
Use format strings everywhere in A Classic Fairytale (for translators)
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
521 |
local hogDeadStrings = {string.format(loc("They killed %s! You bastards!"), gear), |
2c8e7e73ef58
Use format strings everywhere in A Classic Fairytale (for translators)
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
522 |
string.format(loc("%s! Why?!"), gear), |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
523 |
loc("That was just mean!"), |
12263
2c8e7e73ef58
Use format strings everywhere in A Classic Fairytale (for translators)
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
524 |
string.format(loc("Oh no, not %s!"), gear), |
2c8e7e73ef58
Use format strings everywhere in A Classic Fairytale (for translators)
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
525 |
string.format(loc("Why %s? Why?"), gear), |
2c8e7e73ef58
Use format strings everywhere in A Classic Fairytale (for translators)
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
526 |
string.format(loc("What has %s ever done to you?"), gear)} |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
527 |
table.insert(hogDeadAnim, {func = AnimSay, args = {CurrentHedgehog, hogDeadStrings[7 - nativesNum], SAY_SHOUT, 4000}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
528 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
529 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
530 |
function AfterHogDeadAnim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
531 |
freshDead = nil |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
532 |
TurnTimeLeft = TurnTime |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
533 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
534 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
535 |
--------------------------Anim skip functions-------------------------- |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
536 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
537 |
function AfterAfterChoiceAnim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
538 |
stage = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
539 |
AddEvent(CheckWaveDead, {1}, DoWaveDead, {1}, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
540 |
AddAmmo(speakerHog, amSwitch, 100) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
541 |
SetGearMessage(speakerHog, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
542 |
SetState(speakerHog, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
543 |
TurnTimeLeft = -1 |
7259 | 544 |
ShowMission(loc("Backstab"), loc("The food bites back"), loc("Defeat the cannibals"), 1, 4000) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
545 |
SpawnCrates() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
546 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
547 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
548 |
function SkipAfterChoiceAnim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
549 |
SetGearMessage(CurrentHedgehog, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
550 |
AnimSwitchHog(speakerHog) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
551 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
552 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
553 |
function AfterWave2Anim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
554 |
AddEvent(CheckWaveDead, {2}, DoWaveDead, {2}, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
555 |
SetGearMessage(CurrentHedgehog, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
556 |
SetState(CurrentHedgehog, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
557 |
SpawnCrates() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
558 |
TurnTimeLeft = TurnTime |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
559 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
560 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
561 |
function SkipWave2DeadAnim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
562 |
TeleportNatives() |
12361
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
563 |
PutCircles() |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
564 |
DeployHog() |
12361
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
565 |
IsolateNatives() |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
566 |
HideCyborg() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
567 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
568 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
569 |
function SpawnPlatformCrates() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
570 |
SpawnAmmoCrate(2494, 1262, amMine) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
571 |
SpawnAmmoCrate(2574, 1279, amSMine) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
572 |
SpawnAmmoCrate(2575, 1267, amMine) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
573 |
SpawnAmmoCrate(2617, 1259, amSMine) |
12512
b1c2b0a8a43e
Fix crate types (weapon/utility) in A Classic Fairytale missions
Wuzzy <almikes@aol.com>
parents:
12364
diff
changeset
|
574 |
SpawnAmmoCrate(2579, 1254, amMine) |
b1c2b0a8a43e
Fix crate types (weapon/utility) in A Classic Fairytale missions
Wuzzy <almikes@aol.com>
parents:
12364
diff
changeset
|
575 |
SpawnAmmoCrate(2478, 1243, amMine) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
576 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
577 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
578 |
function AfterWave2DeadAnim() |
7425 | 579 |
TurnsLeft = 7 |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
580 |
stage = platformStage |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
581 |
SpawnPlatformCrates() |
7463
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
582 |
SetGearMessage(CurrentHedgehog, 0) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
583 |
AddEvent(CheckTurnsOver, {}, DoTurnsOver, {3}, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
584 |
AddEvent(CheckWaveDead, {3}, DoWaveDead, {3}, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
585 |
AddEvent(CheckDeployedDead, {}, DoDeployedDead, {}, 0) |
12364
5857936921ec
Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12361
diff
changeset
|
586 |
EndTurn(true) |
7425 | 587 |
ShowMission(loc("Backstab"), loc("Drills"), loc("You have 7 turns until the next wave arrives.|Make sure the arriving cannibals are greeted appropriately!|If the hog dies, the cause is lost.|Hint: you might want to use some mines..."), 1, 12000) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
588 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
589 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
590 |
function DoTurnsOver() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
591 |
stage = wave3Stage |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
592 |
RestoreWave(3) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
593 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
594 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
595 |
function SkipWave2Anim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
596 |
AnimSwitchHog(speakerHog) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
597 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
598 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
599 |
function SkipStartAnim() |
12611
fb0734d5dd87
ACF5: Fix position of Fiery Water when skipping start anim.
Wuzzy <almikes@aol.com>
parents:
12610
diff
changeset
|
600 |
ReviveNatives() |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
601 |
AnimSetGearPosition(natives[waterNum], nativePos[denseNum][1] + 50, nativePos[denseNum][2]) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
602 |
RestoreWave(1) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
603 |
SetGearMessage(CurrentHedgehog, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
604 |
SetState(CurrentHedgehog, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
605 |
if m2Choice == choiceAccepted then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
606 |
spyHog = natives[denseNum] |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
607 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
608 |
spyHog = natives[waterNum] |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
609 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
610 |
SetHealth(spyHog, 26) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
611 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
612 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
613 |
function AfterStartAnim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
614 |
AnimSwitchHog(natives[leaksNum]) |
12364
5857936921ec
Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12361
diff
changeset
|
615 |
EndTurn(true) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
616 |
stage = spyKillStage |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
617 |
AddEvent(CheckChoice, {}, DoChoice, {}, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
618 |
AddEvent(CheckKilledOther, {}, DoKilledOther, {}, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
619 |
AddEvent(CheckChoiceRefuse, {}, DoChoiceRefuse, {}, 0) |
12610
dd0fb5b15567
ACF5: Spare traitor's life with skip instead of precise
Wuzzy <almikes@aol.com>
parents:
12554
diff
changeset
|
620 |
ShowMission(loc("Backstab"), loc("Judas"), |
dd0fb5b15567
ACF5: Spare traitor's life with skip instead of precise
Wuzzy <almikes@aol.com>
parents:
12554
diff
changeset
|
621 |
string.format(loc("Kill the traitor, %s, or spare his life!"), GetHogName(spyHog)) .. "|" .. |
dd0fb5b15567
ACF5: Spare traitor's life with skip instead of precise
Wuzzy <almikes@aol.com>
parents:
12554
diff
changeset
|
622 |
loc("Kill him or skip your turn."), |
dd0fb5b15567
ACF5: Spare traitor's life with skip instead of precise
Wuzzy <almikes@aol.com>
parents:
12554
diff
changeset
|
623 |
1, 8000) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
624 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
625 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
626 |
-----------------------------Events------------------------------------ |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
627 |
function CheckTurnsOver() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
628 |
return TurnsLeft == 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
629 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
630 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
631 |
function CheckDeployedDead() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
632 |
return deployedDead |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
633 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
634 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
635 |
function DoDeployedDead() |
7259 | 636 |
ShowMission(loc("Backstab"), loc("Brutus"), loc("You have failed to save the tribe!"), 0, 6000) |
10290 | 637 |
DismissTeam(loc("Natives")) |
638 |
DismissTeam(loc("Tribe")) |
|
639 |
DismissTeam(loc("011101001")) |
|
12364
5857936921ec
Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12361
diff
changeset
|
640 |
EndTurn(true) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
641 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
642 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
643 |
function CheckChoice() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
644 |
return choice ~= 0 and tmpVar == 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
645 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
646 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
647 |
function CheckDeaths() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
648 |
for i = 1, 7 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
649 |
if natives[i] ~= spyHog and band(GetState(natives[i]), gstAttacked) ~= 0 then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
650 |
return true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
651 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
652 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
653 |
return false |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
654 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
655 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
656 |
function DoChoice() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
657 |
RemoveEventFunc(CheckChoiceRefuse) |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
658 |
SetGearMessage(CurrentHedgehog, 0) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
659 |
SetupAfterChoiceAnim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
660 |
AddAnim(afterChoiceAnim) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
661 |
AddFunction({func = AfterAfterChoiceAnim, args = {}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
662 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
663 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
664 |
function CheckChoiceRefuse() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
665 |
return highJumped == true and StoppedGear(CurrentHedgehog) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
666 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
667 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
668 |
function DoChoiceRefuse() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
669 |
choice = choiceSpare |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
670 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
671 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
672 |
function CheckKilledOther() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
673 |
if stage ~= spyKillStage then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
674 |
return false |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
675 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
676 |
return (nativesNum < startNativesNum and choice ~= choiceEliminate) or |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
677 |
(nativesNum < startNativesNum - 1 and choice == choiceEliminate) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
678 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
679 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
680 |
function DoKilledOther() |
7259 | 681 |
ShowMission(loc("Backstab"), loc("Brutus"), loc("You have killed an innocent hedgehog!"), 0, 6000) |
10290 | 682 |
DismissTeam(loc("Natives")) |
683 |
DismissTeam(loc("Tribe")) |
|
12364
5857936921ec
Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12361
diff
changeset
|
684 |
EndTurn(true) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
685 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
686 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
687 |
function CheckWaveDead(index) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
688 |
for i = (index - 1) * 3 + 1, index * 3 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
689 |
if cannibalDead[i] ~= true or CurrentHedgehog == cannibals[i] then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
690 |
return false |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
691 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
692 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
693 |
return true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
694 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
695 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
696 |
function DoWaveDead(index) |
12364
5857936921ec
Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12361
diff
changeset
|
697 |
EndTurn(true) |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
698 |
needToAct = index |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
699 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
700 |
|
7425 | 701 |
function AddWave3DeadAnim() |
7463
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
702 |
AnimSwitchHog(deployedHog) |
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
703 |
AnimWait(deployedHog, 1) |
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
704 |
AddFunction({func = HideNatives, args = {}}) |
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
705 |
AddFunction({func = SetupWave3DeadAnim, args = {}}) |
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
706 |
AddFunction({func = AddAnim, args = {wave3DeadAnim}}) |
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
707 |
AddFunction({func = AddFunction, args = {{func = AfterWave3DeadAnim, args = {}}}}) |
7425 | 708 |
end |
709 |
||
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
710 |
function HideNatives() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
711 |
for i = 1, 9 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
712 |
if nativeDead[i] ~= true and natives[i] ~= deployedHog then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
713 |
if nativeHidden[i] ~= true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
714 |
HideHog(natives[i]) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
715 |
nativeHidden[i] = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
716 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
717 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
718 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
719 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
720 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
721 |
function SetupWave3DeadAnim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
722 |
table.insert(wave3DeadAnim, {func = AnimTurn, args = {deployedHog, "Left"}}) |
7259 | 723 |
table.insert(wave3DeadAnim, {func = AnimSay, args = {deployedHog, loc("That ought to show them!"), SAY_SAY, 4000}}) |
724 |
table.insert(wave3DeadAnim, {func = AnimSay, args = {deployedHog, loc("Guys, do you think there's more of them?"), SAY_SHOUT, 7000}}) |
|
7255
93cf6b3b89be
Fixed a visual gear in Mission 5
belphegorr <szabibibi@gmail.com>
parents:
7253
diff
changeset
|
725 |
table.insert(wave3DeadAnim, {func = AnimVisualGear, args = {deployedHog, unpack(nativePos[wiseNum]), vgtFeather, 0, true, true}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
726 |
table.insert(wave3DeadAnim, {func = AnimWait, args = {deployedHog, 1000}}) |
7259 | 727 |
table.insert(wave3DeadAnim, {func = AnimSay, args = {deployedHog, loc("Where are they?!"), SAY_THINK, 3000}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
728 |
table.insert(wave3DeadAnim, {func = AnimCustomFunction, args = {deployedHog, RestoreCyborg, {}}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
729 |
table.insert(wave3DeadAnim, {func = AnimOutOfNowhere, args = {cyborg, 4040, 782}}) |
7259 | 730 |
table.insert(wave3DeadAnim, {func = AnimSay, args = {cyborg, loc("These primitive people are so funny!"), SAY_THINK, 6500}}) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
731 |
table.insert(wave3DeadAnim, {func = AnimMove, args = {cyborg, "Right", 4060, 0}}) |
7425 | 732 |
table.insert(wave3DeadAnim, {func = AnimSwitchHog, args = {deployedHog}}) |
733 |
table.insert(wave3DeadAnim, {func = AnimWait, args = {deployedHog, 1}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
734 |
table.insert(wave3DeadAnim, {func = AnimCustomFunction, args = {deployedHog, HideCyborg, {}}}) |
7259 | 735 |
table.insert(wave3DeadAnim, {func = AnimSay, args = {deployedHog, loc("I need to find the others!"), SAY_THINK, 4500}}) |
736 |
table.insert(wave3DeadAnim, {func = AnimSay, args = {deployedHog, loc("I have to follow that alien."), SAY_THINK, 4500}}) |
|
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
737 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
738 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
739 |
function SkipWave3DeadAnim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
740 |
AnimSwitchHog(deployedHog) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
741 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
742 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
743 |
function AfterWave3DeadAnim() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
744 |
if nativeDead[leaksNum] == true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
745 |
SaveCampaignVar("M5LeaksDead", "1") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
746 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
747 |
SaveCampaignVar("M5LeaksDead", "0") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
748 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
749 |
if nativeDead[denseNum] == true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
750 |
SaveCampaignVar("M5DenseDead", "1") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
751 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
752 |
SaveCampaignVar("M5DenseDead", "0") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
753 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
754 |
if nativeDead[waterNum] == true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
755 |
SaveCampaignVar("M5WaterDead", "1") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
756 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
757 |
SaveCampaignVar("M5WaterDead", "0") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
758 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
759 |
if nativeDead[buffaloNum] == true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
760 |
SaveCampaignVar("M5BuffaloDead", "1") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
761 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
762 |
SaveCampaignVar("M5BuffaloDead", "0") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
763 |
end |
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
764 |
if nativeDead[girlNum] == true then |
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
765 |
SaveCampaignVar("M5GirlDead", "1") |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
766 |
else |
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
767 |
SaveCampaignVar("M5GirlDead", "0") |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
768 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
769 |
if nativeDead[wiseNum] == true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
770 |
SaveCampaignVar("M5WiseDead", "1") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
771 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
772 |
SaveCampaignVar("M5WiseDead", "0") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
773 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
774 |
if nativeDead[chiefNum] == true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
775 |
SaveCampaignVar("M5ChiefDead", "1") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
776 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
777 |
SaveCampaignVar("M5ChiefDead", "0") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
778 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
779 |
SaveCampaignVar("M5Choice", "" .. choice) |
8944
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
780 |
if progress and progress<5 then |
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
781 |
SaveCampaignVar("Progress", "5") |
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
782 |
end |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
783 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
784 |
for i = 1, 7 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
785 |
if natives[i] == deployedHog then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
786 |
SaveCampaignVar("M5DeployedNum", "" .. i) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
787 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
788 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
789 |
|
10290 | 790 |
DismissTeam(loc("Tribe")) |
791 |
DismissTeam(loc("Assault Team")) |
|
792 |
DismissTeam(loc("Reinforcements")) |
|
793 |
DismissTeam(loc("011101001")) |
|
12364
5857936921ec
Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12361
diff
changeset
|
794 |
EndTurn(true) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
795 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
796 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
797 |
-----------------------------Misc-------------------------------------- |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
798 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
799 |
function SpawnCrates() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
800 |
SpawnAmmoCrate(0, 0, amDrill) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
801 |
SpawnAmmoCrate(0, 0, amGrenade) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
802 |
SpawnAmmoCrate(0, 0, amBazooka) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
803 |
SpawnAmmoCrate(0, 0, amDynamite) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
804 |
SpawnAmmoCrate(0, 0, amGrenade) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
805 |
SpawnAmmoCrate(0, 0, amMine) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
806 |
SpawnAmmoCrate(0, 0, amShotgun) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
807 |
SpawnAmmoCrate(0, 0, amFlamethrower) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
808 |
SpawnAmmoCrate(0, 0, amMolotov) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
809 |
SpawnAmmoCrate(0, 0, amSMine) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
810 |
SpawnAmmoCrate(0, 0, amMortar) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
811 |
SpawnUtilityCrate(0, 0, amRope) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
812 |
SpawnUtilityCrate(0, 0, amRope) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
813 |
SpawnUtilityCrate(0, 0, amParachute) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
814 |
SpawnUtilityCrate(0, 0, amParachute) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
815 |
SetHealth(SpawnHealthCrate(0, 0), 25) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
816 |
SetHealth(SpawnHealthCrate(0, 0), 25) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
817 |
SetHealth(SpawnHealthCrate(0, 0), 25) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
818 |
SetHealth(SpawnHealthCrate(0, 0), 25) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
819 |
SetHealth(SpawnHealthCrate(0, 0), 25) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
820 |
SetHealth(SpawnHealthCrate(0, 0), 25) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
821 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
822 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
823 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
824 |
function RestoreWave(index) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
825 |
for i = (index - 1) * 3 + 1, index * 3 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
826 |
if cannibalHidden[i] == true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
827 |
RestoreHog(cannibals[i]) |
7466
5cb1b21b3176
Fixed bug in mission 5 with invisible obstacles
belphegorr <szabibibi@gmail.com>
parents:
7463
diff
changeset
|
828 |
AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
829 |
FollowGear(cannibals[i]) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
830 |
cannibalHidden[i] = false |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
831 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
832 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
833 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
834 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
835 |
function GetVariables() |
8944
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
836 |
progress = tonumber(GetCampaignVar("Progress")) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
837 |
m2DenseDead = tonumber(GetCampaignVar("M2DenseDead")) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
838 |
m2Choice = tonumber(GetCampaignVar("M2Choice")) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
839 |
m4DenseDead = tonumber(GetCampaignVar("M4DenseDead")) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
840 |
m4LeaksDead = tonumber(GetCampaignVar("M4LeaksDead")) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
841 |
m4ChiefDead = tonumber(GetCampaignVar("M4ChiefDead")) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
842 |
m4WaterDead = tonumber(GetCampaignVar("M4WaterDead")) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
843 |
m4BuffaloDead = tonumber(GetCampaignVar("M4BuffaloDead")) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
844 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
845 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
846 |
function HideCyborg() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
847 |
if cyborgHidden == false then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
848 |
HideHog(cyborg) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
849 |
cyborgHidden = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
850 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
851 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
852 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
853 |
function RestoreCyborg() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
854 |
if cyborgHidden == true then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
855 |
RestoreHog(cyborg) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
856 |
cyborgHidden = false |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
857 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
858 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
859 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
860 |
function SetupPlace() |
7518
70babd9073a2
Mission 5: fixed a few bugs that came with the update (ammo menu bug and initial gear elimination bug)
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
861 |
startNativesNum = nativesNum |
12361
05fe955e2763
Fix engine crash in ACF mission 5 when skipping animation after killing wave 2 while the cyborg is talking
Wuzzy <almikes@aol.com>
parents:
12263
diff
changeset
|
862 |
HideCyborg() |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
863 |
for i = 1, 9 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
864 |
HideHog(cannibals[i]) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
865 |
cannibalHidden[i] = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
866 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
867 |
if m4LeaksDead == 1 then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
868 |
HideHog(natives[leaksNum]) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
869 |
nativeHidden[leaksNum] = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
870 |
needRevival = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
871 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
872 |
if m4DenseDead == 1 then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
873 |
if m2Choice ~= choiceAccepted then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
874 |
DeleteGear(natives[denseNum]) |
7518
70babd9073a2
Mission 5: fixed a few bugs that came with the update (ammo menu bug and initial gear elimination bug)
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
875 |
startNativesNum = startNativesNum - 1 |
70babd9073a2
Mission 5: fixed a few bugs that came with the update (ammo menu bug and initial gear elimination bug)
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
876 |
nativeDead[denseNum] = true |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
877 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
878 |
HideHog(natives[denseNum]) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
879 |
nativeHidden[denseNum] = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
880 |
needRevival = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
881 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
882 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
883 |
if m4WaterDead == 1 then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
884 |
HideHog(natives[waterNum]) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
885 |
nativeHidden[waterNum] = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
886 |
needRevival = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
887 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
888 |
if m4ChiefDead == 1 then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
889 |
DeleteGear(natives[chiefNum]) |
7518
70babd9073a2
Mission 5: fixed a few bugs that came with the update (ammo menu bug and initial gear elimination bug)
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
890 |
startNativesNum = startNativesNum - 1 |
70babd9073a2
Mission 5: fixed a few bugs that came with the update (ammo menu bug and initial gear elimination bug)
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
891 |
nativeDead[chiefNum] = true |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
892 |
AnimSetGearPosition(natives[girlNum], unpack(nativePos[buffaloNum])) |
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
893 |
nativePos[girlNum] = nativePos[buffaloNum] |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
894 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
895 |
if m4BuffaloDead == 1 then |
7518
70babd9073a2
Mission 5: fixed a few bugs that came with the update (ammo menu bug and initial gear elimination bug)
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
896 |
startNativesNum = startNativesNum - 1 |
70babd9073a2
Mission 5: fixed a few bugs that came with the update (ammo menu bug and initial gear elimination bug)
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
897 |
nativeDead[buffaloNum] = true |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
898 |
DeleteGear(natives[buffaloNum]) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
899 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
900 |
PlaceGirder(3568, 1461, 1) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
901 |
PlaceGirder(440, 523, 5) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
902 |
PlaceGirder(350, 441, 1) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
903 |
PlaceGirder(405, 553, 5) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
904 |
PlaceGirder(316, 468, 1) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
905 |
PlaceGirder(1319, 168, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
906 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
907 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
908 |
function SetupAmmo() |
7417
2520705b857f
Switched Fell From Heaven to Fell From Grace on missions 5, 6.
belphegorr <szabibibi@gmail.com>
parents:
7259
diff
changeset
|
909 |
AddAmmo(natives[girlNum], amSwitch, 0) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
910 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
911 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
912 |
function AddHogs() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
913 |
AddTeam(loc("Natives"), 29439, "Bone", "Island", "HillBilly", "cm_birdy") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
914 |
for i = 1, 7 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
915 |
natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i]) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
916 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
917 |
nativesNum = 7 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
918 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
919 |
AddTeam(loc("Tribe"), 29438, "Bone", "Island", "HillBilly", "cm_birdy") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
920 |
for i = 8, 9 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
921 |
natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i]) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
922 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
923 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
924 |
|
12554
194b00c4ba07
ACF: Use skull grave for cannibal teams (for real)
Wuzzy <almikes@aol.com>
parents:
12552
diff
changeset
|
925 |
AddTeam(loc("Assault Team"), 14483456, "skull", "Island", "Pirate", "cm_vampire") |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
926 |
for i = 1, 6 do |
7463
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
927 |
cannibals[i] = AddHog(cannibalNames[i], 1, 50, "vampirichog") |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
928 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
929 |
|
12554
194b00c4ba07
ACF: Use skull grave for cannibal teams (for real)
Wuzzy <almikes@aol.com>
parents:
12552
diff
changeset
|
930 |
AddTeam(loc("Reinforcements"), 14483456, "skull", "Island", "Pirate", "cm_vampire") |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
931 |
for i = 7, 9 do |
7463
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
932 |
cannibals[i] = AddHog(cannibalNames[i], 1, 50, "vampirichog") |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
933 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
934 |
|
12049
030464f34d47
Tweak flags used in all missions to fit more to the theme
Wuzzy <almikes@aol.com>
parents:
10290
diff
changeset
|
935 |
AddTeam(loc("011101001"), 14483456, "ring", "UFO", "Robot", "cm_binary") |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
936 |
cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1") |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
937 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
938 |
for i = 1, 9 do |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
939 |
AnimSetGearPosition(natives[i], unpack(nativePos[i])) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
940 |
AnimTurn(natives[i], nativeDir[i]) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
941 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
942 |
|
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
943 |
AnimSetGearPosition(cyborg, 0, 0) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
944 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
945 |
for i = 1, 9 do |
7466
5cb1b21b3176
Fixed bug in mission 5 with invisible obstacles
belphegorr <szabibibi@gmail.com>
parents:
7463
diff
changeset
|
946 |
AnimSetGearPosition(cannibals[i], cannibalPos[i][1], cannibalPos[i][2] + 40) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
947 |
AnimTurn(cannibals[i], cannibalDir[i]) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
948 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
949 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
950 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
951 |
function CondNeedToTurn(hog1, hog2) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
952 |
xl, xd = GetX(hog1), GetX(hog2) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
953 |
if xl > xd then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
954 |
AnimInsertStepNext({func = AnimTurn, args = {hog1, "Left"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
955 |
AnimInsertStepNext({func = AnimTurn, args = {hog2, "Right"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
956 |
elseif xl < xd then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
957 |
AnimInsertStepNext({func = AnimTurn, args = {hog2, "Left"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
958 |
AnimInsertStepNext({func = AnimTurn, args = {hog1, "Right"}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
959 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
960 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
961 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
962 |
-----------------------------Main Functions---------------------------- |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
963 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
964 |
function onGameInit() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
965 |
Seed = 2 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
966 |
GameFlags = gfSolidLand |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
967 |
TurnTime = 60000 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
968 |
CaseFreq = 0 |
7425 | 969 |
MinesNum = 0 |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
970 |
MinesTime = 3000 |
7425 | 971 |
Explosives = 0 |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
972 |
Delay = 10 |
12549
d8af6f9b51c6
Disable SD in ACF6 and ASA: The first stop
Wuzzy <almikes@aol.com>
parents:
12512
diff
changeset
|
973 |
Map = "Cave" |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
974 |
Theme = "Nature" |
12549
d8af6f9b51c6
Disable SD in ACF6 and ASA: The first stop
Wuzzy <almikes@aol.com>
parents:
12512
diff
changeset
|
975 |
WaterRise = 0 |
d8af6f9b51c6
Disable SD in ACF6 and ASA: The first stop
Wuzzy <almikes@aol.com>
parents:
12512
diff
changeset
|
976 |
HealthDecrease = 0 |
d8af6f9b51c6
Disable SD in ACF6 and ASA: The first stop
Wuzzy <almikes@aol.com>
parents:
12512
diff
changeset
|
977 |
AddHogs() |
d8af6f9b51c6
Disable SD in ACF6 and ASA: The first stop
Wuzzy <almikes@aol.com>
parents:
12512
diff
changeset
|
978 |
AnimInit() |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
979 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
980 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
981 |
function onGameStart() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
982 |
GetVariables() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
983 |
SetupAmmo() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
984 |
SetupPlace() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
985 |
AnimationSetup() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
986 |
AddAnim(startAnim) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
987 |
AddFunction({func = AfterStartAnim, args = {}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
988 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
989 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
990 |
function onGameTick() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
991 |
AnimUnWait() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
992 |
if ShowAnimation() == false then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
993 |
return |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
994 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
995 |
ExecuteAfterAnimations() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
996 |
CheckEvents() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
997 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
998 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
999 |
function onGearDelete(gear) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1000 |
for i = 1, 7 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1001 |
if gear == natives[i] then |
7518
70babd9073a2
Mission 5: fixed a few bugs that came with the update (ammo menu bug and initial gear elimination bug)
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
1002 |
if nativeDead[i] ~= true then |
70babd9073a2
Mission 5: fixed a few bugs that came with the update (ammo menu bug and initial gear elimination bug)
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
1003 |
freshDead = nativeNames[i] |
70babd9073a2
Mission 5: fixed a few bugs that came with the update (ammo menu bug and initial gear elimination bug)
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
1004 |
end |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1005 |
nativeDead[i] = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1006 |
nativesNum = nativesNum - 1 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1007 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1008 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1009 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1010 |
for i = 1, 9 do |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1011 |
if gear == cannibals[i] then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1012 |
cannibalDead[i] = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1013 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1014 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1015 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1016 |
if gear == spyHog and stage == spyKillStage then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1017 |
freshDead = nil |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1018 |
choice = choiceEliminate |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1019 |
tmpVar = 1 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1020 |
end |
7463
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
1021 |
|
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
1022 |
if gear == deployedHog then |
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
1023 |
deployedDead = true |
bd5c7b8db666
Crashfix, healthfix in mission 5
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
1024 |
end |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1025 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1026 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1027 |
function onAmmoStoreInit() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1028 |
SetAmmo(amDEagle, 9, 0, 0, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1029 |
SetAmmo(amSniperRifle, 4, 0, 0, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1030 |
SetAmmo(amFirePunch, 9, 0, 0, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1031 |
SetAmmo(amWhip, 9, 0, 0, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1032 |
SetAmmo(amBaseballBat, 9, 0, 0, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1033 |
SetAmmo(amHammer, 9, 0, 0, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1034 |
SetAmmo(amLandGun, 9, 0, 0, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1035 |
SetAmmo(amSnowball, 8, 0, 0, 0) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1036 |
SetAmmo(amGirder, 4, 0, 0, 2) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1037 |
SetAmmo(amParachute, 4, 0, 0, 2) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1038 |
SetAmmo(amSwitch, 8, 0, 0, 2) |
12552 | 1039 |
SetAmmo(amSkip, 9, 0, 0, 0) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1040 |
SetAmmo(amRope, 5, 0, 0, 3) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1041 |
SetAmmo(amBlowTorch, 3, 0, 0, 3) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1042 |
SetAmmo(amPickHammer, 0, 0, 0, 3) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1043 |
SetAmmo(amLowGravity, 0, 0, 0, 2) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1044 |
SetAmmo(amDynamite, 0, 0, 0, 3) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1045 |
SetAmmo(amBazooka, 4, 0, 0, 4) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1046 |
SetAmmo(amGrenade, 4, 0, 0, 4) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1047 |
SetAmmo(amMine, 2, 0, 0, 2) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1048 |
SetAmmo(amSMine, 2, 0, 0, 2) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1049 |
SetAmmo(amMolotov, 2, 0, 0, 3) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1050 |
SetAmmo(amFlamethrower, 2, 0, 0, 3) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1051 |
SetAmmo(amShotgun, 4, 0, 0, 4) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1052 |
SetAmmo(amTeleport, 0, 0, 0, 2) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1053 |
SetAmmo(amDrill, 0, 0, 0, 4) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1054 |
SetAmmo(amMortar, 0, 0, 0, 4) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1055 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1056 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1057 |
j = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1058 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1059 |
function onNewTurn() |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1060 |
tmpVar = 0 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1061 |
if AnimInProgress() then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1062 |
TurnTimeLeft = -1 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1063 |
return |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1064 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1065 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1066 |
if GetHogTeamName(CurrentHedgehog) == loc("Tribe") then |
12364
5857936921ec
Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12361
diff
changeset
|
1067 |
EndTurn(true) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1068 |
return |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1069 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1070 |
TurnsLeft = TurnsLeft - 1 |
7425 | 1071 |
|
1072 |
if stage == platformStage then |
|
12263
2c8e7e73ef58
Use format strings everywhere in A Classic Fairytale (for translators)
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
1073 |
AddCaption(string.format(loc("Turns until arrival: %d"), TurnsLeft)) |
7425 | 1074 |
end |
12750
6cec6b881a1c
ACF mission 5: Take away switch and always play with deployed hog in final mission stage
Wuzzy <Wuzzy2@mail.ru>
parents:
12611
diff
changeset
|
1075 |
if deployedHog then |
6cec6b881a1c
ACF mission 5: Take away switch and always play with deployed hog in final mission stage
Wuzzy <Wuzzy2@mail.ru>
parents:
12611
diff
changeset
|
1076 |
if GetHogTeamName(CurrentHedgehog) == loc("Natives") then |
6cec6b881a1c
ACF mission 5: Take away switch and always play with deployed hog in final mission stage
Wuzzy <Wuzzy2@mail.ru>
parents:
12611
diff
changeset
|
1077 |
AnimSwitchHog(deployedHog) |
6cec6b881a1c
ACF mission 5: Take away switch and always play with deployed hog in final mission stage
Wuzzy <Wuzzy2@mail.ru>
parents:
12611
diff
changeset
|
1078 |
end |
6cec6b881a1c
ACF mission 5: Take away switch and always play with deployed hog in final mission stage
Wuzzy <Wuzzy2@mail.ru>
parents:
12611
diff
changeset
|
1079 |
end |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1080 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1081 |
if stage == spyKillStage then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1082 |
if CurrentHedgehog == spyHog or GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then |
12364
5857936921ec
Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12361
diff
changeset
|
1083 |
EndTurn(true) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1084 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1085 |
SetGearMessage(CurrentHedgehog, 0) |
7518
70babd9073a2
Mission 5: fixed a few bugs that came with the update (ammo menu bug and initial gear elimination bug)
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
1086 |
--AnimSwitchHog(natives[leaksNum]) |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1087 |
TurnTimeLeft = -1 |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1088 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1089 |
else |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1090 |
if freshDead ~= nil and GetHogTeamName(CurrentHedgehog) == loc("Natives") then |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1091 |
SetupHogDeadAnim(freshDead) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1092 |
AddAnim(hogDeadAnim) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1093 |
AddFunction({func = AfterHogDeadAnim, args = {}}) |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1094 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1095 |
end |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1096 |
if needToAct > 0 then |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1097 |
if needToAct == 1 then |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1098 |
RestoreWave(2) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1099 |
SetupWave2Anim() |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1100 |
AddAnim(wave2Anim) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1101 |
AddFunction({func = AfterWave2Anim, args = {}}) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1102 |
elseif needToAct == 2 then |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1103 |
SetupWave2DeadAnim() |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1104 |
AddAnim(wave2DeadAnim) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1105 |
AddFunction({func = AfterWave2DeadAnim, args = {}}) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1106 |
elseif needToAct == 3 then |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1107 |
AnimSwitchHog(deployedHog) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1108 |
AddFunction({func = AddWave3DeadAnim, args = {}}) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1109 |
end |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1110 |
needToAct = 0 |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
1111 |
end |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1112 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1113 |
|
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1114 |
function onPrecise() |
7425 | 1115 |
if GameTime > 2500 and AnimInProgress() then |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1116 |
SetAnimSkip(true) |
7425 | 1117 |
return |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1118 |
end |
12610
dd0fb5b15567
ACF5: Spare traitor's life with skip instead of precise
Wuzzy <almikes@aol.com>
parents:
12554
diff
changeset
|
1119 |
end |
dd0fb5b15567
ACF5: Spare traitor's life with skip instead of precise
Wuzzy <almikes@aol.com>
parents:
12554
diff
changeset
|
1120 |
|
dd0fb5b15567
ACF5: Spare traitor's life with skip instead of precise
Wuzzy <almikes@aol.com>
parents:
12554
diff
changeset
|
1121 |
function onHogAttack(ammoType) |
dd0fb5b15567
ACF5: Spare traitor's life with skip instead of precise
Wuzzy <almikes@aol.com>
parents:
12554
diff
changeset
|
1122 |
if stage == spyKillStage and ammoType == amSkip then |
7253
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1123 |
highJumped = true |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1124 |
end |
86814ed9feab
Added fifth mission and fixed minor control bug with mission 4
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1125 |
end |