Browse Source

moar fliptricks

shuvit 6 years ago
parent
commit
d2e944465f
2 changed files with 206 additions and 242 deletions
  1. 85
    85
      co_ActionState.py
  2. 121
    157
      controller2.py

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


+ 121
- 157
controller2.py View File

1022
                 
1022
                 
1023
     def aollie():
1023
     def aollie():
1024
         print("ollie")
1024
         print("ollie")
1025
-        dict['trick_string'] = 'Ollie'
1025
+        #dict['trick_string'] = 'Ollie'
1026
         r_ground = cont.sensors["r_Ground"]
1026
         r_ground = cont.sensors["r_Ground"]
1027
         trigger = r_ground.triggered
1027
         trigger = r_ground.triggered
1028
         STANCE = own["stance"]
1028
         STANCE = own["stance"]
1216
             if own["wallride"] != None: 
1216
             if own["wallride"] != None: 
1217
                 jump()       
1217
                 jump()       
1218
 
1218
 
1219
-    def shovit():
1220
-        print("shovit")
1221
-        dict['trick_string'] = 'Shovit'
1219
+    def shuvit():
1220
+        print("shuvit")
1221
+        dict['trick_string'] = 'shuvit'
1222
         STANCE = own["stance"]
1222
         STANCE = own["stance"]
1223
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1223
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1224
             own["wallride_off"] = 1
1224
             own["wallride_off"] = 1
1225
-            own['requestAction'] = 'reg_shovit'
1225
+            own['requestAction'] = 'reg_shuvit'
1226
             jump()
1226
             jump()
1227
         elif (r_ground.triggered == 1 and STANCE == True) or ((grindHit == True or wallride != None) and STANCE == True):
1227
         elif (r_ground.triggered == 1 and STANCE == True) or ((grindHit == True or wallride != None) and STANCE == True):
1228
             own["wallride_off"] = 1
1228
             own["wallride_off"] = 1
1229
-            own['requestAction'] = 'fak_shovit'
1229
+            own['requestAction'] = 'fak_shuvit'
1230
             jump()
1230
             jump()
1231
         if r_ground.triggered == 0 and STANCE == False:     
1231
         if r_ground.triggered == 0 and STANCE == False:     
1232
             if own["wallride"] != None: 
1232
             if own["wallride"] != None: 
1235
             own["wallride_off"] = 1
1235
             own["wallride_off"] = 1
1236
             if own["wallride"] != None: 
1236
             if own["wallride"] != None: 
1237
                 jump()
1237
                 jump()
1238
-    def shovit360():
1239
-        print("360shovit")
1240
-        dict['trick_string'] = '360 Shovit'
1238
+    def shuvit360():
1239
+        print("360shuvit")
1240
+        dict['trick_string'] = '360 shuvit'
1241
         STANCE = own["stance"]
1241
         STANCE = own["stance"]
1242
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1242
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1243
             own["wallride_off"] = 1
1243
             own["wallride_off"] = 1
1244
-            own['requestAction'] = 'reg_shovit360'
1244
+            own['requestAction'] = 'reg_shuvit360'
1245
             jump()
1245
             jump()
1246
         elif (r_ground.triggered == 1 and STANCE == True) or ((grindHit == True or wallride != None) and STANCE == True):
1246
         elif (r_ground.triggered == 1 and STANCE == True) or ((grindHit == True or wallride != None) and STANCE == True):
1247
             own["wallride_off"] = 1
1247
             own["wallride_off"] = 1
1248
-            own['requestAction'] = 'fak_shovit360'
1248
+            own['requestAction'] = 'fak_shuvit360'
1249
             jump()
1249
             jump()
1250
         if r_ground.triggered == 0 and STANCE == False:
1250
         if r_ground.triggered == 0 and STANCE == False:
1251
             own["wallride_off"] = 1
1251
             own["wallride_off"] = 1
1255
             own["wallride_off"] = 1
1255
             own["wallride_off"] = 1
1256
             if own["wallride"] != None: 
1256
             if own["wallride"] != None: 
1257
                 jump()        
1257
                 jump()        
1258
-    def fsshovit360():
1259
-        print("360shovit")
1260
-        dict['trick_string'] = '360 Shovit'
1258
+    def fsshuvit360():
1259
+        print("360shuvit")
1260
+        dict['trick_string'] = '360 shuvit'
1261
         STANCE = own["stance"]
