{
"xc90_engine_i4_2.0_petrol": {
    "information":{
        "authors":"BeamNG",
        "name":"2.0L I4 Engine",
        "value":7350,
    },
    "slotType" : "xc90_engine",
    "slots": [
        ["type", "default", "description"],
        ["xc90_enginemounts","xc90_enginemounts", "Engine Mounts", {"coreSlot":true}],
        ["xc90_oilpan","xc90_oilpan", "Oil Pan", {"coreSlot":true}],
        ["xc90_intake_i4_2.0_petrol","xc90_turbo_i4_2.0_petrol", "Intake", {"coreSlot":true}],
        ["xc90_exhaust_i4_2.0_petrol","xc90_exhaust_i4_2.0_petrol", "Exhaust"],
        ["xc90_engine_ecu_i4_2.0","xc90_engine_ecu_i4_2.0_270", "Engine Management", {"coreSlot":true}],
        ["n2o_system","", "Nitrous Oxide System"],
        ["xc90_engine_internals_i4_2.0_petrol","xc90_engine_internals_i4_2.0_petrol", "Engine Long Block", {"coreSlot":true}],
        ["xc90_transmission","xc90_transmission_8A", "Transmission"],
    ],
    "powertrain": [
        ["type", "name", "inputName", "inputIndex"],
        ["combustionEngine", "mainEngine", "dummy", 0],
    ],
    "mainEngine":{
        "torque":[
            ["rpm", "torque"],
            [0, 0],
            [500, 163],
            [1000, 183],
            [2000, 218],
            [2400, 224],
            [3000, 221],
            [4000, 219],
            [4500, 218],
            [5000, 215],
            [5500, 214],
            [6100, 211],
            [7000, 204],
            [8000, 194],
        ],
        "idleRPM":825,
        //max rpm physically capable of
        "maxRPM":7000,
        "revLimiterType":"soft",
        "inertia":0.09,
        "friction":8,
        "dynamicFriction":0.067,
        "engineBrakeTorque":48,
        //"burnEfficiency":0.34
        "burnEfficiency":[
            [0, 0.12],
            [0.05, 0.29],
            [0.4, 0.41],
            [0.7, 0.5],
            [1, 0.34],
        ],
        //fuel system
        "energyStorage": "mainTank",
        "requiredEnergyType":"gasoline",

        //exhaust
        "instantAfterFireSound": "event:>Vehicle>Afterfire>i4_01>single",
        "sustainedAfterFireSound": "event:>Vehicle>Afterfire>i4_01>multi",
        "shiftAfterFireSound": "event:>Vehicle>Afterfire>i4_01>shift",
        "particulates":0.02,
        "instantAfterFireCoef": 0.75,
        "sustainedAfterFireCoef": 0.75,
        "instantAfterFireVolumeCoef": 1.0,
        "sustainedAfterFireVolumeCoef": 0.7,
        "shiftAfterFireVolumeCoef": 0.9,

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

        //engine durability
        "cylinderWallTemperatureDamageThreshold":120,
        "headGasketDamageThreshold":1500000,
        "pistonRingDamageThreshold":1500000,
        "connectingRodDamageThreshold":2000000,
        "maxTorqueRating": 480,
        "maxOverTorqueDamage": 250,

        //node beam interface
        "torqueReactionNodes:":["e1l","e2l","e4r"],
        "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>i4_1996_eng",
        "starterSampleExhaust":"event:>Engine>Starter>i4_1996_exh",
        "shutOffSampleEngine":"event:>Engine>Shutoff>i4_1996_eng",
        "shutOffSampleExhaust":"event:>Engine>Shutoff>i4_1996_exh",
        "starterVolume":0.76,
        "starterVolumeExhaust":0.76,
        "shutOffVolumeEngine":0.76,
        "shutOffVolumeExhaust":0.76,
        "starterThrottleKillTime":0.65,
        "idleRPMStartRate":2,
        "idleRPMStartCoef":1,

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

        "mainGain": -12.5,
        "onLoadGain":1,
        "offLoadGain":0.57,

        "maxLoadMix": 0.73,
        "minLoadMix": 0,

        "lowShelfGain":3,
        "lowShelfFreq":150,

        "highShelfGain":4,
        "highShelfFreq":7500,

        "eqLowGain": 0,
        "eqLowFreq": 120,
        "eqLowWidth": 0.1,

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

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

        "mainGain": 2.5,
        "onLoadGain":1,
        "offLoadGain":0.55

        "maxLoadMix": 0.73,
        "minLoadMix": 0,

        "lowShelfGain":-12,
        "lowShelfFreq":100,

        "highShelfGain":7,
        "highShelfFreq":4000,

        "eqLowGain": 0,
        "eqLowFreq": 120,
        "eqLowWidth": 0.2,

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

        "fundamentalFrequencyCylinderCount":4,
        "eqFundamentalGain": -2
    },
    "vehicleController": {
        "clutchLaunchStartRPM":1600,
        "clutchLaunchTargetRPM":2200,
        //**highShiftDown can be overwritten by automatic transmissions**
        "highShiftDownRPM":[0,0,0,2800,3300,3600,3800,3800],
        //**highShiftUp can be overwritten by intake modifications**
        "highShiftUpRPM":7000,
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["xc90_engine_i4", ["xc90_engine"]],
         ["xc90_intake_i4", ["xc90_engine"]],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--2.0L I4 Engine--
         {"selfCollision":false},
         {"collision":true},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":"xc90_engine"},
         {"engineGroup":"engine_block"},
         {"nodeWeight":12.5},
         ["e1r", 0.15198, -1.59652, 0.22797,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12}],
         ["e1l", 0.15198, -1.84620, 0.28226],
         ["e2r", -0.40167, -1.59652, 0.22797,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12}],
         ["e2l", -0.40167, -1.84620, 0.28226],
         {"engineGroup":["engine_block","engine_intake"]},
         ["e3r", 0.15198, -1.74850, 0.79248,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12}],
         ["e3l", 0.15198, -1.48796, 0.73820, {"isExhaust":"mainEngine"}],
         ["e4r", -0.40167, -1.74850, 0.79248,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12}],
         ["e4l", -0.40167, -1.48796, 0.73820],
         ["tc1", 0.00000, -1.77021, 0.45594],
         {"engineGroup":""},
         {"group":""},
         //engine mount node
         ["em1r", -0.45594, -1.60738, 0.67306, {"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},
    ],
},

