{
"pickup_cabprotector_RB": {
	"information":{
		"authors":"AR162b",
		"name":"Cab Protector",
	}
    "slotType" : "pickup_cabprotector_RB",

	"props": [
		["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"]
		//taillights
		{
			"lightInnerAngle":0
			"lightOuterAngle":140
			"lightBrightness":0.06
			"lightRange":20
			"lightColor":{"r":255, "g":50, "b":0, "a":255}
			"lightCastShadows":false
            "flareName":"vehicleBrakeLightFlare"
            "flareScale":0.4
		}
		//upper
		{
			"lightInnerAngle":20
			"lightOuterAngle":140
			"lightBrightness":0.04
			"lightRange":14
            "flareScale":0.25
		}
		["lowhighbeam" , 		"SPOTLIGHT"        , "bfbgt2l", "bfbgt4l", "bfbgt2", {"x":180, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":-0.04, "y":0.55, "z":-0.01},"deformGroup":"pickup_cabprotector_L_break"}],
		["lowhighbeam" , 		"SPOTLIGHT"        , "bfbgt2r", "bfbgt4r", "bfbgt2", {"x":0, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":-0.04, "y":0.55, "z":0.01},"deformGroup":"pickup_cabprotector_R_break"}],
		["brake" , 		"SPOTLIGHT"        , "bfbgt2l", "bfbgt4l", "bfbgt2", {"x":180, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":-0.04, "y":0.55, "z":-0.01},"deformGroup":"pickup_cabprotector_L_break"}],
		["brake" , 		"SPOTLIGHT"        , "bfbgt2r", "bfbgt4r", "bfbgt2", {"x":0, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":-0.04, "y":0.55, "z":0.01},"deformGroup":"pickup_cabprotector_R_break"}],
		["signal_L" , 		"SPOTLIGHT"        , "bfbgt2l", "bfbgt4l", "bfbgt2", {"x":180, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":-0.04, "y":0.55, "z":-0.01},"deformGroup":"pickup_cabprotector_L_break"}],
		["signal_R" , 		"SPOTLIGHT"        , "bfbgt2r", "bfbgt4r", "bfbgt2", {"x":0, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":-0.04, "y":0.55, "z":0.01},"deformGroup":"pickup_cabprotector_R_break"}],
		{
			"lightColor":{"r":255, "g":255, "b":0, "a":255}
		}
		// corner
		["lowhighbeam" , 		"SPOTLIGHT"        , "bfbgt1l", "bfbgt2l", "bfbgt3l", {"x":0, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.04, "y":0.04, "z":0.0},"deformGroup":"pickup_cabprotector_L_break"}],
		["lowhighbeam" , 		"SPOTLIGHT"        , "bfbgt1r", "bfbgt2r", "bfbgt3r", {"x":180, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.04, "y":0.04, "z":0.0},"deformGroup":"pickup_cabprotector_R_break"}],
		
		["signal_L" , 		"SPOTLIGHT"        , "bfbgt1l", "bfbgt2l", "bfbgt3l", {"x":0, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.04, "y":0.04, "z":0.0},"deformGroup":"pickup_cabprotector_L_break"}],
		["signal_R" , 		"SPOTLIGHT"        , "bfbgt1r", "bfbgt2r", "bfbgt3r", {"x":180, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.04, "y":0.04, "z":0.0},"deformGroup":"pickup_cabprotector_R_break"}],
	 ],


	"flexbodies": [
		 ["mesh", "[group]:", "nonFlexMaterials"],
		 ["pickup_bedroll_cabprotector", ["pickup_bedRB","pickup_gateRB"]],
		 ["pickup_bedroll_sidelightsframeup", ["pickup_gateRB"]],
		 {"deformGroup":"pickup_cabprotector_L_break","deformMaterialBase":"van_lights", "deformMaterialDamaged":"pickup_lights_dmg"},
		 ["pickup_bedroll_sidelightsup_L", ["pickup_gateRB"]],
		 {"deformGroup":"pickup_cabprotector_R_break","deformMaterialBase":"van_lights", "deformMaterialDamaged":"pickup_lights_dmg"},
		 ["pickup_bedroll_sidelightsup_R", ["pickup_gateRB"]],
		 {"deformGroup":"pickup_cabprotector_L_break","deformMaterialBase":"van_lights", "deformMaterialDamaged":"pickup_lights_dmg"},
		 ["pickup_bedroll_rearlightsup_L", ["pickup_gateRB"]],
		 {"deformGroup":"pickup_cabprotector_R_break","deformMaterialBase":"van_lights", "deformMaterialDamaged":"pickup_lights_dmg"},
		 ["pickup_bedroll_rearlightsup_R", ["pickup_gateRB"]],
		 {"deformGroup":""},
	],

	"nodes": [
		 ["id", "posX", "posY", "posZ"],
		  
		 {"collision":true}
		 {"selfCollision":true}
		 {"frictionCoef":0.5},
		 {"nodeWeight":3.5},
		 {"group":"pickup_gateRB"},
		//front 'gate' cabprotector
		 ["bfbgt1",0.0, 0.48, 1.73],
		 ["bfbgt1l",0.71, 0.48, 1.72],
		 ["bfbgt1r",-0.71, 0.48, 1.72],
		 ["bfbgt2",0.0, 0.60, 1.73],
		 ["bfbgt2l",0.71, 0.60, 1.69],
		 ["bfbgt2r",-0.71, 0.60, 1.69],

		 ["bfbgt3l",0.93, 0.46, 1.03],
		 ["bfbgt3r",-0.93, 0.46, 1.03],
		 ["bfbgt4l",0.93, 0.58, 1.03],
		 ["bfbgt4r",-0.93, 0.58, 1.03],
		  
		 {"group":""}

	],

	"beams": [
		  ["id1:", "id2:"],
		  {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},		 
		  //cabprotector front on bed
		  
		  {"beamSpring":840000,"beamDamp":325},
		  {"beamDeform":30750,"beamStrength":"FLT_MAX"},
		  {"deformationTriggerRatio":0.01},
		 {"deformGroup":"pickup_cabprotector_L_break"},
		  ["bfbgt1","bfbgt1l"],
		 {"deformGroup":"pickup_cabprotector_R_break"},
		  ["bfbgt1","bfbgt1r"],
		 {"deformGroup":""},
		  ["bfbgt1l","bd1ll"],
		  ["bfbgt1r","bd1rr"],
		  ["bfbgt1l","bd1l"],
		  ["bfbgt1r","bd1r"],
		  ["bfbgt1","bd1l"],
		  ["bfbgt1","bd1r"],

		 {"deformGroup":"pickup_cabprotector_L_break"},
		  ["bfbgt2","bfbgt2l"],
		 {"deformGroup":"pickup_cabprotector_R_break"},
		  ["bfbgt2","bfbgt2r"],
		 {"deformGroup":""},
		  ["bfbgt2l","bd1ll"],
		  ["bfbgt2r","bd1rr"],
		  ["bfbgt2l","bd1l"],
		  ["bfbgt2r","bd1r"],
		  ["bfbgt2","bd1l"],
		  ["bfbgt2","bd1r"],

		  ["bfbgt1","bfbgt2"],
		 {"deformGroup":"pickup_cabprotector_L_break"},
		  ["bfbgt1l","bfbgt2l"],
		 {"deformGroup":"pickup_cabprotector_R_break"},
		  ["bfbgt1r","bfbgt2r"],
		 {"deformGroup":""},

		  ["bfbgt3r","bfbgt4r"],
		  ["bfbgt3l","bfbgt4l"],

		 {"deformGroup":"pickup_cabprotector_R_break"},
		  ["bfbgt1r","bfbgt4r"],
		 {"deformGroup":"pickup_cabprotector_L_break"},
		  ["bfbgt1l","bfbgt4l"],
		 {"deformGroup":""},

		  ["bfbgt2l","bfbgt1"],
		  ["bfbgt2r","bfbgt1"],

		 {"deformGroup":"pickup_cabprotector_R_break"},
		  ["bfbgt1r","bfbgt3r"],
		  ["bfbgt2r","bfbgt4r"],
		 {"deformGroup":"pickup_cabprotector_R_break"},
		  ["bfbgt1l","bfbgt3l"],
		  ["bfbgt2l","bfbgt4l"],
		 {"deformGroup":""},

		  ["bfbgt1","bfbgt3r"],
		  ["bfbgt1","bfbgt3l"],
		  ["bfbgt2","bfbgt4r"],
		  ["bfbgt2","bfbgt4l"],

		//gate front on bed support
		  {"beamSpring":462000,"beamDamp":195},
		  {"beamDeform":75000,"beamStrength":"FLT_MAX"},
		  ["bfbgt3l","bd1ll"],
		  ["bfbgt3l","bd1l"],
		  ["bfbgt3l","bd11ll"],
		  ["bfbgt3l","bd11l"],
		  ["bfbgt3l","bd2ll"],
		  ["bfbgt3l","bd2l"],
		  ["bfbgt3l","bd12ll"],
		  ["bfbgt3l","bd12l"],

		  ["bfbgt4l","bd1ll"],
		  ["bfbgt4l","bd1l"],
		  ["bfbgt4l","bd11ll"],
		  ["bfbgt4l","bd11l"],
		  ["bfbgt4l","bd2ll"],
		  ["bfbgt4l","bd2l"],
		  ["bfbgt4l","bd12ll"],
		  ["bfbgt4l","bd12l"],

		  ["bfbgt3r","bd1rr"],
		  ["bfbgt3r","bd1r"],
		  ["bfbgt3r","bd11rr"],
		  ["bfbgt3r","bd11r"],
		  ["bfbgt3r","bd2rr"],
		  ["bfbgt3r","bd2r"],
		  ["bfbgt3r","bd12rr"],
		  ["bfbgt3r","bd12r"],

		  ["bfbgt4r","bd1rr"],
		  ["bfbgt4r","bd1r"],
		  ["bfbgt4r","bd11rr"],
		  ["bfbgt4r","bd11r"],
		  ["bfbgt4r","bd2rr"],
		  ["bfbgt4r","bd2r"],
		  ["bfbgt4r","bd12rr"],
		  ["bfbgt4r","bd12r"],

		  {"beamSpring":25200,"beamDamp":156},
		  {"beamDeform":22500,"beamStrength":"FLT_MAX"},

		  ["bfbgt1l","bd1l"],
		  ["bfbgt1r","bd1r"],
		  ["bfbgt2l","bd1l"],
		  ["bfbgt2r","bd1r"],
		  ["bfbgt2l","bd2l"],
		  ["bfbgt2r","bd2r"],

		  ["bfbgt1","bd1l"],
		  ["bfbgt1","bd1r"],
		  ["bfbgt2","bd1l"],
		  ["bfbgt2","bd1r"],
		  ["bfbgt2","bd2l"],
		  ["bfbgt2","bd2r"],
		  
	],

	"triangles": [
			["id1:","id2:","id3:"],
			//front flatbed gate
			["bfbgt2","bfbgt2l","bfbgt4l"],
			["bfbgt2","bfbgt4l","bd1l"],
			["bfbgt2","bd1l","bd1r"],
			["bfbgt2","bd1r","bfbgt4r"],
			["bfbgt2","bfbgt4r","bfbgt2r"],

			["bfbgt1","bfbgt3l","bfbgt1l"],
			["bfbgt1","bd1l","bfbgt3l"],
			["bfbgt1","bd1r","bd1l"],
			["bfbgt1","bfbgt3r","bd1r"],
			["bfbgt1","bfbgt1r","bfbgt3r"],

			["bfbgt1l","bfbgt3l","bfbgt2l"],
			["bfbgt2l","bfbgt3l","bfbgt4l"],

			["bfbgt1r","bfbgt2r","bfbgt3r"],
			["bfbgt2r","bfbgt4r","bfbgt3r"],

		
	],
}

}