shuvit 3 years ago
parent
commit
b5bd31e87e
8 changed files with 489 additions and 102 deletions
  1. 9
    2
      Record.py
  2. 39
    3
      Settings.py
  3. 12
    12
      co_ActionState.py
  4. 17
    9
      controller2.py
  5. 27
    4
      grindV2.py
  6. 346
    3
      menuV3.py
  7. 10
    37
      scene_init.py
  8. 29
    32
      walk.py

+ 9
- 2
Record.py View File

@@ -389,8 +389,15 @@ def loadData():
389 389
                 deck.stopAction(9999)
390 390
                 #print(deckanim)
391 391
                 if deckanim != '':
392
-                    deck.playAction(deckanim, DAF,DAF, layer=9999, play_mode=1, speed=1)
393
-                    trucks.playAction(deckanim, DAF,DAF, layer=9999, play_mode=1, speed=1)
392
+                    turnList = ['a_reg_right', 'a_reg_left', 'a_fak_right', 'a_fak_left']
393
+                    #print(deckanim)
394
+                    if deckanim not in turnList:
395
+                        deck.playAction(deckanim, DAF,DAF, layer=9999, play_mode=1, speed=1)
396
+                        trucks.playAction(deckanim, DAF,DAF, layer=9999, play_mode=1, speed=1)
397
+                    else:
398
+                        print('play a_reg')  
399
+                        deck.playAction(deckanim, DAF,DAF, layer=9999, play_mode=1, speed=1)
400
+                        trucks.playAction('a_reg', DAF,DAF, layer=9999, play_mode=1, speed=1)                          
394 401
                 #print("Playing: ", deckanim, PAF)
395 402
             except:
396 403
                 print("deck something is wrong")

+ 39
- 3
Settings.py View File

@@ -92,7 +92,22 @@ def readSettings():
92 92
     dict['fxaa'] = int(data[62]) 
93 93
     dict['FXAA_SPAN_MAX'] = float(data[63])   
94 94
     dict['cch_targetHeight'] = float(data[65])         
95
-    
95
+    dict["trucks_r"] = float(data[67])
96
+    dict["trucks_g"] = float(data[68])
97
+    dict["trucks_b"] = float(data[69])
98
+    dict["wheel1_r"] = float(data[71])
99
+    dict["wheel1_g"] = float(data[72])
100
+    dict["wheel1_b"] = float(data[73])
101
+    dict["wheel2_r"] = float(data[75])
102
+    dict["wheel2_g"] = float(data[76])
103
+    dict["wheel2_b"] = float(data[77])
104
+    dict["wheel3_r"] = float(data[79])
105
+    dict["wheel3_g"] = float(data[80])
106
+    dict["wheel3_b"] = float(data[81])
107
+    dict["wheel4_r"] = float(data[83])
108
+    dict["wheel4_g"] = float(data[84])
109
+    dict["wheel4_b"] = float(data[85])  
110
+    dict["deck_index"] = int(data[87])                        
96 111
     
97 112
     #print('bc = ', dict['bc'])        
98 113
     #dict['music_player_on'] = int(data[16])  
@@ -172,8 +187,29 @@ def writeSettings():
172 187
         writing.write(str(dict["fxaa"])+"\n") 
173 188
         writing.write(str(dict["FXAA_SPAN_MAX"])+"\n")    
174 189
         writing.write(str("//camera target height")+"\n")
