Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Brake at race start
11-30-2006, 10:47 AM,
#1
Brake at race start
The current svn version starts the race at STAGING state. I've noticed it sets the player's car to full brake. And does not release the brake even after the race begins. I have to press the brake button once to get the brake released. This obviously makes a slower start. Can we change this behaviour to automatically release the brake once race begins?
Reply
11-30-2006, 12:34 PM,
#2
 
I didn't realize it was holding the brakes after the start. I'll look into this.
Reply
12-01-2006, 12:40 AM,
#3
 
It's because the way the code works is to apply the brakes when the state is STAGING. Once the state isn't STAGING, no value is asserted, and whatever normal controls are assigned are allowed to get through. When using a joystick, the axis set to brake will, at this point, be setting brake values of zero, and the brake is released. When using keyboard controls, zero values are only set once (to allow you to assign keyboard controls to things but then also override them with the joystick), and then the last value is held. At least, that's how it used to work, I'm not sure if the button ramping changed things. In this case, the last value was the STAGING brake setting, so that stays there until you press and release a key. To try to fix this, I've set up a default, zero brake value that always gets set unless anything else sets a value. Check it out, rev 1403, and let me know if it fixes the problem for you.
Reply
12-01-2006, 10:42 AM,
#4
 
Thanks Joe. Just did a quick test, seems the problem is still there.
Reply
12-02-2006, 03:43 PM,
#5
 
Whoops, I put the fix in the wrong block of code! It should *really* be fixed, now, in rev 1406.
Reply
12-02-2006, 11:03 PM,
#6
 
Thanks again Joe. It's fixed now. Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)