|
@@ -204,9 +204,6 @@ def main():
|
204
|
204
|
requestAction = 'fak_nopos_out'
|
205
|
205
|
actionState = 'fak_nopos_out'
|
206
|
206
|
#*********************************
|
207
|
|
- if l_actionState == 'reg_turnLeft' and requestAction == 'reg_pump_left':
|
208
|
|
- requestAction = 'reg_pump_left-left'
|
209
|
|
- actionState = 'reg_pump_left-left'
|
210
|
207
|
|
211
|
208
|
if l_actionState == 'fak_turnLeft' and requestAction == 'fak_pump_left':
|
212
|
209
|
requestAction = 'fak_pump_left-left'
|
|
@@ -506,9 +503,6 @@ def main():
|
506
|
503
|
requestAction = 'fak_judo_out'
|
507
|
504
|
actionState = 'fak_judo_out'
|
508
|
505
|
|
509
|
|
- if l_actionState == 'reg_pump_left' and requestAction != 'reg_pump_left':
|
510
|
|
- requestAction = 'reg_pump_left_out'
|
511
|
|
- actionState = 'reg_pump_left_out'
|
512
|
506
|
|
513
|
507
|
if l_actionState == 'fak_pump_right' and requestAction != 'fak_pump_right':
|
514
|
508
|
requestAction = 'fak_pump_right_out'
|
|
@@ -518,10 +512,6 @@ def main():
|
518
|
512
|
requestAction = 'fak_pump_left_out'
|
519
|
513
|
actionState = 'fak_pump_left_out'
|
520
|
514
|
|
521
|
|
- if l_actionState == 'reg_pump_left_out' and requestAction != 'reg_pump_left_out':
|
522
|
|
- requestAction = 'reg_pump'
|
523
|
|
- actionState = 'reg_pump'
|
524
|
|
-
|
525
|
515
|
if l_actionState == 'fak_pump_left_out' and requestAction != 'fak_pump_left_out':
|
526
|
516
|
requestAction = 'fak_pump'
|
527
|
517
|
actionState = 'fak_pump'
|
|
@@ -623,55 +613,88 @@ def main():
|
623
|
613
|
if l_actionState in ['fak_left-pump', 'fak_right-pump'] and requestAction == 'reg_roll':
|
624
|
614
|
requestAction = 'fak_pump_out'
|
625
|
615
|
|
|
616
|
+#---
|
|
617
|
+
|
626
|
618
|
if l_actionState == 'reg_pump' and requestAction == 'reg_pump_right' and trans_playing != 0:
|
627
|
619
|
requestAction = 'reg_pump'
|
628
|
620
|
if l_actionState == 'reg_turnRight' and requestAction == 'reg_pump_right' and trans_playing != 0:
|
629
|
621
|
requestAction = 'reg_turnRight'
|
|
622
|
+ if l_actionState == 'reg_turnLeft' and requestAction == 'reg_pump_left' and trans_playing != 0:
|
|
623
|
+ requestAction = 'reg_turnLeft'
|
630
|
624
|
|
631
|
625
|
if l_actionState == 'reg_turnRight' and requestAction in ['reg_roll', 'reg_pump']:
|
632
|
626
|
requestAction = 'reg_turnRight_out'
|
|
627
|
+ if l_actionState == 'reg_turnLeft' and requestAction in ['reg_roll', 'reg_pump']:
|
|
628
|
+ requestAction = 'reg_turnLeft_out'
|
633
|
629
|
if l_actionState == 'reg_pump' and requestAction == 'reg_roll':
|
634
|
630
|
requestAction = 'reg_pump_out'
|
635
|
631
|
|
636
|
632
|
if l_actionState == 'reg_turnRight' and requestAction in ['reg_pump_right']:
|
637
|
633
|
requestAction = 'reg_pump_right'
|
|
634
|
+ if l_actionState == 'reg_turnLeft' and requestAction in ['reg_pump_left']:
|
|
635
|
+ requestAction = 'reg_pump_left'
|
638
|
636
|
|
639
|
637
|
if l_actionState == 'reg_pump_right' and requestAction in ['reg_pump', 'reg_roll']:
|
640
|
638
|
requestAction = 'reg_pump_right_out'
|
641
|
639
|
own['actionState'] = 'reg_pump_right_out'
|
|
640
|
+ if l_actionState == 'reg_pump_left' and requestAction in ['reg_pump', 'reg_roll']:
|
|
641
|
+ requestAction = 'reg_pump_left_out'
|
|
642
|
+ own['actionState'] = 'reg_pump_left_out'
|
642
|
643
|
|
643
|
644
|
if l_actionState == 'reg_pump_right_out' and requestAction == 'reg_roll':
|
644
|
645
|
requestAction = 'reg_pump'
|
|
646
|
+ if l_actionState == 'reg_pump_left_out' and requestAction == 'reg_roll':
|
|
647
|
+ requestAction = 'reg_pump'
|
645
|
648
|
|
646
|
649
|
if l_actionState == 'reg_pump_right-rightb' and requestAction == 'reg_roll':
|
647
|
650
|
requestAction = 'reg_turnRight'
|
|
651
|
+ if l_actionState == 'reg_pump_left-leftb' and requestAction == 'reg_roll':
|
|
652
|
+ requestAction = 'reg_turnLeft'
|
648
|
653
|
|
649
|
654
|
if l_actionState == 'reg_turnRight' and requestAction == 'reg_pump_right':
|
650
|
|
- requestAction = 'reg_pump_right-right'
|
|
655
|
+ requestAction = 'reg_pump_right-right'
|
|
656
|
+ if l_actionState == 'reg_turnLeft' and requestAction == 'reg_pump_left':
|
|
657
|
+ requestAction = 'reg_pump_left-left'
|
651
|
658
|
|
652
|
659
|
if l_actionState == 'reg_pump_right' and requestAction == 'reg_turnRight':
|
653
|
660
|
requestAction = 'reg_pump_right-rightb'
|
|
661
|
+ if l_actionState == 'reg_pump_left' and requestAction == 'reg_turnLeft':
|
|
662
|
+ requestAction = 'reg_pump_left-leftb'
|
654
|
663
|
|
655
|
664
|
if l_actionState == 'reg_turnRight_out' and requestAction == 'fak_roll':
|
656
|
|
- requestAction = 'reg_roll'
|
|
665
|
+ requestAction = 'reg_roll'
|
|
666
|
+ if l_actionState == 'reg_turnLeft_out' and requestAction == 'fak_roll':
|
|
667
|
+ requestAction = 'reg_roll'
|
657
|
668
|
|
658
|
669
|
if l_actionState == 'reg_pump' and requestAction == 'reg_turnRight':
|
659
|
|
- requestAction = 'reg_pump_out'
|
|
670
|
+ requestAction = 'reg_pump_out'
|
|
671
|
+ if l_actionState == 'reg_pump' and requestAction == 'reg_turnLeft':
|
|
672
|
+ requestAction = 'reg_pump_out'
|
660
|
673
|
|
661
|
674
|
if l_actionState == 'reg_pump_right-right' and requestAction == 'reg_turnRight':
|
662
|
675
|
requestAction = 'reg_pump_right-rightb'
|
|
676
|
+ if l_actionState == 'reg_pump_left-left' and requestAction == 'reg_turnLeft':
|
|
677
|
+ requestAction = 'reg_pump_left-leftb'
|
663
|
678
|
|
664
|
679
|
if l_actionState == 'reg_pump_right-rightb' and requestAction == 'reg_pump_right':
|
665
|
|
- requestAction = 'reg_pump_right-right'
|
|
680
|
+ requestAction = 'reg_pump_right-right'
|
|
681
|
+ if l_actionState == 'reg_pump_left-leftb' and requestAction == 'reg_pump_left':
|
|
682
|
+ requestAction = 'reg_pump_left-left'
|
666
|
683
|
|
667
|
684
|
if l_actionState == 'reg_pump_right-right' and requestAction not in [ 'reg_pump_right-right', 'reg_pump_right-rightb']:
|
668
|
|
- requestAction = 'reg_pump_right'
|
|
685
|
+ requestAction = 'reg_pump_right'
|
|
686
|
+ if l_actionState == 'reg_pump_left-left' and requestAction not in [ 'reg_pump_left-left', 'reg_pump_left-leftb']:
|
|
687
|
+ requestAction = 'reg_pump_left'
|
669
|
688
|
|
670
|
689
|
if l_actionState == 'reg_pump_right_out' and requestAction == 'reg_turnRight':
|
671
|
690
|
requestAction = 'reg_pump'
|
|
691
|
+ if l_actionState == 'reg_pump_left_out' and requestAction == 'reg_turnLeft':
|
|
692
|
+ requestAction = 'reg_pump'
|
672
|
693
|
|
673
|
694
|
if l_actionState == 'reg_pump_out' and requestAction == 'reg_pump_right':
|
674
|
695
|
requestAction = 'reg_roll'
|
|
696
|
+ if l_actionState == 'reg_pump_out' and requestAction == 'reg_pump_left':
|
|
697
|
+ requestAction = 'reg_roll'
|
675
|
698
|
|
676
|
699
|
#---------------------------------------------------
|
677
|
700
|
|
|
@@ -760,7 +783,7 @@ def main():
|
760
|
783
|
trans_playing = skater.isPlayingAction(trans_layer)
|
761
|
784
|
if trans_playing:
|
762
|
785
|
cur_frame = skater.getActionFrame(trans_layer)
|
763
|
|
- if trans_playing and cur_frame > .5:
|
|
786
|
+ if trans_playing and cur_frame > .5 and cur_frame < 39:
|
764
|
787
|
skater.playAction("nreg_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
|
765
|
788
|
deck.playAction("a_reg_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
|
766
|
789
|
trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
@@ -806,10 +829,22 @@ def main():
|
806
|
829
|
if requestAction == 'reg_pump_left-left':
|
807
|
830
|
actionState = 'reg_pump_left-left'
|
808
|
831
|
own['actionTimer'] = 19
|
809
|
|
-
|
810
|
|
- skater.playAction("nreg_pump_left", 40,30, layer=trans_layer, play_mode=0, speed=.5)
|
811
|
|
- deck.playAction("a_reg_left", 10,10, layer=trans_layer, play_mode=0, speed=.5)
|
812
|
|
- trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
832
|
+
|
|
833
|
+ if l_actionState == 'reg_pump_left-leftb':
|
|
834
|
+ trans_playing = skater.isPlayingAction(trans_layer)
|
|
835
|
+ if trans_playing:
|
|
836
|
+ skater.playAction("nreg_pump_left", 40,30, layer=trans_layer, play_mode=0, speed=.5)
|
|
837
|
+ deck.playAction("a_reg_left", 10,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
838
|
+ trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
839
|
+ own['actionTimer'] = cur_frame * 2
|
|
840
|
+ else:
|
|
841
|
+ skater.playAction("nreg_pump_left", 40,30, layer=trans_layer, play_mode=0, speed=.5)
|
|
842
|
+ deck.playAction("a_reg_left", 10,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
843
|
+ trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
844
|
+ else:
|
|
845
|
+ skater.playAction("nreg_pump_left", 40,30, layer=trans_layer, play_mode=0, speed=.5)
|
|
846
|
+ deck.playAction("a_reg_left", 10,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
847
|
+ trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
813
|
848
|
|
814
|
849
|
if requestAction == 'reg_pump_right-right':
|
815
|
850
|
actionState = 'reg_pump_right-right'
|
|
@@ -868,7 +903,32 @@ def main():
|
868
|
903
|
else:
|
869
|
904
|
skater.playAction("nreg_pump_right", 30,40, layer=trans_layer, play_mode=0, speed=.5)
|
870
|
905
|
deck.playAction("a_reg_right", 10,10, layer=trans_layer, play_mode=0, speed=.5)
|
871
|
|
- trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
906
|
+ trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+ if requestAction == 'reg_pump_left-leftb':
|
|
910
|
+ actionState = 'reg_pump_left-leftb'
|
|
911
|
+ own['actionState'] = 'reg_pump_left-leftb'
|
|
912
|
+ own['actionTimer'] = 20
|
|
913
|
+
|
|
914
|
+ if l_actionState == 'reg_pump_left-left':
|
|
915
|
+ trans_playing = skater.isPlayingAction(trans_layer)
|
|
916
|
+ if trans_playing:
|
|
917
|
+ cur_frame = skater.getActionFrame(trans_layer)
|
|
918
|
+ skater.playAction("nreg_pump_left", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
|
|
919
|
+ deck.playAction("a_reg_left", 10,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
920
|
+ trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
921
|
+ own['actionTimer'] = cur_frame * 2
|
|
922
|
+ else:
|
|
923
|
+ skater.playAction("nreg_pump_left", 30,40, layer=trans_layer, play_mode=0, speed=.5)
|
|
924
|
+ deck.playAction("a_reg_left", 10,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
925
|
+ trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
926
|
+ else:
|
|
927
|
+ skater.playAction("nreg_pump_left", 30,40, layer=trans_layer, play_mode=0, speed=.5)
|
|
928
|
+ deck.playAction("a_reg_left", 10,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
929
|
+ trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
930
|
+
|
|
931
|
+
|
872
|
932
|
if requestAction == 'fak_pump_left-left':
|
873
|
933
|
actionState = 'fak_pump_left-left'
|
874
|
934
|
own['actionTimer'] = 19
|
|
@@ -925,7 +985,6 @@ def main():
|
925
|
985
|
|
926
|
986
|
if trans_playing:
|
927
|
987
|
cur_frame = skater.getActionFrame(trans_layer)
|
928
|
|
-
|
929
|
988
|
if cur_frame >= 32 and cur_frame <= 40 and l_actionState == 'reg_pump_right':
|
930
|
989
|
cur_frame = cur_frame - 30
|
931
|
990
|
if cur_frame < 32 and cur_frame > 26:
|
|
@@ -941,21 +1000,35 @@ def main():
|
941
|
1000
|
skater.playAction("nreg_pump_right", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
942
|
1001
|
deck.playAction("a_reg_right", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
943
|
1002
|
trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
|
944
|
1006
|
if requestAction == 'reg_pump_left_out':
|
945
|
1007
|
actionState = 'reg_pump_left_out'
|
946
|
|
- own['actionTimer'] = 19
|
|
1008
|
+ own['actionState'] = 'reg_pump_left_out'
|
|
1009
|
+ requestAction = 'reg_pump_left_out'
|
|
1010
|
+ own['actionTimer'] = 18
|
947
|
1011
|
trans_playing = skater.isPlayingAction(trans_layer)
|
948
|
1012
|
if trans_playing:
|
949
|
1013
|
cur_frame = skater.getActionFrame(trans_layer)
|
950
|
|
- if trans_playing and cur_frame > .5:
|
951
|
|
- skater.playAction("nreg_pump_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
|
952
|
|
- deck.playAction("a_reg_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
|
953
|
|
- trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
|
954
|
|
- own['actionTimer'] = (10 - cur_frame) *2
|
955
|
|
- else:
|
|
1014
|
+ if cur_frame >= 32 and cur_frame <= 40 and l_actionState == 'reg_pump_left':
|
|
1015
|
+ cur_frame = cur_frame - 30
|
|
1016
|
+ if cur_frame < 32 and cur_frame > 26:
|
|
1017
|
+ cur_frame = 10
|
|
1018
|
+ if trans_playing and cur_frame > .5:
|
|
1019
|
+ #cur_frame = 20 - cur_frame
|
|
1020
|
+ skater.playAction("nreg_pump_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
1021
|
+ deck.playAction("a_reg_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
1022
|
+ trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
1023
|
+ own['actionTimer'] = cur_frame
|
|
1024
|
+ own['actionTimer'] = 19
|
|
1025
|
+ else:
|
956
|
1026
|
skater.playAction("nreg_pump_left", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
957
|
1027
|
deck.playAction("a_reg_left", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
958
|
1028
|
trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
|
959
|
1032
|
if requestAction == 'fak_pump_right_out':
|
960
|
1033
|
actionState = 'fak_pump_right_out'
|
961
|
1034
|
own['actionTimer'] = 19
|
|
@@ -2675,7 +2748,7 @@ def main():
|
2675
|
2748
|
if requestAction == 'reg_turnLeft':
|
2676
|
2749
|
actionState = 'reg_turnLeft'
|
2677
|
2750
|
#in
|
2678
|
|
- if l_actionState != 'reg_turnLeft':
|
|
2751
|
+ if l_actionState not in ['reg_turnLeft', 'reg_pump_left-leftb']:
|
2679
|
2752
|
skater.playAction("nreg_left", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
2680
|
2753
|
deck.playAction("a_reg_left", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
2681
|
2754
|
trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
@@ -2730,7 +2803,7 @@ def main():
|
2730
|
2803
|
actionState = 'reg_pump_left'
|
2731
|
2804
|
#in
|
2732
|
2805
|
if l_actionState not in ['reg_pump_left', 'reg_pump_left-left', 'reg_left-pump']:
|
2733
|
|
- own['actionTimer'] = 19
|
|
2806
|
+ own['actionTimer'] = 18
|
2734
|
2807
|
skater.playAction("nreg_pump_left", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
2735
|
2808
|
deck.playAction("a_reg_left", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
2736
|
2809
|
trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
@@ -3104,7 +3177,7 @@ def main():
|
3104
|
3177
|
#reg_pump
|
3105
|
3178
|
if requestAction == 'reg_pump':
|
3106
|
3179
|
actionState = 'reg_pump'
|
3107
|
|
- if l_actionState not in ['reg_pump', 'reg_pump_left', 'reg_pump_right', 'reg_pump_left_out', 'reg_pump_right_out', 'reg_pump_right-rightb']:
|
|
3180
|
+ if l_actionState not in ['reg_pump', 'reg_pump_left', 'reg_pump_right', 'reg_pump_left_out', 'reg_pump_right_out', 'reg_pump_right-rightb', 'reg_pump_left-leftb']:
|
3108
|
3181
|
skater.playAction("nreg_pump_in", 1,20, layer=trans_layer, play_mode=0, speed=1)
|
3109
|
3182
|
deck.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
|
3110
|
3183
|
trucks.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
|