{
"scintilla_dash_race_with_lighting": {
    "information":{
        "authors":"BeamNG",
        "name":"Race Dashboard With Lighting",
        "value":2200,
    },
    "slotType" : "scintilla_dash/",
    "slots":[
        ["type", "default", "description"],
        ["scintilla_steer","scintilla_steer", "Steering Wheel"],
        ["scintilla_pedals","scintilla_pedals", "Pedals"],
        ["scintilla_shiftlight","", "Shift Light"],
        ["scintilla_shifter_race","scintilla_shifter_race_sq", "Shifter", {"coreSlot":true}],
        ["digidash_screen_logic","digidash_screen_logic_bng", "Screen", {"coreSlot":true}],
        ["soundscape_horn", "soundscape_horn_4", "Horn"],
    ],
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["scintilla_dashboard_race", ["scintilla_dash", "scintilla_chassis"]],
         ["scintilla_grp_buttons_generic", ["scintilla_dash", "scintilla_chassis"]],
         ["scintilla_grp_buttons_cups", ["scintilla_dash", "scintilla_chassis"]],
         ["scintilla_grp_buttons_race", ["scintilla_dash", "scintilla_chassis"]],
         ["scintilla_grp_mirror", ["scintilla_windshield"]],
         ["scintilla_windshield_stripping", ["scintilla_windshield"]],
         {"deformGroup":""},
         ["scintilla_dashboard_race_console", ["scintilla_dash", "scintilla_chassis"]],
         ["scintilla_gauges_blank", ["scintilla_dash", "scintilla_chassis"]],
         ["digidash", ["scintilla_dash", "scintilla_chassis"], [], {"pos":{"x": 0.32757, "y":-0.6648, "z":0.80}, "rot":{"x":10.8, "y":0, "z":0}, "scale":{"x":1.0, "y":1.0, "z":1.0}}],
         ["digidash_screen", ["scintilla_dash", "scintilla_chassis"], [], {"pos":{"x": 0.32757, "y":-0.6648, "z":0.80}, "rot":{"x":10.8, "y":0, "z":0}, "scale":{"x":1.0, "y":1.0, "z":1.0}}],
         ["grp_footplate", ["scintilla_floor"], [], {"pos":{"x": -0.34, "y":-0.85, "z":0.2}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":0.95, "y":0.95 "z":0.95}}],
         ["grp_extinguisher", ["scintilla_floor"], [], {"pos":{"x": -0.38, "y":-0.51, "z":0.25}, "rot":{"x":0, "y":0, "z":90}, "scale":{"x":1.0, "y":1.0, "z":1.0}}],
    ],
    "glowMap":{
            "scintilla_interior":   {"simpleFunction":{"lowhighbeam":1},                  "off":"scintilla_interior", "on":"scintilla_interior_on", "on_intense":"scintilla_interior_on"},
            "generic_racing_interior":   {"simpleFunction":{"lowhighbeam":1},                  "off":"generic_racing_interior", "on":"generic_racing_interior_on", "on_intense":"generic_racing_interior_on"},
    },
    "mirrors": [
        ["mesh", "idRef:", "id1:", "id2:"],
        ["scintilla_grp_mirror","rf1","rf1rr","f6l",{"refBaseTranslation":{"x":0.0,"y":0.0,"z":-0.09},"baseRotationGlobal":{"x":5,"y":0.0,"z":10}}],
    ],
    "controller": [
        ["fileName"],
        ["shiftLights"],
    ],
    "shiftLights": {
        "engineName":"mainEngine",
        "maxEngineRPMOffset": 500,
        "rpmRange": 3000,
        "keepLEDsActive": true,
        "hasStallWarning": true,
        "outputElectrics": ["led0", "led1", "led2", "led3", "led4", "led5"],
        "flashingOutputElectrics": ["led0", "led1", "led2", "led3", "led4", "led5"],
        "flashingAlternateOutputElectrics": [],
    },
    "glowMap":{
        "shiftlight_multi_l0":     {"simpleFunction":{"led0":1}, "off":"shiftlight_off", "on":"shiftlight_on"},
        "shiftlight_multi_l1":     {"simpleFunction":{"led1":1}, "off":"shiftlight_off", "on":"shiftlight_on"},
        "shiftlight_multi_l2":     {"simpleFunction":{"led2":1}, "off":"shiftlight_off", "on":"shiftlight_on"},
        "shiftlight_multi_l3":     {"simpleFunction":{"led3":1}, "off":"shiftlight_off", "on":"shiftlight_on"},
        "shiftlight_multi_l4":     {"simpleFunction":{"led4":1}, "off":"shiftlight_off", "on":"shiftlight_on"},
        "shiftlight_multi_l5":     {"simpleFunction":{"led5":1}, "off":"shiftlight_off", "on":"shiftlight_on"},
    },
    "props": [
        ["func",       "mesh",               "idRef:", "idX:", "idY:",  "baseRotation",            "rotation",               "translation",          "min", "max", "offset", "multiplier"],
        //steering column controls
        //["turnsignal", "scintilla_signalstalk", "dsh1","dsh1l","f7",  {"x":90, "y":0, "z":0}, {"x":0, "y":0, "z":-12},  {"x":0, "y":0, "z":0},  -1, 1, -0.0, 1],
    ],
    "soundscape": [
        ["name", "src"],
        //soundscape_indicator4
        {"node:":"f6l"},
        ["indicatorStart", "event:>Vehicle>Interior>Indicator>BM1_V2_On"],
        ["indicatorStop", "event:>Vehicle>Interior>Indicator>BM1_V2_Off"],
        ["indLoop1", "event:>Vehicle>Interior>Indicator>AU3_Click"],
        ["indLoop2", "event:>Vehicle>Interior>Indicator>SUB_Clack"],
        //lights11
        ["LightOn", "event:>Vehicle>Interior>Light>POLA_On"],
        ["LightOff", "event:>Vehicle>Interior>Light>POLA_Off"],
        //handbrake2
        {"node:":"dsh2"},
        ["handbrakeDisengaged","event:>Vehicle>Interior>Handbrake_Electric>Electric_01_Unlock"],
        ["handbrakeEngaging","event:>Vehicle>Interior>Handbrake_Electric>Electric_01_Lock"],
        //affects horn location because horn soundscape is loaded after
        {"node:":"bbf2"},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"collision":true},
         {"selfCollision":false},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         //dashboard
         {"group":"scintilla_dash"},
         {"nodeWeight":0.7},
         ["dsh1r",-0.67,-0.6,0.79],
         ["dsh1",0.0,-0.6,0.79],
         ["dsh1l",0.67,-0.6,0.79],

         ["dsh2",0.0,-0.35,0.5],
         {"group":""},
    ],
    "beams":[
        ["id1:", "id2:"],
        {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},

         //--DASHBOARD--
         {"beamSpring":1201000,"beamDamp":70},
         {"beamDeform":12000,"beamStrength":"FLT_MAX"},
         {"deformLimitExpansion":""},
         {"deformGroup":"dash_damage","deformationTriggerRatio":0.03},
         ["dsh1l", "dsh1"],
         ["dsh1", "dsh1r"],
         ["dsh1l", "f6ll"],
         ["dsh1r", "f6rr"],
         ["dsh1", "f6l"],
         ["dsh1", "f6r"],
         ["f6r", "dsh1r"],
         ["f6ll", "dsh1"],
         ["dsh1l", "f6l"],
         ["f6rr", "dsh1"],
         ["dsh1l", "f5ll"],
         ["dsh1l", "fx4l"],
         ["dsh1r", "f5rr"],
         ["dsh1r", "fx4r"],
         ["dsh1", "fx4r"],
         ["dsh1", "fx4l"],
         ["dsh1", "f7l"],
         ["dsh1", "f7r"],
         ["dsh1r", "f7r"],
         ["dsh1l", "f7l"],
         ["dsh1", "f8r"],
         ["dsh1", "f8l"],
         ["dsh2", "f7l"],
         ["dsh2", "f7r"],
         ["dsh2", "f8l"],
         ["dsh2", "f8r"],
         ["dsh2", "f2l"],
         ["dsh2", "f2r"],
         ["dsh2", "f3l"],
         ["dsh2", "f3r"],
         ["dsh2", "dsh1"],
         ["dsh2", "dsh1l"],
         ["dsh2", "dsh1r"],
         {"deformGroup":""},

         //bleed through
         {"deformLimitExpansion":1.2},
    ],
},
}