share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/journey.lua
changeset 7506 e2632a18bb4c
parent 7502 16c36f62247b
child 7510 a7601ce08b5d
equal deleted inserted replaced
7502:16c36f62247b 7506:e2632a18bb4c
    17 
    17 
    18 startLeaksPosDuo = {3572, 1426}
    18 startLeaksPosDuo = {3572, 1426}
    19 startEventXDuo = 3300
    19 startEventXDuo = 3300
    20 startDensePosDuo = {3454, 1471}
    20 startDensePosDuo = {3454, 1471}
    21 startCyborgPosDuo = {3202, 1307}
    21 startCyborgPosDuo = {3202, 1307}
    22 midDensePosDuo = {1464, 1408}
    22 midDensePosDuo = {1464, 1410}
    23 midCyborgPosDuo = {1264, 1390}
    23 midCyborgPosDuo = {1264, 1390}
    24 
    24 
    25 --///////////////////////////////VARIABLES///////////////////////////
    25 --///////////////////////////////VARIABLES///////////////////////////
    26 
    26 
    27 m2Choice = 0
    27 m2Choice = 0
   232   AddFunction({func = HideHedge, args = {cyborg}})
   232   AddFunction({func = HideHedge, args = {cyborg}})
   233 end
   233 end
   234 
   234 
   235 function AfterOutPitAnim()
   235 function AfterOutPitAnim()
   236   SetupCourseDuo()
   236   SetupCourseDuo()
   237   RestoreHog(cannibals[5])
   237   RestoreHedge(cannibals[5])
   238   AddAmmo(cannibals[5], amDEagle, 0)
   238   AddAmmo(cannibals[5], amDEagle, 0)
   239   HideHedge(cannibals[5])
   239   HideHedge(cannibals[5])
   240   AddEvent(CheckTookFire, {}, DoTookFire, {}, 0)
   240   AddEvent(CheckTookFire, {}, DoTookFire, {}, 0)
   241   SetGearMessage(leaks, 0)
   241   SetGearMessage(leaks, 0)
   242   SetGearMessage(dense, 0)
   242   SetGearMessage(dense, 0)
   304   PlaceGirder(962, 630, 2)
   304   PlaceGirder(962, 630, 2)
   305   PlaceGirder(1033, 649, 0)
   305   PlaceGirder(1033, 649, 0)
   306   PlaceGirder(952, 650, 0)
   306   PlaceGirder(952, 650, 0)
   307 
   307 
   308   fireCrate = SpawnAmmoCrate(1846, 1100, amFirePunch)
   308   fireCrate = SpawnAmmoCrate(1846, 1100, amFirePunch)
   309   SpawnUtilityCrate(1900, 1149, amPickHammer)
   309   SpawnUtilityCrate(1900, 1100, amPickHammer)
   310   SpawnAmmoCrate(950, 674, amDynamite)
   310   SpawnAmmoCrate(950, 674, amDynamite)
   311   SpawnUtilityCrate(994, 825, amRope)
   311   SpawnUtilityCrate(994, 825, amRope)
   312   SpawnUtilityCrate(570, 1357, amLowGravity)
   312   SpawnUtilityCrate(570, 1357, amLowGravity)
   313 end
   313 end
   314 
   314 
   467   AddSkipFunction(pastFlowerAnimAL, SkipPastFlowerAnim, {})
   467   AddSkipFunction(pastFlowerAnimAL, SkipPastFlowerAnim, {})
   468 
   468 
   469   table.insert(outPitAnimAL, {func = AnimCustomFunction, args = {dense, RestoreCyborgOnly, {unpack(midCyborgPosDuo)}}, swh = false})
   469   table.insert(outPitAnimAL, {func = AnimCustomFunction, args = {dense, RestoreCyborgOnly, {unpack(midCyborgPosDuo)}}, swh = false})
   470   table.insert(outPitAnimAL, {func = AnimTurn, args = {cyborg, "Right"}})
   470   table.insert(outPitAnimAL, {func = AnimTurn, args = {cyborg, "Right"}})
   471   table.insert(outPitAnimAL, {func = AnimTeleportGear, args = {dense, unpack(midDensePosDuo)}})
   471   table.insert(outPitAnimAL, {func = AnimTeleportGear, args = {dense, unpack(midDensePosDuo)}})
       
   472   table.insert(outPitAnimAL, {func = AnimTurn, args = {dense, "Left"}})
   472   table.insert(outPitAnimAL, {func = AnimSay, args = {dense, loc("OH, COME ON!"), SAY_SHOUT, 3000}})
   473   table.insert(outPitAnimAL, {func = AnimSay, args = {dense, loc("OH, COME ON!"), SAY_SHOUT, 3000}})
   473   table.insert(outPitAnimAL, {func = AnimSay, args = {cyborg, loc("Let's see what your comrade does now!"), SAY_SAY, 5000}})
   474   table.insert(outPitAnimAL, {func = AnimSay, args = {cyborg, loc("Let's see what your comrade does now!"), SAY_SAY, 5000}})
   474   table.insert(outPitAnimAL, {func = AnimSwitchHog, args = {dense}})
   475   table.insert(outPitAnimAL, {func = AnimSwitchHog, args = {dense}})
   475   table.insert(outPitAnimAL, {func = AnimDisappear, swh = false, args = {cyborg, 3781, 1583}})
   476   table.insert(outPitAnimAL, {func = AnimDisappear, swh = false, args = {cyborg, 3781, 1583}})
   476   table.insert(outPitAnimAL, {func = AnimCustomFunction, swh = false, args = {cyborg, HideCyborgOnly, {}}})
   477   table.insert(outPitAnimAL, {func = AnimCustomFunction, swh = false, args = {cyborg, HideCyborgOnly, {}}})
   529   AddSkipFunction(pastFlowerAnimRL, SkipPastFlowerAnim, {})
   530   AddSkipFunction(pastFlowerAnimRL, SkipPastFlowerAnim, {})
   530 
   531 
   531   table.insert(outPitAnimRL, {func = AnimCustomFunction, args = {dense, RestoreCyborgOnly, {unpack(midCyborgPosDuo)}}, swh = false})
   532   table.insert(outPitAnimRL, {func = AnimCustomFunction, args = {dense, RestoreCyborgOnly, {unpack(midCyborgPosDuo)}}, swh = false})
   532   table.insert(outPitAnimRL, {func = AnimTurn, args = {cyborg, "Right"}})
   533   table.insert(outPitAnimRL, {func = AnimTurn, args = {cyborg, "Right"}})
   533   table.insert(outPitAnimRL, {func = AnimTeleportGear, args = {dense, unpack(midDensePosDuo)}})
   534   table.insert(outPitAnimRL, {func = AnimTeleportGear, args = {dense, unpack(midDensePosDuo)}})
       
   535   table.insert(outPitAnimRL, {func = AnimTurn, args = {dense, "Left"}})
   534   table.insert(outPitAnimRL, {func = AnimSay, args = {dense, loc("OH, COME ON!"), SAY_SHOUT, 3000}})
   536   table.insert(outPitAnimRL, {func = AnimSay, args = {dense, loc("OH, COME ON!"), SAY_SHOUT, 3000}})
   535   table.insert(outPitAnimRL, {func = AnimSay, args = {cyborg, loc("Let's see what your comrade does now!"), SAY_SAY, 5000}})
   537   table.insert(outPitAnimRL, {func = AnimSay, args = {cyborg, loc("Let's see what your comrade does now!"), SAY_SAY, 5000}})
   536   table.insert(outPitAnimRL, {func = AnimSwitchHog, args = {dense}})
   538   table.insert(outPitAnimRL, {func = AnimSwitchHog, args = {dense}})
   537   table.insert(outPitAnimRL, {func = AnimDisappear, swh = false, args = {cyborg, 3781, 1583}})
   539   table.insert(outPitAnimRL, {func = AnimDisappear, swh = false, args = {cyborg, 3781, 1583}})
   538   table.insert(outPitAnimRL, {func = AnimCustomFunction, swh = false, args = {cyborg, HideCyborgOnly, {}}})
   540   table.insert(outPitAnimRL, {func = AnimCustomFunction, swh = false, args = {cyborg, HideCyborgOnly, {}}})
  1032           HogTurnLeft(cannibals[i], true)
  1034           HogTurnLeft(cannibals[i], true)
  1033         end
  1035         end
  1034       end
  1036       end
  1035     end
  1037     end
  1036     SetInputMask(band(0xFFFFFFFF, bnot(gmLeft + gmRight + gmLJump + gmHJump)))
  1038     SetInputMask(band(0xFFFFFFFF, bnot(gmLeft + gmRight + gmLJump + gmHJump)))
       
  1039     TurnTimeLeft = 20000
  1037   else
  1040   else
  1038     SetInputMask(0xFFFFFFFF)
  1041     SetInputMask(0xFFFFFFFF)
  1039     TurnsLeft = TurnsLeft - 1
  1042     TurnsLeft = TurnsLeft - 1
  1040   end
  1043   end
  1041 end
  1044 end