1261
         STANCE = own["stance"]
1262
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1262
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1263
             own["wallride_off"] = 1
1263
             own["wallride_off"] = 1
1264
-            own['requestAction'] = 'reg_fsshovit360'
1264
+            own['requestAction'] = 'reg_fsshuvit360'
1265
             jump()
1265
             jump()
1266
         elif (r_ground.triggered == 1 and STANCE == True) or ((grindHit == True or wallride != None) and STANCE == True):
1266
         elif (r_ground.triggered == 1 and STANCE == True) or ((grindHit == True or wallride != None) and STANCE == True):
1267
             own["wallride_off"] = 1
1267
             own["wallride_off"] = 1
1268
-            own['requestAction'] = 'fak_fsshovit360'
1268
+            own['requestAction'] = 'fak_fsshuvit360'
1269
             jump()
1269
             jump()
1270
         if r_ground.triggered == 0 and STANCE == False:
1270
         if r_ground.triggered == 0 and STANCE == False:
1271
             own["wallride_off"] = 1
1271
             own["wallride_off"] = 1
1275
             own["wallride_off"] = 1
1275
             own["wallride_off"] = 1
1276
             if own["wallride"] != None: 
1276
             if own["wallride"] != None: 
1277
                 jump()
1277
                 jump()
1278
-    def nollie_shovit():
1279
-        print("shovit")
1280
-        dict['trick_string'] = 'Nollie Shovit'
1278
+    def nollie_shuvit():
1279
+        print("shuvit")
1280
+        dict['trick_string'] = 'Nollie shuvit'
1281
         STANCE = own["stance"]
1281
         STANCE = own["stance"]
1282
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1282
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1283
             own["wallride_off"] = 1
1283
             own["wallride_off"] = 1
1284
-            own['requestAction'] = 'reg_nollie_shovit'
1284
+            own['requestAction'] = 'reg_nollie_shuvit'
1285
             jump()
1285
             jump()
1286
         elif (r_ground.triggered == 1 and STANCE == True) or ((grindHit == True or wallride != None) and STANCE == True):
1286
         elif (r_ground.triggered == 1 and STANCE == True) or ((grindHit == True or wallride != None) and STANCE == True):
1287
             own["wallride_off"] = 1
1287
             own["wallride_off"] = 1
1288
-            own['requestAction'] = 'fak_nollie_shovit'
1288
+            own['requestAction'] = 'fak_nollie_shuvit'
1289
             jump()
1289
             jump()
1290
         if r_ground.triggered == 0 and STANCE == False:
1290
         if r_ground.triggered == 0 and STANCE == False:
1291
             own["wallride_off"] = 1
1291
             own["wallride_off"] = 1
1296
             if own["wallride"] != None: 
1296
             if own["wallride"] != None: 
1297
                 jump()        
1297
                 jump()        
1298
 
1298
 
1299
-    def fsshovit():
1300
-        dict['trick_string'] = 'Frontside Shovit'
1299
+    def fsshuvit():
1300
+        dict['trick_string'] = 'Frontside shuvit'
1301
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1301
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1302
             own["wallride_off"] = 1
1302
             own["wallride_off"] = 1
1303
-            own['requestAction'] = 'reg_fsshovit'
1303
+            own['requestAction'] = 'reg_fsshuvit'
1304
             jump()
1304
             jump()
1305
         elif (r_ground.triggered == 1 and STANCE == True) or ((grindHit == True or wallride != None) and STANCE == True):
1305
         elif (r_ground.triggered == 1 and STANCE == True) or ((grindHit == True or wallride != None) and STANCE == True):
1306
             own["wallride_off"] = 1
1306
             own["wallride_off"] = 1
1307
-            own['requestAction'] = 'fak_fsshovit'
1307
+            own['requestAction'] = 'fak_fsshuvit'
1308
             jump()
1308
             jump()
1309
         if r_ground.triggered == 0 and STANCE == False:
1309
         if r_ground.triggered == 0 and STANCE == False:
1310
             own["wallride_off"] = 1
1310
             own["wallride_off"] = 1
1315
             if own["wallride"] != None: 
1315
             if own["wallride"] != None: 
1316
                 jump()
1316
                 jump()
1317
             
1317
             
