{
"Zil130_kuzovzil_hydros": {
    "information":{
        "authors":"Bagusik",
        "name":"Dump Body Hydraulics",
        "value":15000,
    },
    "slotType" : "Zil130_kuzovzil_hydros",
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["Zil130_kuzovzil_piston_c", ["kuzovzil_piston_b","kuzovzil_piston_d"]],
        ["Zil130_kuzovzil_piston_b", ["kuzovzil_piston_e"]],
        ["Zil130_dumpzil_piston_a", ["kuzovzil_piston_a","kuzovzil_piston_c"]],
    ],
     "controller": [
        ["fileName"],
        ["hydraulics/hydraulicsCombustionEngineControl", {"mode":"electricsRaiseAndConnect", "relevantElectrics":["upfit_tilt"], "raisedIdleRPM": 1500}],
    ],
    "powertrainHydros": [
        ["type",                "name",     "connectedPump",    "valveType",    "pistonDiameter", "shaftDiameter",  "maxSpeed", "minExtend",    "maxExtend",    "directionElectricsName",   "beamTags"]
        ["hydraulicCylinder",   "ram1",     "pump1",            "drop",         0.16,             0,                0.5,        1.32,           2.3,            "upfit_tilt",             ["ram1Beam"], {"dropInputThreshold":-0.001,"cylinderReliefPressure":30000000, "minimumDragCoef":10000000, "maximumDragCoef":100000000,"frictionCoef":1500}]
        ["hydraulicCylinder",   "ram2",     "pump1",            "drop",         0.12,             0,                0.5,        1.52,           2.6,            "upfit_tilt",             ["ram2Beam"], {"dropInputThreshold":-0.001,"cylinderReliefPressure":30000000, "minimumDragCoef":50000000, "maximumDragCoef":500000000,"frictionCoef":1000}]
    ],
    "nodes": [
        ["id", "posX", "posY", "posZ"],
        {"selfCollision":false},
        {"collision":true},
        {"frictionCoef":0.5},
        {"nodeMaterial":"|NM_METAL"},
        {"group":"kuzovzil_body"},
        {"nodeWeight":35},
        {"group":"kuzovzil_piston_a"},
        ["dbph1l", 0.20000, -1.26392, 0.97263],
        ["dbph1", 0.00000, -1.31355, 1.46829],
        ["dbph1r", -0.20000, -1.26392, 0.97263],

        {"group":"kuzovzil_piston_b"},
        ["dbph2l", 0.20000, -1.26392, 2.80040],
        ["dbph2r", -0.20000, -1.26392, 2.80040],
        {"group":"kuzovzil_piston_c"},
        ["dbph3l", 0.20000, -1.26392, 1.89314],
        ["dbph3", 0.00000, -1.21429, 1.46829],
        ["dbph3r", -0.20000, -1.26392, 1.89314],
        {"group":"kuzovzil_piston_d"},
        ["dbph4l", 0.20000, -1.26392, 1.07884],
        ["dbph4r", -0.20000, -1.26392, 1.07884],
        {"group":"kuzovzil_piston_e"},
        ["dbph5l", 0.20000, -1.26392, 1.90731],
        ["dbph5r", -0.20000, -1.26392, 1.90731],
        ["dbph6l", 0.20000, -1.26392, 0.98679],
        ["dbph6r", -0.20000, -1.26392, 0.98679],
        {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":15001000,"beamDamp":250},
          {"beamDeform":125000,"beamStrength":425000},
          //upper pivot to kuzovzil bed
          {"breakGroup":"kuzovzil_pivot_upper"},
          ["dbph2l", "db9l",],
          ["dbph2r", "db9r"],
          ["dbph2r", "db5r"],
          ["dbph2l", "db5l"],
          ["dbph2l", "dbi9"],
          ["dbph2r", "dbi9"],
          ["dbph2l", "db9"],
          ["dbph2r", "db9"],
          ["dbph2r", "db5"],
          ["dbph2l", "db5"],
          {"breakGroup":""},
          {"beamDeform":75000,"beamStrength":"FLT_MAX"},
          ["dbph2r", "dbph2l"],

          //lower pivot to frame
          {"beamSpring":12001000,"beamDamp":250},
          {"beamDeform":125000,"beamStrength":425000},
          {"breakGroup":"kuzovzil_pivot_lower"},
          ["dbph1r", "f6r"],
          ["dbph1r", "f7r"],
          ["dbph1r", "f16r"],
          ["dbph1r", "f17r"],
          ["dbph1l", "f6l"],
          ["dbph1l", "f7l"],
          ["dbph1l", "f17l"],
          ["dbph1l", "f16l"],
          ["dbph1r", "f6l"],
          ["dbph1r", "f7l"],
          ["dbph1r", "f17l"],
          ["dbph1r", "f16l"],
          ["dbph1l", "f6r"],
          ["dbph1l", "f7r"],
          ["dbph1l", "f17r"],
          ["dbph1l", "f16r"],
          {"breakGroup":""},
          {"beamDeform":75000,"beamStrength":"FLT_MAX"},
          ["dbph1r", "dbph1l"],

          //lower piston
          {"beamSpring":15001000,"beamDamp":250},
          ["dbph1l", "dbph3l"],
          ["dbph1r", "dbph3r"],
          ["dbph3r", "dbph3l"],
          ["dbph1r", "dbph3l"],
          ["dbph1l", "dbph3r"],

          ["dbph1", "dbph3r"],
          ["dbph1", "dbph3l"],
          ["dbph1", "dbph1l"],
          ["dbph1", "dbph1r"],

          ["dbph3", "dbph3r"],
          ["dbph3", "dbph3l"],
          ["dbph3", "dbph1l"],
          ["dbph3", "dbph1r"],

          ["dbph3", "dbph1"],

          //upper piston
          ["dbph2l", "dbph4l"],
          ["dbph2r", "dbph4r"],
          ["dbph4r", "dbph4l"],
          ["dbph2r", "dbph4l"],
          ["dbph2l", "dbph4r"],

          //middle piston
          ["dbph5l", "dbph6l"],
          ["dbph5r", "dbph6r"],
          ["dbph5r", "dbph5l"],
          ["dbph6r", "dbph6l"],
          ["dbph5r", "dbph6l"],
          ["dbph5l", "dbph6r"],

          //hydraulics beams
          {"beamDeform":175000,"beamStrength":"FLT_MAX"},
          {"beamSpring":20001000,"beamDamp":20000},
          {"breakGroupType":1},
          {"breakGroup":"kuzovzil_hydros"},
          ["dbph1r","dbph5r", {"tag":"ram1Beam", "dampCutoffHz":750}],
          ["dbph1l","dbph5l", {"tag":"ram1Beam", "dampCutoffHz":750}],
          ["dbph2r","dbph6r", {"tag":"ram2Beam", "dampCutoffHz":750}],
          ["dbph2l","dbph6l", {"tag":"ram2Beam", "dampCutoffHz":750}],
          {"beamSpring":0,"beamDamp":20000},
          //["dbph1r","dbph2r", {"dampCutoffHz":750}],
          //["dbph1l","dbph2l", {"dampCutoffHz":750}],
          {"breakGroupType":0},
          {"breakGroup":""},

          //limiters
          {"beamType":"|SUPPORT", "beamLongBound":2.0},
          {"beamSpring":5001000,"beamDamp":500},
          {"beamDeform":250000,"beamStrength":"FLT_MAX"},
          {"beamPrecompression":0.8},
          ["db2", "dbph4l"],
          ["db2", "dbph4r"],
          {"beamPrecompression":0.95},
          ["db9r", "dbph2l"],
          ["db9l", "dbph2r"],
          ["dbi9", "dbph2r"],
          ["dbi9", "dbph2l"],
          ["db9", "dbph2r"],
          ["db9", "dbph2l"],
          ["db14r", "dbph2l"],
          ["db14l", "dbph2r"],
          {"beamPrecompression":0.7},
          ["db14", "dbph2r"],
          ["db14", "dbph2l"],
          {"beamPrecompression":0.99},
          ["db10r", "dbph2l"],
          ["db10l", "dbph2r"],
          {"beamPrecompression":0.4},
          ["db9", "dbph4r"],
          ["db9", "dbph4l"],
          {"beamPrecompression":0.9},
          ["db11r", "dbph4l"],
          ["db11l", "dbph4r"],
          ["f4r", "dbph3l"],
          ["f4l", "dbph3r"],
          {"beamPrecompression":0.6},
          ["f18r", "dbph3l"],
          ["f18l", "dbph3r"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
    "rails": {
        "piston_R":{
            "links:":["dbph1r", "dbph2r"], "broken:":[], "looped":false, "capped":true,
        },
        "piston_L":{
            "links:":["dbph1l", "dbph2l"], "broken:":[], "looped":false, "capped":true,
        },
    },
    "slidenodes": [
        ["id:", "railName", "attached", "fixToRail", "tolerance", "spring", "strength", "capStrength"],
        ["dbph3r", "piston_R", true, true, 0.0, 20001000, 1700000, 1700000],
        ["dbph3l", "piston_L", true, true, 0.0, 20001000, 1700000, 1700000],
        ["dbph4r", "piston_R", true, true, 0.0, 20001000, 1700000, 1700000],
        ["dbph4l", "piston_L", true, true, 0.0, 20001000, 1700000, 1700000],
        ["dbph5r", "piston_R", true, true, 0.0, 20001000, 1700000, 1700000],
        ["dbph5l", "piston_L", true, true, 0.0, 20001000, 1700000, 1700000],
        ["dbph6r", "piston_R", true, true, 0.0, 20001000, 1700000, 1700000],
        ["dbph6l", "piston_L", true, true, 0.0, 20001000, 1700000, 1700000],

    ],
},
}