Engine flooding

Discussion in 'Content Creation' started by adrian2013, May 3, 2016.

  1. adrian2013

    adrian2013
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    682
    What node/beams or black magarey cause the engine to flood, and how would I go about making a snorkel, or making an engine last longer in water or un-drownable
     
  2. stenyak

    stenyak
    Expand Collapse
    Programmer & Global Moderator
    BeamNG Team

    Joined:
    Aug 6, 2012
    Messages:
    2,015
    Look at the waterDamage stuff in pickup.jbeam as an example :)
     
  3. adrian2013

    adrian2013
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    682
    "engine":{
    "onBeamBreakDisableDriveshaft":["driveshaft"]
    "onBeamBreakDisableEngine":["engine"]
    "waterDamage": {"[engineGroup]:":["engine_intake"]}
    "radiator": {"[engineGroup]:":["radiator"]}


    "engineBlock": {"[engineGroup]:":["engine_block"]}
    "fuel": {"[engineGroup]:":["fuel"]}
    "fuelCapacity":0.01
    },

    Your refering to the one in bold correct? How or what needs to be done to make it last longer in water
     
  4. stenyak

    stenyak
    Expand Collapse
    Programmer & Global Moderator
    BeamNG Team

    Joined:
    Aug 6, 2012
    Messages:
    2,015
    To make a snorkel, you would need to move the appropriate nodes wherever you want the snorkel intake to be.
    The physics of flooding timing are not customizable per vehicle, but you can globally modify them in drivetrain.lua::checkEngine(dt).
     
  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