shuvit 5 years ago
parent
commit
4d509e61a0
1 changed files with 5 additions and 9 deletions
  1. 5
    9
      scripts/controller2.py

+ 5
- 9
scripts/controller2.py View File

595
         own["LAST_RIGHT"] = 0
595
         own["LAST_RIGHT"] = 0
596
 
596
 
597
     def reg_stance_on(inc):
597
     def reg_stance_on(inc):
598
-        playing = deck.isPlayingAction(40)
599
-        if own["revert_timer"] < 1 and own['manual_v2'] == 0 and playing == 0:
598
+        if own["revert_timer"] < 1 and own['manual_v2'] == 0:
600
             own['requestAction'] = 'reg_roll'
599
             own['requestAction'] = 'reg_roll'
601
 
600
 
602
     def reg_manual_on():
601
     def reg_manual_on():
652
             own["LAST_RIGHT"] = 1
651
             own["LAST_RIGHT"] = 1
653
 
652
 
654
     def fak_stance_on(inc):
653
     def fak_stance_on(inc):
655
-        playing = deck.isPlayingAction(40)
656
-        if own['manual_v2'] == 0 and own["revert_timer"] < 1 and playing == 0 and own['gt_cd2'] < 1:
654
+        if own['manual_v2'] == 0 and own["revert_timer"] < 1 and own['gt_cd2'] < 1:
657
             own['requestAction'] = 'fak_roll'
655
             own['requestAction'] = 'fak_roll'
658
 
656
 
659
     def fak_stance_left_on():
657
     def fak_stance_left_on():
684
         own["LAST_RIGHT_FAK"] = 0
682
         own["LAST_RIGHT_FAK"] = 0
685
 
683
 
686
     def reg_air_on():
684
     def reg_air_on():
687
-        playing = deck.isPlayingAction(fliplay)
688
-        if playing == False:
689
-            own['requestAction'] = 'reg_air'
685
+        own['requestAction'] = 'reg_air'
690
 
686
 
691
     def reg_air_off():
687
     def reg_air_off():
692
         pass
688
         pass
768
             if lLR < turnsens or LAST_GRIND != grindHit or dict['kb_ra'] == 0:
764
             if lLR < turnsens or LAST_GRIND != grindHit or dict['kb_ra'] == 0:
769
                 fak_stance_right_off()
765
                 fak_stance_right_off()
770
         #air
766
         #air
771
-        playing = deck.isPlayingAction(fliplay)
772
-        if not onGround and playing == False and flipping == False:
767
+
768
+        if not onGround and flipping == False:
773
             if STANCE == 0:
769
             if STANCE == 0:
774
                 if LAST_STANCE != STANCE or LAST_GROUND != onGround:
770
                 if LAST_STANCE != STANCE or LAST_GROUND != onGround:
775
                     fak_air_off()
771
                     fak_air_off()

Loading…
Cancel
Save