View previous topic :: View next topic |
Author |
Message |
Error Inside3D Staff

Joined: 05 Nov 2004 Posts: 558 Location: VA, USA
|
Posted: Mon Jun 01, 2009 6:43 am Post subject: Trying to fix Bounce! |
|
|
There's a bug when you move the mouse to fastly to the right that the bouncing guy freaks out (going back and forth really fast) and I can't figure it out.
Could someone please take a quick look at this source code and help me? Sorry if it looks a little thrown together, cause it was a quick minimod I made for QExpo. The code is located in bounce.qc.
Thanks. _________________ Inside3D : Knowledge Is Power
Darkplaces Documentation Wiki |
|
Back to top |
|
 |
r00k
Joined: 13 Nov 2004 Posts: 483
|
Posted: Mon Jun 01, 2009 8:42 am Post subject: |
|
|
Woot fun mod! Personal highscore: 325 !!
(I havent looked at the code yet but...)
I was playing around with host_framerate and moving the mouse slowly. at 0.1 the guy freaks out every inch left or right i move no matter how slow i move the mouse. So maybe it has something to do with the portion of the code that reads the mouse. Maybe its polling too fast?? I notice you divide the player positions by 10 "spots". At host_framerate 0.1 and going SLOWLY from left to right I can see where each position is and i notice that it FREAKS out at the overlapping edge. Maybe your bounds per position overlap and cause this? |
|
Back to top |
|
 |
|