|
@@ -371,7 +371,7 @@ def main(cont):
|
371
|
371
|
|
372
|
372
|
def onboard():
|
373
|
373
|
if own['walk'] == 0:
|
374
|
|
- #print("start walking")
|
|
374
|
+ print("start walking")
|
375
|
375
|
own['walk_idling'] = 0
|
376
|
376
|
if own['framenum'] > 100 and own['fall'] == False:
|
377
|
377
|
cont.activate(own.actuators['pop'])
|
|
@@ -498,7 +498,8 @@ def main(cont):
|
498
|
498
|
onboard_speed = .1
|
499
|
499
|
own['getonboard'] = 0
|
500
|
500
|
own['walk_idling'] = 0
|
501
|
|
- if (yBut == False and lasty == True) or (yBut == True or dict['kb_q'] == 2) and dropinCol.positive:
|
|
501
|
+ if (yBut == False and lasty == True) or (yBut == True or dict['kb_q'] == 3) and dropinCol.positive:
|
|
502
|
+ print('getting on board')
|
502
|
503
|
deckact = deck.actuators["Visibility"]
|
503
|
504
|
trucksact = trucks.actuators["Visibility"]
|
504
|
505
|
wheel1act = wheel1.actuators["Visibility"]
|
|
@@ -520,9 +521,33 @@ def main(cont):
|
520
|
521
|
own['throw_deck'] = False
|
521
|
522
|
throw_deck_empty = scene.objects["throw_deck_empty"]
|
522
|
523
|
throw_deck_empty['kill_deck'] = 1
|
523
|
|
- if ((yBut == False and lasty == True) or dict['kb_q'] == 3):# and cont.sensors["vehicleNear"].positive == False:
|
|
524
|
+ if ((yBut == False and lasty == True) or dict['kb_q'] == 3):# and cont.sensors["vehicleNear"].positive == False:
|
|
525
|
+ print('secondary get on board')
|
524
|
526
|
own['getonboard'] = 1
|
525
|
527
|
own['walk_idling'] = 0
|
|
528
|
+ deckact = deck.actuators["Visibility"]
|
|
529
|
+ trucksact = trucks.actuators["Visibility"]
|
|
530
|
+ wheel1act = wheel1.actuators["Visibility"]
|
|
531
|
+ wheel2act = wheel2.actuators["Visibility"]
|
|
532
|
+ wheel3act = wheel3.actuators["Visibility"]
|
|
533
|
+ wheel4act = wheel4.actuators["Visibility"]
|
|
534
|
+ deckact.visibility = True
|
|
535
|
+ trucksact.visibility = True
|
|
536
|
+ wheel1act.visibility = True
|
|
537
|
+ wheel2act.visibility = True
|
|
538
|
+ wheel3act.visibility = True
|
|
539
|
+ wheel4act.visibility = True
|
|
540
|
+ cont.activate(deck.actuators['Visibility'])
|
|
541
|
+ cont.activate(trucks.actuators['Visibility'])
|
|
542
|
+ cont.activate(wheel1.actuators['Visibility'])
|
|
543
|
+ cont.activate(wheel2.actuators['Visibility'])
|
|
544
|
+ cont.activate(wheel3.actuators['Visibility'])
|
|
545
|
+ cont.activate(wheel4.actuators['Visibility'])
|
|
546
|
+ own['throw_deck'] = False
|
|
547
|
+ throw_deck_empty = scene.objects["throw_deck_empty"]
|
|
548
|
+ throw_deck_empty['kill_deck'] = 1
|
|
549
|
+
|
|
550
|
+
|
526
|
551
|
|
527
|
552
|
def nextframe():
|
528
|
553
|
framenumber = own["framenum"]
|