1318
-    def nollie_fsshovit():
1319
-        dict['trick_string'] = 'Nollie Frontside Shovit'
1318
+    def nollie_fsshuvit():
1319
+        dict['trick_string'] = 'Nollie Frontside shuvit'
1320
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1320
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1321
             own["wallride_off"] = 1
1321
             own["wallride_off"] = 1
1322
-            own['requestAction'] = 'reg_nollie_fsshovit'
1322
+            own['requestAction'] = 'reg_nollie_fsshuvit'
1323
             jump()
1323
             jump()
1324
         elif (r_ground.triggered == 1 and STANCE == True) or (grindHit == True and STANCE == True):
1324
         elif (r_ground.triggered == 1 and STANCE == True) or (grindHit == True and STANCE == True):
1325
             own["wallride_off"] = 1
1325
             own["wallride_off"] = 1
1326
-            own['requestAction'] = 'fak_nollie_fsshovit'
1326
+            own['requestAction'] = 'fak_nollie_fsshuvit'
1327
             jump()
1327
             jump()
1328
         if r_ground.triggered == 0 and STANCE == False:
1328
         if r_ground.triggered == 0 and STANCE == False:
1329
             own["wallride_off"] = 1
1329
             own["wallride_off"] = 1
1334
             if own["wallride"] != None: 
1334
             if own["wallride"] != None: 
1335
                 jump()
1335
                 jump()
1336
      
1336
      
1337
-    #nollie_shovit360()
1338
-    def nollie_shovit360():
1339
-        dict['trick_string'] = 'Nollie Frontside Shovit 360'
1337
+    #nollie_shuvit360()
1338
+    def nollie_shuvit360():
1339
+        dict['trick_string'] = 'Nollie Frontside shuvit 360'
1340
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1340
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1341
             own["wallride_off"] = 1
1341
             own["wallride_off"] = 1
1342
-            own['requestAction'] = 'reg_nollie_shovit360'
1342
+            own['requestAction'] = 'reg_nollie_shuvit360'
1343
             jump()
1343
             jump()
1344
         elif (r_ground.triggered == 1 and STANCE == True) or (grindHit == True and STANCE == True):
1344
         elif (r_ground.triggered == 1 and STANCE == True) or (grindHit == True and STANCE == True):
1345
             own["wallride_off"] = 1
1345
             own["wallride_off"] = 1
1346
-            own['requestAction'] = 'fak_nollie_shovit360'
1346
+            own['requestAction'] = 'fak_nollie_shuvit360'
1347
             jump()
1347
             jump()
1348
         if r_ground.triggered == 0 and STANCE == False:
1348
         if r_ground.triggered == 0 and STANCE == False:
1349
             own["wallride_off"] = 1
1349
             own["wallride_off"] = 1
1355
                 jump() 
1355
                 jump() 
1356
 
1356
 
1357
 
1357
 
1358
-    #nollie_fsshovit360()
1359
-    def nollie_fsshovit360():
1360
-        dict['trick_string'] = 'Nollie Frontside Shovit'
1358
+    #nollie_fsshuvit360()
1359
+    def nollie_fsshuvit360():
1360
+        dict['trick_string'] = 'Nollie Frontside shuvit'
1361
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1361
         if (r_ground.triggered == 1 and STANCE == False) or ((grindHit == True or wallride != None) and STANCE == False):
1362
             own["wallride_off"] = 1
1362
             own["wallride_off"] = 1
1363
-            own['requestAction'] = 'reg_nollie_fsshovit'
1363
+            own['requestAction'] = 'reg_nollie_fsshuvit'
1364
             jump()
1364
             jump()
1365
         elif (r_ground.triggered == 1 and STANCE == True) or (grindHit == True and STANCE == True):
1365
         elif (r_ground.triggered == 1 and STANCE == True) or (grindHit == True and STANCE == True):
1366
             own["wallride_off"] = 1
1366
             own["wallride_off"] = 1
1367
-            own['requestAction'] = 'fak_nollie_fsshovit'
1367
+            own['requestAction'] = 'fak_nollie_fsshuvit'
1368
             jump()
1368
             jump()
1369
         if r_ground.triggered == 0 and STANCE == False:
1369
         if r_ground.triggered == 0 and STANCE == False:
1370
             own["wallride_off"] = 1
1370
             own["wallride_off"] = 1
