|
@@ -332,6 +332,12 @@ def onboard():
|
332
|
332
|
fliplay = 301
|
333
|
333
|
fliplay2 = 302
|
334
|
334
|
fliplay3 = 303
|
|
335
|
+ own['grindcement_vol'] = 0
|
|
336
|
+ own['grindcement_pitch'] = 0
|
|
337
|
+ own['grindrail_vol'] = 0
|
|
338
|
+ own['grindrail_pitch'] = 0
|
|
339
|
+ own['sroll_vol'] = 0
|
|
340
|
+ own['sroll_pitch'] = 0
|
335
|
341
|
try:
|
336
|
342
|
vel = own['offboard_vel']
|
337
|
343
|
vel = [velx, vel.y, vel.z]
|
|
@@ -398,27 +404,7 @@ def getonboard():
|
398
|
404
|
#camera.max = 1.25
|
399
|
405
|
#cont.activate(cam.actuators['Camera'])
|
400
|
406
|
|
401
|
|
- deckact = deck.actuators["Visibility"]
|
402
|
|
- trucksact = trucks.actuators["Visibility"]
|
403
|
|
- wheel1act = wheel1.actuators["Visibility"]
|
404
|
|
- wheel2act = wheel2.actuators["Visibility"]
|
405
|
|
- wheel3act = wheel3.actuators["Visibility"]
|
406
|
|
- wheel4act = wheel4.actuators["Visibility"]
|
407
|
|
- deckact.visibility = True
|
408
|
|
- trucksact.visibility = True
|
409
|
|
- wheel1act.visibility = True
|
410
|
|
- wheel2act.visibility = True
|
411
|
|
- wheel3act.visibility = True
|
412
|
|
- wheel4act.visibility = True
|
413
|
|
- cont.activate(deck.actuators['Visibility'])
|
414
|
|
- cont.activate(trucks.actuators['Visibility'])
|
415
|
|
- cont.activate(wheel1.actuators['Visibility'])
|
416
|
|
- cont.activate(wheel2.actuators['Visibility'])
|
417
|
|
- cont.activate(wheel3.actuators['Visibility'])
|
418
|
|
- cont.activate(wheel4.actuators['Visibility'])
|
419
|
|
- own['throw_deck'] = False
|
420
|
|
- throw_deck_empty = scene.objects["throw_deck_empty"]
|
421
|
|
- throw_deck_empty['kill_deck'] = 1
|
|
407
|
+
|
422
|
408
|
fliplay3 = fliplay2 + 1
|
423
|
409
|
if dropinCol.positive == True:
|
424
|
410
|
|
|
@@ -482,7 +468,30 @@ def getonboard():
|
482
|
468
|
fliplay3 = 6000
|
483
|
469
|
onboard_speed = .1
|
484
|
470
|
own['getonboard'] = 0
|
485
|
|
- if yBut == False and lasty == True:
|
|
471
|
+ if (yBut == False and lasty == True) or yBut == True and dropinCol.positive:
|
|
472
|
+
|
|
473
|
+ deckact = deck.actuators["Visibility"]
|
|
474
|
+ trucksact = trucks.actuators["Visibility"]
|
|
475
|
+ wheel1act = wheel1.actuators["Visibility"]
|
|
476
|
+ wheel2act = wheel2.actuators["Visibility"]
|
|
477
|
+ wheel3act = wheel3.actuators["Visibility"]
|
|
478
|
+ wheel4act = wheel4.actuators["Visibility"]
|
|
479
|
+ deckact.visibility = True
|
|
480
|
+ trucksact.visibility = True
|
|
481
|
+ wheel1act.visibility = True
|
|
482
|
+ wheel2act.visibility = True
|
|
483
|
+ wheel3act.visibility = True
|
|
484
|
+ wheel4act.visibility = True
|
|
485
|
+ cont.activate(deck.actuators['Visibility'])
|
|
486
|
+ cont.activate(trucks.actuators['Visibility'])
|
|
487
|
+ cont.activate(wheel1.actuators['Visibility'])
|
|
488
|
+ cont.activate(wheel2.actuators['Visibility'])
|
|
489
|
+ cont.activate(wheel3.actuators['Visibility'])
|
|
490
|
+ cont.activate(wheel4.actuators['Visibility'])
|
|
491
|
+ own['throw_deck'] = False
|
|
492
|
+ throw_deck_empty = scene.objects["throw_deck_empty"]
|
|
493
|
+ throw_deck_empty['kill_deck'] = 1
|
|
494
|
+ if (yBut == False and lasty == True):
|
486
|
495
|
own['getonboard'] = 1
|
487
|
496
|
|
488
|
497
|
def nextframe():
|
|
@@ -745,9 +754,12 @@ def throwdeck_trigger():
|
745
|
754
|
def fall():
|
746
|
755
|
if own['fall'] == True:
|
747
|
756
|
falldeck()
|
|
757
|
+
|
748
|
758
|
if STANCE == 1:
|
|
759
|
+ own['requestAction'] = 'fak_fall1'
|
749
|
760
|
own.setLinearVelocity([3,2,0], True)
|
750
|
761
|
else:
|
|
762
|
+ own['requestAction'] = 'reg_fall1'
|
751
|
763
|
own.setLinearVelocity([-3,-2,0], True)
|
752
|
764
|
own['fall'] = False
|
753
|
765
|
|
|
@@ -1078,6 +1090,13 @@ if deck.visible:
|
1078
|
1090
|
own['deckvis'] = 1
|
1079
|
1091
|
else:
|
1080
|
1092
|
own['deckvis'] = 0
|
|
1093
|
+
|
|
1094
|
+if own['requestAction'] == 'empty' or own['requestAction'] == None:
|
|
1095
|
+ if STANCE == 0:
|
|
1096
|
+ own['requestAction'] = 'reg_idle1'
|
|
1097
|
+ if STANCE == 1:
|
|
1098
|
+ own['requestAction'] = 'fak_idle1'
|
|
1099
|
+
|
1081
|
1100
|
|
1082
|
1101
|
onboard()
|
1083
|
1102
|
jump()
|