Browse Source

hello gogs3

shuvit 6 years ago
parent
commit
d93ae470d6
1 changed files with 19 additions and 25 deletions
  1. 19
    25
      controller2.py

+ 19
- 25
controller2.py View File

2093
     lif = frame - own['last_invert_frame']
2093
     lif = frame - own['last_invert_frame']
2094
     if own['LAST_GRIND'] == False and grindHit == True:
2094
     if own['LAST_GRIND'] == False and grindHit == True:
2095
         own['grindstartFrame'] = own['framenum']
2095
         own['grindstartFrame'] = own['framenum']
2096
-    #print(own['grindstartFrame'])    
2096
+    print(own['grindstartFrame'])    
2097
     if grindHit == True and own['invert_on'] == 0 and own['footplant_on'] == False and own['manual'] == 0 and lif > 40 and own['dropinTimer'] < 30:  
2097
     if grindHit == True and own['invert_on'] == 0 and own['footplant_on'] == False and own['manual'] == 0 and lif > 40 and own['dropinTimer'] < 30:  
2098
         gblend = 1    
2098
         gblend = 1    
2099
         if LAST_GRIND == 0:
2099
         if LAST_GRIND == 0:
2877
 else:
2877
 else:
2878
     own["lastPump"] = False 
2878
     own["lastPump"] = False 
2879
     own["Pump"] = False     
2879
     own["Pump"] = False     
2880
-own['jump_stance'] = STANCE     
2880
+     
2881
 if rUD > .02:    
2881
 if rUD > .02:    
2882
     grindpos = own['grindpos']   
2882
     grindpos = own['grindpos']   
2883
     jumpstance = own["jump_stance"]
2883
     jumpstance = own["jump_stance"]
2932
                 grindtype("fak_tailg")   
2932
                 grindtype("fak_tailg")   
2933
           
2933
           
2934
         
2934
         
2935
-if q5oncd > 0:
2935
+elif q5oncd > 0:
2936
     q5on = 0
2936
     q5on = 0
2937
     q5oncd = q5oncd - 1
2937
     q5oncd = q5oncd - 1
2938
-    own["Q5oncd"] = q5oncd 
2938
+    own["Q5oncd"] = q5oncd
2939
+    killact(65)
2940
+    killact(66)
2941
+    killact(67)
2942
+    killact(68) 
2939
     own["last_Opos"] = False
2943
     own["last_Opos"] = False
2940
 #q1    
2944
 #q1    
2941
 if rUD < -0.070:
2945
 if rUD < -0.070:
2942
     if q2on == 0 and q8on == 0:
2946
     if q2on == 0 and q8on == 0:
2943
-        print("q1on")
2947
+        #print("q1on")
2944
         q1on = 1
2948
         q1on = 1
2945
         q1oncd = countdown
2949
         q1oncd = countdown
2946
         own["Q1oncd"] = q1oncd
2950
         own["Q1oncd"] = q1oncd
2996
                     grindtype("reg_noseslide")
3000
                     grindtype("reg_noseslide")
2997
                 if STANCE == 1:
3001
                 if STANCE == 1:
2998
                     grindtype("fak_noseslide")               
3002
                     grindtype("fak_noseslide")               
2999
-
3000
-if rUD > -0.020 and rUD <= .020 and LAST_GRIND == False:
3001
-    if own['grindpos'] == 'reg_5050':
3002
-        grindtype("reg_5050")
3003
-    if own['grindpos'] == 'fak_5050':
3004
-        grindtype("fak_5050")
3005
-        
3006
-    
3007
    
3003
    
3008
-if q1oncd > 0:
3004
+elif q1oncd > 0:
3009
     q1on = 0
3005
     q1on = 0
3010
     q1oncd = q1oncd - 1
3006
     q1oncd = q1oncd - 1
3011
     own["Q1oncd"] = q1oncd
3007
     own["Q1oncd"] = q1oncd
3008
+    killact(73)
3009
+    killact(74)
3010
+    killact(71)
3011
+    killact(72)
3012
     own["last_nOpos"] = False   
3012
     own["last_nOpos"] = False   
3013
-#print(q1oncd)       
3013
+       
3014
 #q7
3014
 #q7
3015
 if rLR < -0.070:
3015
 if rLR < -0.070:
3016
     if q8on == 0 and q6on == 0:
3016
     if q8on == 0 and q6on == 0:
3926
         cont.deactivate(own.actuators['grindoutRight'])
3926
         cont.deactivate(own.actuators['grindoutRight'])
3927
         cont.deactivate(own.actuators['grindoutLeft'])   
3927
         cont.deactivate(own.actuators['grindoutLeft'])   
3928
     if grindHit == True and jumping == None and sincegrinding > 20:
3928
     if grindHit == True and jumping == None and sincegrinding > 20:
3929
-    #if grindHit == True and jumping == None:
3930
         outloc = 0.022
3929
         outloc = 0.022
3931
         bsoutloc = .07
3930
         bsoutloc = .07
3932
         bsoutvel = .1
3931
         bsoutvel = .1
4314
 if r_ground.triggered and own["jump_timer"] < 20:
4313
 if r_ground.triggered and own["jump_timer"] < 20:
4315
     force2 = [0.0, 0, -10]
4314
     force2 = [0.0, 0, -10]
4316
     own.applyForce(force2, True)
4315
     own.applyForce(force2, True)
4317
-#print('grindtouch = ',  own['grindTouch'])
4318
-if grindDar == False and r_ground.triggered and own['grindTouch'] == False:
4319
-    own['grindType'] = ''
4320
-<<<<<<< HEAD
4321
-print('hello gogs')
4322
-#print(own['grindType'])
4323
-=======
4324
 
4316
 
4325
-
4326
->>>>>>> f88ff84d3eadbe0637efc182134be268550e7644
4317
+if grindDar == False:
4318
+    own['grindType'] = ''
4319
+#print('hello gogs')
4320
+#print(own['grindType'])

Loading…
Cancel
Save