share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
changeset 15164 2ad1f0bdc1f3
parent 15162 7416f6319de9
child 15165 a251d8757e8c
equal deleted inserted replaced
15163:bcb98009ad39 15164:2ad1f0bdc1f3
   486     AddAmmo(deployedHog, amFirePunch, 0)
   486     AddAmmo(deployedHog, amFirePunch, 0)
   487     nativesIsolated = true
   487     nativesIsolated = true
   488   end
   488   end
   489 end
   489 end
   490 
   490 
       
   491 -- Move camera to (x, y)
       
   492 function MoveCameraCustom(x, y)
       
   493    -- We use a dummy gear to feed FollowGear
       
   494    local cameraGear = AddGear(x, y, gtGenericFaller, 0, 0, 0, 5000)
       
   495    SetState(cameraGear, bor(GetState(cameraGear), gstNoGravity+gstInvisible))
       
   496    FollowGear(cameraGear)
       
   497 end
       
   498 
   491 function PutCGI()
   499 function PutCGI()
   492   AddVisualGear(710, 299, vgtExplosion, 0, false)
   500   AddVisualGear(710, 299, vgtExplosion, 0, false)
   493   AddVisualGear(690, 299, vgtExplosion, 0, false)
   501   AddVisualGear(690, 299, vgtExplosion, 0, false)
   494   AddVisualGear(761, 209, vgtExplosion, 0, false)
   502   AddVisualGear(761, 209, vgtExplosion, 0, false)
   495   AddVisualGear(921, 209, vgtExplosion, 0, false)
   503   AddVisualGear(921, 209, vgtExplosion, 0, false)
   800 end
   808 end
   801 
   809 
   802 function SetupWave3DeadAnim()
   810 function SetupWave3DeadAnim()
   803   table.insert(wave3DeadAnim, {func = AnimTurn, args = {deployedHog, "Left"}})
   811   table.insert(wave3DeadAnim, {func = AnimTurn, args = {deployedHog, "Left"}})
   804   table.insert(wave3DeadAnim, {func = AnimSay, args = {deployedHog, loc("That ought to show them!"), SAY_SAY, 4000}})
   812   table.insert(wave3DeadAnim, {func = AnimSay, args = {deployedHog, loc("That ought to show them!"), SAY_SAY, 4000}})
   805   table.insert(wave3DeadAnim, {func = AnimSay, args = {deployedHog, loc("Guys, do you think there's more of them?"), SAY_SHOUT, 7000}})
   813   table.insert(wave3DeadAnim, {func = AnimSay, args = {deployedHog, loc("Guys, do you think there's more of them?"), SAY_SHOUT, 5000}})
       
   814   table.insert(wave3DeadAnim, {func = AnimCustomFunction, args = {deployedHog, MoveCameraCustom, {unpack(nativePos[wiseNum])}}})
   806   table.insert(wave3DeadAnim, {func = AnimVisualGear, args = {deployedHog, unpack(nativePos[wiseNum]), vgtFeather, 0, true, true}})
   815   table.insert(wave3DeadAnim, {func = AnimVisualGear, args = {deployedHog, unpack(nativePos[wiseNum]), vgtFeather, 0, true, true}})
   807   table.insert(wave3DeadAnim, {func = AnimWait, args = {deployedHog, 1000}})
   816   table.insert(wave3DeadAnim, {func = AnimWait, args = {deployedHog, 1750}})
       
   817   table.insert(wave3DeadAnim, {func = AnimCustomFunction, args = {deployedHog, FollowGear, {deployedHog}}})
       
   818   table.insert(wave3DeadAnim, {func = AnimWait, args = {deployedHog, 100}})
   808   table.insert(wave3DeadAnim, {func = AnimSay, args = {deployedHog, loc("Where are they?!"), SAY_THINK, 3000}})
   819   table.insert(wave3DeadAnim, {func = AnimSay, args = {deployedHog, loc("Where are they?!"), SAY_THINK, 3000}})
   809   table.insert(wave3DeadAnim, {func = AnimCustomFunction, args = {deployedHog, RestoreCyborg, {}}})
   820   table.insert(wave3DeadAnim, {func = AnimCustomFunction, args = {deployedHog, RestoreCyborg, {}}})
   810   table.insert(wave3DeadAnim, {func = AnimOutOfNowhere, args = {cyborg, 4040, 782}})
   821   table.insert(wave3DeadAnim, {func = AnimOutOfNowhere, args = {cyborg, 4040, 782}})
   811   table.insert(wave3DeadAnim, {func = AnimSay, args = {cyborg, loc("These primitive people are so funny!"), SAY_THINK, 6500}})
   822   table.insert(wave3DeadAnim, {func = AnimSay, args = {cyborg, loc("These primitive people are so funny!"), SAY_THINK, 6500}})
   812   table.insert(wave3DeadAnim, {func = AnimMove, args = {cyborg, "Right", 4060, 0, 7000}})
   823   table.insert(wave3DeadAnim, {func = AnimMove, args = {cyborg, "Right", 4060, 0, 7000}})