{
"NatanAvent_engine_6.5": {
    "information":{
        "authors":"BeamNG",
        "name":"6.5L L539 V12 Engine",
        "value":81000,
    }
    "slotType" : "NatanAvent_engine",
    "slots": [
        ["type", "default", "description"]
        ["NatanAvent_intake","NatanAvent_intake", "Intake",{"coreSlot":true}],
        ["NatanAvent_muffler","NatanAvent_muffler", "Muffler"],
        ["NatanAvent_engine_ecu","NatanAvent_engine_ecu", "Engine Management",{"coreSlot":true}],
        ["NatanAvent_engine_internals","NatanAvent_engine_internals", "Engine Long Block",{"coreSlot":true}],
        ["NatanAvent_transaxle","NatanAvent_transaxle_7ISR", "Transaxle"],
    ],
    "powertrain": [
        ["type", "name", "inputName", "inputIndex"],
        ["combustionEngine", "mainEngine", "dummy", 0],
    ],
    "mainEngine":{
        "torque":[
            ["rpm", "torque"]
           [0, 0],
            [500, 45],
            [1000, 309.8],
            [2000, 542.1],
            [3000, 619.6],
            [3500, 641.7],
            [4000, 658.3],
            [4500, 671.2],
            [5000, 681.6],
            [5500, 690],
            [6000, 686.9],
            [6500, 677.6],
            [7000, 662.1],
            [7500, 640.3],
            [8000, 612.4],
            [8300, 591.9],
        ],

        "idleRPM":1000,
        //max rpm physically capable of
        "maxRPM":8300,
        "revLimiterType": "soft",
        "inertia":0.10,
        "friction":12
        "dynamicFriction":0.026,
        //"burnEfficiency":0.39
        "burnEfficiency":[
            [0, 0.11],
            [0.05, 0.26],
            [0.4, 0.48],
            [0.7, 0.48],
            [1, 0.34],
        ],
        "torqueReactionNodes:":["e1l","e2l","e4r"]
        "energyStorage": "mainTank",
        "requiredEnergyType":"gasoline",

        //exhaust
        "particulates":0.02
        "instantAfterFireCoef": 0.9,
        "sustainedAfterFireCoef": 0.9,

        //cooling and oil system
        "thermalsEnabled":true
        "engineBlockMaterial":"aluminum"
        "oilVolume":6

        //engine durability
        "cylinderWallTemperatureDamageThreshold":160
        "headGasketDamageThreshold":1500000
        "pistonRingDamageThreshold":1500000
        "connectingRodDamageThreshold":2000000

        "maxTorqueRating": 61100,
        "maxOverTorqueDamage": 200000,

        //node beam interface
        "waterDamage": {"[engineGroup]:":["engine_intake"]},
        "radiator": {"[engineGroup]:":["radiator"]},
        "engineBlock": {"[engineGroup]:":["engine_block"]},
        "breakTriggerBeam":"engine",
        "uiName":"Engine",

        "soundConfig": "soundConfig",
        "soundConfigExhaust": "soundConfigExhaust",

        "instantAfterFireSound": "event:>Vehicle>Afterfire>i4_01>single",
        "sustainedAfterFireSound": "event:>Vehicle>Afterfire>i4_01>multi",
        "shiftAfterFireSound": "event:>Vehicle>Afterfire>i4_01>shift",
		"instantAfterFireVolumeCoef": 4.5,
        "sustainedAfterFireVolumeCoef": 4.5,
        "shiftAfterFireVolumeCoef": 4.5
    },
    "soundConfig": {
        "sampleName": "Natanavent_engine",
        "intakeMuffling": 0.5,

        "mainGain": -15,
        "onLoadGain": 1.0,
        "offLoadGain": 0.20,

        "maxLoadMix": 1.0,
        "minLoadMix": 0.02,

        "eqLowGain": 16,
        "eqLowFreq": 150,
        "eqLowWidth": 0.1,

        "eqHighGain": 3,
        "eqHighFreq": 6500,
        "eqHighWidth": 0.1,
		
        "fundamentalFrequencyCylinderCount": 12
        "eqFundamentalGain": 0
    },
    "soundConfigExhaust": {
        "sampleName": "Natanavent_exhaust",

        "mainGain": -15,
        "onLoadGain": 1.0,
        "offLoadGain": 0.10,

        "maxLoadMix": 1.0,
        "minLoadMix": 0,

        "eqLowGain": 12,
        "eqLowFreq": 350,
        "eqLowWidth": 0.1,

        "eqHighGain": 5,
        "eqHighFreq": 600,
        "eqHighWidth": 0.1,

        "fundamentalFrequencyCylinderCount": 12
        "eqFundamentalGain": 0
    },
    "vehicleController": {
        "clutchLaunchStartRPM":2000,
        "clutchLaunchTargetRPM":2500,
        //**highShiftDown can be overwritten by automatic transmissions**
        "highShiftDownRPM":[0,0,0,3500,4300,4400,4450,4500,4500]
        //**highShiftUp can be overwritten by intake modifications**
        "highShiftUpRPM":7000
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["NatanAvent_engine", ["NatanAvent_engine"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //2.5L F4 Engine
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"selfCollision":false},
         {"collision":true}
         {"group":"NatanAvent_engine"}
         {"engineGroup":"engine_block"}
         {"nodeWeight":17.5},
         {"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.15},
         ["e1r", -0.36000, 1.40000, 0.18000],
         ["e1l", 0.36000, 1.40000, 0.18000],
         ["e2r", -0.36000, 1.69000, 0.18000],
         ["e2l", 0.36000, 1.69000, 0.18000],
         {"engineGroup":["engine_block","engine_intake"]}
         {"chemEnergy":false,"burnRate":false,"flashPoint":false, "specHeat": false,"selfIgnitionCoef":false,"smokePoint":false,"baseTemp":false,"conductionRadius":false}
         ["e3r", -0.36000, 1.40000, 0.51000],
         ["e3l", 0.36000, 1.40000, 0.51000{"isExhaust":"mainEngine"}],
         ["e4r", -0.36000, 1.69000, 0.51000],
         ["e4l", 0.36000, 1.69000, 0.51000],
         {"engineGroup":""}
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":15001000,"beamDamp":500},
          {"beamDeform":175000,"beamStrength":"FLT_MAX"},
          //engine
          ["e1r","e1l"],
          ["e2r","e2l"],
          ["e3r","e3l"],
          ["e4r","e4l"],

          ["e1r","e2r"],
          ["e1l","e2l"],
          ["e3r","e4r"],
          ["e3l","e4l"],

          ["e1r","e3r"],
          ["e1l","e3l"],
          ["e2r","e4r"],
          ["e2l","e4l"],

          ["e2r","e3r"],
          ["e2l","e3l"],
          ["e2r","e3l"],
          ["e2l","e3r"],

          ["e1r","e4r"],
          ["e1l","e4l"],
          ["e1r","e4l"],
          ["e1l","e4r"],

          ["e1r","e2l"],
          ["e1l","e2r"],
          ["e3r","e4l"],
          ["e3l","e4r"],

          ["e1r","e3l"],
          ["e1l","e3r"],
          ["e2r","e4l"],
          ["e2l","e4r"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
}
"NatanAvent_engine_ecu": {
    "information":{
        "authors":"BeamNG",
        "name":"Stock ECU",
        "value":125,
    }
    "slotType" : "NatanAvent_engine_ecu",
    "mainEngine":{
        "idleRPM":1000,
        "revLimiterRPM":8300,
        "revLimiterType":"timeBased",
        "revLimiterCutTime":0.15,
    },
    "vehicleController": {
        "highShiftUpRPM":6900
    },
},
"NatanAvent_engine_ecu_race": {
    "information":{
        "authors":"BeamNG",
        "name":"Adjustable Race ECU",
        "value":600,
    }
    "slotType" : "NatanAvent_engine_ecu",
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$revLimiterRPM", "range", "rpm", "Engine", 7000, 4500, 8500, "RPM Limit", "RPM where the rev limiter prevents further revving"{"stepDis":50}],
        ["$revLimiterCutTime", "range", "s", "Engine", 0.15, 0.01, 0.5, "RPM Limit Cut Time", "How fast the rev limiter cycles"{"stepDis":0.01}],
    ],
    "mainEngine":{
        "idleRPM":1050,
        "revLimiterRPM":"$revLimiterRPM",
        "revLimiterType":"timeBased",
        "revLimiterCutTime":"$revLimiterCutTime",
        "revLimiterMaxRPMDrop":200,

    },
    "vehicleController": {
        "highShiftUpRPM":"$=$revLimiterRPM - 150"
        "clutchLaunchStartRPM":2200,
        "clutchLaunchTargetRPM":3500,
    },
},
"NatanAvent_engine_internals": {
    "information":{
        "authors":"BeamNG",
        "name":"Aluminium Long Block",
        "value":3600,
    }
    "slotType" : "NatanAvent_engine_internals",
    "mainEngine":{
        "torqueModMult":[
            ["rpm", "torque"],
            [0,    1],
            [1000, 0.83],
            [2500, 0.81],
            [4000, 0.86],
            [5000, 0.94],
            [6000, 1.05],
            [7000, 1.24],
            [8000, 1.5],
            [9000, 1.7],
        ],
        //max rpm physically capable of
        "maxRPM":8300,
        //engine durability
        "cylinderWallTemperatureDamageThreshold":170,
        "maxTorqueRating": 1820,
        "maxOverTorqueDamage": 250,
    },
},
"NatanAvent_intake": {
    "information":{
        "authors":"BeamNG",
        "name":"Naturally Aspirated Intake",
        "value":0,
    }
    "slotType" : "NatanAvent_intake",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["NatanAvent_exhaust", ["NatanAvent_exhaust"]],
         ["NatanAvent_heatshield", ["NatanAvent_body"]],
    ],
    "soundConfig": {
        //"mainGain":-15
        //"muffling":0.0
    },
    "nodes": [
        ["id", "posX", "posY", "posZ"],
        {"selfCollision":true}
        {"collision":true}
        //--exhaust
        {"frictionCoef":0.5},
        {"nodeMaterial":"|NM_METAL"},
        {"nodeWeight":2.0},
        {"group":"NatanAvent_exhaust"},
        ["exh1r", -0.54000, 1.78000, 0.21000, {"afterFireVisualCoef":0}],
        ["exh1l", 0.54000, 1.78000, 0.21000, {"afterFireVisualCoef":0}],
        ["exh1rr", -0.34000, 1.46000, 0.20000],
        ["exh1ll", 0.34000, 1.46000, 0.20000],
        ["exh2", 0.00000, 1.93000, 0.21000{"selfCollision":false}],
        ["exh3", 0.00000, 1.93000, 0.40000],
        {"group":""},
    ],
    "beams": [
        ["id1:", "id2:"],
        {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
        {"deformLimitExpansion":1.1},
        {"beamSpring":1201000,"beamDamp":75},
        {"beamDeform":20000,"beamStrength":"FLT_MAX"},
        ["exh2","exh3"],
        ["exh1r","exh2"],
        ["exh1r","exh3"],
        ["exh1l","exh2"],
        ["exh1l","exh3"],

        ["exh1ll", "exh1l"],
        ["exh1rr", "exh1r"],
        ["exh1ll", "exh1rr"],
        ["exh1ll", "exh1r"],
        ["exh1l", "exh1rr"],

        {"beamDeform":4000,"beamStrength":"FLT_MAX"},
        ["exh1ll", "exh2"],
        ["exh1ll", "exh3"],
        ["exh1rr", "exh2"],
        ["exh1rr", "exh3"],

        {"beamSpring":701000,"beamDamp":45},
        {"beamDeform":1000,"beamStrength":"FLT_MAX"},
        ["exh1r", "exh1l"],

        //attach to engine
        {"beamSpring":1001000,"beamDamp":50},
        {"beamDeform":10000,"beamStrength":30000},
        {"breakGroup":"exhaust_engine_R"},
        ["exh1rr", "e3l"],
        ["exh1rr", "e2r"],
        ["exh1rr", "e3r"],
        ["exh1rr", "e4r"],
        ["exh1rr", "e1l"],
        ["exh1rr", "e2l"],

        ["exh1r", "e2r"],
        ["exh1r", "e4r"],
        ["exh1r", "e3r"],
        ["exh1r", "e1r"],

        {"breakGroup":"exhaust_engine_L"},
        ["exh1ll", "e3l"],
        ["exh1ll", "e2l"],
        ["exh1ll", "e3l"],
        ["exh1ll", "e4l"],
        ["exh1ll", "e1r"],
        ["exh1ll", "e2r"],

        ["exh1l", "e2l"],
        ["exh1l", "e4l"],
        ["exh1l", "e3l"],
        ["exh1l", "e1l"],

        //attach to body
        {"beamSpring":501000,"beamDamp":100},
        {"beamDeform":5000,"beamStrength":15000},
        {"breakGroup":"exhaust_body_center"},
        ["exh2", "r6"],
        ["exh2", "r6ll"],
        ["exh2", "r6rr"],
        ["exh2", "r1"],
        {"breakGroup":""},
        {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            {"group":"NatanAvent_exhaust"},
            {"groundModel":"metal"},
            {"dragCoef":6},
            //exh shape
            {"triangleType":"NONCOLLIDABLE"},
            ["e2l", "e1l", "e1r"],
            ["e1r", "e2r", "e2l"],
            ["e2r", "exh3", "exh2"],
            ["e2l", "exh2", "exh3"],
            ["e4r", "exh1r", "e2r"],
            ["e4l", "e2l", "exh1l"],
            ["e2l", "e2r", "exh2"],
            {"triangleType":"NORMALTYPE"},
            {"group":""},
    ],
},
}