{
"hopper_dash_lighting": {
    "information":{
        "authors":"BeamNG",
        "name":"Dashboard With Lighting",
        "value":30,
    },
    "slotType" : "hopper_dash",
    "slots": [
        ["type", "default", "description"],
        ["hopper_dashboard_accessory","", "Dashboard Accessory"],
        ["hopper_shifter","hopper_shifter_M", "Shifter"],
    ],
    "soundscape": [
        ["name", "src"],
        //indicator9
        {"node:":"int_strw"},
        ["indicatorStart", "event:>Vehicle>Interior>Indicator>HYU_On"],
        ["indicatorStop", "event:>Vehicle>Interior>Indicator>HYU_Off"],
        ["indLoop1", "event:>Vehicle>Interior>Indicator>HUM_Click"],
        ["indLoop2", "event:>Vehicle>Interior>Indicator>HUM_Clack"],
        //lights4
        ["LightOn", "event:>Vehicle>Interior>Light>BM318_Hazard_On"],
        ["LightOff", "event:>Vehicle>Interior>Light>BM318_Hazard_Off"],
        //handbrake6
        {"node:":"int_pbrk"},
        ["handbrakeEngaging","event:>Vehicle>Interior>Handbrake_Ratchet>Ratchet_02_Ratchet"],
        ["handbrakeDisengaging","event:>Vehicle>Interior>Handbrake_Ratchet>Ratchet_02_Button"],
        ["handbrakeDisengaged","event:>Vehicle>Interior>Handbrake_Ratchet>Ratchet_02_Thump"],
        //affects horn location because horn soundscape is loaded after
        {"node:":"b6l"},
    ],
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["hopper_dash", ["hopper_body", "hopper_dash"]],
         ["hopper_gauges", ["hopper_body", "hopper_dash"]],
         ["hopper_decals_gauges", ["hopper_body", "hopper_dash"]],
         ["hopper_centerconsole", ["hopper_body", "hopper_dash"]],
         ["hopper_armrest", ["hopper_body", "hopper_dash"]],
    ],
    "glowMap":{
        "hopper_interior":{"simpleFunction":{"lowhighbeam":0.49}, "off":"hopper_interior", "on":"hopper_interior_on"},
    },
    "controller": [
        ["fileName"],
        ["gauges/analogOdometer", {"name":"analogOdometer" }],
    ],
    "analogOdometer": {
        "configuration": {
            "materialName": "@generic_gauges_odo",
            "htmlPath": "local://local/vehicles/common/analogOdo.html",
            "displayWidth":512,
            "displayHeight":32,
            "odometerDigits":7,
            "odometerHasDecimalSeparator":true,
            "tripHasDecimalSeparator":true,
            "unit":"imperial",
            "floatStyle":{"color":"black"},
            "bodyStyle":{
                "background": "url('/vehicles/common/odometer_analog_b.cef_color.png')",
                "font-family": "OpenSans",
                "font-size": "28px",
                "color": "white",
                "letter-spacing": "15.5px",
                "margin": "-4.5px 10.5px",
                "transform": "scaleX(1.26)",
                "transform-origin": "left",
            },
            "tripDivStyle":{
                "margin-left": "-3px",
                "position": "fixed",
                "letter-spacing": "32px"
            }
        },
    },
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         {"collision":true},
         {"selfCollision":true},

         //dash nodes
         {"group":["hopper_dash"]},
         {"nodeWeight":0.752},
         ["dshr",-0.395, -0.105, 1.029],
         ["dsh",  0.000, -0.105, 1.029],
         ["dshl", 0.395, -0.105, 1.029],
         ["dsh2", 0.0, -0.105, 0.75],
         {"collision":false},
         {"selfCollision":false},
         ["int_strw", 0.395, 0.012, 1.081],
         {"nodeWeight":0.3},
         {"group":""},
         ["int_pbrk", -0.1, 0.25, 0.72],
         {"group":""},
    ],
    "triggers":[
        ["id", "label", "idRef:", "idX:", "idY:", "type", "size", "baseRotation", "rotation", "translation", "baseTranslation"],
        ["hood_int", "Hood Release", "dshl","dsh","b1ll", "box", {"x":0.04, "y":0.04, "z":0.04}, {"x":25, "y":0, "z":0}, {"x":0, "y":0, "z":0}, {"x":0, "y":0, "z":0},{"x":-0.19, "y":0.20, "z":0.0}],
    ],
    "torsionbars":[
       ["id1:", "id2:", "id3:", "id4:"],
        //rigify the column
        {"spring":20000, "damp":1, "deform":18000, "strength":28000},
        ["int_strw", "dshl", "dsh", "b6l"],

    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},

          //dash board
          {"beamSpring":369146.6,"beamDamp":55},
          {"beamDeform":6400,"beamStrength":"FLT_MAX"},
          {"deformLimitExpansion":""},
          ["dshr","b6r"],
          ["dshl","b6l"],
          ["dshr","b15r"],
          ["dshl","b15l"],
          ["dshr","b1r"],
          ["dshl","b1l"],
          ["dshr","b6rr"],
          ["dshl","b6ll"],
          ["dshr","b15rr"],
          ["dshl","b15ll"],
          ["dshl","dshr"],
          ["dsh","b6r"],
          ["dsh","b6l"],
          ["dsh","b15r"],
          ["dsh","b15l"],
          ["dsh","b1r"],
          ["dsh","b1l"],
          ["dshl","dsh"],
          ["dshr","dsh"],
          ["dsh","int_strw"],
          ["dshl","int_strw"],
          {"beamDeform":4400,"beamStrength":"FLT_MAX"},
          ["dshl","dsh2"],
          ["dshr","dsh2"],
          ["b1l","dsh2"],
          ["b1r","dsh2"],
          ["b8l","dsh2"],
          ["b8r","dsh2"],
          {"beamSpring":160100,"beamDamp":40},
          {"beamDeform":70300,"beamStrength":"FLT_MAX"},
          ["int_pbrk","dsh2"],
          ["int_pbrk","b8l"],
          ["int_pbrk","b8r"],
          ["int_pbrk","b9r"],
          //--BLEED DEFORM LIMIT TO OTHER PARTS--
          {"deformLimitExpansion":1.2},
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //sides
            {"dragCoef":0},
            {"group":"hopper_dash"},
            ["b15ll", "dshl", "b15l"],
            ["b15l", "dshl", "dsh"],
            ["dsh", "b15r", "b15l"],
            ["b15r", "dsh", "dshr"],
            ["dshr", "b15rr", "b15r"],
            ["dshl", "b15ll", "b7ll"],
            ["dshr", "b7rr", "b15rr"],
            ["dshl", "dsh2", "dsh"],
            ["dsh", "dsh2", "dshr"],
            ["b7l", "dsh2", "dshl"],
            ["dsh2", "b7r", "dshr"],
            ["b7r", "b1r", "b7rr"],
            ["b7rr", "b1r", "b1rr"],
            ["b7rr", "dshr", "b7r"],
            ["dshl", "b7ll", "b7l"],
            ["b7l", "b7ll", "b1l"],
            ["dsh2", "b7l", "b1l"],
            ["b1l", "b1r", "dsh2"],
            ["dsh2", "b1r", "b7r"],
            ["b7ll", "b1ll", "b1l"],
   ],
},
}