equal
deleted
inserted
replaced
772 function CheckDensePit() |
772 function CheckDensePit() |
773 return GetY(dense) < 1250 and StoppedGear(dense) |
773 return GetY(dense) < 1250 and StoppedGear(dense) |
774 end |
774 end |
775 |
775 |
776 function DoDensePit() |
776 function DoDensePit() |
777 AddAnim(outPitAnim) |
777 TurnTimeLeft = 0 |
778 AddFunction({func = AfterOutPitAnim, args = {}}) |
778 RestoreHedge(cyborg) |
|
779 AnimWait(cyborg, 1) |
|
780 AddFunction({func = AddAnim, args = {outPitAnim}}) |
|
781 AddFunction({func = AddFunction, args = {{func = AfterOutPitAnim, args = {}}}}) |
779 end |
782 end |
780 |
783 |
781 function CheckPastFlower() |
784 function CheckPastFlower() |
782 if denseDead == true or leaksDead == true then |
785 if denseDead == true or leaksDead == true then |
783 return false |
786 return false |
785 return (GetX(dense) < startEventXDuo and StoppedGear(dense)) |
788 return (GetX(dense) < startEventXDuo and StoppedGear(dense)) |
786 or (GetX(leaks) < startEventXDuo and StoppedGear(leaks)) |
789 or (GetX(leaks) < startEventXDuo and StoppedGear(leaks)) |
787 end |
790 end |
788 |
791 |
789 function DoPastFlower() |
792 function DoPastFlower() |
790 AddAnim(pastFlowerAnim) |
793 TurnTimeLeft = 0 |
791 AddFunction({func = AfterPastFlowerAnim, args = {}}) |
794 RestoreHedge(cyborg) |
|
795 AnimWait(cyborg, 1) |
|
796 AddFunction({func = AddAnim, args = {pastFlowerAnim}}) |
|
797 AddFunction({func = AddFunction, args = {{func = AfterPastFlowerAnim, args = {}}}}) |
792 end |
798 end |
793 |
799 |
794 |
800 |
795 function CheckLeaksDead() |
801 function CheckLeaksDead() |
796 return leaksDead |
802 return leaksDead |
829 function CheckOnBridge() |
835 function CheckOnBridge() |
830 return leaksDead == false and GetX(leaks) < 1651 and StoppedGear(leaks) |
836 return leaksDead == false and GetX(leaks) < 1651 and StoppedGear(leaks) |
831 end |
837 end |
832 |
838 |
833 function DoOnBridge() |
839 function DoOnBridge() |
834 AddAnim(midAnim) |
840 TurnTimeLeft = 0 |
835 AddFunction({func = AfterMidAnimAlone, args = {}}) |
841 RestoreHedge(cyborg) |
|
842 RestoreHedge(princess) |
|
843 AnimWait(cyborg, 1) |
|
844 AddFunction({func = AddAnim, args = {midAnim}}) |
|
845 AddFunction({func = AddFunction, args = {{func = AfterMidAnimAlone, args = {}}}}) |
836 end |
846 end |
837 |
847 |
838 function CheckGirderTaken() |
848 function CheckGirderTaken() |
839 return girderTaken |
849 return girderTaken |
840 end |
850 end |
856 function CheckTookSniper() |
866 function CheckTookSniper() |
857 return sniperTaken and StoppedGear(leaks) |
867 return sniperTaken and StoppedGear(leaks) |
858 end |
868 end |
859 |
869 |
860 function DoTookSniper() |
870 function DoTookSniper() |
861 AddAnim(endAnim) |
871 TurnTimeLeft = 0 |
862 AddFunction({func = AfterEndAnimAlone, args = {}}) |
872 RestoreHedge(cyborg) |
|
873 RestoreHedge(princess) |
|
874 AnimWait(cyborg, 1) |
|
875 AddFunction({func = AddAnim, args = {endAnim}}) |
|
876 AddFunction({func = AddFunction, args = {{func = AfterEndAnimAlone, args = {}}}}) |
863 end |
877 end |
864 |
878 |
865 function CheckTookSniper2() |
879 function CheckTookSniper2() |
866 return sniperTaken and StoppedGear(leaks) and StoppedGear(dense) |
880 return sniperTaken and StoppedGear(leaks) and StoppedGear(dense) |
867 end |
881 end |
868 |
882 |
869 function DoTookSniper2() |
883 function DoTookSniper2() |
870 AddAnim(endAnim) |
884 TurnTimeLeft = 0 |
871 AddFunction({func = AfterEndAnimDuo, args = {}}) |
885 RestoreHedge(cyborg) |
|
886 RestoreHedge(princess) |
|
887 AnimWait(cyborg, 1) |
|
888 AddFunction({func = AddAnim, args = {endAnim}}) |
|
889 AddFunction({func = AddFunction, args = {{func = AfterEndAnimDuo, args = {}}}}) |
872 end |
890 end |
873 |
891 |
874 function CheckLost() |
892 function CheckLost() |
875 return princessDead |
893 return princessDead |
876 end |
894 end |
900 function CheckFailedCourse() |
918 function CheckFailedCourse() |
901 return TurnsLeft == 0 |
919 return TurnsLeft == 0 |
902 end |
920 end |
903 |
921 |
904 function DoFailedCourse() |
922 function DoFailedCourse() |
905 AddAnim(failAnim) |
923 TurnTimeLeft = 0 |
906 AddFunction({func = AfterMidFailAnim, args = {}}) |
924 RestoreHedge(cyborg) |
|
925 RestoreHedge(princess) |
|
926 AnimWait(cyborg, 1) |
|
927 AddFunction({func = AddAnim, args = {failAnim}}) |
|
928 AddFunction({func = AddFunction, args = {{func = AfterMidFailAnim, args = {}}}}) |
907 end |
929 end |
908 |
930 |
909 --////////////////////////////Main Functions///////////////////////// |
931 --////////////////////////////Main Functions///////////////////////// |
910 |
932 |
911 function onGameInit() |
933 function onGameInit() |
1044 function onPrecise() |
1066 function onPrecise() |
1045 if GameTime > 2500 and AnimInProgress() then |
1067 if GameTime > 2500 and AnimInProgress() then |
1046 SetAnimSkip(true) |
1068 SetAnimSkip(true) |
1047 return |
1069 return |
1048 end |
1070 end |
|
1071 -- AddAmmo(leaks, amRope, 100) |
1049 -- RemoveEventFunc(CheckPastFlower) |
1072 -- RemoveEventFunc(CheckPastFlower) |
1050 -- DeleteGear(sniperCrate) |
1073 -- DeleteGear(sniperCrate) |
1051 end |
1074 end |
1052 |
1075 |