{
"lrdefender20_strut_F_offroad_adjustable": {
    "information":{
        "authors":"BeamNG, dumpling, AgentY",
        "name":"Adjustable Off-Road Front Struts",
        "value":200,
    },
    "slotType" : "lrdefender20_strut_F",

    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["lrdefender20_strut_front", ["lrdefender20_shockbottom_F","lrdefender20_shocktop_F"]],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$springheight_F_rally", "range", "+m", "Suspension", 0, -0.04, 0.1, "Spring Height", "Raise or lower the suspension height", {"stepDis":0.005, "subCategory":"Front"}],
        ["$spring_F_rally", "range", "N/m", "Suspension", 120740, 40000, 240000, "Spring Rate", "Spring stiffness", {"stepDis":500,"subCategory":"Front"}]
        ["$damp_bump_F_rally", "range", "N/m/s", "Suspension", 8400, 500, 30000, "Bump Damping", "Damper rate in slow compression", {"stepDis":100, "subCategory":"Front"}]
        ["$damp_bump_F_fast_rally", "range", "N/m/s", "Suspension", 1700, 500, 15000, "Fast Bump Damping", "Damper rate in fast compression", {"stepDis":100, "subCategory":"Front"}]
        ["$damp_rebound_F_rally", "range", "N/m/s", "Suspension", 6200, 500, 15000, "Rebound Damping", "Damper rate in extension", {"stepDis":100,"subCategory":"Front"}]
        ["$damp_rebound_F_fast_rally", "range", "N/m/s", "Suspension", 3100, 500, 15000, "Fast Rebound Damping", "Damper rate in fast extension", {"stepDis":100,"subCategory":"Front"}]
    ],
    "nodes":[
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"selfCollision":true},
         {"collision":true},
         //strut towers
         {"nodeWeight":11.0},
         {"selfCollision":false},
         ["fs1r", -0.56, -1.43, 1.0, {"group":["lrdefender20_body","lrdefender20_shocktop_F","lrdefender20_strutbar"]}],
         ["fs1l", 0.56, -1.43, 1.0, {"group":["lrdefender20_body","lrdefender20_shocktop_F","lrdefender20_strutbar"]}],
         {"selfCollision":true},
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //front springs
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamDeform":120000,"beamStrength":200000},
          {"beamSpring":"$spring_F_rally","beamDamp":0},
          ["fh4r","fs1r", {"precompressionRange":"$=$springheight_F_rally + 0.125","soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.4,"attackFactor":30,"volumeFactor":1.10,"decayFactor":5,"pitchFactor":0.2,"maxStress":2800}],
          ["fh4l","fs1l", {"precompressionRange":"$=$springheight_F_rally + 0.125","soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.4,"attackFactor":30,"volumeFactor":1.10,"decayFactor":5,"pitchFactor":0.2,"maxStress":2800}],
          //soft initial bumpstop
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":45000,"beamLimitDamp":1500},
          ["fh4r","fs1r", {"longBoundRange":1,"shortBoundRange":0.08,"boundZone":0.1,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          ["fh4l","fs1l", {"longBoundRange":1,"shortBoundRange":0.08,"boundZone":0.1,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          //shocks
          {"beamSpring":0,"beamDamp":"$damp_bump_F_rally"},
          {"beamLimitSpring":0,"beamLimitDamp":0},
          ["fh1r","fs1r", {"name":"shock_FR", "beamDampFast":"$damp_bump_F_fast_rally","beamDampRebound":"$damp_rebound_F_rally","beamDampReboundFast":"$damp_rebound_F_fast_rally","beamDampVelocitySplit":0.2,"dampCutoffHz":500}],
          ["fh1l","fs1l", {"name":"shock_FL", "beamDampFast":"$damp_bump_F_fast_rally","beamDampRebound":"$damp_rebound_F_rally","beamDampReboundFast":"$damp_rebound_F_fast_rally","beamDampVelocitySplit":0.2,"dampCutoffHz":500}],
          //harder bump stop
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":301000,"beamLimitDamp":15000},
          ["fh4r","fs1r", {"longBoundRange":0.2,"shortBoundRange":0.2,"boundZone":0.05,"beamLimitDampRebound":1000,"dampCutoffHz":500}],
          ["fh4l","fs1l", {"longBoundRange":0.2,"shortBoundRange":0.2,"boundZone":0.05,"beamLimitDampRebound":1000,"dampCutoffHz":500}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
     ],
},

"lrdefender20_spring_R_offroad_adjustable": {
    "information":{
        "authors":"BeamNG, dumpling, AgentY",
        "name":"Adjustable Off-Road Rear Springs",
        "value":180,
    },
    "slotType" : "lrdefender20_spring_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["lrdefender20_spring_R", ["lrdefender20_spring_R","lrdefender20_lowerarm_R"]],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$springheight_R_rally", "range", "+m", "Suspension", 0, -0.04, 0.1, "Spring Height", "Raise or lower the suspension height", {"stepDis":0.005, "subCategory":"Rear"}],
        ["$spring_R_rally", "range", "N/m", "Suspension", 165740, 40000, 228000, "Spring Rate", "Spring stiffness", {"stepDis":500, "subCategory":"Rear"}]
    ],
    "nodes":[
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"selfCollision":true},
         {"nodeWeight":7.3},
         ["r1rr", -0.51, 1.61, 0.55, {"group":["lrdefender20_body", "lrdefender20_spring_R"]}],
         ["r1ll", 0.51, 1.61, 0.55, {"group":["lrdefender20_body", "lrdefender20_spring_R"]}],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //rear springs
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamDeform":100000,"beamStrength":180000},
          {"beamSpring":"$spring_R_rally","beamDamp":0},
          ["rh5l","r1ll", {"precompressionRange":"$=$springheight_R_rally + 0.105",
              "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.5,"attackFactor":30,"volumeFactor":1.1,"decayFactor":6,"pitchFactor":0.3,"maxStress":1300}],
          ["rh5r","r1rr", {"precompressionRange":"$=$springheight_R_rally + 0.105",
              "soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.5,"attackFactor":30,"volumeFactor":1.1,"decayFactor":6,"pitchFactor":0.3,"maxStress":1300}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},

"lrdefender20_shock_R_offroad_adjustable": {
    "information":{
        "authors":"BeamNG, dumpling, AgentY",
        "name":"Adjustable Off-Road Rear Shocks",
        "value":130,
    },
    "slotType" : "lrdefender20_shock_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["lrdefender20_shock_R", ["lrdefender20_shock_R"]],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$damp_bump_R_rally", "range", "N/m/s", "Suspension", 8000, 500, 20000, "Bump Damping", "Damper rate in slow compression", {"stepDis":100, "subCategory":"Rear"}]
        ["$damp_bump_R_fast_rally", "range", "N/m/s", "Suspension", 3850, 500, 10000, "Fast Bump Damping", "Damper rate in fast compression", {"stepDis":100, "subCategory":"Rear"}]
        ["$damp_rebound_R_rally", "range", "N/m/s", "Suspension", 3600, 500, 10000, "Rebound Damping", "Damper rate in extension", {"stepDis":100,"subCategory":"Rear"}]
        ["$damp_rebound_R_fast_rally", "range", "N/m/s", "Suspension", 1800, 500, 10000, "Fast Rebound Damping", "Damper rate in fast extension", {"stepDis":100,"subCategory":"Rear"}]
    ],
    "nodes":[
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"selfCollision":true},
         {"collision":true},
         {"nodeWeight":8.0},
         ["r3rr", -0.49600, 1.47000, 0.83691, {"group":["lrdefender20_body", "lrdefender20_shock_R"]}],
         ["r3ll", 0.49600, 1.47000, 0.83691, {"group":["lrdefender20_body", "lrdefender20_shock_R"]}],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //rear shocks
          {"beamPrecompression":1.0, "beamType":"|BOUNDED", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamDeform":70000,"beamStrength":200000},
          {"beamSpring":150740,"beamDamp":0},
          {"beamSpring":0,"beamDamp":"$damp_bump_R_rally"},
          ["rh3r","r3rr", {"name":"shock_RR","beamDampFast":"$damp_bump_R_fast_rally","beamDampRebound":"$damp_rebound_R_rally","beamDampReboundFast":"$damp_rebound_R_fast_rally","beamDampVelocitySplit":0.15,"dampCutoffHz":800}],
          ["rh3l","r3ll", {"name":"shock_RL","beamDampFast":"$damp_bump_R_fast_rally","beamDampRebound":"$damp_rebound_R_rally","beamDampReboundFast":"$damp_rebound_R_fast_rally","beamDampVelocitySplit":0.15,"dampCutoffHz":800}],
          //soft initial bumpstop
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":35000,"beamLimitDamp":5500},
          ["rh3r","r3rr", {"longBoundRange":1,"shortBoundRange":0.5,"boundZone":0.1,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          ["rh3l","r3ll", {"longBoundRange":1,"shortBoundRange":0.5,"boundZone":0.1,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          //hard bump stop
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":301000,"beamLimitDamp":90000},
          ["rh3r","r3rr", {"longBoundRange":0.9,"shortBoundRange":0.1,"boundZone":0.05,"beamLimitDampRebound":800,"dampCutoffHz":800}],
          ["rh3l","r3ll", {"longBoundRange":0.9,"shortBoundRange":0.1,"boundZone":0.05,"beamLimitDampRebound":800,"dampCutoffHz":800}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
},

"lrdefender20_strut_F_air": {
    "information":{
        "authors":"BeamNG, dumpling, AgentY",
        "name":"Defender Front Air Struts",
        "value":200,
    },
    "slotType" : "lrdefender20_strut_F",

    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["lrdefender20_strut_front", ["lrdefender20_shockbottom_F","lrdefender20_shocktop_F"]],
    ],
    "airbagBeamData": [
        ["beamName", "groupName"]
        ["airbag_FL", "frontAxle"],
        ["airbag_FR", "frontAxle"],
    ],
    "airbagBeamSoundData":[
        ["groupName", "soundUp", "soundDown", "volumeUp", "volumeDown"]
        ["frontAxle", "event:>Vehicle>Pneumatics>Suspension_Up", "event:>Vehicle>Pneumatics>Suspension_Down", 0.03, 0.03],
    ],
    "nodes":[
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"selfCollision":true},
         {"collision":true},
         //strut towers
         {"nodeWeight":11.0},
         {"selfCollision":false},
         ["fs1r", -0.56, -1.43, 1.0, {"group":["lrdefender20_body","lrdefender20_shocktop_F","lrdefender20_strutbar"]}],
         ["fs1l", 0.56, -1.43, 1.0, {"group":["lrdefender20_body","lrdefender20_shocktop_F","lrdefender20_strutbar"]}],
         {"selfCollision":true},
         {"group":""},
     ],
    "beams": [
          ["id1:", "id2:"],
          //front air cylinders
          {"beamPrecompression":1.00, "beamType":"|PRESSURED"},
          {"beamDeform":70000,"beamStrength":200000},
          {"beamSpring":40,"beamDamp":0},
	  {"beamLimitSpring":0,"beamLimitDamp":0},
          ["fh4l","fs1l",{"pressurePSI":30,"surface":0.026569,"volumeCoef":4,"name":"airbag_FL","soundFile":"event:>Vehicle>Suspension>bus_01>spring_compress_01","colorFactor":0.5,"attackFactor":10,"volumeFactor":2.5,"decayFactor":2.0,"pitchFactor":0.5,"maxStress":10}],
          ["fh4r","fs1r",{"pressurePSI":30,"surface":0.026569,"volumeCoef":4,"name":"airbag_FR","soundFile":"event:>Vehicle>Suspension>bus_01>spring_compress_01","colorFactor":0.5,"attackFactor":10,"volumeFactor":2.5,"decayFactor":2.0,"pitchFactor":0.5,"maxStress":10}],
          
	  //soft initial bumpstop
          {"beamPrecompression":1, "beamType":"|BOUNDED", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":25000,"beamLimitDamp":1000},
          ["fh4r","fs1r", {"longBoundRange":1,"shortBoundRange":0.04,"boundZone":0.1,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          ["fh4l","fs1l", {"longBoundRange":1,"shortBoundRange":0.04,"boundZone":0.1,"beamLimitDampRebound":0,"dampCutoffHz":500}],
          //shocks
          {"beamSpring":0,"beamDamp":5400},
          {"beamLimitSpring":0,"beamLimitDamp":0},
          ["fh1r","fs1r", {"name":"shock_FR", "beamDampFast":1700,"beamDampRebound":6200,"beamDampReboundFast":3100,"beamDampVelocitySplit":0.2,"dampCutoffHz":500}],
          ["fh1l","fs1l", {"name":"shock_FL", "beamDampFast":1700,"beamDampRebound":6200,"beamDampReboundFast":3100,"beamDampVelocitySplit":0.2,"dampCutoffHz":500}],
          //harder bump stop
          {"beamSpring":0,"beamDamp":0},
          {"beamLimitSpring":251000,"beamLimitDamp":10000},
          ["fh4r","fs1r", {"longBoundRange":0.1,"shortBoundRange":0.10,"boundZone":0.05,"beamLimitDampRebound":1000,"dampCutoffHz":500}],
          ["fh4l","fs1l", {"longBoundRange":0.1,"shortBoundRange":0.10,"boundZone":0.05,"beamLimitDampRebound":1000,"dampCutoffHz":500}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
     ],
},

"lrdefender20_spring_R_air": {
    "information":{
        "authors":"BeamNG, dumpling, AgentY",
        "name":"Defender Rear Air Cylinders",
        "value":120,
    },
    "slotType" : "lrdefender20_spring_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["lrdefender20_spring_R", ["lrdefender20_spring_R","lrdefender20_lowerarm_R"]],
    ],
    "airbagBeamData": [
        ["beamName", "groupName"]
        ["airbag_RL", "rearAxle"],
        ["airbag_RR", "rearAxle"],
    ],
    "airbagBeamSoundData":[
        ["groupName", "soundUp", "soundDown", "volumeUp", "volumeDown"]
        ["rearAxle", "event:>Vehicle>Pneumatics>Suspension_Up", "event:>Vehicle>Pneumatics>Suspension_Down", 0.03, 0.03],
    ],
    "nodes":[
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"selfCollision":true},
         {"collision":true},
         {"nodeWeight":7.0},
         ["r1rr", -0.51000, 1.50000, 0.59991, {"group":["lrdefender20_body", "lrdefender20_spring_R"]}],
         ["r1ll", 0.51000, 1.50000, 0.59991, {"group":["lrdefender20_body", "lrdefender20_spring_R"]}],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //rear air cylinders
          {"beamPrecompression":1.00, "beamType":"|PRESSURED"},
          {"beamDeform":20000,"beamStrength":150000},
          {"beamSpring":40,"beamDamp":0},
          ["rh5l","r1ll",{"pressurePSI":30,"surface":0.015376,"volumeCoef":4,"name":"airbag_RL","precompressionRange":0.0,"soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.5,"attackFactor":10,"volumeFactor":2.5,"decayFactor":2.0,"pitchFactor":0.5,"maxStress":10}],
          ["rh5r","r1rr",{"pressurePSI":30,"surface":0.015376,"volumeCoef":4,"name":"airbag_RR","precompressionRange":0.0,"soundFile":"event:>Vehicle>Suspension>car_modn_med_01>spring_compress_01","colorFactor":0.5,"attackFactor":10,"volumeFactor":2.5,"decayFactor":2.0,"pitchFactor":0.5,"maxStress":10}],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
},

}