"xc90_turbo_i4_2.0_petrol": {
    "information":{
        "authors":"BeamNG",
        "name":"Stock Turbocharger",
        "value":1350,
    },
    "slotType" : "xc90_intake_i4_2.0_petrol",
    "turbocharger": {
        "bovSoundFileName":"event:>Vehicle>Forced_Induction>Turbo_01>turbo_bov",
        "hissLoopEvent":"event:>Vehicle>Forced_Induction>Turbo_01>turbo_hiss",
        "whineLoopEvent":"event:>Vehicle>Forced_Induction>Turbo_01>turbo_spin",
        "turboSizeCoef": 1.00,
        "bovSoundVolumeCoef": 0.48,
        "hissVolumePerPSI": 0.015,
        "whineVolumePer10kRPM": 0.012,
        "whinePitchPer10kRPM": 0.061,
        "maxExhaustPower": 1500,
        "backPressureCoef": 0.0000005,
        "pressureRatePSI": 25,
        "frictionCoef": 15.5,
        "inertia":0.35,
        "damageThresholdTemperature": 650,
        "pressurePSI":[
            //turbineRPM, pressure(PSI)
            [0,         -3.5],
            [30000,     -1.5],
            [60000,     22],
            [90000,     26],
            [150000,    33],
            [200000,    45],
        ],
        "engineDef":[
            //engineRPM, efficiency, exhaustFactor
            [0,     0.0,    0.0],
            [650,   0.3,   0.0],
            [1000,  0.5,   0.1],
            [1500,  0.53,   0.3],
            [2000,  0.53,    0.6],
            [2400,  0.54,    0.85],
            [3000,  0.57,    0.9],
            [4000,  0.60,    1.0],
            [4500,  0.61,    1.0],
            [5000,  0.63,    1.0],
            [5500,  0.62,    1.0],
            [6000,  0.56,    1.0],
            [7000,  0.39,    1.0],
            [7200,  0.20,    1.0],
            [8000,  0.15,    1.0],
        ],
    },
    "soundConfig": {
        //"$+maxLoadMix": 0.2,
        "$+intakeMuffling":-0.2,
        //"$+mainGain":2,
        //"$+eqHighGain": 5,
    },
    "mainEngine":{
        //turbocharger name
        "turbocharger":"turbocharger",
        "$*instantAfterFireVolumeCoef": 1.0,
        "$*sustainedAfterFireVolumeCoef": 1.0,
        "$*shiftAfterFireVolumeCoef": 1.0,
        //"instantAfterFireCoef": 1,
        //"sustainedAfterFireCoef": 0.75,
        "$*instantAfterFireCoef": 1.5,
        "$*sustainedAfterFireCoef": 1.5,

        //damage deformGroups
        "deformGroups_turbo":["mainEngine_turbo","mainEngine_intercooler"]
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["xc90_enginecover_i4", ["xc90_engine"]],
         ["xc90_intakecover_i4", ["xc90_engine"]],
         ["xc90_turbo_i4", ["xc90_engine", "xc90_downpipe"]],
         ["xc90_intercooler", ["xc90_body"]],
         {"deformGroup":"airbox", "deformMaterialBase":"xc90_mechanical", "deformMaterialDamaged":"invis"},
         ["xc90_podfilter", ["xc90_engine","xc90_body"]],
         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--turbo and intercooler weight--
         {"selfCollision":false},
         {"collision":false},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"nodeWeight":8},
         ["turbo", -0.14682, -1.30244, 0.53834],
         {"collision":true},
         {"group":"xc90_intercooler"},
         {"nodeWeight":5},
         ["interc", 0.00000, -1.88972, 0.34258],
         {"nodeWeight":1},
         {"group":"xc90_intercooler"},
         ["airb1", 0.39152, -1.49820, 0.72431],
         ["airb2", 0.09788, -1.69396, 0.63622],
         {"group":"xc90_downpipe"},
         {"nodeWeight":2.0},
         ["exd1", 0.07830, -1.12626, 0.42088],
         {"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},
    ],
},
"xc90_turbo_i4_2.0_petrol_hybrid": {
    "information":{
        "authors":"BeamNG",
        "name":"Stock Hybrid Turbocharger",
        "value":1350,
    },
    "slotType" : "xc90_intake_i4_2.0_petrol",
    "turbocharger": {
        "bovSoundFileName":"event:>Vehicle>Forced_Induction>Turbo_01>turbo_bov",
        "hissLoopEvent":"event:>Vehicle>Forced_Induction>Turbo_01>turbo_hiss",
        "whineLoopEvent":"event:>Vehicle>Forced_Induction>Turbo_01>turbo_spin",
        "turboSizeCoef": 1.00,
        "bovSoundVolumeCoef": 0.48,
        "hissVolumePerPSI": 0.015,
        "whineVolumePer10kRPM": 0.012,
        "whinePitchPer10kRPM": 0.061,
        "maxExhaustPower": 1500,
        "backPressureCoef": 0.0000005,
        "pressureRatePSI": 25,
        "frictionCoef": 15.5,
        "inertia":0.35,
        "damageThresholdTemperature": 650,
        "pressurePSI":[
            //turbineRPM, pressure(PSI)
            [0,         -3.5],
            [30000,     -1.5],
            [60000,     24],
            [90000,     28],
            [150000,    38],
            [200000,    55],
        ],
        "engineDef":[
            //engineRPM, efficiency, exhaustFactor
            [0,     0.0,    0.0],
            [650,   0.3,   0.0],
            [1000,  0.5,   0.1],
            [1500,  0.53,   0.3],
            [2000,  0.53,    0.6],
            [2400,  0.54,    0.85],
            [3000,  0.57,    0.9],
            [4000,  0.60,    1.0],
            [4500,  0.61,    1.0],
            [5000,  0.63,    1.0],
            [5500,  0.62,    1.0],
            [6000,  0.56,    1.0],
            [7000,  0.39,    1.0],
            [7200,  0.20,    1.0],
            [8000,  0.15,    1.0],
        ],
    },
    "soundConfig": {
        //"$+maxLoadMix": 0.2,
        "$+intakeMuffling":-0.2,
        //"$+mainGain":2,
        //"$+eqHighGain": 5,
    },
    "mainEngine":{

        //turbocharger name
        "turbocharger":"turbocharger",
        "$*instantAfterFireVolumeCoef": 1.0,
        "$*sustainedAfterFireVolumeCoef": 1.0,
        "$*shiftAfterFireVolumeCoef": 1.0,
        //"instantAfterFireCoef": 1,
        //"sustainedAfterFireCoef": 0.75,
        "$*instantAfterFireCoef": 1.5,
        "$*sustainedAfterFireCoef": 1.5,

        //damage deformGroups
        "deformGroups_turbo":["mainEngine_turbo","mainEngine_intercooler"]
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["xc90_enginecover_i4", ["xc90_engine"]],
         ["xc90_intakecover_i4", ["xc90_engine"]],
         ["xc90_turbo_i4", ["xc90_engine", "xc90_downpipe"]],
         ["xc90_intercooler", ["xc90_body"]],
         {"deformGroup":"airbox", "deformMaterialBase":"xc90_mechanical", "deformMaterialDamaged":"invis"},
         ["xc90_podfilter", ["xc90_engine","xc90_body"]],
         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--turbo and intercooler weight--
         {"selfCollision":false},
         {"collision":false},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"nodeWeight":10},
         ["turbo", -0.15000, -1.33065, 0.55000],
         {"collision":true},
         {"group":"xc90_intercooler"},
         {"nodeWeight":7},
         ["interc", 0.00000, -1.93065, 0.35000],
         {"nodeWeight":3},
         {"group":"xc90_intercooler"},
         ["airb1", 0.40000, -1.53065, 0.74000],
         ["airb2", 0.10000, -1.73065, 0.65000],
         {"group":"xc90_downpipe"},
         {"nodeWeight":4.0},
         ["exd1", 0.08000, -1.15065, 0.43000],
         {"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},
    ],
},
"xc90_turbo_i4_2.0_petrol_stage3": {
    "information":{
        "authors":"BeamNG",
        "name":"Stage 3 Turbocharger",
        "value":1350,
    },
    "slotType" : "xc90_intake_i4_2.0_petrol",
    "turbocharger": {
        "bovSoundFileName":"event:>Vehicle>Forced_Induction>Turbo_04>turbo_bov_race",
        "hissLoopEvent":"event:>Vehicle>Forced_Induction>Turbo_04>turbo_hiss_race",
        "whineLoopEvent":"event:>Vehicle>Forced_Induction>Turbo_04>turbo_spin_race",
        "turboSizeCoef": 1.00,
        "bovSoundVolumeCoef": 0.55,
        "hissVolumePerPSI": 0.015,
        "whineVolumePer10kRPM": 0.012,
        "whinePitchPer10kRPM": 0.061,
        "maxExhaustPower": 1900,
        "backPressureCoef": 0.0000005,
        "pressureRatePSI": 35,
        "frictionCoef": 15.5,
        "inertia":0.35,
        "damageThresholdTemperature": 650,
        "pressurePSI":[
            //turbineRPM, pressure(PSI)
            [0,         -3.5],
            [30000,     -1.5],
            [60000,     31],
            [90000,     39],
            [150000,    42],
            [200000,    55],
        ],
        "engineDef":[
            //engineRPM, efficiency, exhaustFactor
            [0,     0.1,    0.1],
            [650,   0.1,   0.1],
            [1000,  0.2,   0.2],
            [1500,  0.3,   0.3],
            [2000,  0.3,    0.4],
            [2400,  0.35,    0.45],
            [3000,  0.45,    0.5],
            [4000,  0.58,    0.8],
            [4500,  0.65,    1.0],
            [5000,  0.68,    1.0],
            [5500,  0.66,    1.0],
            [6000,  0.62,    1.0],
            [7000,  0.47,    1.0],
            [7200,  0.35,    1.0],
            [8000,  0.25,    1.0],
        ],
    },
    "soundConfig": {
        //"$+maxLoadMix": 0.2,
        "$+intakeMuffling":-0.4,
        //"$+mainGain":2,
        //"$+eqHighGain": 5,
    },
    "mainEngine":{
        //turbocharger name
        "turbocharger":"turbocharger",
        "$*instantAfterFireVolumeCoef": 1.0,
        "$*sustainedAfterFireVolumeCoef": 1.1,
        "$*shiftAfterFireVolumeCoef": 1.1,
        //"instantAfterFireCoef": 1,
        //"sustainedAfterFireCoef": 0.75,
        "$*instantAfterFireCoef": 3,
        "$*sustainedAfterFireCoef": 3,

        //damage deformGroups
        "deformGroups_turbo":["mainEngine_turbo","mainEngine_intercooler"]
    },
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["xc90_enginecover_i4", ["xc90_engine"]],
         ["xc90_intakecover_i4", ["xc90_engine"]],
         ["xc90_turbo_i4", ["xc90_engine", "xc90_downpipe"]],
         ["xc90_intercooler", ["xc90_body"]],
         {"deformGroup":"airbox", "deformMaterialBase":"xc90_mechanical", "deformMaterialDamaged":"invis"},
         ["xc90_podfilter", ["xc90_engine","xc90_body"]],
         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--turbo and intercooler weight--
         {"selfCollision":false},
         {"collision":false},
         {"nodeMaterial":"|NM_METAL"},
         {"frictionCoef":0.5},
         {"group":""},
         {"nodeWeight":8},
         ["turbo", -0.15000, -1.33065, 0.55000],
         {"collision":true},
         {"group":"xc90_intercooler"},
         {"nodeWeight":5},
         ["interc", 0.00000, -1.93065, 0.35000],
         {"nodeWeight":1},
         {"group":"xc90_intercooler"},
         ["airb1", 0.40000, -1.53065, 0.74000],
         ["airb2", 0.10000, -1.73065, 0.65000],
         {"group":"xc90_downpipe"},
         {"nodeWeight":2.0},
         ["exd1", 0.08000, -1.15065, 0.43000],
         {"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},
    ],
},