2969
         q3oncd = q3oncd - 1
2969
         q3oncd = q3oncd - 1
2970
         own["Q3oncd"] = q3oncd
2970
         own["Q3oncd"] = q3oncd
2971
 
2971
 
2972
+##########################################
2972
     #trick calls
2973
     #trick calls
2974
+##########################################
2973
 
2975
 
2976
+    # hard flip
2977
+    # 6 > 5 > 8
2974
 
2978
 
2979
+    if q6oncd > 0 and q5oncd > 0 and q8oncd > 0 and q6oncd <= q5oncd <= q8oncd:
2980
+        print ("Hardflip")
2981
+        dict['trick_string'] = 'Hardflip'
2982
+        aollie()
2983
+        reset_rtimers()    
2984
+
2985
+    # inward heelflip
2986
+    # 4 > 5 > 2
2987
+
2988
+    if q4oncd > 0 and q5oncd > 0 and q2oncd > 0 and q4oncd <= q5oncd <= q2oncd:
2989
+        print ("Inward Heelflip")
2990
+        dict['trick_string'] = 'Inward Heelflip'
2991
+        aollie()
2992
+        reset_rtimers()     
2993
+
2994
+    # nollie hard flip
2995
+    # 8 > 1 > 6
2996
+
2997
+    if q8oncd > 0 and q1oncd > 0 and q6oncd > 0 and q8oncd <= q1oncd <= q6oncd:
2998
+        print ("Nollie Hardflip")
2999
+        dict['trick_string'] = 'Nollie Hardflip'
3000
+        aollie()
3001
+        reset_rtimers()
3002
+
3003
+    # nollie inward heelflip
3004
+    # 2 > 1 > 4
3005
+
3006
+    if q2oncd > 0 and q1oncd > 0 and q4oncd > 0 and q2oncd <= q1oncd <= q4oncd:
3007
+        print ("Nollie Inward Heelflip")
3008
+        dict['trick_string'] = 'Nollie Inward Heelflip'
3009
+        aollie()
3010
+        reset_rtimers()    
2975
 
3011
 
2976
     # 360 flip
3012
     # 360 flip
2977
     # 3 > 4 > 5 > 8
3013
     # 3 > 4 > 5 > 8
2979
     # laser flip
3015
     # laser flip
2980
     # 7 > 6 > 5 > 2  
3016
     # 7 > 6 > 5 > 2  
2981
 
3017
 
2982
-    #nollie 360 shovit
3018
+    #nollie 360 shuvit
2983
     if q7oncd > 0 and q8oncd > 0 and q1oncd > 0 and q2oncd > 0 and q3oncd > 0 and q7oncd <= q8oncd <= q1oncd <= q2oncd <= q3oncd:
3019
     if q7oncd > 0 and q8oncd > 0 and q1oncd > 0 and q2oncd > 0 and q3oncd > 0 and q7oncd <= q8oncd <= q1oncd <= q2oncd <= q3oncd:
2984
-        print ("Nollie 360 shovit")
2985
-        dict['trick_string'] = 'Nollie 360 Shovit'
2986
-        nollie_shovit360()
2987
-        q7oncd = 0
2988
-        q8oncd = 0
2989
-        q1oncd = 0
2990
-        q2oncd = 0
2991
-        q3oncd = 0
2992
-        own["Q7oncd"] = q7oncd
2993
-        own["Q8oncd"] = q8oncd
2994
-        own["Q1oncd"] = q1oncd
2995
-        own["Q2oncd"] = q2oncd
2996
-        own["Q3oncd"] = q3oncd
3020
+        print ("Nollie 360 shuvit")
3021
+        dict['trick_string'] = 'Nollie 360 shuvit'
3022
+        nollie_shuvit360()
3023
+        reset_rtimers()
2997
 
3024
 
2998
-    #nollie fs 360 shovit
3025
+    #nollie fs 360 shuvit
2999
     if q7oncd > 0 and q8oncd > 0 and q1oncd > 0 and q2oncd > 0 and q3oncd > 0 and q3oncd <= q2oncd <= q1oncd <= q8oncd <= q7oncd:
3026
     if q7oncd > 0 and q8oncd > 0 and q1oncd > 0 and q2oncd > 0 and q3oncd > 0 and q3oncd <= q2oncd <= q1oncd <= q8oncd <= q7oncd:
3000
         #print("q4oncd: ", q4oncd, " q5oncd: ", q5oncd, " q6oncd: ", q6oncd)
3027
         #print("q4oncd: ", q4oncd, " q5oncd: ", q5oncd, " q6oncd: ", q6oncd)
3001
-        print ("Nollie Front Side 360 shovit")
3002
-        dict['trick_string'] = 'Nollie FS 360 Shovit'
3003
-        nollie_fsshovit360()
3004
-        q7oncd = 0
3005
-        q8oncd = 0
3006
-        q1oncd = 0
3007
-        q2oncd = 0
3008
-        q3oncd = 0
3009
-        own["Q7oncd"] = q7oncd
3010
-        own["Q8oncd"] = q8oncd
3011
-        own["Q1oncd"] = q1oncd
3012
-        own["Q2oncd"] = q2oncd
3013
-        own["Q3oncd"] = q3oncd    
3028
+        print ("Nollie Front Side 360 shuvit")
3029
+        dict['trick_string'] = 'Nollie FS 360 shuvit'
3030
+        nollie_fsshuvit360()
3031
+        reset_rtimers()   
3014
 
3032
 
3015
     # varial heelflip
3033
     # varial heelflip
3016
     # 7 < 6 < 2
3034
     # 7 < 6 < 2
3042
         nollie_varial_heelflip()
3060
         nollie_varial_heelflip()
3043
         reset_rtimers()   
3061
         reset_rtimers()   
3044
 
3062
 
3045
-    #360 shovit
3063
+    #360 shuvit
3046
     if q3oncd > 0 and q4oncd > 0 and q5oncd > 0 and q6oncd > 0 and q7oncd > 0 and q7oncd >= q6oncd >= q5oncd >= q4oncd >= q3oncd:
3064
     if q3oncd > 0 and q4oncd > 0 and q5oncd > 0 and q6oncd > 0 and q7oncd > 0 and q7oncd >= q6oncd >= q5oncd >= q4oncd >= q3oncd:
3047
     #    print("q4oncd: ", q4oncd, " q5oncd: ", q5oncd, " q6oncd: ", q6oncd)
3065
     #    print("q4oncd: ", q4oncd, " q5oncd: ", q5oncd, " q6oncd: ", q6oncd)
3048
-        #print ("______-------360 shovit")
3049
-        dict['trick_string'] = '360 Shovit'
3050
-        shovit360()
3051
-        q3oncd = 0
3052
-        q4oncd = 0
3053
-        q5oncd = 0
3054
-        q6oncd = 0
3055
-        q7oncd = 0
3056
-        own["Q3oncd"] = q3oncd
3057
-        own["Q4oncd"] = q4oncd
3058
-        own["Q5oncd"] = q5oncd
3059
-        own["Q6oncd"] = q6oncd
3060
-        own["Q7oncd"] = q7oncd
3061
-    #360 fs shovit    
3066
+        #print ("______-------360 shuvit")
3067
+        dict['trick_string'] = '360 shuvit'
3068
+        shuvit360()
3069
+        reset_rtimers()
3070
+    #360 fs shuvit    
3062
     if q3oncd > 0 and q4oncd > 0 and q5oncd > 0 and q6oncd >= 0 and q7oncd > 0 and q7oncd <= q6oncd <= q5oncd <= q4oncd <= q3oncd:
3071
     if q3oncd > 0 and q4oncd > 0 and q5oncd > 0 and q6oncd >= 0 and q7oncd > 0 and q7oncd <= q6oncd <= q5oncd <= q4oncd <= q3oncd:
3063
-        dict['trick_string'] = '360 Frontside Shovit'
3064
-        fsshovit360()
3065
-        q3oncd = 0
3066
-        q4oncd = 0
3067
-        q5oncd = 0
3068
-        q6oncd = 0
3069
-        q7oncd = 0
3070
-        own["Q3oncd"] = q3oncd
3071
-        own["Q4oncd"] = q4oncd
3072
-        own["Q5oncd"] = q5oncd
3073
-        own["Q6oncd"] = q6oncd
3074
-        own["Q7oncd"] = q7oncd    
3072
+        dict['trick_string'] = '360 Frontside shuvit'
3073
+        fsshuvit360()
3074
+        reset_rtimers()    
3075
 
3075
 
3076
     #ollie
3076
     #ollie
