|
@@ -1987,10 +1987,23 @@ def main():
|
1987
|
1987
|
STANCE = own["stance"]
|
1988
|
1988
|
jumpstance = own["jump_stance"]
|
1989
|
1989
|
lif = frame - own['last_invert_frame']
|
|
1990
|
+ giniter = 0
|
1990
|
1991
|
if own['LAST_GRIND'] == False and grindHit == True:
|
1991
|
1992
|
own['grindstartFrame'] = own['framenum']
|
|
1993
|
+ giniter = 1
|
1992
|
1994
|
#print(own['grindstartFrame'])
|
1993
|
|
- if grindHit == True and own['invert_on'] == 0 and own['footplant_on'] == False and own['manual'] == 0 and lif > 40 and own['dropinTimer'] < 30:
|
|
1995
|
+ if grindHit == True and own['invert_on'] == 0 and own['footplant_on'] == False and own['manual'] == 0 and lif > 40 and own['dropinTimer'] < 30 and giniter == 0:
|
|
1996
|
+
|
|
1997
|
+ control_bottom = scene.objects['control_bottom']
|
|
1998
|
+ grindTouch = control_bottom.sensors['grindCol_bottom']
|
|
1999
|
+ edge = 0
|
|
2000
|
+ try:
|
|
2001
|
+ if 'edge' in grindTouch.hitObject:
|
|
2002
|
+ print('Edge')
|
|
2003
|
+ edge = 1
|
|
2004
|
+ except:
|
|
2005
|
+ pass
|
|
2006
|
+
|
1994
|
2007
|
gblend = 1
|
1995
|
2008
|
if LAST_GRIND == 0:
|
1996
|
2009
|
gt = own['grindType']
|
|
@@ -2043,14 +2056,14 @@ def main():
|
2043
|
2056
|
elif own['grindType'] == "fak_tailgL":
|
2044
|
2057
|
own['requestAction'] = 'fak_tailgl'
|
2045
|
2058
|
|
2046
|
|
- elif own['grindType'] == "reg_tailslide":
|
|
2059
|
+ elif own['grindType'] == "reg_tailslide" and edge == 1:
|
2047
|
2060
|
#own['requestAction'] = 'reg_tailslide'
|
2048
|
2061
|
own['requestAction'] = 'fak_noseslide'
|
2049
|
2062
|
own['grind_stance'] = 0
|
2050
|
2063
|
elif own['grindType'] == "fak_tailslide":
|
2051
|
2064
|
own['requestAction'] = 'fak_tailslide'
|
2052
|
2065
|
own['grind_stance'] = 1
|
2053
|
|
- elif own['grindType'] == "reg_noseslide":
|
|
2066
|
+ elif own['grindType'] == "reg_noseslide" and edge == 1:
|
2054
|
2067
|
#own['requestAction'] = 'reg_noseslide'
|
2055
|
2068
|
own['requestAction'] = 'fak_tailslide'
|
2056
|
2069
|
own['grind_stance'] = 0
|
|
@@ -2097,13 +2110,14 @@ def main():
|
2097
|
2110
|
own['requestAction'] = 'fak_tailgl'
|
2098
|
2111
|
elif own['grindType'] == "reg_tailslide":
|
2099
|
2112
|
own['requestAction'] = 'reg_tailslide'
|
2100
|
|
- elif own['grindType'] == "fak_tailslide":
|
|
2113
|
+
|
|
2114
|
+ elif own['grindType'] == "fak_tailslide" and edge == 1:
|
2101
|
2115
|
own['grind_stance'] = 1
|
2102
|
2116
|
own['requestAction'] = 'reg_noseslide'
|
2103
|
2117
|
elif own['grindType'] == "reg_noseslide":
|
2104
|
2118
|
own['grind_stance'] = 0
|
2105
|
2119
|
own['requestAction'] = 'reg_noseslide'
|
2106
|
|
- elif own['grindType'] == "fak_noseslide":
|
|
2120
|
+ elif own['grindType'] == "fak_noseslide" and edge == 1:
|
2107
|
2121
|
own['grind_stance'] = 1
|
2108
|
2122
|
own['requestAction'] = 'reg_tailslide'
|
2109
|
2123
|
else:
|
|
@@ -2325,10 +2339,10 @@ def main():
|
2325
|
2339
|
killact(4)
|
2326
|
2340
|
if STANCE == 0:
|
2327
|
2341
|
own['requestAction'] = 'reg_air_nose'
|
2328
|
|
- print("reg_air_nose")
|
|
2342
|
+ #print("reg_air_nose")
|
2329
|
2343
|
else:
|
2330
|
2344
|
own['requestAction'] = 'fak_air_nose'
|
2331
|
|
- print("fak_air_nose")
|
|
2345
|
+ #print("fak_air_nose")
|
2332
|
2346
|
|
2333
|
2347
|
def air_turn_boost():
|
2334
|
2348
|
pass
|