shuvit 6 years ago
parent
commit
80676858fc
2 changed files with 73 additions and 46 deletions
  1. 62
    39
      co_ActionState.py
  2. 11
    7
      walk.py

+ 62
- 39
co_ActionState.py
File diff suppressed because it is too large
View File


+ 11
- 7
walk.py View File

30
 except:
30
 except:
31
     own['walk_timer'] = 1
31
     own['walk_timer'] = 1
32
 
32
 
33
-truckon = 30
34
-deckon = 30
33
+truckon = 450
34
+deckon = 460
35
 
35
 
36
 lLR = dict['lLR']
36
 lLR = dict['lLR']
37
 lUD = dict['lUD']
37
 lUD = dict['lUD']
79
 
79
 
80
 noidle = 0
80
 noidle = 0
81
 
81
 
82
-playing_deck = deck.isPlayingAction(deckon)
83
-playing_trucks = trucks.isPlayingAction(truckon)
84
-if playing_deck == 1 or playing_trucks == 1:
85
-    noidle = 1
82
+#playing_deck = deck.isPlayingAction(deckon)
83
+#playing_trucks = trucks.isPlayingAction(truckon)
84
+#if playing_deck == 1 or playing_trucks == 1:
85
+#    noidle = 1
86
+    
87
+if skater.isPlayingAction(460):  
88
+    noidle = 1  
89
+    
86
 
90
 
87
 if own["stance"] == None:
91
 if own["stance"] == None:
88
     own["stance"] = True
92
     own["stance"] = True
537
             if own['idle_skipper'] > 0:
541
             if own['idle_skipper'] > 0:
538
                own['idle_skipper'] -= 1 
542
                own['idle_skipper'] -= 1 
539
             ran_num = random.randint(1, 8)
543
             ran_num = random.randint(1, 8)
540
-            print(ran_num, "modding")
544
+            #print(ran_num, "modding")
541
             if own['last_idle_num'] == ran_num:
545
             if own['last_idle_num'] == ran_num:
542
                 ran_num = 1
546
                 ran_num = 1
543
             if own['idle_skipper'] == 0:
547
             if own['idle_skipper'] == 0:

Loading…
Cancel
Save