"xc90_engine_ecu_i4_2.0_270": {
    "information":{
        "authors":"BeamNG",
        "name":"T5 ECU",
        "value":1250,
    },
    "slotType" : "xc90_engine_ecu_i4_2.0",
    "slots": [
        ["type", "default", "description"],
        ["xc90_engine_ecu_i4_2.0_speedlimit","xc90_engine_ecu_i4_2.0_speedlimit_250", "Speed Limiter", {"coreSlot":true}],
    ],
    "mainEngine":{
        "$*instantAfterFireVolumeCoef": 1.0,
        "$*sustainedAfterFireVolumeCoef": 0.6,
        "$*shiftAfterFireVolumeCoef": 0.8,
        "revLimiterRPM":6000,
        "revLimiterType":"timeBased",
        "revLimiterCutTime":0.1,
        "$*instantAfterFireCoef": 1.15,
        "$*sustainedAfterFireCoef": 1.15,
    },
    "turbocharger": {
        "$*turboSizeCoef": 0.75,
        "$*bovSoundVolumeCoef": 0.80,
        "$*hissVolumePerPSI": 1.0,
        "$*whineVolumePer10kRPM": 1.0,
        "$*whinePitchPer10kRPM": 1.0,
        "wastegateStart":[8.3, 21.3],
    }
},