175
-        writing.write(str(dict["cch_targetHeight"] )+"\n")    
176
-        
190
+        writing.write(str(dict["cch_targetHeight"] )+"\n")   
191
+        writing.write(str("//trucks color [r,g,b]")+"\n")
192
+        writing.write(str(dict["trucks_r"])+"\n")
193
+        writing.write(str(dict["trucks_g"])+"\n")
194
+        writing.write(str(dict["trucks_b"])+"\n") 
195
+        writing.write(str("//wheel1 color [r,g,b]")+"\n")
196
+        writing.write(str(dict["wheel1_r"])+"\n")
197
+        writing.write(str(dict["wheel1_g"])+"\n")
198
+        writing.write(str(dict["wheel1_b"])+"\n") 
199
+        writing.write(str("//wheel2 color [r,g,b]")+"\n")
200
+        writing.write(str(dict["wheel2_r"])+"\n")
201
+        writing.write(str(dict["wheel2_g"])+"\n")
202
+        writing.write(str(dict["wheel2_b"])+"\n") 
203
+        writing.write(str("//wheel3 color [r,g,b]")+"\n")
204
+        writing.write(str(dict["wheel3_r"])+"\n")
205
+        writing.write(str(dict["wheel3_g"])+"\n")
206
+        writing.write(str(dict["wheel3_b"])+"\n") 
207
+        writing.write(str("//wheel4 color [r,g,b]")+"\n")
208
+        writing.write(str(dict["wheel4_r"])+"\n")
209
+        writing.write(str(dict["wheel4_g"])+"\n")
210
+        writing.write(str(dict["wheel4_b"])+"\n")                                          
211
+        writing.write(str("//deck index")+"\n")
212
+        writing.write(str(dict["deck_index"])+"\n")        
177 213
         
178 214
         #dict['ccH_targetHeight']     
179 215
         

+ 12
- 12
co_ActionState.py View File

@@ -4441,10 +4441,10 @@ def main():
4441 4441
                         trucks.stopAction(loop_layer)
4442 4442
                         if cur_frame > 11:
4443 4443
                             cur_frame += 1
4444
-                            skater.playAction('reg_nwalk_nb.001', cur_frame,35, layer=loop_layer, play_mode=0, speed=.5)
4444
+                            skater.playAction('reg_nwalk_nb.005', cur_frame,35, layer=loop_layer, play_mode=0, speed=.5)
4445 4445
                         else:
4446 4446
                             cur_frame -= 1
4447
-                            skater.playAction('reg_nwalk_nb.001', cur_frame,0, layer=loop_layer, play_mode=0, speed=.5)
4447
+                            skater.playAction('reg_nwalk_nb.005', cur_frame,0, layer=loop_layer, play_mode=0, speed=.5)
4448 4448
                     else:
4449 4449
                         trans_playing = skater.isPlayingAction(trans_layer)
4450 4450
                         if trans_playing == 1:
@@ -4488,10 +4488,10 @@ def main():
4488 4488
                         trucks.stopAction(loop_layer)                    
4489 4489
                         if cur_frame > 11:
4490 4490
                             cur_frame += 1
4491
-                            skater.playAction('fak_nwalk_nb.001', cur_frame,35, layer=loop_layer, play_mode=0, speed=.5)
4491
+                            skater.playAction('fak_nwalk_nb.005', cur_frame,35, layer=loop_layer, play_mode=0, speed=.5)
4492 4492
                         else:
4493 4493
                             cur_frame -= 1
4494
-                            skater.playAction('fak_nwalk_nb.001', cur_frame,0, layer=loop_layer, play_mode=0, speed=.5)
4494
+                            skater.playAction('fak_nwalk_nb.005', cur_frame,0, layer=loop_layer, play_mode=0, speed=.5)
4495 4495
                     else:
4496 4496
                         trans_playing = skater.isPlayingAction(trans_layer)
4497 4497
                         if trans_playing == 1:
@@ -4600,12 +4600,12 @@ def main():
4600 4600
                 if l_requestAction != 'reg_walk_nb':
4601 4601
                     if l_requestAction == 'reg_walkFast_nb':
4602 4602
                         cur_frame = skater.getActionFrame(loop_layer)
4603
-                        skater.playAction('reg_nwalk_nb.001', 0,35, layer=loop_layer, play_mode=1, speed=.5) 
4603
+                        skater.playAction('reg_nwalk_nb.005', 0,35, layer=loop_layer, play_mode=1, speed=.5) 
4604 4604
                         skater.setActionFrame(cur_frame, loop_layer)
4605 4605
                                           
4606 4606
                 #loop
4607 4607
                 else:
4608
-                    skater.playAction('reg_nwalk_nb.001', 0,35, layer=loop_layer, play_mode=1, speed=.5)               
4608
+                    skater.playAction('reg_nwalk_nb.005', 0,35, layer=loop_layer, play_mode=1, speed=.5)               
4609 4609
 
