Solved Stop driveshaft from breaking

Discussion in 'Mod Support' started by RichX4, Dec 14, 2017.

  1. RichX4

    RichX4
    Expand Collapse

    Joined:
    Sep 22, 2016
    Messages:
    2,189
    No realism needed. I need to make the driveshaft unbreakable.
     
  2. EvilMcSheep

    EvilMcSheep
    Expand Collapse

    Joined:
    Jan 5, 2016
    Messages:
    130
    You know what's funny?
    I just uploaded a mod that does exactly that, awaiting approval now :D
    Go to Lua > vehicle > drivetrain (if I remember correctly) and find shaft.lua, then comment out the things under onBreak.
    This will largely give the desired effect, but things will get very sluggish if a driven axle is broken, so you'll have to change something that I can't recall right now under wheel(s?).lua for that.
    Sorry for a bit of a sloppy reply, this is the best I can do right now :)
    Hope you figure it out! If not, you'll be able to use mine in a day or so :)
     
    • Informative Informative x 1
  3. RichX4

    RichX4
    Expand Collapse

    Joined:
    Sep 22, 2016
    Messages:
    2,189
    It's a russian mod in remastering...
    --- Post updated ---
    I tried it and it worked ! thanks man !!!!!
     
    • Like Like x 1
  4. EvilMcSheep

    EvilMcSheep
    Expand Collapse

    Joined:
    Jan 5, 2016
    Messages:
    130
    Agreed, jbeam is the better option unless you want it to apply to all cars like I did.
     
  5. Deleted member 160369

    Deleted member 160369
    Expand Collapse
    Guest

    Also, if you want the driveshaft device to stop from breaking, you can make the named driveshaft beam unbreakable ("beamStrength":"FLT_MAX").
     
    • Agree Agree x 1
  6. RichX4

    RichX4
    Expand Collapse

    Joined:
    Sep 22, 2016
    Messages:
    2,189
    im not releasing the mod anyways so yeah ;D
     
  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