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