4610 4610
             #reg_walkFast    
4611 4611
             if requestAction == 'reg_walkFast':
@@ -4633,12 +4633,12 @@ def main():
4633 4633
                 if l_requestAction != 'reg_walkFast_nb':
4634 4634
                     if l_requestAction == 'reg_walk_nb':
4635 4635
                         cur_frame = skater.getActionFrame(loop_layer)
4636
-                        skater.playAction('reg_nwalk_nb.001', 0,35, layer=loop_layer, play_mode=1, speed=1) 
4636
+                        skater.playAction('reg_nwalk_nb.005', 0,35, layer=loop_layer, play_mode=1, speed=1) 
4637 4637
                         skater.setActionFrame(cur_frame, loop_layer)
4638 4638
                                           
4639 4639
                 #loop
4640 4640
                 else:
4641
-                    skater.playAction('reg_nwalk_nb.001', 0,35, layer=loop_layer, play_mode=1, speed=1)                   
4641
+                    skater.playAction('reg_nwalk_nb.005', 0,35, layer=loop_layer, play_mode=1, speed=1)                   
4642 4642
             
4643 4643
             #fak_walk
4644 4644
             if requestAction == 'fak_walk':
@@ -4668,12 +4668,12 @@ def main():
4668 4668
                 if l_requestAction != 'fak_walk_nb':
4669 4669
                     if l_requestAction == 'fak_walkFast_nb':
4670 4670
                         cur_frame = skater.getActionFrame(loop_layer)
4671
-                        skater.playAction('fak_nwalk_nb.001', 0,35, layer=loop_layer, play_mode=1, speed=.5) 
4671
+                        skater.playAction('fak_nwalk_nb.005', 0,35, layer=loop_layer, play_mode=1, speed=.5) 
4672 4672
                         skater.setActionFrame(cur_frame, loop_layer)
4673 4673
                                           
4674 4674
                 #loop
4675 4675
                 else:
4676
-                    skater.playAction('fak_nwalk_nb.001', 0,35, layer=loop_layer, play_mode=1, speed=.5)
4676
+                    skater.playAction('fak_nwalk_nb.005', 0,35, layer=loop_layer, play_mode=1, speed=.5)
4677 4677
             
4678 4678
             #fak_walkFast            
4679 4679
             if requestAction == 'fak_walkFast':
@@ -4701,12 +4701,12 @@ def main():
4701 4701
                 if l_requestAction != 'fak_walkFast_nb':
4702 4702
                     if l_requestAction == 'fak_walk_nb':
4703 4703
                         cur_frame = skater.getActionFrame(loop_layer)
4704
-                        skater.playAction('fak_nwalk_nb.001', 0,35, layer=loop_layer, play_mode=1, speed=1) 
4704
+                        skater.playAction('fak_nwalk_nb.005', 0,35, layer=loop_layer, play_mode=1, speed=1) 
4705 4705
                         skater.setActionFrame(cur_frame, loop_layer)
4706 4706
                                           
4707 4707
                 #loop
4708 4708
                 else:
4709
-                    skater.playAction('fak_nwalk_nb.001', 0,35, layer=loop_layer, play_mode=1, speed=1)  
4709
+                    skater.playAction('fak_nwalk_nb.005', 0,35, layer=loop_layer, play_mode=1, speed=1)  
4710 4710
 
4711 4711
             if requestAction == 'reg_dropin_pos':
4712 4712
                 actionState = 'reg_dropin_pos'

+ 17
- 9
controller2.py View File

@@ -767,7 +767,10 @@ def main():
767 767
         reg_nmanual_off()
768 768
         fak_nmanual_off()    
769 769
         cont.deactivate(wallrideconstL)
770
-        cont.deactivate(wallrideconstR)    
770
+        cont.deactivate(wallrideconstR) 
771
+        own['last_jump_frame'] = frame    
772
+        own['no_grind_timer'] = 0
773
+           
771 774
         if JUMPSTRENGTH != 0:
772 775
             height = JUMPSTRENGTH * JUMPHEIGHT
