Browse Source

fpout fix

shuvit 6 years ago
parent
commit
880401927d
2 changed files with 3 additions and 2 deletions
  1. 1
    1
      co_ActionState.py
  2. 2
    1
      controller2.py

+ 1
- 1
co_ActionState.py View File

2410
 ###################  
2410
 ###################  
2411
     
2411
     
2412
     #debug
2412
     #debug
2413
-    #print("rA:", requestAction, "|aS:", own['actionState'], "q", queueAction, own['actionTimer'])
2413
+    print("rA:", requestAction, "|aS:", own['actionState'], "q", queueAction, own['actionTimer'])
2414
     cur_frame = skater.getActionFrame(trans_layer)
2414
     cur_frame = skater.getActionFrame(trans_layer)
2415
     #print(cur_frame)
2415
     #print(cur_frame)
2416
     def printplaying():
2416
     def printplaying():

+ 2
- 1
controller2.py View File

3462
         #own.setLinearVelocity([0,0,0],0)
3462
         #own.setLinearVelocity([0,0,0],0)
3463
         own.linearVelocity.x = 0
3463
         own.linearVelocity.x = 0
3464
         own.linearVelocity.y = 0
3464
         own.linearVelocity.y = 0
3465
-    if own['footplant_on'] == 1 and own['last_footplant'] == True:
3465
+    if own['footplant_on'] == 1 and own['last_footplant'] == True and own['jump_timer'] < 50:
3466
         if skater.isPlayingAction(2925) == False:
3466
         if skater.isPlayingAction(2925) == False:
3467
             if STANCE == 0:
3467
             if STANCE == 0:
3468
                 own['requestAction'] = 'reg_fp_rback'
3468
                 own['requestAction'] = 'reg_fp_rback'
3536
         
3536
         
3537
     if grindHit == False:
3537
     if grindHit == False:
3538
         own['invert_on'] = False    
3538
         own['invert_on'] = False    
3539
+
3539
 invert() 
3540
 invert() 
3540
 footplant()
3541
 footplant()
3541
     
3542
     

Loading…
Cancel
Save