Solved New clutch properties

Discussion in 'Mod Support' started by Ai'Torror, Aug 24, 2018.

  1. Ai'Torror

    Ai'Torror
    Expand Collapse
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,506
    Nevermind, figured it out already:
    Code:
    local thermalsEnabled = jbeamData.thermalsEnabled or true
      device.clutchThermalsEnabledCoef = thermalsEnabled and 1 or 0
      device.clutchCoolingCoef = jbeamData.coolingCoef or 1
      device.clutchPermanentDamageTempThreshold = jbeamData.maxClutchTemp or 500
      device.clutchWarningTemp = jbeamData.warningTemp or 200
      device.clutchMaxSafeTemp = jbeamData.maxSafeClutchTemp or 300
      device.clutchInvOverheatRange = 1 / (jbeamData.clutchOverheatRange or 100)
      device.clutchEfficiencyScaleEnd = device.clutchMaxSafeTemp + 1 / device.clutchInvOverheatRange
      local mass = jbeamData.clutchMass or 10
      local specificHeat = jbeamData.clutchSpecificHeat or 490
      device.clutchEnergyCoef = 1 / (mass * specificHeat)
    
      device.jbeamData = jbeamData
    
      selectUpdates(device)
    
     
    #1 Ai'Torror, Aug 24, 2018
    Last edited: Aug 24, 2018
    • Informative Informative x 1
  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