equal
deleted
inserted
replaced
623 |
623 |
624 AddTeam(loc("011101000"), 14483455, "ring", "UFO", "Robot", "cm_binary") |
624 AddTeam(loc("011101000"), 14483455, "ring", "UFO", "Robot", "cm_binary") |
625 for i = 1, 4 do |
625 for i = 1, 4 do |
626 cyborgs[i] = AddHog(cyborgNames[i], 2, 100, "cyborg2") |
626 cyborgs[i] = AddHog(cyborgNames[i], 2, 100, "cyborg2") |
627 gearDead[cyborgs[i]] = false |
627 gearDead[cyborgs[i]] = false |
|
628 SetEffect(cyborgs[i], heArtillery, 1) |
628 end |
629 end |
629 cyborgsLeft = 4 |
630 cyborgsLeft = 4 |
630 |
631 |
631 for i = 1, 7 do |
632 for i = 1, 7 do |
632 AnimSetGearPosition(natives[i], unpack(nativePos)) |
633 AnimSetGearPosition(natives[i], unpack(nativePos)) |
725 AddAnim(startAnim) |
726 AddAnim(startAnim) |
726 AddFunction({func = AfterStartAnim, args = {}}) |
727 AddFunction({func = AfterStartAnim, args = {}}) |
727 firstTurn = false |
728 firstTurn = false |
728 end |
729 end |
729 if GetHogTeamName(CurrentHedgehog) == loc("011101000") then |
730 if GetHogTeamName(CurrentHedgehog) == loc("011101000") then |
730 SetInputMask(band(0xFFFFFFFF, bnot(gmLeft + gmRight + gmLJump + gmHJump))) |
|
731 for i = 1, 4 do |
|
732 if gearDead[CurrentHedgehog] ~= true and gearDead[native] ~= true then |
|
733 if gearDead[cyborgs[i]] ~= true and GetX(cyborgs[i]) < GetX(native) then |
|
734 HogTurnLeft(cyborgs[i], false) |
|
735 else |
|
736 HogTurnLeft(cyborgs[i], true) |
|
737 end |
|
738 end |
|
739 end |
|
740 if TotalRounds % 6 == 0 then |
731 if TotalRounds % 6 == 0 then |
741 AddAmmo(CurrentHedgehog, amSniperRifle, 1) |
732 AddAmmo(CurrentHedgehog, amSniperRifle, 1) |
742 AddAmmo(CurrentHedgehog, amDEagle, 1) |
733 AddAmmo(CurrentHedgehog, amDEagle, 1) |
743 end |
734 end |
744 TurnTimeLeft = 30000 |
735 TurnTimeLeft = 30000 |
745 elseif GetHogTeamName(CurrentHedgehog) == loc("011101001") then |
736 elseif GetHogTeamName(CurrentHedgehog) == loc("011101001") then |
746 EndTurn(true) |
737 EndTurn(true) |
747 else |
|
748 SetInputMask(0xFFFFFFFF) |
|
749 end |
738 end |
750 end |
739 end |
751 |
740 |
752 function onPrecise() |
741 function onPrecise() |
753 if GameTime > 2500 and AnimInProgress() then |
742 if GameTime > 2500 and AnimInProgress() then |