"xc90_engine_ecu_i4_2.0_310": {
    "information":{
        "authors":"BeamNG",
        "name":"T6 ECU",
        "value":1500,
    },
    "slotType" : "xc90_engine_ecu_i4_2.0",
    "slots": [
        ["type", "default", "description"],
        ["xc90_engine_ecu_i4_2.0_speedlimit","xc90_engine_ecu_i4_2.0_speedlimit_250", "Speed Limiter", {"coreSlot":true}],
    ],
    "mainEngine":{
        "$*instantAfterFireVolumeCoef": 1.0,
        "$*sustainedAfterFireVolumeCoef": 0.8,
        "$*shiftAfterFireVolumeCoef": 0.8,
        "revLimiterRPM":6000,
        "revLimiterType":"timeBased",
        "revLimiterCutTime":0.1,
        "$*instantAfterFireCoef": 1.30,
        "$*sustainedAfterFireCoef": 1.30,
    },
    "turbocharger": {
        "$*turboSizeCoef": 0.8,
        "$*bovSoundVolumeCoef": 0.84,
        "$*hissVolumePerPSI": 1.0,
        "$*whineVolumePer10kRPM": 1.0,
        "$*whinePitchPer10kRPM": 1.0,
        "wastegateStart":[18.5, 27.5, 31.5],
    }
},
"xc90_engine_ecu_i4_2.0_320": {
    "information":{
        "authors":"BeamNG",
        "name":"T8 ECU",
        "value":1500,
    },
    "slotType" : "xc90_engine_ecu_i4_2.0",
    "slots": [
        ["type", "default", "description"],
        ["xc90_engine_ecu_i4_2.0_speedlimit","xc90_engine_ecu_i4_2.0_speedlimit_250", "Speed Limiter", {"coreSlot":true}],
    ],
    "mainEngine":{
        "$*instantAfterFireVolumeCoef": 1.0,
        "$*sustainedAfterFireVolumeCoef": 0.8,
        "$*shiftAfterFireVolumeCoef": 0.8,
        "revLimiterRPM":6000,
        "revLimiterType":"timeBased",
        "revLimiterCutTime":0.1,
        "$*instantAfterFireCoef": 1.30,
        "$*sustainedAfterFireCoef": 1.30,
    },
    "turbocharger": {
        "$*turboSizeCoef": 0.8,
        "$*bovSoundVolumeCoef": 0.84,
        "$*hissVolumePerPSI": 1.0,
        "$*whineVolumePer10kRPM": 1.0,
        "$*whinePitchPer10kRPM": 1.0,
        "wastegateStart":[25.5, 35.5, 49.2],
    }
},
"xc90_engine_ecu_i4_2.0_310_race": {
    "information":{
        "authors":"BeamNG",
        "name":"Race ECU",
        "value":6500,
    },
    "slotType" : "xc90_engine_ecu_i4_2.0",
    "slots": [
        ["type", "default", "description"],
        ["xc90_engine_ecu_i4_2.0_speedlimit","xc90_engine_ecu_i4_2.0_speedlimit_off", "Speed Limiter", {"coreSlot":true}],
    ],
    "mainEngine":{
        "$*instantAfterFireVolumeCoef": 1.0,
        "$*sustainedAfterFireVolumeCoef": 1.2,
        "$*shiftAfterFireVolumeCoef": 1.0,
        "revLimiterRPM":7800,
        "revLimiterType":"timeBased",
        "revLimiterCutTime":0.1,
        "$*instantAfterFireCoef": 1.75,
        "$*sustainedAfterFireCoef": 1.75,
    },
    "turbocharger": {
        "$*turboSizeCoef": 1.0,
        "$*bovSoundVolumeCoef": 1.0,
        "$*hissVolumePerPSI": 1.0,
        "$*whineVolumePer10kRPM": 1.0,
        "$*whinePitchPer10kRPM": 1.0,
        "wastegateStart":[8.6, 31.2],
    }
},
"xc90_engine_ecu_i4_2.0_rally": {
    "information":{
        "authors":"BeamNG",
        "name":"Rally ECU",
        "value":4600,
    },
    "slotType" : "xc90_engine_ecu_i4_2.0",
    "slots": [
        ["type", "default", "description"],
        ["xc90_engine_ecu_i4_2.0_speedlimit","xc90_engine_ecu_i4_2.0_speedlimit_off", "Speed Limiter", {"coreSlot":true}],
    ],
    "mainEngine":{
        "$*instantAfterFireVolumeCoef": 1.0,
        "$*sustainedAfterFireVolumeCoef": 1.25,
        "$*shiftAfterFireVolumeCoef": 1.1,
        "revLimiterRPM":7900,
        "revLimiterType":"timeBased",
        "revLimiterCutTime":0.05,
        "revLimiterCutTime":0.1,
        "$*instantAfterFireCoef": 2.5,
        "$*sustainedAfterFireCoef": 2.5,
    },
    "turbocharger": {
        "$*turboSizeCoef": 1.0,
        "$*bovSoundVolumeCoef": 1.0,
        "$*hissVolumePerPSI": 1.0,
        "$*whineVolumePer10kRPM": 1.0,
        "$*whinePitchPer10kRPM": 1.0,
        "wastegateStart":[8.6, 31.2],
    }
},
"xc90_engine_ecu_i4_2.0_speedlimit_250": {
    "information":{
        "authors":"BeamNG",
        "name":"Stock Speed Limiter",
        "value":450,
    },
    "slotType" : "xc90_engine_ecu_i4_2.0_speedlimit",

    "vehicleController": {
        "topSpeedLimit":69.444,
    },
},
"xc90_engine_ecu_i4_2.0_speedlimit_270": {
    "information":{
        "authors":"BeamNG",
        "name":"Extended Speed Limiter",
        "value":1500,
    },
    "slotType" : "xc90_engine_ecu_i4_2.0_speedlimit",

    "vehicleController": {
        "topSpeedLimit":75,
    },
},
"xc90_engine_ecu_i4_2.0_speedlimit_off": {
    "information":{
        "authors":"BeamNG",
        "name":"Speed Limiter Delete",
        "value":2500,
    },
    "slotType" : "xc90_engine_ecu_i4_2.0_speedlimit",

    "vehicleController": {
        "topSpeedLimit":-1,
    },
},
"xc90_engine_internals_i4_2.0_petrol": {
    "information":{
        "authors":"BeamNG",
        "name":"Stock Long Block",
        "value":350,
    },
    "slotType" : "xc90_engine_internals_i4_2.0_petrol",
    "mainEngine":{
        "$*instantAfterFireVolumeCoef": 0.75,
        "$*sustainedAfterFireVolumeCoef": 0.75,
        "$*shiftAfterFireVolumeCoef": 0.75,
    },
},
"xc90_engine_internals_i4_2.0_petrol_t8": {
    "information":{
        "authors":"BeamNG",
        "name":"Stock Hybrid Long Block",
        "value":1200,
    },
    "slotType" : "xc90_engine_internals_i4_2.0_petrol",
    "mainEngine":{
        //max rpm physically capable of
        "$+maxRPM":1000,
        "$*friction":1.15,
        "$*dynamicFriction":1.2,
        "$*inertia":1.2,
        "$*engineBrakeTorque":1.16,
        //engine durability
        "cylinderWallTemperatureDamageThreshold":160,
        "headGasketDamageThreshold":1700000,
        "pistonRingDamageThreshold":1700000,
        "connectingRodDamageThreshold":2200000,
        //"maxTorqueRating": 640,
        //"maxOverTorqueDamage": 450,
        "$*maxTorqueRating": 1.2,
        "$*maxOverTorqueDamage": 1.7,
    },
},
"xc90_engine_internals_i4_2.0_petrol_stage3": {
    "information":{
        "authors":"BeamNG",
        "name":"Stage 3 Long Block",
        "value":1200,
    },
    "slotType" : "xc90_engine_internals_i4_2.0_petrol",
    "mainEngine":{
        //max rpm physically capable of
        "$+maxRPM":1000,
        "$*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.4,
        "$*maxOverTorqueDamage": 2,
    },
},
}