773 776
         else:
@@ -2281,12 +2284,17 @@ def main():
2281 2284
     def onramp():
2282 2285
         if r_ground.positive:
2283 2286
             if 'ramp' in r_ground.hitObject:
2284
-                own['onramp'] = 1
2287
+                own['onramp'] = 60
2285 2288
                 own['last_ramp'] = frame
2289
+                own['no_grind_timer'] = 60 
2290
+                #print('on ramp')
2286 2291
             else:
2287
-                own['onramp'] = 0   
2292
+                own['onramp'] = 0 
2293
+                 
2288 2294
         else:
2289
-            own['onramp'] = 0   
2295
+            
2296
+            if own['onramp'] > 0:
2297
+                own['onramp'] -= 1  
2290 2298
     
2291 2299
     def grindtype(gtype):
2292 2300
         own['grindType'] = gtype
@@ -4027,7 +4035,7 @@ def main():
4027 4035
             cont.deactivate(own.actuators['grindoutRight'])
4028 4036
             cont.deactivate(own.actuators['grindoutLeft'])  
4029 4037
         #ground_since = own["framenum"] - own['lF_air_frame'] 
4030
-        if (grindHit == True and jumping == None and sincegrinding > 20 and ground_since > 20)or own['invert_on'] == True:
4038
+        if (grindHit == True and jumping == None and sincegrinding > 20 and ground_since > 20)or own['invert_on'] == True and own['last_grind'] == 1:
4031 4039
             outloc = 0.022
4032 4040
             bsoutloc = .07
4033 4041
             bsoutvel = .1
@@ -4320,8 +4328,8 @@ def main():
4320 4328
 
4321 4329
     def air_mover():
4322 4330
         if r_ground.triggered == False and jump_timer > 53 and frames_since_grinding > 50:
4323
-            if grindDar2.positive:
4324
-                print('grinddaring')
4331
+            #if grindDar2.positive:
4332
+                #print('grinddaring')
4325 4333
             if lUD > 0.075:
4326 4334
                 if STANCE == 0:
4327 4335
                     force2 = [120, 0, 10]
@@ -4332,8 +4340,8 @@ def main():
4332 4340
                 own.applyForce(force2, True)
4333 4341
                 own['no_grind_pull'] = 1
4334 4342
         if r_ground.triggered == False and jump_timer > 53 and frames_since_grinding > 50:
4335
-            if grindDar2.positive:
4336
-                print('grinddaring')
4343
+            #if grindDar2.positive:
4344
+                #print('grinddaring')
4337 4345
             if lUD < -0.075:
4338 4346
 #                if STANCE == 0:
4339 4347
 #                    force2 = [-120, 0, 10]

+ 27
- 4
grindV2.py View File

@@ -78,12 +78,35 @@ def main():
78 78
     except:    
79 79
         own['no_grind_pull'] = 0
80 80
         no_grind_pull = 0
81
+        
82
+    since_jumped = framenum - own['last_jump_frame']    
81 83
     #no grind
82
-    no_grind = 0
84
+    no_grind = 1
85
+    if jump_timer > 50:
86
+        own['no_grind_timer'] = 0
87
+    if own['no_grind_timer'] > 0:
88
+        no_grind = 0
89
+        own['no_grind_timer'] -= 1
90
+        
91
+    if grindold == 1:
92
+        no_grind = 0    
93
+    #don't grind unless you were in the air recently or were on a ramp recently or were grinding.
94
+    
95
+    #if (own['onramp'] == 0 and frames_since_grind > 30):
96
+        #no_grind = 1
97
+        
98
+    #if frames_since_grind > 30:
99
+        #no_grind = 0
100
+        
101
+    if frames_since_ground > 30 or since_jumped < 120:
102
+        no_grind = 0         
83 103
     if jump_timer > 50:
84 104
         no_grind = 1
105
+        
106
+   
107
+    #print('no grind timer', no_grind, own['no_grind_timer'])
108
+    
85 109
     
86
-    #check manual
87 110
     if (own['fak_nmanual'] == 1 or own['reg_nmanual'] == 1 or own['fak_manual'] == 1 or own['reg_manual'] == 1):
