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,7 +2093,7 @@ def grind():
2093 2093
     lif = frame - own['last_invert_frame']
2094 2094
     if own['LAST_GRIND'] == False and grindHit == True:
2095 2095
         own['grindstartFrame'] = own['framenum']
2096
-    #print(own['grindstartFrame'])    
2096
+    print(own['grindstartFrame'])    
2097 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 2098
         gblend = 1    
2099 2099
         if LAST_GRIND == 0:
@@ -2877,7 +2877,7 @@ if (rTrig > 0.02 and GRAB_ON == False and r_ground.triggered == 1) or (lTrig > 0
2877 2877
 else:
2878 2878
     own["lastPump"] = False 
2879 2879
     own["Pump"] = False     
2880
-own['jump_stance'] = STANCE     
2880
+     
2881 2881
 if rUD > .02:    
2882 2882
     grindpos = own['grindpos']   
2883 2883
     jumpstance = own["jump_stance"]
@@ -2932,15 +2932,19 @@ if rUD > .02:
2932 2932
                 grindtype("fak_tailg")   
2933 2933
           
2934 2934
         
2935
-if q5oncd > 0:
2935
+elif q5oncd > 0:
2936 2936
     q5on = 0
2937 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 2943
     own["last_Opos"] = False
2940 2944
 #q1    
2941 2945
 if rUD < -0.070:
2942 2946
     if q2on == 0 and q8on == 0:
2943
-        print("q1on")
2947
+        #print("q1on")
2944 2948
         q1on = 1
2945 2949
         q1oncd = countdown
2946 2950
         own["Q1oncd"] = q1oncd
@@ -2996,21 +3000,17 @@ if rUD < -0.020:
2996 3000
                     grindtype("reg_noseslide")
2997 3001
                 if STANCE == 1:
2998 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 3005
     q1on = 0
3010 3006
     q1oncd = q1oncd - 1
3011 3007
     own["Q1oncd"] = q1oncd
3008
+    killact(73)
3009
+    killact(74)
3010
+    killact(71)
3011
+    killact(72)
3012 3012
     own["last_nOpos"] = False   
3013
-#print(q1oncd)       
3013
+       
3014 3014
 #q7
3015 3015
 if rLR < -0.070:
3016 3016
     if q8on == 0 and q6on == 0:
@@ -3926,7 +3926,6 @@ def grind_turn():
3926 3926
         cont.deactivate(own.actuators['grindoutRight'])
3927 3927
         cont.deactivate(own.actuators['grindoutLeft'])   
3928 3928
     if grindHit == True and jumping == None and sincegrinding > 20:
3929
-    #if grindHit == True and jumping == None:
3930 3929
         outloc = 0.022
3931 3930
         bsoutloc = .07
3932 3931
         bsoutvel = .1
@@ -4314,13 +4313,8 @@ own["sel"] = bkBut
4314 4313
 if r_ground.triggered and own["jump_timer"] < 20:
4315 4314
     force2 = [0.0, 0, -10]
4316 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