|
@@ -67,11 +67,11 @@ def main():
|
67
|
67
|
own['requestAction'] = 'empty'
|
68
|
68
|
#================
|
69
|
69
|
#stance change detection
|
70
|
|
- if (requestAction == 'reg_roll' and l_actionState in ('fak_roll', 'fak_land', 'fak_pump_out', 'fak_nopos_out', 'fak_opos_out')) or l_actionState == 'fak_land' and (requestAction == 'reg_turnLeft' or requestAction == 'reg_turnRight' or requestAction == 'reg_turnLeft_out' or requestAction == 'reg_turnRight_out' or requestAction == 'reg_opos' or requestAction == 'reg_nopos' or requestAction == 'reg_pump' or requestAction == 'reg_push' or requestAction == 'reg_push_goof' or requestAction == 'fak_5050-roll') and requestAction not in ['reg_push', 'reg_push_goof', 'fak_push', 'fak_push_goof'] or (requestAction in ('reg_turnLeft', 'reg_turnRight') and l_actionState in ('fak_turnLeft', 'fak_turnRight')):
|
|
70
|
+ if (requestAction == 'reg_roll' and l_actionState in ('fak_roll', 'fak_land', 'fak_pump_out', 'fak_nopos_out', 'fak_opos_out', 'fak_air-roll')) or l_actionState == 'fak_land' and (requestAction == 'reg_turnLeft' or requestAction == 'reg_turnRight' or requestAction == 'reg_turnLeft_out' or requestAction == 'reg_turnRight_out' or requestAction == 'reg_opos' or requestAction == 'reg_nopos' or requestAction == 'reg_pump' or requestAction == 'reg_push' or requestAction == 'reg_push_goof' or requestAction == 'fak_5050-roll') and requestAction not in ['reg_push', 'reg_push_goof', 'fak_push', 'fak_push_goof'] or (requestAction in ('reg_turnLeft', 'reg_turnRight') and l_actionState in ('fak_turnLeft', 'fak_turnRight')):
|
71
|
71
|
#print("fak-reg_roll")
|
72
|
72
|
requestAction = 'fak-reg_roll'
|
73
|
73
|
own['requestAction'] = 'fak-reg_roll'
|
74
|
|
- if (requestAction == 'fak_roll' and l_actionState in ('reg_roll', 'reg_land', 'reg_pump_out', 'reg_nopos_out', 'reg_opos_out')) or l_actionState == 'reg_land' and (requestAction == 'fak_turnLeft' or requestAction == 'fak_turnRight' or requestAction == 'fak_turnLeft_out' or requestAction == 'fak_turnRight_out' or requestAction == 'fak_opos' or requestAction == 'fak_nopos' or requestAction == 'fak_pump' or requestAction == 'fak_push' or requestAction == 'reg_push_goof' or requestAction == 'reg_5050-roll') and requestAction not in ['reg_push', 'reg_push_goof', 'fak_push', 'fak_push_goof'] or (requestAction in ('fak_turnLeft', 'fak_turnRight') and l_actionState in ('reg_turnLeft', 'reg_turnRight')):
|
|
74
|
+ if (requestAction == 'fak_roll' and l_actionState in ('reg_roll', 'reg_land', 'reg_pump_out', 'reg_nopos_out', 'reg_opos_out', 'reg_air-roll')) or l_actionState == 'reg_land' and (requestAction == 'fak_turnLeft' or requestAction == 'fak_turnRight' or requestAction == 'fak_turnLeft_out' or requestAction == 'fak_turnRight_out' or requestAction == 'fak_opos' or requestAction == 'fak_nopos' or requestAction == 'fak_pump' or requestAction == 'fak_push' or requestAction == 'reg_push_goof' or requestAction == 'reg_5050-roll') and requestAction not in ['reg_push', 'reg_push_goof', 'fak_push', 'fak_push_goof'] or (requestAction in ('fak_turnLeft', 'fak_turnRight') and l_actionState in ('reg_turnLeft', 'reg_turnRight')):
|
75
|
75
|
#print("reg-fak_roll")
|
76
|
76
|
requestAction = 'reg-fak_roll'
|
77
|
77
|
own['requestAction'] = 'reg-fak_roll'
|
|
@@ -112,6 +112,12 @@ def main():
|
112
|
112
|
actionState = requestAction
|
113
|
113
|
own['actionTimer'] = 0
|
114
|
114
|
actionTimer = 0
|
|
115
|
+
|
|
116
|
+ if requestAction == 'reg_land' and l_actionState == 'reg_back_invert_out' and actionTimer > 0:
|
|
117
|
+ requestAction = 'reg_back_invert_out'
|
|
118
|
+ if requestAction == 'fak_land' and l_actionState == 'fak_fr_invert_out' and actionTimer > 0:
|
|
119
|
+ requestAction = 'fak_fr_invert_out'
|
|
120
|
+
|
115
|
121
|
#print(own['manual_v2_timer'], 'man_timer###@!')
|
116
|
122
|
# if (own['l_requestAction'] == 'reg_air_nose' or own['l_requestAction'] == 'reg_air_tail' or own['l_requestAction'] == 'fak_air_nose' or own['l_requestAction'] == 'fak_air_tail') and (requestAction == 'reg_land' or requestAction == 'fak_land') and own['manual_v2_timer'] > 2:
|
117
|
123
|
# #if (requestAction == 'reg_land' or requestAction == 'fak_land') and own['manual_v2_timer'] > 2:
|
|
@@ -563,10 +569,17 @@ def main():
|
563
|
569
|
requestAction = 'reg-fak_roll'
|
564
|
570
|
|
565
|
571
|
|
566
|
|
- if l_actionState in ('reg_noseslide_out', 'regtailslide_out') and requestAction == ' fak_roll':
|
567
|
|
- requestAction = 'reg-fak_roll'
|
568
|
|
- if l_actionState in ('fak_noseslide_out', 'faktailslide_out') and requestAction == ' reg_roll':
|
569
|
|
- requestAction = 'fak-reg_roll'
|
|
572
|
+# if l_actionState in ('reg_noseslide_out', 'reg_tailslide_out', 'reg_air-roll') and requestAction == 'fak_roll':
|
|
573
|
+# requestAction = 'reg-fak_roll'
|
|
574
|
+# print('this is new ______________________')
|
|
575
|
+# if l_actionState in ('fak_noseslide_out', 'fak_tailslide_out', 'fak_air-roll') and requestAction == 'reg_roll':
|
|
576
|
+# requestAction = 'fak-reg_roll'
|
|
577
|
+# print('this is new ______________________')
|
|
578
|
+
|
|
579
|
+ if l_actionState == 'reg_back_invert_out' and requestAction == 'fak_roll' and actionTimer < 1:
|
|
580
|
+ requestAction = 'reg_air-roll'
|
|
581
|
+
|
|
582
|
+
|
570
|
583
|
|
571
|
584
|
|
572
|
585
|
# if (l_actionState == 'fak_air-roll' and requestAction == 'fak_manual'):
|
|
@@ -1635,7 +1648,7 @@ def main():
|
1635
|
1648
|
#reg_jump
|
1636
|
1649
|
if requestAction == 'reg_jump':
|
1637
|
1650
|
actionState = 'reg_jump'
|
1638
|
|
- own['actionTimer'] = 9
|
|
1651
|
+ own['actionTimer'] = 19
|
1639
|
1652
|
skater.playAction("reg_jump", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
1640
|
1653
|
deck.playAction("a_reg_jump2", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
1641
|
1654
|
trucks.playAction("a_reg_jump2", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
@@ -1643,7 +1656,7 @@ def main():
|
1643
|
1656
|
#fak_jump
|
1644
|
1657
|
if requestAction == 'fak_jump':
|
1645
|
1658
|
actionState = 'fak_jump'
|
1646
|
|
- own['actionTimer'] = 9
|
|
1659
|
+ own['actionTimer'] = 19
|
1647
|
1660
|
skater.playAction("fak_jump", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
1648
|
1661
|
trucks.playAction("a_fak_jump", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
1649
|
1662
|
deck.playAction("a_fak_jump", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
@@ -1806,13 +1819,13 @@ def main():
|
1806
|
1819
|
trucks.playAction("a_reg", 30,40, layer=trans_layer, play_mode=0, speed=.5)
|
1807
|
1820
|
|
1808
|
1821
|
if requestAction == 'reg_back_invert_out':
|
1809
|
|
- own['actionTimer'] = 60
|
|
1822
|
+ own['actionTimer'] = 30
|
1810
|
1823
|
actionState = 'reg_back_invert_out'
|
1811
|
1824
|
skater.playAction("reg_back_invert_in", 30,1, layer=trans_layer, play_mode=0, speed=1)
|
1812
|
1825
|
deck.playAction("a_reg_back_invert_in", 30,1, layer=trans_layer, play_mode=0, speed=1)
|
1813
|
1826
|
trucks.playAction("a_reg_back_invert_in", 30,1, layer=trans_layer, play_mode=0, speed=1)
|
1814
|
1827
|
if requestAction == 'fak_fr_invert_out':
|
1815
|
|
- own['actionTimer'] = 60
|
|
1828
|
+ own['actionTimer'] = 30
|
1816
|
1829
|
actionState = 'fak_fr_invert_out'
|
1817
|
1830
|
skater.playAction("fak_fr_invert", 30,1, layer=trans_layer, play_mode=0, speed=1)
|
1818
|
1831
|
deck.playAction("a_fak_fr_invert", 30,1, layer=trans_layer, play_mode=0, speed=1)
|
|
@@ -2853,9 +2866,9 @@ def main():
|
2853
|
2866
|
if requestAction == 'reg_judo':
|
2854
|
2867
|
actionState = 'reg_judo'
|
2855
|
2868
|
if l_actionState != 'reg_judo':
|
2856
|
|
- skater.playAction("reg_judo", 1,10, layer=trans_layer, play_mode=0, speed=1)
|
2857
|
|
- deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
|
2858
|
|
- trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
|
|
2869
|
+ skater.playAction("reg_judo", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
2870
|
+ deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
2871
|
+ trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
2859
|
2872
|
else:
|
2860
|
2873
|
skater.playAction("reg_judo", 10,30, layer=loop_layer, play_mode=1, speed=1)
|
2861
|
2874
|
deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=1)
|
|
@@ -2863,9 +2876,9 @@ def main():
|
2863
|
2876
|
if requestAction == 'fak_judo':
|
2864
|
2877
|
actionState = 'fak_judo'
|
2865
|
2878
|
if l_actionState != 'fak_judo':
|
2866
|
|
- skater.playAction("fak_judo", 1,10, layer=trans_layer, play_mode=0, speed=1)
|
2867
|
|
- deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
|
2868
|
|
- trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
|
|
2879
|
+ skater.playAction("fak_judo", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
2880
|
+ deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
|
2881
|
+ trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=.5)
|
2869
|
2882
|
else:
|
2870
|
2883
|
skater.playAction("fak_judo", 10,30, layer=loop_layer, play_mode=1, speed=1)
|
2871
|
2884
|
deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=1)
|
|
@@ -3745,6 +3758,7 @@ def main():
|
3745
|
3758
|
# own['actionTimer'] = 0
|
3746
|
3759
|
|
3747
|
3760
|
if (own['actionTimer'] == 0 or requestAction == 'reg_land' or requestAction == 'fak_land') or requestAction in jump_overrideList:
|
|
3761
|
+
|
3748
|
3762
|
actionState = updateAction(requestAction, actionState)
|
3749
|
3763
|
|
3750
|
3764
|
# if (own['actionState'] == 'reg_land' or own['actionState'] == 'reg_land') and own['actionTimer'] > 0:
|
|
@@ -3760,6 +3774,7 @@ def main():
|
3760
|
3774
|
cur_frame = skater.getActionFrame(trans_layer)
|
3761
|
3775
|
cur_frame = round(cur_frame, 2)
|
3762
|
3776
|
#print("oG: ", og_request, "rA:", requestAction, "|aS:", own['actionState'], "q", queueAction, own['actionTimer'], 'cf', cur_frame)
|
|
3777
|
+ print("rA:", requestAction, "|aS:", own['actionState'], own['actionTimer'], 'cf', cur_frame)
|
3763
|
3778
|
cur_frame = skater.getActionFrame(trans_layer)
|
3764
|
3779
|
#print(cur_frame)
|
3765
|
3780
|
def printplaying():
|