256 table.insert(killAnim, {func = AnimSay, args = {native, loc("Well, that was a waste of time."), SAY_THINK, 5000}}) |
260 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)}}}) |
261 table.insert(killAnim, {func = AnimCustomFunction, args = {native, RestoreHedge, {cyborg, unpack(cyborgPos)}}}) |
258 table.insert(killAnim, {func = AnimOutOfNowhere, args = {cyborg, unpack(cyborgPos)}}) |
262 table.insert(killAnim, {func = AnimOutOfNowhere, args = {cyborg, unpack(cyborgPos)}}) |
259 table.insert(killAnim, {func = AnimCustomFunction, args = {cyborg, CondNeedToTurn, {cyborg, native}}}) |
263 table.insert(killAnim, {func = AnimCustomFunction, args = {cyborg, CondNeedToTurn, {cyborg, native}}}) |
260 table.insert(killAnim, {func = AnimSay, args = {cyborg, string.format(loc("You bear impressive skills, %s!"), nativeUnNames[m5DeployedNum]), SAY_SHOUT, 4000}}) |
264 table.insert(killAnim, {func = AnimSay, args = {cyborg, string.format(loc("You bear impressive skills, %s!"), nativeUnNames[m5DeployedNum]), SAY_SHOUT, 4000}}) |
261 table.insert(killAnim, {func = AnimSay, args = {cyborg, loc("However, my mates don't agree with me on letting you go..."), SAY_SHOUT, 7000}}) |
265 if CheckCyborgsDead() then |
262 table.insert(killAnim, {func = AnimSay, args = {cyborg, loc("I guess you'll have to kill them."), SAY_SHOUT, 4000}}) |
266 table.insert(killAnim, {func = AnimSay, args = {cyborg, loc("I see you already took care of your enemies."), SAY_SHOUT, 7000}}) |
|
267 table.insert(killAnim, {func = AnimSay, args = {cyborg, loc("Those were scheduled for disposal anyway."), SAY_SHOUT, 4000}}) |
|
268 table.insert(killAnim, {func = AnimSay, args = {cyborg, loc("So you basically did the dirty work for us."), SAY_SHOUT, 4000}}) |
|
269 cyborgsKilledBeforeCrates = true |
|
270 else |
|
271 table.insert(killAnim, {func = AnimSay, args = {cyborg, loc("However, my mates don't agree with me on letting you go..."), SAY_SHOUT, 7000}}) |
|
272 table.insert(killAnim, {func = AnimSay, args = {cyborg, loc("I guess you'll have to kill them."), SAY_SHOUT, 4000}}) |
|
273 end |
263 table.insert(killAnim, {func = AnimDisappear, args = {cyborg, unpack(cyborgPos)}}) |
274 table.insert(killAnim, {func = AnimDisappear, args = {cyborg, unpack(cyborgPos)}}) |
264 table.insert(killAnim, {func = AnimSwitchHog, args = {native}}) |
275 table.insert(killAnim, {func = AnimSwitchHog, args = {native}}) |
265 table.insert(killAnim, {func = AnimWait, args = {native, 1}}) |
276 table.insert(killAnim, {func = AnimWait, args = {native, 1}}) |
266 table.insert(killAnim, {func = AnimCustomFunction, args = {native, HideHedge, {cyborg}}}) |
277 table.insert(killAnim, {func = AnimCustomFunction, args = {native, HideHedge, {cyborg}}}) |
|
278 |
|
279 local function checkCyborgsAgain() |
|
280 if CheckCyborgsDead() then |
|
281 DoCyborgsDead() |
|
282 end |
|
283 end |
|
284 table.insert(killAnim, {func = AnimCustomFunction, args = {native, checkCyborgsAgain, {}}}) |
|
285 |
267 AddSkipFunction(killAnim, SkipKillAnim, {}) |
286 AddSkipFunction(killAnim, SkipKillAnim, {}) |
268 end |
287 end |
269 |
288 |
270 function SetupKilledAnim() |
289 function SetupKilledAnim() |
271 table.insert(killedAnim, {func = AnimWait, args = {cyborg, 500}}) |
290 table.insert(killedAnim, {func = AnimWait, args = {cyborg, 500}}) |
272 table.insert(killedAnim, {func = AnimOutOfNowhere, args = {cyborg, unpack(secondPos[2])}}) |
291 table.insert(killedAnim, {func = AnimOutOfNowhere, args = {cyborg, unpack(secondPos[2])}}) |
273 table.insert(killedAnim, {func = AnimOutOfNowhere, args = {native, unpack(secondPos[1])}}) |
292 table.insert(killedAnim, {func = AnimOutOfNowhere, args = {native, unpack(secondPos[1])}}) |
274 table.insert(killedAnim, {func = AnimCustomFunction, args = {cyborg, CondNeedToTurn, {cyborg, native}}}) |
293 table.insert(killedAnim, {func = AnimCustomFunction, args = {cyborg, CondNeedToTurn, {cyborg, native}}}) |
275 table.insert(killedAnim, {func = AnimSay, args = {cyborg, string.format(loc("Nice work, %s!"), nativeUnNames[m5DeployedNum]), SAY_SHOUT, 4000}}) |
294 if not cyborgsKilledBeforeCrates then |
|
295 table.insert(killedAnim, {func = AnimSay, args = {cyborg, string.format(loc("Nice work, %s!"), nativeUnNames[m5DeployedNum]), SAY_SHOUT, 4000}}) |
|
296 end |
276 table.insert(killedAnim, {func = AnimSay, args = {cyborg, loc("As a reward for your performance, here's some new technology!"), SAY_SHOUT, 8000}}) |
297 table.insert(killedAnim, {func = AnimSay, args = {cyborg, loc("As a reward for your performance, here's some new technology!"), SAY_SHOUT, 8000}}) |
277 table.insert(killedAnim, {func = AnimSay, args = {cyborg, loc("Use it wisely!"), SAY_SHOUT, 3000}}) |
298 table.insert(killedAnim, {func = AnimSay, args = {cyborg, loc("Use it wisely!"), SAY_SHOUT, 3000}}) |
278 table.insert(killedAnim, {func = AnimDisappear, args = {cyborg, unpack(secondPos[2])}}) |
299 table.insert(killedAnim, {func = AnimDisappear, args = {cyborg, unpack(secondPos[2])}}) |
279 table.insert(killedAnim, {func = AnimSwitchHog, args = {native}}) |
300 table.insert(killedAnim, {func = AnimSwitchHog, args = {native}}) |
280 AddSkipFunction(killedAnim, SkipKilledAnim, {}) |
301 AddSkipFunction(killedAnim, SkipKilledAnim, {}) |