{
"s4b8": {
    "information":{
        "authors":"BeamNG",
        "name":"Audi S4 B8",
    },
    "slotType" : "main",
    "slots": [
        ["type", "default", "description"],
        ["s4b8_body","s4b8_body_wagon", "Body", {"coreSlot":true}],
        ["paint_design","", "Paint Design"],
        ["licenseplate_design_2_1","","License Plate Design"],
        ["s4b8_mod", "", "Additional Modification"],
    ],
    "components": {
        "electrics": {
            "customValues": [
                ["electricsName", "electricsFunction","electricsDefault"],
                ["lowhighbeam_filament","electrics.lowhighbeam * electrics.electricalLoadCoef",0],
                ["lowhighBrake_filament","(electrics.lowhighbeam * 0.5 + electrics.brakelights * 0.5) * electrics.electricalLoadCoef",0],
                ["foglight_filament","electrics.fog * electrics.electricalLoadCoef",0],
                ["highbeam_filament","electrics.highbeam * electrics.electricalLoadCoef",0],
                ["signal_L_filament","electrics.signal_L * electrics.electricalLoadCoef",0],
                ["signal_R_filament","electrics.signal_R * electrics.electricalLoadCoef",0],
				["reverselight_filament","electrics.reverse * electrics.electricalLoadCoef",0],
            ],
            "smoothers": [
                ["electricsName", "smootherType", "params"],
                ["lowhighbeam_filament","temporalNonLinear", [10,10]],
                ["lowhighBrake_filament","temporalNonLinear", [15,15]],
                ["foglight_filament","temporalNonLinear", [10,10]],
                ["highbeam_filament","temporalNonLinear", [10,10]],
                ["signal_L_filament","temporalNonLinear", [17,17]],
                ["signal_R_filament","temporalNonLinear", [17,17]],
                ["reverselight_filament","temporalNonLinear", [10,10]],
            ],
        },
    },
    "glowMap":{
            //halogen
            "s4b8_signal_L_bake": {"simpleFunction":"signal_L_filament"    ,"off":"s4b8_darkalu", "on":"s4b8_signal_R_bake", "materialEmissiveScaling":{"on_max":1.00}},
            "s4b8_signal_R_bake": {"simpleFunction":"signal_R_filament"    ,"off":"s4b8_darkalu", "on":"s4b8_signal_R_bake", "materialEmissiveScaling":{"on_max":1.00}},
            "s4b8_signal_R_on": {"simpleFunction":"signal_R_filament"    ,"off":"s4b8_signal_R", "on":"s4b8_signal_R_on", "materialEmissiveScaling":{"on_max":1.00}},
            "s4b8_signal_R": {"simpleFunction":"signal_R_filament"    ,"off":"s4b8_signal_R", "on":"s4b8_signal_R_on", "materialEmissiveScaling":{"on_max":1.00}},
            "s4b8_taillight":{"simpleFunction":"lowhighBrake_filament","off":"s4b8_lights", "on":"s4b8_lights_on_intense", "materialEmissiveScaling":{"on_max":1.00}},
            "s4b8_foglight_on": {"simpleFunction":"foglight_filament"    ,"off":"s4b8_darkalu", "on":"s4b8_foglight_on", "materialEmissiveScaling":{"on_max":1.00}},
            "s4b8_reverselight_on": {"simpleFunction":"reverselight_filament"    ,"off":"s4b8_darkalu", "on":"s4b8_foglight_on", "materialEmissiveScaling":{"on_max":1.00}},

            //LED
            "s4b8_3rd_brakelight_off":{"simpleFunction":{"brakelights":100}, "off":"s4b8_3rd_brakelight_off", "on":"s4b8_3rd_brakelight", "on_intense":"s4b8_3rd_brakelight"},
            "s4b8_3rd_brakelight_bake":{"simpleFunction":{"brakelights":100}, "off":"s4b8_blackplastic", "on":"s4b8_3rd_brakelight_bake", "on_intense":"s4b8_3rd_brakelight_bake"},
            "s4b8_lowhighbeam_on":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"s4b8_xenon_bulb", "on":"s4b8_lowhighbeam_on", "on_intense":"s4b8_lowhighbeam_on_intense"},
            "s4b8_needle":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"audisport_red", "on":"s4b8_taillight_on", "on_intense":"s4b8_taillight_on"},
            "s4b8_buttons":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"s4b8_buttons", "on":"s4b8_buttons_on", "on_intense":"s4b8_buttons_on"},
            "s4b8_gauges_diesel_on":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"s4b8_gauges_diesel", "on":"s4b8_gauges_diesel_on", "on_intense":"s4b8_gauges_diesel_on"},
            "s4b8_gauges_on":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"s4b8_gauges", "on":"s4b8_gauges_on", "on_intense":"s4b8_gauges_on"},
            "s4b8_headlights_bake_on":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"s4b8_darkalu", "on":"s4b8_headlights_bake_on", "on_intense":"s4b8_headlights_bake_on_intense"},
            "s4b8_headlightglass":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"s4b8_glass", "on":"s4b8_glass_on", "on_intense":"s4b8_glass_on_intense"},
            "s4b8_drl":{"simpleFunction":{"running":1}, "off":"s4b8_chrome", "on":"s4b8_drl", "on_intense":"s4b8_drl"},
            "s4b8_centerscreen":{"simpleFunction":{"running":1}, "off":"s4b8_blackgloss", "on":"s4b8_centerscreen", "on_intense":"s4b8_centerscreen"},
            "s4b8_climate":{"simpleFunction":{"running":1}, "off":"s4b8_blackgloss", "on":"s4b8_climate", "on_intense":"s4b8_climate"},
            "s4b8_taillights":{"simpleFunction":{"lowbeam":0.49,"highbeam":1,"brakelights":100}, "off":"s4b8_redalu", "on":"s4b8_taillight_on", "on_intense":"s4b8_taillight_on"},
            "s4b8_led_signal":{"simpleFunction":{"signal_R":1}, "off":"s4b8_led_signal", "on":"s4b8_led_signal_on", "on_intense":"s4b8_led_signal_on"},
            "s4b8_led_signal_on":{"simpleFunction":{"signal_L":1}, "off":"s4b8_led_signal", "on":"s4b8_led_signal_on", "on_intense":"s4b8_led_signal_on"},
            "s4b8_reverselight":{"simpleFunction":{"reverse":1}, "off":"s4b8_lights", "on":"s4b8_lights_on_intense", "on_intense":"s4b8_lights_on_intense"},
            "s4b8_lowhighbeam":{"simpleFunction":{"lowhighbeam":0.49}, "off":"s4b8_lights", "on":"s4b8_lights_on", "on_intense":"s4b8_lights_on_intense"},

            //gauge lights
            "signal_L":{"simpleFunction":"signal_L", "off":"invis", "on":"decals_gauges"},
            "signal_R":{"simpleFunction":"signal_R", "off":"invis", "on":"decals_gauges"},
            "checkengine":{"simpleFunction":"checkengine", "off":"invis", "on":"decals_gauges"},
            //"battery":{"simpleFunction":"battery", "off":"invis", "on":"decals_gauges"},
            "parkingbrake":{"simpleFunction":"parkingbrakelight", "off":"invis", "on":"decals_gauges"},
            "lowfuel":{"simpleFunction":"lowfuel", "off":"invis", "on":"decals_gauges"},
            "lowpressure":{"simpleFunction":"lowpressure", "off":"invis", "on":"decals_gauges"},
            "abs":{"simpleFunction":"abswarn", "off":"invis", "on":"decals_gauges"},
            "esc":{"simpleFunction":"esc", "off":"invis", "on":"decals_gauges"},
            "tcs":{"simpleFunction":"tcs", "off":"invis", "on":"decals_gauges"},
            "foglight":{"simpleFunction":"fog", "off":"invis", "on":"decals_gauges"},
            "rearfog":{"simpleFunction":"rearfog", "off":"invis", "on":"decals_gauges"},
            "oil":{"simpleFunction":"oil", "off":"invis", "on":"decals_gauges"},
            "lowbeam":{"simpleFunction":"lowhighbeam", "off":"invis", "on":"decals_gauges"},
            "highbeam":{"simpleFunction":"highbeam", "off":"invis", "on":"decals_gauges"},
    },
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        ["$brakestrength", "range", "", "Brakes", 1, 0.6, 1.0, "Brake Force Multiplier", "Scales the overall brake torque for this setup", {"minDis":60, "maxDis":100}],
        ["$ffbstrength", "range", "", "Chassis", 1, 0.5, 1.5, "Setup-Specific Force Feedback Multiplier", "Scales the force feedback strength for THIS SETUP ONLY", {"minDis":50, "maxDis":150}],
    ],
},
}
