equal
deleted
inserted
replaced
733 AddAnim(afterChoiceAnim) |
733 AddAnim(afterChoiceAnim) |
734 AddFunction({func = AfterAfterChoiceAnim, args = {}}) |
734 AddFunction({func = AfterAfterChoiceAnim, args = {}}) |
735 end |
735 end |
736 |
736 |
737 function CheckChoiceRefuse() |
737 function CheckChoiceRefuse() |
738 return highJumped == true and StoppedGear(CurrentHedgehog) |
738 return GetHealth(CurrentHedgehog) and highJumped == true and StoppedGear(CurrentHedgehog) |
739 end |
739 end |
740 |
740 |
741 function CheckChoiceRunaway() |
741 function CheckChoiceRunaway() |
742 return CurrentHedgehog and band(GetState(CurrentHedgehog), gstHHDriven) ~= 0 and GetHogTeamName(CurrentHedgehog) == nativesTeamName and GetX(CurrentHedgehog) >= runawayX and GetY(CurrentHedgehog) >= runawayY and StoppedGear(CurrentHedgehog) |
742 return GetHealth(CurrentHedgehog) and band(GetState(CurrentHedgehog), gstHHDriven) ~= 0 and GetHogTeamName(CurrentHedgehog) == nativesTeamName and GetX(CurrentHedgehog) >= runawayX and GetY(CurrentHedgehog) >= runawayY and StoppedGear(CurrentHedgehog) |
743 end |
743 end |
744 |
744 |
745 function CheckChoiceRunawayAll() |
745 function CheckChoiceRunawayAll() |
746 for i= 1, 7 do |
746 for i= 1, 7 do |
747 local hog = natives[i] |
747 local hog = natives[i] |