191 |
191 |
192 function AnimationSetup() |
192 function AnimationSetup() |
193 startAnim = {} |
193 startAnim = {} |
194 local m = m5DeployedNum |
194 local m = m5DeployedNum |
195 table.insert(startAnim, {func = AnimWait, args = {native, 3000}}) |
195 table.insert(startAnim, {func = AnimWait, args = {native, 3000}}) |
196 table.insert(startAnim, {func = AnimCaption, args = {native, "With the rest of the tribe gone, it was up to " .. nativeNames[m5DeployedNum] .. " to save the village.", 5000}}) |
196 table.insert(startAnim, {func = AnimCaption, args = {native, loc("With the rest of the tribe gone, it was up to ") .. nativeNames[m5DeployedNum] .. loc(" to save the village."), 5000}}) |
197 table.insert(startAnim, {func = AnimCaption, args = {native, "But it proved to be no easy task!", 2000}}) |
197 table.insert(startAnim, {func = AnimCaption, args = {native, loc("But it proved to be no easy task!"), 2000}}) |
198 for i = 1, 4 do |
198 for i = 1, 4 do |
199 table.insert(startAnim, {func = FollowGear, swh = false, args = {cyborgs[i]}}) |
199 table.insert(startAnim, {func = FollowGear, swh = false, args = {cyborgs[i]}}) |
200 table.insert(startAnim, {func = AnimWait, args = {native, 1000}}) |
200 table.insert(startAnim, {func = AnimWait, args = {native, 1000}}) |
201 end |
201 end |
202 table.insert(startAnim, {func = FollowGear, swh = false, args = {native}}) |
202 table.insert(startAnim, {func = FollowGear, swh = false, args = {native}}) |
203 if m == leaksNum then |
203 if m == leaksNum then |
204 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
204 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
205 table.insert(startAnim, {func = AnimSay, args = {native, "What a strange cave!", SAY_THINK, 0}}) |
205 table.insert(startAnim, {func = AnimSay, args = {native, loc("What a strange cave!"), SAY_THINK, 0}}) |
206 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
206 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
207 table.insert(startAnim, {func = AnimSay, args = {native, "Now how do I get on the other side?!", SAY_THINK, 5500}}) |
207 table.insert(startAnim, {func = AnimSay, args = {native, loc("Now how do I get on the other side?!"), SAY_THINK, 5500}}) |
208 elseif m == denseNum then |
208 elseif m == denseNum then |
209 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
209 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
210 table.insert(startAnim, {func = AnimSay, args = {native, "Dude, what's this place?!", SAY_THINK, 0}}) |
210 table.insert(startAnim, {func = AnimSay, args = {native, loc("Dude, what's this place?!"), SAY_THINK, 0}}) |
211 table.insert(startAnim, {func = AnimCustomFunction, args = {native, EmitDenseClouds, {"Right"}}}) |
211 table.insert(startAnim, {func = AnimCustomFunction, args = {native, EmitDenseClouds, {"Right"}}}) |
212 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
212 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
213 table.insert(startAnim, {func = AnimSay, args = {native, "And where's all the weed?", SAY_THINK, 4000}}) |
213 table.insert(startAnim, {func = AnimSay, args = {native, loc("And where's all the weed?"), SAY_THINK, 4000}}) |
214 elseif m == waterNum then |
214 elseif m == waterNum then |
215 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
215 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
216 table.insert(startAnim, {func = AnimSay, args = {native, "Is this place in my head?", SAY_THINK, 0}}) |
216 table.insert(startAnim, {func = AnimSay, args = {native, loc("Is this place in my head?"), SAY_THINK, 0}}) |
217 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
217 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
218 table.insert(startAnim, {func = AnimSay, args = {native, "I shouldn't have drunk that last pint.", SAY_THINK, 6000}}) |
218 table.insert(startAnim, {func = AnimSay, args = {native, loc("I shouldn't have drunk that last pint."), SAY_THINK, 6000}}) |
219 elseif m == buffaloNum then |
219 elseif m == buffaloNum then |
220 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
220 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
221 table.insert(startAnim, {func = AnimSay, args = {native, "Where did that alien run?", SAY_THINK, 0}}) |
221 table.insert(startAnim, {func = AnimSay, args = {native, loc("Where did that alien run?"), SAY_THINK, 0}}) |
222 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
222 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
223 table.insert(startAnim, {func = AnimSay, args = {native, "When I find it...", SAY_THINK, 3000}}) |
223 table.insert(startAnim, {func = AnimSay, args = {native, loc("When I find it..."), SAY_THINK, 3000}}) |
224 elseif m == princessNum then |
224 elseif m == princessNum then |
225 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
225 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
226 table.insert(startAnim, {func = AnimSay, args = {native, "A woman shouldn't do this kind of thing!", SAY_THINK, 0}}) |
226 table.insert(startAnim, {func = AnimSay, args = {native, loc("A woman shouldn't do this kind of thing!"), SAY_THINK, 0}}) |
227 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
227 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
228 table.insert(startAnim, {func = AnimSay, args = {native, "I could be eating snails right now.", SAY_THINK, 5500}}) |
228 table.insert(startAnim, {func = AnimSay, args = {native, loc("I could be eating snails right now."), SAY_THINK, 5500}}) |
229 elseif m == chiefNum then |
229 elseif m == chiefNum then |
230 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
230 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
231 table.insert(startAnim, {func = AnimSay, args = {native, "What is this place?", SAY_THINK, 0}}) |
231 table.insert(startAnim, {func = AnimSay, args = {native, loc("What is this place?"), SAY_THINK, 0}}) |
232 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
232 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
233 table.insert(startAnim, {func = AnimSay, args = {native, "It doesn't matter. I won't let that alien hurt my daughter!", SAY_THINK, 8500}}) |
233 table.insert(startAnim, {func = AnimSay, args = {native, loc("It doesn't matter. I won't let that alien hurt my daughter!"), SAY_THINK, 8500}}) |
234 elseif m == wiseNum then |
234 elseif m == wiseNum then |
235 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
235 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 50, 0}}) |
236 table.insert(startAnim, {func = AnimSay, args = {native, "Every single time!", SAY_THINK, 0}}) |
236 table.insert(startAnim, {func = AnimSay, args = {native, loc("Every single time!"), SAY_THINK, 0}}) |
237 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
237 table.insert(startAnim, {func = AnimMove, args = {native, "Right", nativePos[1] + 200, 0}}) |
238 table.insert(startAnim, {func = AnimSay, args = {native, "How come in a village full of warriors, it's up to me to save it?", SAY_THINK, 8500}}) |
238 table.insert(startAnim, {func = AnimSay, args = {native, loc("How come in a village full of warriors, it's up to me to save it?"), SAY_THINK, 8500}}) |
239 end |
239 end |
240 |
240 |
241 table.insert(startAnim, {func = AnimCustomFunction, args = {native, RestoreHedge, {cyborg, unpack(cyborgPos)}}}) |
241 table.insert(startAnim, {func = AnimCustomFunction, args = {native, RestoreHedge, {cyborg, unpack(cyborgPos)}}}) |
242 table.insert(startAnim, {func = AnimOutOfNowhere, args = {cyborg, unpack(cyborgPos)}}) |
242 table.insert(startAnim, {func = AnimOutOfNowhere, args = {cyborg, unpack(cyborgPos)}}) |
243 table.insert(startAnim, {func = AnimTurn, args = {cyborg, "Left"}}) |
243 table.insert(startAnim, {func = AnimTurn, args = {cyborg, "Left"}}) |
244 table.insert(startAnim, {func = AnimSay, args = {cyborg, "Greetings, " .. nativeUnNames[m] .. "!", SAY_SAY, 2500}}) |
244 table.insert(startAnim, {func = AnimSay, args = {cyborg, loc("Greetings, ") .. nativeUnNames[m] .. "!", SAY_SAY, 2500}}) |
245 table.insert(startAnim, {func = AnimSay, args = {cyborg, "As you can see, there is no way to get on the other side!", SAY_SAY, 7000}}) |
245 table.insert(startAnim, {func = AnimSay, args = {cyborg, loc("As you can see, there is no way to get on the other side!"), SAY_SAY, 7000}}) |
246 table.insert(startAnim, {func = AnimSay, args = {cyborg, "I wish to help you, " .. nativeUnNames[m] .. "!", SAY_SAY, 4000}}) |
246 table.insert(startAnim, {func = AnimSay, args = {cyborg, loc("I wish to help you, ") .. nativeUnNames[m] .. "!", SAY_SAY, 4000}}) |
247 table.insert(startAnim, {func = AnimSay, args = {cyborg, "Beware, though! If you are slow, you die!", SAY_SAY, 7000}}) |
247 table.insert(startAnim, {func = AnimSay, args = {cyborg, loc("Beware, though! If you are slow, you die!"), SAY_SAY, 7000}}) |
248 table.insert(startAnim, {func = AnimDisappear, args = {cyborg, unpack(cyborgPos)}}) |
248 table.insert(startAnim, {func = AnimDisappear, args = {cyborg, unpack(cyborgPos)}}) |
249 table.insert(startAnim, {func = AnimSwitchHog, args = {native}}) |
249 table.insert(startAnim, {func = AnimSwitchHog, args = {native}}) |
250 table.insert(startAnim, {func = AnimCustomFunction, args = {native, HideHedge, {cyborg}}}) |
250 table.insert(startAnim, {func = AnimCustomFunction, args = {native, HideHedge, {cyborg}}}) |
251 table.insert(startAnim, {func = AnimSay, args = {native, "Talk about mixed signals...", SAY_SAY, 4000}}) |
251 table.insert(startAnim, {func = AnimSay, args = {native, loc("Talk about mixed signals..."), SAY_SAY, 4000}}) |
252 AddSkipFunction(startAnim, SkipStartAnim, {}) |
252 AddSkipFunction(startAnim, SkipStartAnim, {}) |
253 end |
253 end |
254 |
254 |
255 function SetupKillAnim() |
255 function SetupKillAnim() |
256 table.insert(killAnim, {func = AnimSay, args = {native, "Well, that was a waste of time.", SAY_THINK, 5000}}) |
256 table.insert(killAnim, {func = AnimSay, args = {native, loc("Well, that was a waste of time."), SAY_THINK, 5000}}) |
257 table.insert(killAnim, {func = AnimCustomFunction, args = {native, RestoreHedge, {cyborg, unpack(cyborgPos)}}}) |
257 table.insert(killAnim, {func = AnimCustomFunction, args = {native, RestoreHedge, {cyborg, unpack(cyborgPos)}}}) |
258 table.insert(killAnim, {func = AnimOutOfNowhere, args = {cyborg, unpack(cyborgPos)}}) |
258 table.insert(killAnim, {func = AnimOutOfNowhere, args = {cyborg, unpack(cyborgPos)}}) |
259 table.insert(killAnim, {func = AnimCustomFunction, args = {cyborg, CondNeedToTurn, {cyborg, native}}}) |
259 table.insert(killAnim, {func = AnimCustomFunction, args = {cyborg, CondNeedToTurn, {cyborg, native}}}) |
260 table.insert(killAnim, {func = AnimSay, args = {cyborg, "You bear impressive skills, " .. nativeUnNames[m5DeployedNum] .. "!", SAY_SHOUT, 4000}}) |
260 table.insert(killAnim, {func = AnimSay, args = {cyborg, loc("You bear impressive skills, ") .. nativeUnNames[m5DeployedNum] .. "!", SAY_SHOUT, 4000}}) |
261 table.insert(killAnim, {func = AnimSay, args = {cyborg, "However, my mates don't agree with me on leting you go...", SAY_SHOUT, 7000}}) |
261 table.insert(killAnim, {func = AnimSay, args = {cyborg, loc("However, my mates don't agree with me on leting you go..."), SAY_SHOUT, 7000}}) |
262 table.insert(killAnim, {func = AnimSay, args = {cyborg, "I guess you'll have to kill them.", SAY_SHOUT, 4000}}) |
262 table.insert(killAnim, {func = AnimSay, args = {cyborg, loc("I guess you'll have to kill them."), SAY_SHOUT, 4000}}) |
263 table.insert(killAnim, {func = AnimDisappear, args = {cyborg, unpack(cyborgPos)}}) |
263 table.insert(killAnim, {func = AnimDisappear, args = {cyborg, unpack(cyborgPos)}}) |
264 table.insert(killAnim, {func = AnimSwitchHog, args = {native}}) |
264 table.insert(killAnim, {func = AnimSwitchHog, args = {native}}) |
265 table.insert(killAnim, {func = AnimWait, args = {native, 1}}) |
265 table.insert(killAnim, {func = AnimWait, args = {native, 1}}) |
266 table.insert(killAnim, {func = AnimCustomFunction, args = {native, HideHedge, {cyborg}}}) |
266 table.insert(killAnim, {func = AnimCustomFunction, args = {native, HideHedge, {cyborg}}}) |
267 AddSkipFunction(killAnim, SkipKillAnim, {}) |
267 AddSkipFunction(killAnim, SkipKillAnim, {}) |