share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/queen.lua
changeset 13767 f5eea79da795
parent 13755 110d6c1e817f
child 14406 6c21bd8547dd
equal deleted inserted replaced
13766:6fd56a26e8b8 13767:f5eea79da795
    97 cyborgNames = {loc("Artur Detour"), loc("Led Heart"), loc("Orlando Boom!"), loc("Nilarian"), 
    97 cyborgNames = {loc("Artur Detour"), loc("Led Heart"), loc("Orlando Boom!"), loc("Nilarian"), 
    98                loc("Steel Eye"), loc("Rusty Joe"), loc("Hatless Jerry"), loc("Gas Gargler")}
    98                loc("Steel Eye"), loc("Rusty Joe"), loc("Hatless Jerry"), loc("Gas Gargler")}
    99 
    99 
   100 cyborgsDif = {2, 2, 2, 2, 2, 2, 2, 2}
   100 cyborgsDif = {2, 2, 2, 2, 2, 2, 2, 2}
   101 cyborgsHealth = {100, 100, 100, 100, 100, 100, 100, 100}
   101 cyborgsHealth = {100, 100, 100, 100, 100, 100, 100, 100}
   102 cyborgPos = {1765, 1145}
   102 cyborgHidePos = {1665, 1800}
   103 cyborgsTeamNum = {4, 3}
   103 cyborgsTeamNum = {4, 3}
   104 cyborgsNum = 7
   104 cyborgsNum = 7
   105 cyborgsPos = {{2893, 1717}, {2958, 1701}, {3027, 1696}, {3096, 1698},
   105 cyborgsPos = {{2893, 1717}, {2958, 1701}, {3027, 1696}, {3096, 1698},
   106               {2584, 655},  {2047, 1534}, {115, 179}, {2162, 1916}}
   106               {2584, 655},  {2047, 1534}, {115, 179}, {2162, 1916}}
   107 cyborgsDir = {"Left", "Left", "Left", "Left", "Left", "Left", "Right", "Left"}
   107 cyborgsDir = {"Left", "Left", "Left", "Left", "Left", "Left", "Right", "Left"}
   647     SaveCampaignVar("Progress", "8")
   647     SaveCampaignVar("Progress", "8")
   648   end
   648   end
   649 end
   649 end
   650 
   650 
   651 function SetupPlace()
   651 function SetupPlace()
       
   652   HideHedge(cyborg)
   652   SetHogHat(natives[1], nativeHats[m5DeployedNum])
   653   SetHogHat(natives[1], nativeHats[m5DeployedNum])
   653   SetHogName(natives[1], nativeNames[m5DeployedNum])
   654   SetHogName(natives[1], nativeNames[m5DeployedNum])
   654 
   655 
   655   if m5DeployedNum == denseNum then
   656   if m5DeployedNum == denseNum then
   656     dense = natives[1]
   657     dense = natives[1]
   745   AddTeam(loc("Leaderbot"), -1, "ring", "UFO", "Robot", "cm_cyborg")
   746   AddTeam(loc("Leaderbot"), -1, "ring", "UFO", "Robot", "cm_cyborg")
   746   enemy = AddHog(loc("Name"), 2, 200, "cyborg1")
   747   enemy = AddHog(loc("Name"), 2, 200, "cyborg1")
   747 
   748 
   748   AddTeam(loc("011101001"), -1, "ring", "UFO", "Robot", "cm_binary")
   749   AddTeam(loc("011101001"), -1, "ring", "UFO", "Robot", "cm_binary")
   749   cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1")
   750   cyborg = AddHog(loc("Unit 334a$7%;.*"), 0, 200, "cyborg1")
   750   HideHedge(cyborg)
   751   SetGearPosition(cyborg, unpack(cyborgHidePos))
   751 
       
   752   SetGearPosition(cyborg, 0, 0)
       
   753 
   752 
   754   for i = 1, nativesNum do
   753   for i = 1, nativesNum do
   755     AnimSetGearPosition(natives[i], unpack(nativePos[i]))
   754     AnimSetGearPosition(natives[i], unpack(nativePos[i]))
   756   end
   755   end
   757 
   756 
   867 end
   866 end
   868 
   867 
   869 function onPrecise()
   868 function onPrecise()
   870   if GameTime > 2500 and AnimInProgress() then
   869   if GameTime > 2500 and AnimInProgress() then
   871     SetAnimSkip(true)
   870     SetAnimSkip(true)
   872 --  else
   871   end
   873 --    DeleteGear(cyborgs[1])
   872 end
   874 --    table.remove(cyborgs, 1)
       
   875 --    if cyborgsLeft == 0 then
       
   876 --      DeleteGear(enemy)
       
   877 --    end
       
   878   end
       
   879 end