{
"survolt_dash": {
    "information":{
        "authors":"BeamNG",
        "name":"Dashboard",
        "value":1200,
    },
    "slotType" : "survolt_dash",
    "slots":[
        ["type", "default", "description"],
        ["survolt_steer","survolt_steer", "Steering Wheel"],
        ["survolt_pedals","survolt_pedals", "Pedals"],
    ],
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["survolt_dash", ["survolt_dash", "survolt_chassis"]],
         {"deformGroup":""},
    ],
    "mirrors": [
        ["mesh", "idRef:", "id1:", "id2:"],
        //["survolt_interior_mirror","rf1","dsh1","dsh2",{"refBaseTranslation":{"x":0.011,"y":-0.193,"z":-0.115},"baseRotationGlobal":{"x":-1.7,"y":0,"z":0},"offsetRotationGlobal":{"x":-32.8,"y":0.0,"z":0.0}}],
    ],
    "glowMap":{
        "survolt_screen_off":{"simpleFunction":{"ignitionLevel":0.5}, "off":"survolt_black", "on":"survolt_glass_int", "on_intense":"survolt_glass_int"},
    },

    "controller": [
        ["fileName"],
        ["gauges/genericGauges", {"name":"gauge" }],
        ["gauges/customModules/environmentData"],
        ["gauges/customModules/combustionEngineData"],
    ],

    "gauge": {
        "configuration": {
            "materialName": "@survolt_gauges_screen"
            "htmlPath": "local://local/vehicles/survolt/gauges_screen/gauges_screen.html"
            "displayWidth":512
            "displayHeight":256
        }
        "displayData": {
            "electrics": [
                "signal_L",
                "signal_R",
                "lights",
                "highbeam",
                "fog",
                "lowpressure",
                "lowfuel",
                "parkingbrake",
                "checkengine",
                "gear",//
                "fuel",
                "wheelspeed",//
                "esc",
                "escActive",
                "tcs",
                "tcsActive",
                "odometer",
                "trip"
            ]
            "powertrain": [
                ["deviceName", "property"]
                //["mainEngine", "outputTorque1"]
                //["mainEngine", "outputAV1"]
                //["gearbox", "outputAV1"]
            ]
            "customModules": [
                ["moduleName", "property"]
                ["combustionEngineData", "fuelDisplay"]
                ["combustionEngineData", "fuelConsumption"]
                ["environmentData", "temperatureEnv"]
                ["environmentData", "time"]
            ]
        }
    },
    "props": [
        ["func",       "mesh",               "idRef:", "idX:", "idY:",  "baseRotation",            "rotation",               "translation",          "min", "max", "offset", "multiplier"],
        //steering column controls
        //["turnsignal", "survolt_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],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"collision":true},
         {"selfCollision":false},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         //dashboard
         {"group":"survolt_dash"},
         {"nodeWeight":16.0},
         ["dsh1r", -0.4837, -0.4494, 0.79000],
         ["dsh1", 0.00000, -0.4494, 0.79000],
         ["dsh1l", 0.4837, -0.4494, 0.79000],

         ["dsh2", 0.00000, -0.1994, 0.50000],
         {"group":""},
    ],
    "beams":[
        ["id1:", "id2:"],
        {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},

         //--DASHBOARD--
         {"beamSpring":1501000,"beamDamp":100},
         {"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},
    ],
},
"survolt_pedals": {
    "information":{
        "authors":"BeamNG",
        "name":"Pedals",
        "value":200,
    },
    "slotType" : "survolt_pedals",
    "props": [
        ["func", "mesh" , "idRef:", "idX:", "idY:", "baseRotation", "rotation", "translation", "min", "max", "offset", "multiplier"],
        //pedals
        ["brake", "survolt_brakepedal",       "fx2l","fx2r","fx4l", {"x":-10, "y":0, "z":180}, {"x":10, "y":0, "z":0}, {"x":0.0, "y":0, "z":0}, 0, 1, 0, 1],
        ["throttle", "survolt_gaspedal", "fx2l","fx2r","fx4l", {"x":-10, "y":0, "z":180}, {"x":10, "y":0, "z":0}, {"x":0.0, "y":0, "z":0}, 0, 1, 0, 1],
        //pistons
        ["brake", "survolt_pedals_brake_shaft",       "fx2l","fx2r","fx4l", {"x":-8, "y":0, "z":180}, {"x":0, "y":0, "z":0}, {"x":0.0, "y":0.01, "z":0.02}, 0, 1, 0, 1],
        ["throttle", "survolt_pedals_throttle_shaft", "fx2l","fx2r","fx4l", {"x":-8, "y":0, "z":180}, {"x":0, "y":0, "z":0}, {"x":0.0, "y":0.01, "z":0.02}, 0, 1, 0, 1],
     ],
    },
"survolt_seat_FL": {
    "information":{
        "authors":"BeamNG",
        "name":"Driver Seat",
        "value":500,
    },
    "slotType" : "survolt_seat_FL",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["survolt_seat_L", ["survolt_seat_FL"], [], {"pos":{"x":0.0, "y":0.0, "z":0.0}}],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"collision":true},
         {"selfCollision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         //seats flexbody
         {"group":"survolt_seat_FL"},
         {"nodeWeight":6.0},
         ["sf1l", 0.0782, -0.0318, 0.3987],
         ["sf1ll", 0.3855, -0.0318, 0.3987],
         ["sf2l", 0.0626, 0.2671, 0.4014],
         ["sf2ll", 0.4011, 0.2671, 0.4014],
         ["sf3l", 0.1401, 0.5979, 0.9643],
         ["sf3ll", 0.3237, 0.5979, 0.9643],
         {"group":""},
    ],
    "beams":[
        ["id1:", "id2:"],
        {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        //main shape
        {"beamSpring":3501000,"beamDamp":300},
        {"beamDeform":20000,"beamStrength":"FLT_MAX"},
        {"deformLimitExpansion":1.2},
        ["sf1l", "sf1ll"],
        ["sf2l", "sf2ll"],
        ["sf3l", "sf3ll"],
        ["sf1l", "sf2l"],
        ["sf2l", "sf3l"],
        ["sf1ll", "sf2ll"],
        ["sf2ll", "sf3ll"],
        //crossing
        {"beamDeform":17000,"beamStrength":"FLT_MAX"},
        {"deformLimitExpansion":""},
        ["sf1ll", "sf2l"],
        ["sf2ll", "sf1l"],
        ["sf2l", "sf3ll"],
        ["sf3l", "sf2ll"],
        //corners
        {"beamDeform":3000},
        ["sf3l", "sf1l"],
        ["sf3ll", "sf1ll"],

        //damper
        {"beamSpring":0,"beamDamp":800},
        ["sf3ll", "f7l"],
        ["sf3l", "f7l"],

        //attach
        {"beamSpring":1501000,"beamDamp":60},
        {"beamDeform":6000,"beamStrength":"FLT_MAX"},
        ["sf2ll", "f3l"],
        ["sf2ll", "f3ll"],
        ["sf2ll", "f2l"],
        ["sf1ll", "f2ll"],
        ["sf1ll", "f2l"],
        ["sf1ll", "f3l"],
        ["sf1l", "f2l"],
        ["sf1l", "f3l"],
        ["sf2l", "f3l"],
        ["sf2l", "f2l"],
        ["sf2l", "f3r"],
        ["sf1l", "f2r"],
        ["sf2ll", "f8l"],
        ["sf2l", "f8l"],
        ["sf1ll", "f7l"],
        ["sf1l", "f7l"],
        ["f8l", "sf1ll"],
        ["sf1l", "f8l"],
        ["f7l", "sf2ll"],
        ["f7l", "sf2l"],
        ["sf3l", "f8l"],
        ["sf3l", "f9l"],
        ["sf3ll", "f9l"],
        ["sf3ll", "f8l"],
        ["sf2ll", "f8ll"],
        ["sf3ll", "f8ll"],
        ["sf3ll", "f9ll"],

        //limiter
        {"beamType":"|SUPPORT", "beamLongBound":5},
        {"beamSpring":470000,"beamDamp":141},
        {"beamPrecompression":0.9},
        {"beamDeform":6000,"beamStrength":"FLT_MAX"},
        {"optional":true},
        ["sf3l", "rf3ll"],
        ["sf3l", "f10ll"],
        ["sf3ll", "f10l"],
        ["sf3l", "f10"],
        ["sf3l", "rf3l"],
        ["sf3ll", "rf3ll"],
        ["sf2ll", "f3ll"],
        ["sf1ll", "f2ll"],
        //to other seat
        {"beamPrecompression":0.7},
        ["sf1rr", "sf1ll"],
        ["sf2rr", "sf2ll"],
        ["sf3rr", "sf3ll"],
        {"optional":false},
        {"beamPrecompression":1},

        {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        {"deformLimitExpansion":""},
    ],
    "triangles":[
        ["id1:", "id2:", "id3:"],
        {"groundModel":"metal"},
        {"dragCoef":1},
        //front seat
        ["sf2l",  "sf1l",  "sf1ll"],
        ["sf1ll", "sf2ll", "sf2l"],
        ["sf3l",  "sf2l",  "sf2ll"],
        ["sf2ll", "sf3ll", "sf3l"],
    ],
},
"survolt_seat_FR": {
    "information":{
        "authors":"BeamNG",
        "name":"Passenger Seat",
        "value":500,
    },
    "slotType" : "survolt_seat_FR",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["survolt_seat_R", ["survolt_seat_FR"], [], {"pos":{"x":0.0, "y":0.0, "z":0.0}}],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"collision":true},
         {"selfCollision":true},
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_METAL"},
         //seats flexbody
         {"group":"survolt_seat_FR"},
         {"nodeWeight":6.0},
         ["sf1r", -0.0782, -0.0318, 0.3987],
         ["sf1rr", -0.3855, -0.0318, 0.3987],
         ["sf2r", -0.0626, 0.2671, 0.4014],
         ["sf2rr", -0.4011, 0.2671, 0.4014],
         ["sf3r", -0.1401, 0.5979, 0.9643],
         ["sf3rr", -0.3237, 0.5979, 0.9643],
         {"group":""},
    ],
    "beams":[
        ["id1:", "id2:"],
        {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        //main shape
        {"beamSpring":3501000,"beamDamp":300},
        {"beamDeform":20000,"beamStrength":"FLT_MAX"},
        {"deformLimitExpansion":1.2},
        ["sf1r", "sf1rr"],
        ["sf2r", "sf2rr"],
        ["sf3r", "sf3rr"],
        ["sf1r", "sf2r"],
        ["sf2r", "sf3r"],
        ["sf1rr", "sf2rr"],
        ["sf2rr", "sf3rr"],
        //crossing
        {"beamDeform":17000,"beamStrength":"FLT_MAX"},
        {"deformLimitExpansion":""},
        ["sf1rr", "sf2r"],
        ["sf2rr", "sf1r"],
        ["sf2r", "sf3rr"],
        ["sf3r", "sf2rr"],
        //corners
        {"beamDeform":3000},
        ["sf3r", "sf1r"],
        ["sf3rr", "sf1rr"],

        //damper
        {"beamSpring":0,"beamDamp":800},
        ["sf3rr", "f7r"],
        ["sf3r", "f7r"],

        //attach
        {"beamSpring":1501000,"beamDamp":60},
        {"beamDeform":6000,"beamStrength":"FLT_MAX"},
        ["sf2rr", "f3r"],
        ["sf2rr", "f3rr"],
        ["sf2rr", "f2r"],
        ["sf1rr", "f2rr"],
        ["sf1rr", "f2r"],
        ["sf1rr", "f3r"],
        ["sf1r", "f2r"],
        ["sf1r", "f3r"],
        ["sf2r", "f3r"],
        ["sf2r", "f2r"],
        ["sf2r", "f3l"],
        ["sf1r", "f2l"],
        ["sf2rr", "f8r"],
        ["sf2r", "f8r"],
        ["sf1rr", "f7r"],
        ["sf1r", "f7r"],
        ["f8r", "sf1rr"],
        ["sf1r", "f8r"],
        ["f7r", "sf2rr"],
        ["f7r", "sf2r"],
        ["sf3r", "f8r"],
        ["sf3r", "f9r"],
        ["sf3rr", "f9r"],
        ["sf3rr", "f8r"],
        ["sf2rr", "f8rr"],
        ["sf3rr", "f8rr"],
        ["sf3rr", "f9rr"],

        //limiter
        {"beamType":"|SUPPORT", "beamLongBound":5},
        {"beamSpring":470000,"beamDamp":141},
        {"beamPrecompression":0.9},
        {"beamDeform":6000,"beamStrength":"FLT_MAX"},
        {"optional":true},
        ["sf3r", "rf3rr"],
        ["sf3r", "f10rr"],
        ["sf3rr", "f10r"],
        ["sf3r", "f10"],
        ["sf3r", "rf3r"],
        ["sf3rr", "rf3rr"],
        ["sf2rr", "f3rr"],
        ["sf1rr", "f2rr"],
        //to other seat
        {"beamPrecompression":0.7},
        //["sf1rr", "sf1ll"],
        //["sf2rr", "sf2ll"],
        //["sf3rr", "sf3ll"],
        {"optional":false},
        {"beamPrecompression":1},

        {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        {"deformLimitExpansion":""},
    ],
    "triangles":[
        ["id1:", "id2:", "id3:"],
        {"groundModel":"metal"},
        {"dragCoef":1},
        //front seat
        ["sf1r", "sf2r", "sf1rr"],
        ["sf2rr", "sf1rr", "sf2r"],
        ["sf2r", "sf3r", "sf2rr"],
        ["sf3rr", "sf2rr", "sf3r"],
    ],
},
}