Unsolved How to add straight-cut flag to gearbox?

Discussion in 'Mod Support' started by Tsutarja495, Mar 26, 2018.

  1. Tsutarja495

    Tsutarja495
    Expand Collapse

    Joined:
    Mar 16, 2014
    Messages:
    820
    I found something very interesting, when looking in the lua for the game, particularly this line:
    Code:
      local straightCutGearCoef = device.straightCutGearIndexes[device.gearIndex] and 1 or 0
    I'm pretty sure this has something to do with a sound, which is why it was commented out. After adding in a placeholder sound, and adding the following flag to the gearbox jbeam:
    Code:
    "straightCutGearCoef": 1,
    nothing happens.

    Is there any sort of flag that tells the game whether or not a gearbox has straight-cut gears?
     
  2. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    Well, there's a reason this stuff is commented and does not work yet, it's not finished ;)
     
  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