88 111
         manual = 1    
89 112
     else:
@@ -491,7 +514,7 @@ def main():
491 514
         #print("touching, no dar")
492 515
         pass
493 516
     #print(grindold, "grindold")        
494
-    if grindDar.positive or grindTouch.positive:        
517
+    if (grindDar.positive or grindTouch.positive) and no_grind == 0:        
495 518
         if grindDar.positive:
496 519
             detectedObjects = grindDar.hitObjectList
497 520
             dist = 0
@@ -547,7 +570,7 @@ def main():
547 570
                             own.alignAxisToVect(hitNormal, 2, stre) 
548 571
                             #print("align")                   
549 572
                         #own.worldPosition = [nearpos.x, nearpos.y, nearpos.z + .2975]
550
-                        print('new moving world')                    
573
+                        #print('new moving world')                    
551 574
 
552 575
     else:
553 576
         #grindold = False 

+ 346
- 3
menuV3.py
File diff suppressed because it is too large
View File


+ 10
- 37
scene_init.py View File

@@ -1,5 +1,5 @@
1 1
 import bge
2
-
2
+import colors
3 3
 
4 4
 def main():
5 5
     import bge
@@ -76,43 +76,10 @@ def main():
76 76
         print('setting color of', curscene)
77 77
         curscene.world.zenithColor = [0, 0.0, 0.0, 0]
78 78
         curscene.world.horizonColor = [0, 0, 0.0, 0]   
79
-        #main.mistEnable = True
80
-        #main.mistIntensity = .9
81
-        #main.mistStart = 1
82
-        #main.mistDistance = 5
79
+
83 80
     elif level == 'pats':
84 81
         print('setting color of', curscene)
85
-        #main.world.zenithColor = [1.0, .9, .975, 0]
86
-        #main.world.horizonColor = [.42, .555, .823, 0]  
87
-        #cam['BC_BRIGHTNESS'] = 1.35
88
-        #cam['BC_CONTRAST'] = 1.3 
89
-       
90
-        #cam['avgL'] = .6
91
-        #cam['HDRamount'] = .45                 
92
-        #main.mistEnable = True
93
-        #main.mistIntensity = .9
94
-        #main.mistStart = 1
95
-        #main.mistDistance = 5 
96
-        
97
-#    elif level == 'j_scene':
98
-#        print('setting color of', curscene)
99
-#        main.world.zenithColor = [1.0, .9, .975, 0]
100
-#        main.world.horizonColor = [.42, .555, .823, 0]  
101
-#        cam['BC_BRIGHTNESS'] = 1.35
102
-#        cam['BC_CONTRAST'] = 1.3 
103
-#        cam['avgL'] = .6
104
-#        cam['HDRamount'] = .45                 
105
-        #main.mistEnable = True
106
-        #main.mistIntensity = .9
107
-        #main.mistStart = 1
108
-        #main.mistDistance = 5                
109
-#    else:
110
-#        cam['BC_BRIGHTNESS'] = dict['BC_BRIGHTNESS'] 
111
-#        cam['BC_CONTRAST'] = dict['BC_CONTRAST']
112
-#        cam['bc'] = dict['bc']         
113
-        #main.world.zenithColor = [1.0, .9, .975, 0]
114
-        #main.world.horizonColor = [.42, .555, .823, 0] 
115
-        #main.mistEnable = False        
82
+     
116 83
     if dict['bc'] == 1:
117 84
         cont.activate(cam.actuators["bc"])
118 85
 
@@ -185,5 +152,11 @@ def main():
185 152
     own['walk_speed'] = 0
186 153
     own['walk_inc'] = .05
187 154
     own['walk_jump_timer'] = 0
188
-       
155
+    own['no_grind_timer'] = 0
156
+    own['last_jump_frame'] = 0
157
+    
158
+    
159
+    colors.update_tuck_tex() 
160
+    print('scene init ran')
161
+      
189 162
 main()

+ 29
- 32
walk.py View File

@@ -83,7 +83,12 @@ noidle = 0
83 83
 
84 84
 #if skater.isPlayingAction(460):  
85 85
 #    noidle = 1  
86
-walk_inc = own['walk_inc'] 
86
+try:
87
+    walk_inc = own['walk_inc'] 
88
+except:
89
+    own['walk_inc'] = .05
90
+    walk_inc = own['walk_inc']  
91
+    own['walk_jump_timer'] = 0   
87 92
 if own['stair_counter'] != 0:
88 93
     walk_inc = own['walk_inc']  *10
89 94
 
@@ -218,9 +223,16 @@ if r_ground.positive == False:
218 223
         if stance == 0:
219 224
             own.applyRotation([0,0,-airrot], True)
220 225
         if stance == 1:    
221
-            own.applyRotation([0,0,-airrot], True)            
226
+            own.applyRotation([0,0,-airrot], True)  
227
+            
228
+    if lup == 1 or dict['kb_ua'] == 2:
229
+        if own.linearVelocity.x < 10 and own .linearVelocity.x > - 10:
230
+            if stance == 0:
231
+                own.linearVelocity.x -= .04
232
+            if stance == 1:
233
+                own.linearVelocity.x += .04                             
222 234
     own['lF_air_frame'] = own['framenum']  
223
-
235
+    own.actuators["walkondirt"].stopSound()
224 236
 
225 237
     
226 238
 #walking
@@ -250,25 +262,18 @@ else:
250 262
     own['walking'] = None
251 263
     walking = None
252 264
    
253
-if walking == "regular":
254
-    #if linvel.x < own['walk_targ_speed']:
255
-    #cont.deactivate(own.actuators['forward2']) 
256
-    #cont.deactivate(own.actuators['backward2'])    
265
+if walking == "regular":  
257 266
     if stance == 1:
258 267
         if linvel.x < own['walk_targ_speed']:
259 268
             own.linearVelocity.x = linvel.x + walk_inc
260 269
         else:
261 270
             own.linearVelocity.x = own['walk_targ_speed']    
262
-        #cont.activate(own.actuators['forward'])
263 271
     else:
264 272
         if linvel.x > -own['walk_targ_speed']:
265 273
             own.linearVelocity.x = linvel.x - walk_inc       
266 274
         else:
267 275
             own.linearVelocity.x = -own['walk_targ_speed']                
268
-        #cont.activate(own.actuators['backward'])
269
-if walking == "fast":
270
-    #cont.deactivate(own.actuators['forward']) 
271
-    #cont.deactivate(own.actuators['backward'])    
276
+if walking == "fast":   
272 277
     if stance == 1:
273 278
         if linvel.x < own['walk_fast_targ_speed']:
274 279
             own.linearVelocity.x = linvel.x + walk_inc
@@ -280,18 +285,11 @@ if walking == "fast":
280 285
         else:
281 286
             own.linearVelocity.x = -own['walk_fast_targ_speed'] 
282 287
 
283
-if walking == None and r_ground.positive and own['walk_jump_timer'] == 0:
284
-    #cont.deactivate(own.actuators['forward2']) 
285
-    #cont.deactivate(own.actuators['backward2'])
286
-    #cont.deactivate(own.actuators['forward']) 
287
-    #cont.deactivate(own.actuators['backward'])        
288
+if walking == None and r_ground.positive and own['walk_jump_timer'] == 0:      
288 289
     if own['walk_timer'] < 50 and turning == False:
289 290
         velx = vel.x * .95             
290 291
         own.setLinearVelocity([velx, 0, vel.z], True)
291
-        #print('minusvel', velx)
292
-    else:
293
-        #pass
294
-        #print('minusvel')
292
+    elif own['walk_timer'] > 50:
295 293
         if own.linearVelocity.x > .1 or own.linearVelocity.x < -.1:
296 294
             own.linearVelocity.x *= .01
297 295
         else:
@@ -307,8 +305,7 @@ if walking == None and r_ground.positive and own['walk_jump_timer'] == 0:
307 305
 if ((lup == 1 and aBut == 0) or (dict['kb_ua'] == 2 and dict['kb_lsh'] == 0)  and yBut == False and (r_ground.positive or own['stair_counter'] > 0) and xBut == 0) or (turning == True and aBut == 0):