3077
     if q5oncd > 0 and q1oncd > 0 and q5oncd < q1oncd:
3077
     if q5oncd > 0 and q1oncd > 0 and q5oncd < q1oncd:
3084
         if JUMPSTRENGTH >= 7:
3084
         if JUMPSTRENGTH >= 7:
3085
            JUMPSTRENGTH = .9               
3085
            JUMPSTRENGTH = .9               
3086
         aollie()
3086
         aollie()
3087
-        
3088
-        q1oncd = 0
3089
-        q5oncd = 0
3090
-        own["Q1oncd"] = q1oncd
3091
-        own["Q5oncd"] = q5oncd
3087
+        reset_rtimers()
3092
         
3088
         
3093
     #nollie
3089
     #nollie
3094
     if q5oncd > 0 and q1oncd > 0 and q5oncd > q1oncd:
3090
     if q5oncd > 0 and q1oncd > 0 and q5oncd > q1oncd:
3101
         if JUMPSTRENGTH >= 7:
3097
         if JUMPSTRENGTH >= 7:
3102
            JUMPSTRENGTH = .9
3098
            JUMPSTRENGTH = .9
3103
         nollie()
3099
         nollie()
3104
-        q1oncd = 0
3105
-        q5oncd = 0
3106
-        own["Q1oncd"] = q1oncd
3107
-        own["Q5oncd"] = q5oncd
3100
+        reset_rtimers()
3108
         print("nollie")
3101
         print("nollie")
3109
 
3102
 
3110
     #kickflip
3103
     #kickflip
3111
     if q5oncd > 0 and q8oncd > 0 and q5oncd < q8oncd and q3oncd < 1:
3104
     if q5oncd > 0 and q8oncd > 0 and q5oncd < q8oncd and q3oncd < 1:
3112
         kickflip()
3105
         kickflip()
3113
-        q8oncd = 0
3114
-        q5oncd = 0
3115
-        own["Q8oncd"] = q8oncd
3116
-        own["Q5oncd"] = q5oncd
3106
+        reset_rtimers()
3117
         
3107
         
3118
     #nollie kickflip
3108
     #nollie kickflip
3119
     if q1oncd > 0 and q6oncd > 0 and q1oncd < q6oncd:
3109
     if q1oncd > 0 and q6oncd > 0 and q1oncd < q6oncd:
3120
         nollie_kickflip()
3110
         nollie_kickflip()
3121
-        q6oncd = 0
3122
-        q1oncd = 0
3123
-        own["Q6oncd"] = q6oncd
3124
-        own["Q1oncd"] = q1oncd    
3111
+        reset_rtimers()  
3125
 
3112
 
3126
     #heelflip
3113
     #heelflip
3127
     if q5oncd > 0 and q2oncd > 0 and q5oncd < q2oncd:
3114
     if q5oncd > 0 and q2oncd > 0 and q5oncd < q2oncd:
3128
         heelflip()
3115
         heelflip()
3129
-        q2oncd = 0
3130
-        q5oncd = 0
3131
-        own["Q2oncd"] = q2oncd
3132
-        own["Q5oncd"] = q5oncd
3116
+        reset_rtimers()
3133
         
3117
         
3134
     #nollie_heelflip
3118
     #nollie_heelflip
3135
     if q1oncd > 0 and q4oncd > 0 and q1oncd < q4oncd:
3119
     if q1oncd > 0 and q4oncd > 0 and q1oncd < q4oncd:
3136
         nollie_heelflip()
3120
         nollie_heelflip()
3137
-        q1oncd = 0
3138
-        q4oncd = 0
3139
-        own["Q1oncd"] = q1oncd
3140
-        own["Q4oncd"] = q4oncd    
3121
+        reset_rtimers()
3122
+           
3141
 
3123
 
3142
-    #shovit
3124
+    #shuvit
3143
     if q4oncd > 0 and q5oncd > 0 and q6oncd > 0 and q4oncd <= q5oncd <= q6oncd and q3oncd < 1:
3125
     if q4oncd > 0 and q5oncd > 0 and q6oncd > 0 and q4oncd <= q5oncd <= q6oncd and q3oncd < 1:
3144
-       shovit()
3145
-       q4oncd = 0
3146
-       q5oncd = 0
3147
-       q6oncd = 0
3148
-       own["Q4oncd"] = q4oncd
3149
-       own["Q5oncd"] = q5oncd
3150
-       own["Q6oncd"] = q6oncd
3126
+       shuvit()
3127
+       reset_rtimers()
3151
         
3128
         
3152
-    #nollie_shovit
3129
+    #nollie_shuvit
3153
     if q2oncd > 0 and q1oncd > 0 and q8oncd > 0 and q2oncd <= q1oncd <= q8oncd and q3oncd == 0:
3130
     if q2oncd > 0 and q1oncd > 0 and q8oncd > 0 and q2oncd <= q1oncd <= q8oncd and q3oncd == 0:
3154
-        nollie_shovit()
3131
+        nollie_shuvit()
3155
         print('nollie shuvit')
3132
         print('nollie shuvit')
3156
-        #nollie_fsshovit()
3157
-        q2oncd = 0
3158
-        q1oncd = 0
3159
-        q8oncd = 0
3160
-        own["Q2oncd"] = q2oncd
3161
-        own["Q1oncd"] = q1oncd
3162
-        own["Q8oncd"] = q8oncd    
3133
+        #nollie_fsshuvit()
3134
+        reset_rtimers()   
3163
         
3135
         
3164
-    #fsshovit
3136
+    #fsshuvit
3165
     if q4oncd > 0 and q5oncd > 0 and q6oncd > 0 and q6oncd <= q5oncd <= q4oncd and q7oncd < 1:
3137
     if q4oncd > 0 and q5oncd > 0 and q6oncd > 0 and q6oncd <= q5oncd <= q4oncd and q7oncd < 1:
3166
-        fsshovit()
3167
-        q4oncd = 0
3168
-        q5oncd = 0
3169
-        q6oncd = 0
3170
-        own["Q4oncd"] = q4oncd
3171
-        own["Q5oncd"] = q5oncd
3172
-        own["Q6oncd"] = q6oncd
3138
+        fsshuvit()
3139
+        reset_rtimers()
3173
         
3140
         
3174
-    #nollie_fsshovit
3141
+    #nollie_fsshuvit
3175
     if q8oncd > 0 and q1oncd > 0 and q2oncd > 0 and q8oncd <= q1oncd <= q2oncd and q7oncd == 0:
3142
     if q8oncd > 0 and q1oncd > 0 and q2oncd > 0 and q8oncd <= q1oncd <= q2oncd and q7oncd == 0:
3176
-        print ("nollie fsshovit")
3177
-        nollie_fsshovit()
3178
-        q8oncd = 0
3179
-        q1oncd = 0
3180
-        q2oncd = 0
3181
-        own["Q8oncd"] = q4oncd
3182
-        own["Q1oncd"] = q5oncd
3183
-        own["Q2oncd"] = q6oncd 
3143
+        print ("nollie fsshuvit")
3144
+        nollie_fsshuvit()
3145
+        reset_rtimers()
3184
 
3146
 
3185
-    #360 shovit
3147
+    #360 shuvit
3186
 
3148
 
3187
-    # 360 shovit
3149
+    # 360 shuvit
3188
     # 3 > 4 > 5 >6 > 7
3150
     # 3 > 4 > 5 >6 > 7
3189
 
3151
 
3190
-    # fs 360 shovit
3152
+    # fs 360 shuvit
3191
     # 7 > 6 > 5 > 4 > 3     
3153
     # 7 > 6 > 5 > 4 > 3     
3192
 
3154
 
3193
     def hippy_jump():
3155
     def hippy_jump():
4210
         force2 = [0.0, 0, -10]
4172
         force2 = [0.0, 0, -10]
4211
         own.applyForce(force2, True)
4173
         own.applyForce(force2, True)
4212
     if (grindDar == False and r_ground.triggered and own['grindTouch'] == False) or own['jump_timer'] > 40:
4174
     if (grindDar == False and r_ground.triggered and own['grindTouch'] == False) or own['jump_timer'] > 40:
4213
-        own['grindType'] = ''
4175
+        own['grindType'] = ''
4176
+        
4177
+    #print('q1:', q1oncd, 'q2:', q2oncd, 'q3:', q3oncd, 'q4:', q4oncd, 'q5:', q5oncd, 'q6:', q6oncd, 'q7:', q7oncd, 'q8:', q8oncd)     

Loading…
Cancel
Save