{

"man_taillights_oh": {
    "information":{
        "authors":"BeamNG",
        "name":"Rear Lights",
        "value":150,
    }
    "slotType" : "man_taillights_oh",
    
    "slots": [
        ["type", "default", "description"]
        ["semi_licenseplate_R_oh","semi_licenseplate_R_oh", "Rear License Plate"],


    ],
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["man_taillight_overhang_l", ["man_taillight_l"]],
         ["man_taillight_overhang_r", ["man_taillight_r"]],
         
         {"pos":{"x":0, "y":0.5, "z":0.11}}
		 ["man_taillight_l_base", ["man_taillight_l"],[]],
         ["man_taillight_r_base", ["man_taillight_r"],[]],
         ["man_taillight_l_inside", ["man_taillight_l"],[]],
         ["man_taillight_r_inside", ["man_taillight_r"],[]],
         
		 //left
		 {"deformGroup":"man_taillight_l_break", "deformMaterialBase":"man_headlight_l_signal", "deformMaterialDamaged":"man_headlight_inside"}
		 ["man_taillight_l_signal", ["man_taillight_l"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}]
		 
		 {"deformGroup":"man_taillight_l_break", "deformMaterialBase":"man_taillight_reverse", "deformMaterialDamaged":"invis"}
		 ["man_taillight_l_reverse", ["man_taillight_l"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}]
		 
		 {"deformGroup":"man_taillight_l_break", "deformMaterialBase":"man_taillight_brake", "deformMaterialDamaged":"invis"}
		 ["man_taillight_l_brake", ["man_taillight_l"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}]
		 
		 {"deformGroup":"man_taillight_l_break", "deformMaterialBase":"man_taillight_running", "deformMaterialDamaged":"invis"}
		 ["man_taillight_l_running", ["man_taillight_l"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}]
		 
		 {"deformGroup":"man_taillight_l_break", "deformMaterialBase":"man_taillight_glass", "deformMaterialDamaged":"invis"}
		 ["man_taillight_l_glass", ["man_taillight_l"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}]
		 {"deformGroup":"man_taillight_l_break", "deformMaterialBase":"invis", "deformMaterialDamaged":"man_taillight_glass"}
		 ["man_taillight_l_glass_broken", ["man_taillight_l"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}]

		 
		 //right
		 {"deformGroup":"man_taillight_r_break", "deformMaterialBase":"man_headlight_r_signal", "deformMaterialDamaged":"man_headlight_inside"}
		 ["man_taillight_r_signal", ["man_taillight_r"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}]
         
		{"deformGroup":"man_taillight_r_break", "deformMaterialBase":"man_taillight_reverse", "deformMaterialDamaged":"invis"}
		 ["man_taillight_r_reverse", ["man_taillight_r"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}]
		 
		 {"deformGroup":"man_taillight_r_break", "deformMaterialBase":"man_taillight_brake", "deformMaterialDamaged":"invis"}
		 ["man_taillight_r_brake", ["man_taillight_r"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}]		 
		 
		 {"deformGroup":"man_taillight_r_break", "deformMaterialBase":"man_taillight_running", "deformMaterialDamaged":"invis"}
		 ["man_taillight_r_running", ["man_taillight_r"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}]

		 {"deformGroup":"man_taillight_r_break", "deformMaterialBase":"man_taillight_glass", "deformMaterialDamaged":"invis"}
		 ["man_taillight_r_glass", ["man_taillight_r"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}]
		 {"deformGroup":"man_taillight_r_break", "deformMaterialBase":"invis", "deformMaterialDamaged":"man_taillight_glass"}
		 ["man_taillight_r_glass_broken", ["man_taillight_r"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound5", "deformVolume":0.6}]
	 
         {"deformGroup":""}		 



		{"pos":{"x":0, "y":0, "z":0}}	


    ],
    
             "props": [
         
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"]
        {
            "lightInnerAngle":0
            "lightOuterAngle":135
            "lightBrightness":0.07
            "lightRange":70
            "lightColor":{"r":255, "g":255, "b":255, "a":255}
            "lightAttenuation":{"x":0, "y":1, "z":1}
            "lightCastShadows":true
            "flareName":"vehicleHeadLightFlare"
            "flareScale":0.10
            "cookieName":"art/special/BNG_light_cookie_headlight.png"
            "texSize":512
            "shadowSoftness":1.5
        }
        

        ["reverse",           "SPOTLIGHT"        , "mtohr13", "mtohr12", "mtohr11", {"x":0, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.47, "y":0.7, "z":-0.05},"flareScale":0.1, "lightBrightness":0.1, "deformGroup":"man_taillight_r_break"}],
        ["reverse",           "SPOTLIGHT"        , "mtohl13", "mtohl12", "mtohl11", {"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.47, "y":0.7, "z":0.05},"flareScale":0.1, "lightBrightness":0.1, "deformGroup":"man_taillight_l_break"}],
       
                 {
            "lightInnerAngle":0
            "lightOuterAngle":135
            "lightBrightness":0.18
            "lightRange":5
            "lightColor":{"r":255, "g":200, "b":0, "a":255}
            "lightAttenuation":{"x":0, "y":1, "z":1}
            "lightCastShadows":false
            //"flareName":"vehicleBrakeLightFlare"
            "flareScale":0.10
            "cookieName":"art/special/BNG_light_cookie_headlight.png"

        },

        ["signal_R",           "SPOTLIGHT"        , "mtohr13", "mtohr12", "mtohr11", {"x":0, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.76, "y":0.7, "z":-0.05}, "deformGroup":"man_taillight_r_break"}],
        ["signal_L",           "SPOTLIGHT"        , "mtohl13", "mtohl12", "mtohl11", {"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.76, "y":0.7, "z":0.05}, "deformGroup":"man_taillight_l_break"}],

           
        
        
        
        {
            "lightInnerAngle":0
            "lightOuterAngle":135
            "lightBrightness":0.18
            "lightRange":10
            "lightColor":{"r":255, "g":50, "b":0, "a":255}
            "lightCastShadows":true
            //"flareName":"vehicleBrakeLightFlare"
            "flareScale":0.1
        }

        ["lowhighbeam",           "SPOTLIGHT"        , "mtohl13", "mtohl12", "mtohl11", {"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.45, "y":0.7, "z":0.05}, "deformGroup":"man_taillight_l_break"}],
        ["lowhighbeam",           "SPOTLIGHT"        , "mtohr13", "mtohr12", "mtohr11", {"x":0, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.45, "y":0.7, "z":-0.05}, "deformGroup":"man_taillight_r_break"}],
        
        ["brakelights",           "SPOTLIGHT"        ,"mtohl13", "mtohl12", "mtohl11", {"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.7, "y":0.7, "z":0.05}, "deformGroup":"man_taillight_l_break"}],
        ["brakelights",           "SPOTLIGHT"        , "mtohr13", "mtohr12", "mtohr11", {"x":0, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.7, "y":0.7, "z":-0.05}, "deformGroup":"man_taillight_r_break"}],
     ],
     
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"selfCollision":true}
         {"collision":true}
         {"frictionCoef":0.5},
         {"nodeMaterial":"|NM_PLASTIC"},
         {"group":"man_taillight_l"},
         {"nodeWeight":4.14},
["mtohl10", 1.16847, 3.57444, 1.06005],
["mtohl11", 0.69338, 3.57444, 1.06005],
["mtohl12", 1.16847, 3.58144, 0.70319],
["mtohl13", 0.69338, 3.58144, 0.70319],


          {"group":"man_taillight_r"},
["mtohr10", -1.16847, 3.57444, 1.06005],
["mtohr11", -0.69338, 3.57444, 1.06005],
["mtohr12", -1.16847, 3.58144, 0.70319],
["mtohr13", -0.69338, 3.58144, 0.70319],
{"nodeMaterial":"|NM_METAL"},

         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
          {"beamSpring":1600800,"beamDamp":312},
          {"beamDeform":1000000,"beamStrength":"FLT_MAX"},

["mtohl12","mtohl13"],
["mtohl10","mtohl11"],
["mtohl12","mtohl10"],
["mtohl13","mtohl11"],
["mtohl12","mtohl11"],
["mtohl13","mtohl10"],

["mtohr12","mtohr13"],
["mtohr10","mtohr11"],
["mtohr12","mtohr10"],
["mtohr13","mtohr11"],
["mtohr12","mtohr11"],
["mtohr13","mtohr10"],

          //attach
          {"beamSpring":600800,"beamDamp":1512},
          {"beamDeform":25000,"beamStrength":40000},
          {"breakGroup":"taillight_oh_l"},
            ["mtohl10", "f10l"],
            ["mtohl10", "f9l"],
            ["mtohl10", "f19l"],
            ["mtohl10", "f20l"],
            ["mtohl11", "f10l"],
            ["mtohl11", "f9l"],
            ["mtohl11", "f19l"],
            ["mtohl11", "f20l"],
            ["mtohl12", "f10l"],
            ["mtohl12", "f9l"],
            ["mtohl12", "f19l"],
            ["mtohl12", "f20l"],
            ["mtohl13", "f10l"],
            ["mtohl13", "f9l"],
            ["mtohl13", "f19l"],
            ["mtohl13", "f20l"],

          {"breakGroup":"taillight_oh_r"},
            ["mtohr10", "f20r"],
            ["mtohr10", "f10r"],
            ["mtohr10", "f9r"],
            ["mtohr10", "f19r"],
            ["mtohr11", "f20r"],
            ["mtohr11", "f10r"],
            ["mtohr11", "f9r"],
            ["mtohr11", "f19r"],
            ["mtohr12", "f20r"],
            ["mtohr12", "f10r"],
            ["mtohr12", "f9r"],
            ["mtohr12", "f19r"],
            ["mtohr13", "f20r"],
            ["mtohr13", "f10r"],
            ["mtohr13", "f9r"],
            ["mtohr13", "f19r"],




          {"breakGroup":""},

          {"beamPrecompression":1, "beamType":"|SUPPORT", "beamLongBound":2, "beamShortBound":1},
          {"beamSpring":576000,"beamDamp":400},
          {"beamDeform":55000,"beamStrength":"FLT_MAX"},
          //support

                    {"disableMeshBreaking":true,"disableTriangleBreaking":true}
           {"deformGroup":"man_taillight_r_break", "deformationTriggerRatio":0.01}
          {"beamSpring":1000,"beamDamp":350},
          {"beamDeform":10,"beamStrength":"FLT_MAX"},
          {"breakGroup":"taillight_oh_r"},
          ["mtohr10", "f19r"],
          ["mtohr11", "f19r"],
          ["mtohr12", "f19r"],
          ["mtohr13", "f19r"],


          {"deformGroup":"man_taillight_l_break", "deformationTriggerRatio":0.01}
          {"breakGroup":"taillight_oh_l"}, 
          ["mtohl10", "f19r"],
          ["mtohl11", "f19r"],
          ["mtohl12", "f19r"],
          ["mtohl13", "f19r"],

          {"disableMeshBreaking":false,"disableTriangleBreaking":false}  
          {"deformGroup":""}
          {"breakGroup":""}
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            {"dragCoef":8},
            {"groundModel":"metal"},
            {"group":"fender_rl"},
            ["mtohl10", "mtohl12", "mtohl13"],
            ["mtohl13", "mtohl11", "mtohl10"],



            {"group":"fender_rr"},
            ["mtohr11", "mtohr13", "mtohr10"],
            ["mtohr10", "mtohr13", "mtohr12"],



            {"group":""},
    ],
}

}