308 306
     own.actuators["walkondirt"].volume = .2
309 307
     own.actuators["walkondirt"].pitch = 1
310
-    cont.activate(own.actuators["walkondirt"])
311
-                
308
+    cont.activate(own.actuators["walkondirt"])          
312 309
     if stance == 0 and skater.isPlayingAction(fliplay) == False:             
313 310
         #without deck
314 311
         if own['throw_deck'] == True:
@@ -327,7 +324,7 @@ elif (((lup == 1 and aBut == 1) or (dict['kb_lsh'] == 2 and dict['kb_ua'] == 2))
327 324
     own.actuators["walkondirt"].volume = .2
328 325
     own.actuators["walkondirt"].pitch = 1.3
329 326
     cont.activate(own.actuators["walkondirt"])
330
-    print('fastwalk')
327
+    #print('fastwalk')
331 328
     if stance == 0 and skater.isPlayingAction(fliplay) == False:        
332 329
         if own['throw_deck'] == True:
333 330
             own['requestAction'] = 'reg_walkFast_nb'
@@ -370,7 +367,7 @@ lasty = own['lasty']
370 367
 
371 368
 def onboard():
372 369
     if own['walk'] == 0:
373
-        print("start walking")
370
+        #print("start walking")
374 371
         own['walk_idling'] = 0
375 372
         if own['framenum'] > 100 and own['fall'] == False:
376 373
             cont.activate(own.actuators['pop'])
@@ -408,10 +405,10 @@ def jump():
408 405
             #killact(7)      
409 406
             if STANCE == 0:  
410 407
                 own['requestAction'] ='reg_jump'  
411
-                print('jump') 
408
+                #print('jump') 
412 409
             if STANCE == 1:
413 410
                 own['requestAction'] ='fak_jump'             
414
-                print('jump')
411
+                #print('jump')
415 412
             JUMPHEIGHT = 1100
416 413
             force = [ 0.0, 0.0, JUMPHEIGHT]
417 414
             # use local axis
@@ -450,7 +447,7 @@ def getonboard(dict):
450 447
                         nearestObject = obj
451 448
                         minDist = dist
452 449
             if nearestObject != None:
453
-                print(nearestObject)
450
+                #print(nearestObject)
454 451
                 obj = nearestObject
455 452
                 player_e = own.worldOrientation.to_euler()
456 453
                 player_pos = own.worldPosition
@@ -802,7 +799,7 @@ def sit():
802 799
     if aBut == False and lasta == True:
803 800
         try:
804 801
             if 'sit' in r_ground.hitObject:
805
-                print("sit")
802
+                #print("sit")
806 803
                 own['sit'] = 1
807 804
                 killact(3)
808 805
                 if STANCE == 0:
@@ -840,7 +837,7 @@ def switchcam():
840 837
 def move_followcam():
841 838
     if own['camera'] == 2:
842 839
         if own['lastbkBut'] == True and bkBut == False:
843
-            print("activate move followcam") 
840
+            #print("activate move followcam") 
844 841
             if own['move_followcam'] == False:
845 842
                 own['move_followcam'] = True
846 843
             else:
@@ -854,7 +851,7 @@ def move_followcam():
854 851
             if lUD < -0.080:
855 852
                 followcam.actuators["up"].dLoc = [ 0, 0, -camspeed2]
856 853
                 cont.activate(followcam.actuators["up"])
857
-                print("fastup")
854
+                #print("fastup")
858 855
             else:
859 856
                 cont.deactivate(followcam.actuators["up"])    
860 857
 #            #down    
@@ -1162,7 +1159,7 @@ def get_in_car():
1162 1159
             cont.actuators['Camera'].min = 6
1163 1160
             cont.actuators['Camera'].max = 10
1164 1161
             own.state = 2
1165
-        print('near car')
1162
+        #print('near car')
1166 1163
         
1167 1164
     if dict['last_driving'] == True:
1168 1165
         cont.actuators['Camera'].object = scene.objects['camCube']    

Loading…
Cancel
Save