{
"inf21tahoe_engine_v8_6.2": {
    "information":{
        "authors":"BeamNG",
        "name":"6.2L EcoTec3 L86 V8 Engine",
        "value":5300,
    },
    "slotType" : "inf21tahoe_engine",
    "slots": [
        ["type", "default","description"],
        ["inf21tahoe_enginemounts","inf21tahoe_enginemounts", "Engine Mounts", {"coreSlot":true}],
        ["inf21tahoe_oilpan_v8","inf21tahoe_oilpan_v8", "Oil Pan", {"coreSlot":true}],
        ["inf21tahoe_intake_v8","inf21tahoe_intake_v8", "Intake", {"coreSlot":true}],
        ["inf21tahoe_header_v8","inf21tahoe_header_v8", "Exhaust Manifolds", {"coreSlot":true}],
        ["inf21tahoe_engine_v8_ecu_6.2","inf21tahoe_engine_v8_ecu_6.2", "Engine Management", {"coreSlot":true}],
        ["inf21tahoe_engine_v8_internals_6.2","inf21tahoe_engine_v8_internals_6.2", "Engine Long Block", {"coreSlot":true}],
        ["inf21tahoe_transmission","inf21tahoe_transmission_8A","Transmission"],
        ["n2o_system","", "Nitrous Oxide System"],
    ],
    "powertrain" : [
        ["type", "name", "inputName", "inputIndex"],
        ["combustionEngine", "mainEngine", "dummy", 0],
    ],
    "mainEngine": {
        "torque":[
            ["rpm", "torque"],
            [0, 0],
            [500, 130],
            [1000, 291.9],
            [1500, 437.9],
            [2000, 510.9],
            [2500, 554.6],
            [3000, 583.8],
            [3500, 604.7],
            [4000, 620.3],
            [4500, 616.7],
            [5000, 590.9],
            [5500, 543.4],
            [6000, 466.3],
            [7000, 301.3],
            [8000, 235.2],
        ],
        //engine performance
        "idleRPM":750,
        //max rpm physically capable of
        "maxRPM":6200,
        "inertia":0.16,
        "friction":19,
        "dynamicFriction":0.035,
        "engineBrakeTorque":46,
        //"burnEfficiency":0.33,
        "burnEfficiency":[
            [0, 0.1],
            [0.05, 0.22],
            [0.4, 0.34],
            [0.7, 0.38],
            [1, 0.26],
        ],
        //fuel system
        "energyStorage": ["mainTank","auxTank"],
        "requiredEnergyType":"gasoline",

        //exhaust
        "instantAfterFireSound": "event:>Vehicle>Afterfire>01_Single_EQ1",
        "sustainedAfterFireSound": "event:>Vehicle>Afterfire>01_Multi_EQ1",
        "shiftAfterFireSound": "event:>Vehicle>Afterfire>01_Shift_EQ1",
        "particulates":0.05,
        "instantAfterFireCoef": 0.5,
        "sustainedAfterFireCoef": 0.5,
        "instantAfterFireVolumeCoef": 0.8,
        "sustainedAfterFireVolumeCoef": 0.4,
        "shiftAfterFireVolumeCoef": 0.6,

        //cooling and oil system
        "thermalsEnabled":true,
        "engineBlockMaterial":"aluminum",
        "oilVolume":8,
        "engineBlockAirCoolingEfficiency":39,

        //engine durability
        "torqueReactionNodes:":["e1l","e2l","e4r"],
        "cylinderWallTemperatureDamageThreshold":150,
        "headGasketDamageThreshold":1500000,
        "pistonRingDamageThreshold":1500000,
        "connectingRodDamageThreshold":2000000,
        "maxTorqueRating": 800,
        "maxOverTorqueDamage": 900,

        //node beam interface
        "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>v8_20xy_eng",
        "starterSampleExhaust":"event:>Engine>Starter>v8_20xy_exh",
        "shutOffSampleEngine":"event:>Engine>Shutoff>v8_20xy_eng",
        "shutOffSampleExhaust":"event:>Engine>Shutoff>v8_20xy_exh",
        "starterVolume":0.76,
        "starterVolumeExhaust":0.76,
        "shutOffVolumeEngine":0.76,
        "shutOffVolumeExhaust":0.76,
        "idleRPMStartRate":1.25,
        "idleRPMStartCoef":1,

        //engine deform groups
        "deformGroups":["mainEngine", "mainEngine_intake", "mainEngine_accessories"]
    },
    "soundConfig": {
        "sampleName": "V8_cross_02_engine",
        "intakeMuffling": 1,

        "mainGain": -4,
        "onLoadGain": 1,
        "offLoadGain": 0.67,

        "maxLoadMix": 0.7,
        "minLoadMix": 0,

        "lowShelfGain": 6,
        "lowShelfFreq": 120,

        "highShelfGain": 0,
        "highShelfFreq": 6000,

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

        "eqHighGain": 0,
        "eqHighFreq": 2500,
        "eqHighWidth": 0.2,

        "fundamentalFrequencyCylinderCount": 8,
        "eqFundamentalGain": -2,
    },
    "soundConfigExhaust": {
        "sampleName": "V8_cross_02_exhaust",

        "mainGain": 4.5,
        "onLoadGain": 1,
        "offLoadGain": 0.64,

        "maxLoadMix": 0.7,
        "minLoadMix": 0,

        "lowShelfGain": -15,
        "lowShelfFreq": 110,

        "highShelfGain": 4,
        "highShelfFreq": 3400,

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

        "eqHighGain": 0,
        "eqHighFreq": 2500,
        "eqHighWidth": 0.2,

        "fundamentalFrequencyCylinderCount": 8,
        "eqFundamentalGain": -3,
    },
    "vehicleController": {
        "clutchLaunchStartRPM":1200,
        "clutchLaunchTargetRPM":1600,
        //highShiftDown can be overwritten by automatic transmissions
        "highShiftDownRPM":[0,0,0,2600,2950,3150,3400,3400],
        //highShiftUp can be overwritten by intake modifications
        "highShiftUpRPM":5600,
    },
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["inf21tahoe_v8_block", ["inf21tahoe_engine"]],
        ["inf21tahoe_v8_accessories", ["inf21tahoe_engine"]],
        ["inf21tahoe_v8_ac_belt", ["inf21tahoe_engine"]],
        ["inf21tahoe_engine_starter", ["inf21tahoe_engine"]],
        ["inf21tahoe_map_sensor_wire", ["inf21tahoe_engine"]],
        ["inf21tahoe_v8_engine_cover", ["inf21tahoe_engine"]],
        ["inf21tahoe_oilcap", ["inf21tahoe_engine"]],
        ["inf21tahoe_v8_accessory_belt", ["inf21tahoe_engine"]],
        ["inf21tahoe_v8_ac_belt", ["inf21tahoe_engine"]],

        {"deformGroup":"engbay_break", "deformMaterialBase":"inf21tahoe", "deformMaterialDamaged":"invis"},
        ["inf21tahoe_v8_cooling_hose_1", ["inf21tahoe_engine", "inf21tahoe_radiator"]],
        ["inf21tahoe_v8_cooling_hose_2", ["inf21tahoe_engine", "inf21tahoe_radiator"]],
        {"deformGroup":"", "deformMaterialBase":"", "deformMaterialDamaged":""},
    ],
    "props": [
        ["func",            "mesh",                   "idRef:", "idX:", "idY:", "baseRotation",          "rotation",            "translation",         "min", "max", "offset", "multiplier"],
        ["rpmspin",             "inf21tahoe_v8_crankshaft_pulley",                   "e3l","e3r","e4l",     {"x":-90, "y":0, "z":0}, {"x":0, "y":1, "z":0}, {"x":0, "y":0, "z":0}, -360,   360,   0,        1],
        ["rpmspin",             "inf21tahoe_v8_ac_belt_tensioner_pulley",            "e3l","e3r","e4l",     {"x":-90, "y":0, "z":0}, {"x":0, "y":1, "z":0}, {"x":0, "y":0, "z":0}, -1080,  1080,  0,       -3],
        ["rpmspin",             "inf21tahoe_v8_ac_pump_pulley",                      "e3l","e3r","e4l",     {"x":-90, "y":0, "z":0}, {"x":0, "y":1, "z":0}, {"x":0, "y":0, "z":0}, -720,   720,   0,        2],
        ["rpmspin",             "inf21tahoe_v8_alternator_pulley",                   "e3l","e3r","e4l",     {"x":-90, "y":0, "z":0}, {"x":0, "y":1, "z":0}, {"x":0, "y":0, "z":0}, -1080,  1080,  0,        3],
        ["rpmspin",             "inf21tahoe_v8_accessory_belt_tensioner_pulley",     "e3l","e3r","e4l",     {"x":-90, "y":0, "z":0}, {"x":0, "y":1, "z":0}, {"x":0, "y":0, "z":0}, -1080,  1080,  0,        3],
        ["rpmspin",             "inf21tahoe_v8_water_pump_pulley",                   "e3l","e3r","e4l",     {"x":-90, "y":0, "z":0}, {"x":0, "y":1, "z":0}, {"x":0, "y":0, "z":0}, -720,   720,   0,       -2],
        ["rpmspin",             "inf21tahoe_v8_steering_pump_pulley",                "e3l","e3r","e4l",     {"x":-90, "y":0, "z":0}, {"x":0, "y":1, "z":0}, {"x":0, "y":0, "z":0}, -720,   720,   0,        2],
        ["rpmspin",             "inf21tahoe_v8_belt_tensioner_pulley",               "e3l","e3r","e4l",     {"x":-90, "y":0, "z":0}, {"x":0, "y":1, "z":0}, {"x":0, "y":0, "z":0}, -1080,  1080,  0,       -3],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":false},
         {"collision":true},
         //--5.3L V8 Engine-
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"nodeWeight":26.32},
         {"group":"inf21tahoe_engine"},
         {"engineGroup":"engine_block"},
         ["e1r", -0.13, -1.14, 0.43, {"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.2}],
         ["e1l", 0.13, -1.14, 0.43, {"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.2}],
         ["e2r", -0.13, -1.74, 0.43, {"isExhaust":"mainEngine"}],
         ["e2l", 0.13, -1.74, 0.43, {"isExhaust":"mainEngine"}],
         {"engineGroup":["engine_block","engine_intake"]},
         {"group":["inf21tahoe_engine","inf21tahoe_engine_intake"]},
         ["e3r", -0.32, -1.14, 1.0],
         ["e3l", 0.32, -1.14, 1.0],
         ["e4r", -0.32, -1.74, 1.0, {"selfCollision":true}],
         ["e4l", 0.32, -1.74, 1.0, {"selfCollision":true}],
         {"chemEnergy":false,"burnRate":false,"flashPoint":false,"specHeat":false,"smokePoint":false,"selfIgnitionCoef":false,"baseTemp":false,"conductionRadius":false},
         {"engineGroup":""},
         {"group":""},
         //engine mount nodes
         ["em1r", -0.27, -1.5, 0.7, {"nodeWeight":3}],
         ["em1l", 0.27, -1.5, 0.7, {"nodeWeight":3}],
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          //--ENGINE CUBE--
          {"beamSpring":18800940,"beamDamp":470},
          {"beamDeform":315000,"beamStrength":"FLT_MAX"},
          {"deformGroup":"mainEngine", "deformationTriggerRatio":0.001}
          ["e1r","e1l"],
          ["e1r","e2r"],
          ["e1r","e2l"],
          ["e1r","e3r"],
          ["e1r","e3l"],
          ["e1r","e4r"],
          ["e1r","e4l"],
          ["e1l","e2r"],
          ["e1l","e2l"],
          ["e1l","e3r"],
          ["e1l","e3l"],
          ["e1l","e4r"],
          ["e1l","e4l"],
          ["e2r","e2l"],
          ["e2r","e3r"],
          ["e2r","e3l"],
          ["e2r","e4r"],
          ["e2r","e4l"],
          ["e2l","e3r"],
          ["e2l","e3l"],
          ["e2l","e4r"],
          ["e2l","e4l"],
          ["e3r","e3l"],
          ["e3r","e4r"],
          ["e3r","e4l"],
          ["e3l","e4r"],
          ["e3l","e4l"],
          ["e4r","e4l"],

          //engine mount nodes
          {"beamSpring":2956300,"beamDamp":130.43},
          {"beamDeform":63000,"beamStrength":"FLT_MAX"},
          ["em1r","e3l"],
          ["em1r","e3r"],
          ["em1r","e4l"],
          ["em1r","e4r"],
          ["em1r", "e1r"],
          ["em1r", "e1l"],
          ["em1r", "e2l"],
          ["em1r", "e2r"],

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

          //mesh break beams
          {"beamPrecompression":0.8, "beamType":"|SUPPORT","beamLongBound":0.8},
          {"beamSpring":9400,"beamDamp":0},
          {"beamDeform":350,"beamStrength":700},
          {"deformGroup":"engbay_break","deformationTriggerRatio":0.01},
          {"optional":true},
          ["e2r","rad2"],
          ["e2l","rad2"],
          ["e4r","rad2"],
          ["e4l","rad2"],
          {"optional":false},
          {"deformGroup":""},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},
"inf21tahoe_engine_v8_ecu_6.2": {
    "information":{
        "authors":"BeamNG",
        "name":"Stock ECU",
        "value":450,
    },
    "slotType" : "inf21tahoe_engine_v8_ecu_6.2",
    "mainEngine":{
        "revLimiterRPM":6000,
        "revLimiterType":"rpmDrop",
        "revLimiterRPMDrop":250,
    },
},
"inf21tahoe_engine_v8_ecu_race_6.2": {
    "information":{
        "authors":"BeamNG",
        "name":"Adjustable Race ECU",
        "value":3600,
    },
    "slotType" : "inf21tahoe_engine_v8_ecu_6.2",
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$revLimiterRPM", "range", "rpm", "Engine", 5800, 3500, 6800, "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}],
    ],
    "controller": [
        ["fileName"],
        ["twoStepLaunch", {"rpmLimit":4000}],
    ],
    "mainEngine":{
        "$+idleRPM":100,
        "revLimiterRPM":"$revLimiterRPM",
        "revLimiterType":"timeBased",
        "revLimiterCutTime":"$revLimiterCutTime",
    },
    "vehicleController": {
        "highShiftUpRPM":"$=$revLimiterRPM - 200",
    },
},
"inf21tahoe_engine_v8_internals_6.2": {
    "information":{
        "authors":"BeamNG",
        "name":"Stock Long Block",
        "value":300,
    },
    "slotType" : "inf21tahoe_engine_v8_internals_6.2",
    "mainEngine":{
    },
},
"inf21tahoe_engine_v8_internals_heavy_6.2": {
    "information":{
        "authors":"BeamNG",
        "name":"Heavy Duty Long Block",
        "value":1900,
    },
    "slotType" : "inf21tahoe_engine_v8_internals_6.2",
    "mainEngine":{
        //max rpm physically capable of
        "$+maxRPM":200,
        "$*friction":1.12,
        "$*dynamicFriction":1.1,
        "$*inertia":1.23,
        "$*engineBrakeTorque":1.2,
        //engine durability
        "cylinderWallTemperatureDamageThreshold":175,
        "headGasketDamageThreshold":1700000,
        "pistonRingDamageThreshold":1700000,
        "connectingRodDamageThreshold":2200000,
        "$*maxTorqueRating": 2.6,
        "$*maxOverTorqueDamage": 2.0,
    },
},
"inf21tahoe_engine_v8_internals_ultra_6.2": {
    "information":{
        "authors":"BeamNG",
        "name":"Ultra Heavy Duty Long Block",
        "value":3100,
    },
    "slotType" : "inf21tahoe_engine_v8_internals_6.2",
    "mainEngine":{
        //max rpm physically capable of
        "$+maxRPM":200,
        "$*friction":1.25,
        "$*dynamicFriction":1.18,
        "$*inertia":1.35,
        "$*engineBrakeTorque":1.25,
        //engine durability
        "cylinderWallTemperatureDamageThreshold":185,
        "headGasketDamageThreshold":1700000,
        "pistonRingDamageThreshold":1700000,
        "connectingRodDamageThreshold":2200000,
        "$*maxTorqueRating": 3.8,
        "$*maxOverTorqueDamage": 2.0,
    },
},
}