1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice

Handbrake tweaked

Discussion in 'General Discussion' started by Davidbc, Aug 5, 2013.

  1. Davidbc

    Davidbc
    Expand Collapse

    Joined:
    Mar 20, 2013
    Messages:
    1,332
    I have to say I don't like the handbrake in automatic cars, I want it to completely stop the rear wheels, so I changed a line of code to do it, if you are interested:

    1. Go to: BeamNG\BeamNG-DRIVE-0.3\lua\vehicle

    2. Open drivetrain.lua with a text editor

    3. Find this line of code: w.brakingTorque = w.brakingTorque + wd.parkingTorque * input.parkingbrake

    4. Increase the size of the value, mine looks like this: w.brakingTorque = w.brakingTorque + 1000 + wd.parkingTorque * input.parkingbrake

    Drifting feels much better now and the cars don't move at all when they are stopped and with the handbrake on.
     
    #1 Davidbc, Aug 5, 2013
    Last edited: Aug 18, 2013
  2. hairyman

    hairyman
    Expand Collapse

    Joined:
    Aug 5, 2013
    Messages:
    19
    thats cool i had a suggestion of being able to turn handbrake from and on/off switch.... its very annoying, double pressing, does this do that
     
  3. BreadForMen

    BreadForMen
    Expand Collapse

    Joined:
    Apr 5, 2013
    Messages:
    203
    Thanks bud!
     
  4. Davidbc

    Davidbc
    Expand Collapse

    Joined:
    Mar 20, 2013
    Messages:
    1,332
    I think that I can change the code a bit to have both kinds of handbrakes. When you're in automatic you have the parking brake, and when you're in manual you have the handbrake that locks the wheels.
     
  5. Austin

    Austin
    Expand Collapse

    Joined:
    Aug 3, 2013
    Messages:
    223
    You can edit that in the inputmap. Change parkingbrake_toggle to parkingbrake and it will only be on if you are pressing the button.
     
  6. Derelictica

    Derelictica
    Expand Collapse

    Joined:
    Aug 5, 2013
    Messages:
    10
    Im sorry, this feels like a dumb question, how do i edit the inputmap?

    Edit: Nvm i found it :)

    "To edit mappings go to: \scripts\client\inputmap"
     
    #6 Derelictica, Aug 5, 2013
    Last edited: Aug 5, 2013
  7. Davidbc

    Davidbc
    Expand Collapse

    Joined:
    Mar 20, 2013
    Messages:
    1,332
    I slightly changed the code, now it works much better. There's a huge difference. With the default settings the cars seem to never stop, while with this they won't move with the handbrake on.
     
  8. kruleworld

    kruleworld
    Expand Collapse

    Joined:
    Aug 24, 2013
    Messages:
    180
    You are right. you only need to leave the h/b permanently on if you are parking. and how likely are we to do that?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice