{
"sprtg": {
    "information":{
        "authors":"BeamNG",
        "name":"Cherrier sprtg",
    },
    "slotType" : "main",
    "slots": [
        ["type", "default", "description"],
        ["sprtg_body","sprtg_body", "Body", {"coreSlot":true}],
		["skin_glass","", "Tinted Glass"],
				["skin_top","", "Body Colored Top"],
				["skin_trim","", "Matte Plastic Trim"],
				["skin_chr","", "Chrome Color"],
				["skin_ambient","skin_ambient", "W/O Ambient Light"],
				
        ["licenseplate_design_2_1","","License Plate Design"],
        ["sprtg_mod", "", "Additional Modification"],
    ],

    "scaledragCoef":1.7,
    "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}],
    ],
	 "components": {
        "electrics": {
            "customValues": [
                ["electricsName", "electricsFunction"],
                ["lowbeam_filament","electrics.lowbeam * electrics.electricalLoadCoef"],
                ["highbeam_filament","electrics.highbeam * electrics.electricalLoadCoef"],
                ["lowhighbeam_filament","electrics.lowhighbeam * electrics.electricalLoadCoef"],
                ["customLight_lowhighBrakeSignal_L_filament","(electrics.lowhighbeam  + electrics.brakelight_signal_L) * electrics.electricalLoadCoef"],
                ["customLight_lowhighBrakeSignal_R_filament","(electrics.lowhighbeam  + electrics.brakelight_signal_R) * electrics.electricalLoadCoef"],
                ["taillight_filament","electrics.lowhighbeam * electrics.electricalLoadCoef"],
                ["brakelight_filament","electrics.brakelights * electrics.electricalLoadCoef"],
                ["brakelight_signal_L_filament","electrics.brakelight_signal_L * electrics.electricalLoadCoef"],
                ["brakelight_signal_R_filament","electrics.brakelight_signal_R * electrics.electricalLoadCoef"],
                ["lowhighbeam_signal_L_filament","electrics.lowhighbeam_signal_L * electrics.electricalLoadCoef"],
                ["lowhighbeam_signal_R_filament","electrics.lowhighbeam_signal_R * electrics.electricalLoadCoef"],
                ["reverselight_filament","electrics.reverse * electrics.electricalLoadCoef"],
                ["foglight_filament","electrics.fog * electrics.electricalLoadCoef"],
                ["signal_L_filament","electrics.signal_L * electrics.electricalLoadCoef"],
                ["signal_R_filament","electrics.signal_R * electrics.electricalLoadCoef"],
				["doorfl_filament","electrics.doorfl * electrics.electricalLoadCoef"],
				["doorfr_filament","electrics.doorfr * electrics.electricalLoadCoef"],
				["doorrl_filament","electrics.doorrl * electrics.electricalLoadCoef"],
				["doorrr_filament","electrics.doorrr * electrics.electricalLoadCoef"],

                ["police_flasher_filament","pwm(sign(electrics.lightbar), 0.5, 0.5) * electrics.electricalLoadCoef"],
            ]
            "smoothers": [
                ["electricsName", "smootherType", "params"],
                ["lowbeam_filament","temporalNonLinear", [14,1.4]],
				["doorfl_filament","temporalNonLinear", [17,17]],
				["doorfr_filament","temporalNonLinear", [17,17]],
				["doorrr_filament","temporalNonLinear", [17,17]],
				["doorrl_filament","temporalNonLinear", [17,17]],
                ["highbeam_filament","temporalNonLinear", [14,1.4]],
                ["lowhighbeam_filament","temporalNonLinear", [14,1.4]],
                ["taillight_signal_L_filament","temporalNonLinear", [14,1.4]],
                ["taillight_signal_R_filament","temporalNonLinear", [14,1.4]],
                ["customLight_lowhighBrakeSignal_L_filament","temporalNonLinear", [5,1.4]],
                ["customLight_lowhighBrakeSignal_R_filament","temporalNonLinear", [5,1.4]],
                ["taillight_filament","temporalNonLinear", [14,1.4]],
                ["brakelight_filament","temporalNonLinear", [14,1.4]],
                ["brakelight_signal_L_filament","temporalNonLinear", [14,1.4]],
                ["brakelight_signal_R_filament","temporalNonLinear", [14,1.4]],
                ["lowhighbeam_signal_L_filament","temporalNonLinear", [14,1.4]],
                ["lowhighbeam_signal_R_filament","temporalNonLinear", [14,1.4]],
                ["reverselight_filament","temporalNonLinear", [14,1.4]],
                ["foglight_filament","temporalNonLinear", [14,1.4]],
                ["signal_L_filament","temporalNonLinear", [14,1.4]],
                ["signal_R_filament","temporalNonLinear", [14,1.4]],
                ["police_flasher_filament","temporalNonLinear", [4,4]],
            ]
        }
    }
    "glowMap":{
            "sprtg_brakelight_R":{"simpleFunction":{"brakelights":0.49}, "off":"sprtg_lights", "on":"sprtg_lights_on_intense", "on_intense":"sprtg_lights_on_intense"},
            "sprtg_brakelight_L":{"simpleFunction":{"brakelights":0.49}, "off":"sprtg_lights", "on":"sprtg_lights_on_intense", "on_intense":"sprtg_lights_on_intense"},
            "sprtg_signal_L":{"simpleFunction":{"signal_L":0.49}, "off":"sprtg_lights", "on":"sprtg_lights_signal", "on_intense":"sprtg_lights_signal"},
            "sprtg_signal_R":{"simpleFunction":{"signal_R":0.49}, "off":"sprtg_lights", "on":"sprtg_lights_signal", "on_intense":"sprtg_lights_signal"},
            "sprtg_chmsl":{"simpleFunction":{"brakelights":1}, "off":"sprtg_lights", "on":"sprtg_lights_on_intense", "on_intense":"sprtg_lights_on_intense"},
            "sprtg_lowbeam":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"sprtg_lights", "on":"sprtg_lights_on", "on_intense":"sprtg_lights_on_intense"},
            "sprtg_drl":{"simpleFunction":{"running":0.1,"lowbeam":0.49,"highbeam":0.49}, "off":"sprtg_lights", "on":"sprtg_lights_on_intense", "on_intense":"sprtg_lights_on"},
            "sprtg_drl_signal_L":{"simpleFunction":{"running":0.1,"lowhighbeam":-0.1,"signal_L":1.0}, "off":"sprtg_lights", "on":"sprtg_lights_on_intense", "on_intense":"sprtg_lights_signal"},
            "sprtg_drl_signal_R":{"simpleFunction":{"running":0.1,"lowhighbeam":-0.1,"signal_R":1.0}, "off":"sprtg_lights", "on":"sprtg_lights_on_intense", "on_intense":"sprtg_lights_signal"},
            "sprtg_highbeam":{"simpleFunction":{"highbeam":1}, "off":"sprtg_lights", "on":"sprtg_lights_on_intense", "on_intense":"sprtg_lights_on_intense"},
            "sprtg_reverselight":{"simpleFunction":{"reverse":0.49}, "off":"sprtg_lights", "on":"sprtg_lights_on_intense", "on_intense":"sprtg_lights_on_intense"},
            "generic_halogen_highbeam":{"simpleFunction":{"highbeam":1}, "off":"generic_halogen", "on":"generic_halogen_on", "on_intense":"generic_halogen_on_intense"},
            "generic_halogen_glass_highbeam":{"simpleFunction":{"highbeam":1}, "off":"generic_halogen_glass", "on":"generic_halogen_glass_on", "on_intense":"generic_halogen_glass_on_intense"},
            "sprtg_led":{"simpleFunction":{"ignitionLevel":0.49}, "off":"sprtg_alumsq", "on":"sprtg_led", "on_intense":"sprtg_led"},
    			"sprtg_chrf":{"simpleFunction":{"lowhighbeam":0.49}, "off":"sprtg_alum", "on":"sprtg_chrf", "on_intense":"sprtg_chrf"},
    			"sprtg_blackef":{"simpleFunction":{"lowhighbeam":0.49}, "off":"sprtg_blacke", "on":"sprtg_blackef", "on_intense":"sprtg_blackef"},
    			"sprtg_Rs":{"simpleFunction":{"signal_R":0.49}, "off":"sprtg_alum", "on":"sprtg_orange", "on_intense":"sprtg_orange"},
    			"sprtg_alumsqpovR":{"simpleFunction":{"signal_R":0.49}, "off":"sprtg_alumsq", "on":"sprtg_alumsqpov", "on_intense":"sprtg_alumsqpov"},
    			"sprtg_Ls":{"simpleFunction":{"signal_L":0.49}, "off":"sprtg_alum", "on":"sprtg_orange", "on_intense":"sprtg_orange"},
    			"sprtg_alumsqpovL":{"simpleFunction":{"signal_L":0.49}, "off":"sprtg_alumsq", "on":"sprtg_alumsqpov", "on_intense":"sprtg_alumsqpov"},
    			"sprtg_blackepovR":{"simpleFunction":{"signal_R":0.49}, "off":"sprtg_blacke", "on":"sprtg_blackepov", "on_intense":"sprtg_blackepov"},
    			"sprtg_blackepovL":{"simpleFunction":{"signal_L":0.49}, "off":"sprtg_blacke", "on":"sprtg_blackepov", "on_intense":"sprtg_blackepov"},
    			"sprtg_fogchr":{"simpleFunction":{"fog":0.99}, "off":"sprtg_alum", "on":"sprtg_fogchr", "on_intense":"sprtg_fogchr"},
    			"sprtg_miL":{"simpleFunction":{"signal_left_input":0.49, "hazard_enabled":1}, "off":"invis", "on":"mirror", "on_intense":"invis"},
    			"sprtg_miR":{"simpleFunction":{"signal_right_input":0.49, "hazard_enabled":1}, "off":"invis", "on":"mirror", "on_intense":"invis"},
				"sprtg_Rsu":{"simpleFunction":{"ameriR":0.49,"signal_R":0.9}, "off":"sprtg_alum", "on":"sprtg_orange", "on_intense":"sprtg_orange"},
    			"sprtg_Lsu":{"simpleFunction":{"ameriL":0.49,"signal_L":0.9}, "off":"sprtg_alum", "on":"sprtg_orange", "on_intense":"sprtg_orange"},
    			
            "sprtg_ledL":{"simpleFunction":{"ameriL":0.49, "signal_L":0.9}, "off":"sprtg_alumsq", "on":"sprtg_led", "on_intense":"sprtg_orange"},
            "sprtg_ledR":{"simpleFunction":{"ameriR":0.49, "signal_R":0.9}, "off":"sprtg_alumsq", "on":"sprtg_led", "on_intense":"sprtg_orange"},
            "sprtg_ledRU":{"simpleFunction":{"ameriR":0.49, "signal_R":0.9}, "off":"sprtg_alumsq", "on":"sprtg_orange", "on_intense":"sprtg_orange"},
            "sprtg_ledLU":{"simpleFunction":{"ameriL":0.49, "signal_L":0.9}, "off":"sprtg_alumsq", "on":"sprtg_orange", "on_intense":"sprtg_orange"},
				
			
			    			"sprtg_basechrpovR":{"simpleFunction":{"signal_R_filament":0.49}, "off":"sprtg_alum", "on":"sprtg_basechrpov", "on_intense":"sprtg_basechrpov",       "materialEmissiveScaling":{"on_max":0.1}},
			    			"sprtg_basechrpovL":{"simpleFunction":{"signal_L_filament":0.49}, "off":"sprtg_alum", "on":"sprtg_basechrpov", "on_intense":"sprtg_basechrpov",       "materialEmissiveScaling":{"on_max":0.1}},
			    			"sprtg_basealumnpovR":{"simpleFunction":{"signal_R_filament":0.49}, "off":"sprtg_alum", "on":"sprtg_basealumnpov", "on_intense":"sprtg_basealumnpov",       "materialEmissiveScaling":{"on_max":0.1}},
			    			"sprtg_basealumnpovL":{"simpleFunction":{"signal_L_filament":0.49}, "off":"sprtg_alum", "on":"sprtg_basealumnpov", "on_intense":"sprtg_basealumnpov",       "materialEmissiveScaling":{"on_max":0.1}},
			    			"sprtg_blackef_basepovL":{"simpleFunction":{"signal_L_filament":0.49}, "off":"sprtg_black", "on":"sprtg_blackef_basepov", "on_intense":"sprtg_blackef_basepov",       "materialEmissiveScaling":{"on_max":0.1}},
			    			"sprtg_blackef_basepovR":{"simpleFunction":{"signal_R_filament":0.49}, "off":"sprtg_black", "on":"sprtg_blackef_basepov", "on_intense":"sprtg_blackef_basepov",       "materialEmissiveScaling":{"on_max":0.1}},

			    			"sprtg_povorL":{"simpleFunction":{"signal_L":0.49}, "off":"sprtg_povoro", "on":"sprtg_povor", "on_intense":"sprtg_povor"},
			    			"sprtg_povorR":{"simpleFunction":{"signal_R":0.49}, "off":"sprtg_povoro", "on":"sprtg_povor", "on_intense":"sprtg_povor"},
		

			    			"sprtg_screen25":{"simpleFunction":{"navon":0.49, "mapon":1}, "off":"screen_off", "on":"sprtg_screen25", "on_intense":"invis"},
						
			    			"sprtg_display":{"simpleFunction":{"navon":0.49, "mapon":1}, "off":"screen_off", "on":"sprtg_display", "on_intense":"invis"},
			    			"sprtg_gps_screen":{"simpleFunction":{"navon":0.49, "mapon":1}, "off":"invis", "on":"invis", "on_intense":"sprtg_gps_screen"},
			    			"sprtg_display2":{"simpleFunction":{"ignitionLevel":1}, "off":"screen_off", "on":"sprtg_display2", "on_intense":"sprtg_display2"},
			    			"sprtg_ambi":{"simpleFunction":{"ignitionLevel":1}, "off":"invis", "on":"sprtg_ambi", "on_intense":"sprtg_ambi"},
			    			"sprtg_speed25":{"simpleFunction":{"ignitionLevel":1}, "off":"screen_off", "on":"sprtg_speed25", "on_intense":"sprtg_speed25"},
			    			"sprtg_intnew":{"simpleFunction":{"ignitionLevel":1}, "off":"sprtg_intnew2", "on":"sprtg_intnew", "on_intense":"sprtg_intnew"},
			    			"sprtg_int":{"simpleFunction":{"ignitionLevel":1}, "off":"sprtg_int2", "on":"sprtg_int", "on_intense":"sprtg_int"},
			    			"sprtg_needle":{"simpleFunction":{"ignitionLevel":1}, "off":"invis", "on":"sprtg_needle", "on_intense":"sprtg_needle"},
			    			"sprtg_gauges_screee":{"simpleFunction":{"ignitionLevel":1}, "off":"invis", "on":"sprtg_gauges_screee", "on_intense":"sprtg_gauges_screee"},
			    			"sprtg_miR":{"simpleFunction":{"hazard_enabled":1, "signal_right_input":0.1}, "off":"invis", "on":"mirror", "on_intense":"invis"},
			    			"sprtg_miL":{"simpleFunction":{"hazard_enabled":1,"signal_left_input":0.1}, "off":"invis", "on":"mirror", "on_intense":"invis"},

			
    			"sprtg_head":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"sprtg_alum", "on":"sprtg_led", "on_intense":"sprtg_led2"},
    			"sprtg_reverse":{"simpleFunction":{"reverse":0.49}, "off":"sprtg_alumsq", "on":"sprtg_led", "on_intense":"sprtg_led"},
    			"sprtg_reverser":{"simpleFunction":{"reverse":0.49}, "off":"sprtg_blacke", "on":"sprtg_led", "on_intense":"sprtg_led"},
    			"sprtg_re":{"simpleFunction":{"lowhighbeam":0.49}, "off":"sprtg_red", "on":"sprtg_re", "on_intense":"sprtg_re"},
    			"sprtg_re33":{"simpleFunction":{"lowhighbeam":0.49,"brake":1}, "off":"sprtg_red", "on":"sprtg_re33", "on_intense":"sprtg_re33"},
    			"sprtg_rearle":{"simpleFunction":{"lowhighbeam":0.49}, "off":"sprtg_red", "on":"sprtg_rearle", "on_intense":"sprtg_rearle"},
    			"sprtg_rearles":{"simpleFunction":{"brake":0.49}, "off":"sprtg_red", "on":"sprtg_rearle", "on_intense":"sprtg_rearle"},
    			"sprtg_brake":{"simpleFunction":{"brake":0.49}, "off":"sprtg_red", "on":"sprtg_re", "on_intense":"sprtg_re"},
    			"sprtg_fog":{"simpleFunction":{"fog":0.49}, "off":"sprtg_alum", "on":"sprtg_led", "on_intense":"sprtg_led"},
    			"sprtg_fogr":{"simpleFunction":{"fog":0.49}, "off":"sprtg_alumsq", "on":"sprtg_re", "on_intense":"sprtg_re"},
    			"sprtg_basealumn":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"sprtg_basealumn", "on":"sprtg_basealumn1", "on_intense":"sprtg_basealumn1"},
    			"sprtg_blackef_base":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"sprtg_blacke", "on":"sprtg_blackef_base", "on_intense":"sprtg_blackef_base"},
    			"sprtg_basechr":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"sprtg_alum", "on":"sprtg_basechr", "on_intense":"sprtg_basechr"},
				
				"sprtg_basealumnh":{"simpleFunction":{"highbeam":1}, "off":"sprtg_basealumn", "on":"sprtg_basealumn1", "on_intense":"sprtg_basealumn1"},
    			"sprtg_blackef_baseh":{"simpleFunction":{"highbeam":1}, "off":"sprtg_blacke", "on":"sprtg_blackef_base", "on_intense":"sprtg_blackef_base"},
    			"sprtg_basechrh":{"simpleFunction":{"highbeam":1}, "off":"sprtg_alum", "on":"sprtg_basechr", "on_intense":"sprtg_basechr"},
    			"sprtg_headl":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"sprtg_alum", "on":"sprtg_led2", "on_intense":"sprtg_led2"},
    			"sprtg_high":{"simpleFunction":{"highbeam":1}, "off":"sprtg_alum", "on":"sprtg_led2", "on_intense":"sprtg_led2"},
    			"sprtg_blackel":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"sprtg_blacke", "on":"sprtg_blackel2", "on_intense":"sprtg_blackel"},
				
				
				
				
				
				 //gauge lights
            "signal_L":{"simpleFunction":"signal_L", "off":"invis", "on":"sprtg_decals_gauges"},
            "signal_R":{"simpleFunction":"signal_R", "off":"invis", "on":"sprtg_decals_gauges"},
            "esc":{"simpleFunction":{"esc":0.49,"tcs":0.49}, "off":"invis", "on":"sprtg_decals_gauges"},
            "lights":{"simpleFunction":{"lowbeam":1}, "off":"invis", "on":"sprtg_decals_gauges"},
            "highbeam":{"simpleFunction":"highbeam", "off":"invis", "on":"sprtg_decals_gauges"},
            "parkingbrake":{"simpleFunction":"parkingbrakelight", "off":"invis", "on":"sprtg_decals_gauges"},
            "checkengine":{"simpleFunction":"checkengine", "off":"invis", "on":"sprtg_decals_gauges"},

            //unused ones
            "doors":{"simpleFunction":"doors", "off":"invis", "on":"sprtg_decals_gauges"},
            "seatbelt":{"simpleFunction":"seatbelt", "off":"invis", "on":"sprtg_decals_gauges"},
    },
},
"sprtg_skin_glass_ton": {
    "information":{
        "authors":"BeamNG",
        "name":"Tinted",
        "value":2000,
    },
    "slotType" : "skin_glass",
    "globalSkin" : "ton",
},
"sprtg_skin_top_blacktt": {
    "information":{
        "authors":"BeamNG",
        "name":"Body Colored",
        "value":2000,
    },
    "slotType" : "skin_top",
    "globalSkin" : "blacktt",
},
"sprtg_skin_ambient_invis": {
    "information":{
        "authors":"BeamNG",
        "name":"W\O Ambilight",
        "value":2000,
    },
    "slotType" : "skin_ambient",
    "globalSkin" : "invis",
},
"sprtg_skin_trim_blackm": {
    "information":{
        "authors":"BeamNG",
        "name":"Matte Black",
        "value":2000,
    },
    "slotType" : "skin_trim",
    "globalSkin" : "blackm",
},
"sprtg_skin_chr_gray": {
    "information":{
        "authors":"BeamNG",
        "name":"Gray Chrome",
        "value":2000,
    },
    "slotType" : "skin_chr",
    "globalSkin" : "gray",
},
"sprtg_skin_chr_black": {
    "information":{
        "authors":"BeamNG",
        "name":"Black Chrome",
        "value":2000,
    },
    "slotType" : "skin_chr",
    "globalSkin" : "black",
},
}
