{
"sprtg_engine_i4_1.5_diesel": {
    "information":{
        "authors":"BeamNG",
        "name":"1.6L I4 Diesel Engine",
        "value":2850,
    },
    "slotType" : "sprtg_engine",
    "slots": [
        ["type", "default", "description"],
        ["sprtg_enginemounts","sprtg_enginemounts", "Engine Mounts", {"coreSlot":true}],
        ["sprtg_oilpan","sprtg_oilpan", "Oil Pan", {"coreSlot":true}],
        ["sprtg_turbo_i4_1.5_diesel","sprtg_turbo_i4_1.5_diesel", "Intake", {"coreSlot":true}],
        ["sprtg_exhaust_i4_1.5_diesel","sprtg_exhaust_i4_1.5_diesel", "Exhaust"],
        ["sprtg_engine_ecu_i4_1.5_diesel","sprtg_engine_ecu_i4_1.5_diesel_110", "Engine Management", {"coreSlot":true}],
        ["n2o_system","", "Nitrous Oxide System"],
        ["sprtg_engine_internals_i4_1.5_diesel","sprtg_engine_internals_i4_1.5_diesel", "Engine Long Block", {"coreSlot":true}],
        ["sprtg_transmission","sprtg_transmission_6M_diesel", "Transmission"],
    ],
    "powertrain": [
        ["type", "name", "inputName", "inputIndex"],
        ["combustionEngine", "mainEngine", "dummy", 0],
    ],
    "mainEngine": {
        "torque":[
            ["rpm", "torque"],
            [0,      0],
            [350,   105],
            [600,  161],
            [1000, 170],
            [1750, 180],
            [2000, 183],
            [2500, 186],
            [3000, 183],
            [4000, 177],
            [4500, 174],
            [5000, 165],
            [6000, 130],
        ],

        "idleRPM":800,
        //max capable
        "maxRPM":4800,
        "inertia":0.18,
        "friction":14,
        "dynamicFriction":0.023,
        "engineBrakeTorque":26,
        //"burnEfficiency":0.49,
        "burnEfficiency":[
            [0, 0.2],
            [0.05, 0.38],
            [0.4, 0.46],
            [0.7, 0.49],
            [1, 0.3],
        ],
        //fuel system
        "energyStorage": "mainTank",
        "requiredEnergyType":"diesel",

        //exhaust
        "particulates":0.04,
        "instantAfterFireCoef": 0,
        "sustainedAfterFireCoef": 0,

        //cooling and oil system
        "thermalsEnabled":true,
        "engineBlockMaterial":"aluminum",
        "oilVolume":4,
        "engineBlockAirCoolingEfficiency":23,

        //engine durability
        "cylinderWallTemperatureDamageThreshold":150,
        "headGasketDamageThreshold":1500000,
        "pistonRingDamageThreshold":1500000,
        "connectingRodDamageThreshold":2000000,
        "maxTorqueRating": 310,
        "maxOverTorqueDamage": 400,

        //node beam interface
        "torqueReactionNodes:":["e3r","e4r","e2l"],
        "waterDamage": {"[engineGroup]:":["engine_intake"]},
        "radiator": {"[engineGroup]:":["radiator"]},
        "engineBlock": {"[engineGroup]:":["engine_block"]},
        "breakTriggerBeam":"engine",
        "uiName":"Engine",
        "soundConfig": "soundConfig",
        "soundConfigExhaust": "soundConfigExhaust",

        //starter motor
        "starterSample":"event:>Engine>Starter>i4diesel_1990_eng",
        "starterSampleExhaust":"event:>Engine>Starter>i4diesel_1990_exh",
        "shutOffSampleEngine":"event:>Engine>Shutoff>i4diesel_1990_eng",
        "shutOffSampleExhaust":"event:>Engine>Shutoff>i4diesel_1990_exh",
        "starterVolume":0.76,
        "starterVolumeExhaust":0.76,
        "shutOffVolumeEngine":0.76,
        "shutOffVolumeExhaust":0.76,
        "idleRPMStartRate":1.5,
        "idleRPMStartCoef":1.0,

        //damage deformGroups
        "deformGroups":["mainEngine", "mainEngine_piping", "mainEngine_accessories"]
        "deformGroups_oilPan":["oilpan_damage"]
    },
    "soundConfig": {
        "sampleName": "I4D_engine",
        "intakeMuffling": 1,

        "mainGain": -12,
        "onLoadGain": 1.0,
        "offLoadGain":0.58,

        "maxLoadMix": 0.8,
        "minLoadMix": 0,

        "lowShelfGain": 3,
        "lowShelfFreq": 320,

        "highShelfGain": 6,
        "highShelfFreq": 3500,

        "eqLowGain": -8,
        "eqLowFreq": 1000,
        "eqLowWidth": 0.1,

        "eqHighGain": 0,
        "eqHighFreq": 6000,
        "eqHighWidth": 0.1,

        "fundamentalFrequencyCylinderCount":4,
        "eqFundamentalGain": 0,
    },
    "soundConfigExhaust": {
        "sampleName": "I4D_exhaust",

        "mainGain": -7,
        "onLoadGain": 1.0,
        "offLoadGain": 0.25,

        "maxLoadMix": 0.8,
        "minLoadMix": 0,

        "lowShelfGain": -9,
        "lowShelfFreq": 180,

        "highShelfGain": -6,
        "highShelfFreq": 1500,

        "eqLowGain": -5,
        "eqLowFreq": 400,
        "eqLowWidth": 0.15,

        "eqHighGain": 0,
        "eqHighFreq": 1800,
        "eqHighWidth": 0.1,

        "fundamentalFrequencyCylinderCount": 4,
        "eqFundamentalGain": -3,
    },
    "vehicleController": {
        "clutchLaunchStartRPM":1500,
        "clutchLaunchTargetRPM":1800,
        //**highShiftDown can be overwritten by automatic transmissions**
        "highShiftDownRPM":[0,0,0,2400,2900,3200,3600,3600],
        //**highShiftUp can be overwritten by intake modifications**
        "highShiftUpRPM":4400,
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["sprtg_engine_i4", ["sprtg_engine"]],
         ["sprtg_intake_i4", ["sprtg_engine"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--1.6L I4 Engine--
         {"selfCollision":false},
         {"collision":true},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":"sprtg_engine"},
         {"engineGroup":"engine_block"},
         {"nodeWeight":13},
         ["e1r", 0.14, -1.49, 0.21,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12}],
         ["e1l", 0.14, -1.72, 0.26],
         ["e2r", -0.37, -1.49, 0.21,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12}],
         ["e2l", -0.37, -1.72, 0.26],
         {"engineGroup":["engine_block","engine_intake"]},
         ["e3r", 0.14, -1.63, 0.73,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12}],
         ["e3l", 0.14, -1.39, 0.68, {"isExhaust":"mainEngine"}],
         ["e4r", -0.37, -1.63, 0.73,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12}],
         ["e4l", -0.37, -1.39, 0.68],
         ["tc1", 0, -1.65, 0.42],
         {"engineGroup":""},
         {"group":""},
         //engine mount node
         ["em1r", -0.42, -1.5, 0.62, {"nodeWeight":3}],
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":15001000,"beamDamp":400},
          {"beamDeform":175000,"beamStrength":"FLT_MAX"},
          //engine
          {"deformGroup":"mainEngine", "deformationTriggerRatio":0.001}
          ["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"],

          ["tc1","e3l"],
          ["tc1","e3r"],
          ["tc1","e4l"],
          ["tc1","e4r"],
          ["tc1","e1l"],
          ["tc1","e1r"],
          ["tc1","e2l"],
          ["tc1","e2r"],
          {"deformGroup":""}
          {"breakGroup":""},

          //engine mount node
          {"beamSpring":4400000,"beamDamp":150},
          {"beamDeform":90000,"beamStrength":"FLT_MAX"},
          ["em1r","e3l"],
          ["em1r","e3r"],
          ["em1r","e4l"],
          ["em1r","e4r"],
          ["em1r", "e1r"],
          ["em1r", "e1l"],
          ["em1r", "e2l"],
          ["em1r", "e2r"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"sprtg_turbo_i4_1.5_diesel": {
    "information":{
        "authors":"BeamNG",
        "name":"Stock Turbocharger",
        "value":1450,
    },
    "slotType" : "sprtg_turbo_i4_1.5_diesel",
    "turbocharger": {
        "bovEnabled":false,
        "hissLoopEvent":"event:>Vehicle>Forced_Induction>Turbo_01>turbo_hiss",
        "whineLoopEvent":"event:>Vehicle>Forced_Induction>Turbo_01>turbo_spin",
        "turboSizeCoef": 0.0,
        "bovSoundVolumeCoef": 0.0,
        "hissVolumePerPSI": 0.025,
        "whineVolumePer10kRPM": 0.016,
        "whinePitchPer10kRPM": 0.075,
        "wastegateStart":13.2,
        "wastegateLimit":13.3,
        "maxExhaustPower": 8500,
        "backPressureCoef": 0.000002,
        "pressureRatePSI": 60,
        "frictionCoef": 15.5,
        "inertia":1.30,
        "damageThresholdTemperature": 610,
        "pressurePSI":[
            //turbineRPM, pressure(PSI)
            [0,         -3.5],
            [24000,     -1.5],
            [60000,     9],
            [90000,     17],
            [150000,    21],
            [200000,    26],
            [250000,    32],
        ],
        "engineDef":[
            //engineRPM, efficiency, exhaustFactor
            [0,     0.0,    0.1],
            [650,   0.35,   0.3],
            [1000,   0.92,   0.5],
            [1400,  1.02,    0.8],
            [2000,  0.99,    0.8],
            [2500,  0.94,    1.0],
            [3000,  0.92,    1.0],
            [3500,  0.85,    1.0],
            [4000,  0.73,    1.0],
            [4500,  0.4,    1.0],
            [5000,  0.05,    1.0],
            [6000,  0.0,    1.0],
        ],
    },
    "soundConfig": {
        //"$+maxLoadMix": 0.2,
        //"$+intakeMuffling":0.2,
        //"$+mainGain":2,
        //"$+eqHighGain": 5,
    },
    "mainEngine":{
        //turbocharger name
        "turbocharger":"turbocharger",
        //"instantAfterFireCoef": 1,
        //"sustainedAfterFireCoef": 0.75,
        "$*instantAfterFireCoef": 2,
        "$*sustainedAfterFireCoef": 2,

        //damage deformGroups
        "deformGroups_turbo":["mainEngine_turbo","mainEngine_intercooler"]
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["sprtg_enginecover_i4", ["sprtg_engine"]],
         ["sprtg_turbo_i4", ["sprtg_engine", "sprtg_downpipe"]],
         ["sprtg_intercooler", ["sprtg_body"]],
         {"deformGroup":"airbox", "deformMaterialBase":"sprtg_mechanical", "deformMaterialDamaged":"invis"},
         ["sprtg_airbox", ["sprtg_engine","sprtg_body"]],
         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--turbo and intercooler weight--
         {"selfCollision":false},
         {"collision":false},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"nodeWeight":9},
         ["turbo", -0.15, -1.35, 0.55],
         {"collision":true},
         {"group":"sprtg_intercooler"},
         {"nodeWeight":5},
         ["interc", 0.0, -1.95, 0.35],
         {"nodeWeight":1},
         {"group":"sprtg_intercooler"},
         ["airb1", 0.4, -1.55, 0.74],
         ["airb2", 0.1, -1.75, 0.65],
         {"group":"sprtg_downpipe"},
         {"nodeWeight":2.0},
         ["exd1", 0.08, -1.17, 0.43],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},

          //turbo
          {"beamSpring":2750550,"beamDamp":125},
          {"beamDeform":30000,"beamStrength":"FLT_MAX"},
          {"deformLimitExpansion":""},
          {"deformGroup":"mainEngine_turbo", "deformationTriggerRatio":0.001}
          ["turbo", "e1r"],
          ["turbo", "e1l"],
          ["turbo", "e2r"],
          ["turbo", "e2l"],
          ["turbo", "e3r"],
          ["turbo", "e3l"],
          ["turbo", "e4r"],
          ["turbo", "e4l"],

          //downpipe
          {"beamSpring":2750550,"beamDamp":125},
          {"beamDeform":30000,"beamStrength":"FLT_MAX"},
          ["exd1", "e1r"],
          ["exd1", "e1l"],
          ["exd1", "e2r"],
          ["exd1", "e2l"],
          ["exd1", "e3r"],
          ["exd1", "e3l", {"isExhaust":"mainEngine"}],
          ["exd1", "e4r"],
          ["exd1", "e4l"],

          //intercooler
          {"beamSpring":2001000,"beamDamp":100},
          {"beamDeform":3000,"beamStrength":"FLT_MAX"},
          {"deformGroup":"mainEngine_intercooler", "deformationTriggerRatio":0.02}
          ["interc","f13rr"],
          ["interc","f13ll"],
          ["interc","f11rr"],
          ["interc","f11ll"],
          {"beamDeform":7000,"beamStrength":"FLT_MAX"},
          //["interc","f18"],
          ["interc","f18r"],
          ["interc","f18l"],

          //piping
          {"beamSpring":501000,"beamDamp":60},
          {"beamDeform":4000,"beamStrength":12000},
          {"deformGroup":"mainEngine_piping", "deformationTriggerRatio":0.001}
          ["airb1","e1r"],
          ["airb1","e1l"],
          ["airb1","e3r"],
          ["airb1","e3l"],
          ["airb1","e4r"],
          ["airb1","e4l"],

          ["airb2","e2r"],
          ["airb2","e2l"],
          ["airb2","e4r"],
          ["airb2","e4l"],
          ["airb2","e3r"],
          ["airb2","e3l"],
          {"breakGroup":""},

          //airbox pipe
          {"beamSpring":10550,"beamDamp":125},
          {"beamDeform":5000,"beamStrength":3000},
          {"breakGroup":"airbox"},
          {"deformGroup":"airbox", "deformationTriggerRatio":0.01}
          ["e3r", "f12ll"],
          ["e3l", "f12ll"],
          ["e1l", "f12ll"],
          ["e1r", "f12ll"],
          ["e3l", "fs1l"],
          ["e3r", "fs1l"],
          ["e3l", "f14l"],
          ["e3r", "f14l"],
          {"breakGroup":""},

          {"beamType":"|BOUNDED", "beamLongBound":0.025, "beamShortBound":0.025},
          {"beamSpring":20000,"beamDamp":50},
          {"beamLimitSpring":1001000,"beamLimitDamp":200},
          {"beamDeform":4000,"beamStrength":50000},
          {"deformGroup":"mainEngine_piping", "deformationTriggerRatio":0.001}
          ["airb1", "f12ll"],
          ["airb1", "f5l"],
          ["airb1", "f5"],
          ["airb1", "f12ll"],
          ["airb1", "f14ll"],
          {"deformGroup":""}
          {"deformLimitExpansion":1.2},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"sprtg_engine_ecu_i4_1.5_diesel_110": {
    "information":{
        "authors":"BeamNG",
        "name":"Stock ECU",
        "value":800,
    },
    "slotType" : "sprtg_engine_ecu_i4_1.5_diesel",
    "slots": [
        ["type", "default", "description"],
        ["sprtg_engine_ecu_i4_1.5_diesel_speedlimit","sprtg_engine_ecu_i4_1.5_diesel_speedlimit_210", "Speed Limiter", {"coreSlot":true}],
    ],
    "mainEngine":{
        "revLimiterRPM":4800,
    },
},
"sprtg_engine_ecu_i4_1.5_diesel_13310": {
    "information":{
        "authors":"BeamNG",
        "name":"Stage 1 ECU",
        "value":800,
    },
    "slotType" : "sprtg_engine_ecu_i4_1.5_diesel",
    "slots": [
        ["type", "default", "description"],
        ["sprtg_engine_ecu_i4_1.5_diesel_speedlimit","sprtg_engine_ecu_i4_1.5_diesel_speedlimit_210", "Speed Limiter", {"coreSlot":true}],
    ],
    "mainEngine":{
        "revLimiterRPM":4800, },
		  "turbocharger": {
        "$*turboSizeCoef": 0.8,
        "$*bovSoundVolumeCoef": 0.8,
        "$*hissVolumePerPSI": 1.0,
        "$*whineVolumePer10kRPM": 1.0,
        "$*whinePitchPer10kRPM": 1.0,
        "wastegateStart":[22.3, 32.3]
        "engineDef":[
            //engineRPM, efficiency, exhaustFactor
            [0,     0.0,    0.5],
            [650,   0.6,   0.76],
            [1000,   0.6,   0.92],
            [1500,  0.67,   1.0],
            [2000,  0.7,    1.0],
            [2500,  0.7,    1.0],
            [3000,  0.7,    1.0],
            [4000,  0.72,    1.0],
            [4500,  0.66,    1.0],
            [5000,  0.6,    1.0],
            [5500,  0.6,    1.0],
            [6000,  0.6,    1.0],
            [7000,  0.5,    1.0],
            [8000,  0.3,    1.0],
        ],
    }
	
},
"sprtg_engine_ecu_i4_1.5_diesel_speedlimit_210": {
    "information":{
        "authors":"BeamNG",
        "name":"Stock Speed Limiter",
        "value":150,
    },
    "slotType" : "sprtg_engine_ecu_i4_1.5_diesel_speedlimit",

    "vehicleController": {
        "topSpeedLimit":60,
    },
},
"sprtg_engine_ecu_i4_1.5_diesel_speedlimit_off": {
    "information":{
        "authors":"BeamNG",
        "name":"Speed Limiter Delete",
        "value":1300,
    },
    "slotType" : "sprtg_engine_ecu_i4_1.5_diesel_speedlimit",

    "vehicleController": {
        "topSpeedLimit":-1,
    },
},
"sprtg_engine_internals_i4_1.5_diesel": {
    "information":{
        "authors":"BeamNG",
        "name":"Stock Long Block",
        "value":110,
    },
    "slotType" : "sprtg_engine_internals_i4_1.5_diesel",
    "mainEngine":{
    },
},

"sprtg_engine_internals_i4_1.5_diesel_heavy": {
    "information":{
        "authors":"BeamNG",
        "name":"Heavy Duty Long Block",
        "value":1200,
    },
    "slotType" : "sprtg_engine_internals_i4_1.5_diesel",
    "mainEngine":{
        //max rpm physically capable of
        "$+maxRPM":300,
        "$*friction":1.15,
        "$*dynamicFriction":1.2,
        "$*inertia":1.2,
        "$*engineBrakeTorque":1.16,
        //engine durability
        "cylinderWallTemperatureDamageThreshold":175,
        "headGasketDamageThreshold":1700000,
        "pistonRingDamageThreshold":1700000,
        "connectingRodDamageThreshold":2200000,
        //"maxTorqueRating": 640,
        //"maxOverTorqueDamage": 450,
        "$*maxTorqueRating": 1.65,
        "$*maxOverTorqueDamage": 2,
    },
},

"sprtg_engine_internals_i4_1.5_diesel_ultra": {
    "information":{
        "authors":"BeamNG",
        "name":"Ultra Heavy Duty Long Block",
        "value":3100,
    },
    "slotType" : "sprtg_engine_internals_i4_1.5_diesel",
    "mainEngine":{
        //max rpm physically capable of
        "$+maxRPM":500,
        "$*friction":1.3,
        "$*dynamicFriction":1.3,
        "$*inertia":1.3,
        "$*engineBrakeTorque":1.18,
        //engine durability
        "cylinderWallTemperatureDamageThreshold":175,
        "headGasketDamageThreshold":1700000,
        "pistonRingDamageThreshold":1700000,
        "connectingRodDamageThreshold":2200000,
        //"maxTorqueRating": 870,
        //"maxOverTorqueDamage": 450,
        "$*maxTorqueRating": 2.15,
        "$*maxOverTorqueDamage": 2.25,
    },
},
}