{
"pab_v55_headlight_R_lexus": {
    "information":{
        "authors":"Kenemation",
        "name":"Right Headlight [Lexus Style]",
        "value":320,
    },
    "slotType" : "pab_v55_headlight_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_headlightframe_R_lexus", ["pab_v55_headlight_R"]],
         {"deformGroup":"headlightglass_R_break", "deformMaterialBase":"pab_v55_glass", "deformMaterialDamaged":"pab_v55_taillight_glass"},
         ["pab_v55_headlightglass_R", ["pab_v55_headlight_R"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound3", "deformVolume":0.5}],
         {"deformGroup":""},
         {"deformGroup":"headlightglass_R_break", "deformMaterialBase":"pab_v55_lights", "deformMaterialDamaged":"pab_v55_lights"},
         ["pab_v55_headlight_R_lexus", ["pab_v55_headlight_R"]],
         {"deformGroup":""},
    ],
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightBrightness":0.25,
            "lightRange":70,
            "lightColor":{"r":235, "g":235, "b":255, "a":255},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":true,
            "flareName":"vehicleHeadLightFlare",
            "flareScale":0.25,
            "cookieName":"art/special/BNG_light_cookie_headlight.dds"
            "texSize":512,
            "shadowSoftness":0.4,
        },
        //low beams
        ["lowhighbeam"    , "SPOTLIGHT"        , "he4r", "he3r", "he2r", {"x":190, "y":-40, "z":45} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.384, "y":0.298, "z":-0.031},"lightRange":50,"lightBrightness":0.5,"flareScale":0.0,"deformGroup":"headlightglass_R_break"}],
        //high beams
        ["highbeam" ,         "SPOTLIGHT"        , "he4r", "he3r", "he2r", {"x":190, "y":-30, "z":30} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.699, "y":0.386, "z":0.012},"lightRange":80,"lightBrightness":0.8,"flareScale":0.0,"deformGroup":"headlightglass_R_break"}],
       
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--HEADLIGHT--
         //right
         {"selfCollision":true},
         {"collision":true},
         {"nodeMaterial":"|NM_PLASTIC"},
         {"frictionCoef":0.5},
         {"nodeWeight":0.75},
         {"group":"pab_v55_headlight_R"},
         ["he1r", -0.53521, -2.06414, 0.71705],
         ["he3r", -0.47193, -2.12579, 0.61728],
         ["he2r", -0.82822, -1.71859, 0.79634],
         ["he4r", -0.83393, -1.77859, 0.65634],
         {"selfCollision":false},
         ["he5r", -0.57000, -1.79649, 0.69695],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //--HEADLIGHT--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":600600,"beamDamp":90},
          {"beamDeform":13350,"beamStrength":62750},
          //headlight main shape
          {"deformLimitExpansion":1.1},
          {"deformGroup":"headlightglass_R_break", "deformationTriggerRatio":0.05},
          //r
          ["he1r","he2r"],
          ["he3r","he4r"],
          ["he1r","he3r"],
          ["he2r","he4r"],

          ["he1r","he4r"],
          ["he2r","he3r"],

          ["he1r","he5r"],
          ["he2r","he5r"],
          ["he3r","he5r"],
          ["he4r","he5r"],

          //attach
          {"deformLimitExpansion":""},
          {"beamSpring":600600,"beamDamp":90},
          {"beamDeform":11000,"beamStrength":20500},
          //r
          {"breakGroup":"headlight_R_a"},
          ["he5r","f15rr"],
          ["he2r","f15rr"],
          ["he4r","f15rr"],
          ["he4r","f19rr"],

          {"beamDeform":11000,"beamStrength":22500},
          {"breakGroup":"headlight_R_b"},
          ["he1r","f15r"],
          ["he1r","f15rr"],
          ["he3r","f15r"],
          ["he3r","f13rr"],
          ["he5r","f15r"],
          {"breakGroup":""},
          {"deformGroup":""},

          //headlight support beams
          {"beamType":"|SUPPORT", "beamLongBound":4},
          {"beamSpring":600600,"beamDamp":90},
          {"beamDeform":13200,"beamStrength":330000},
          {"optional":false},
          ["he4r", "f14r"],
          ["he2r", "f14r"],
          ["he3r", "f12rr"],
          ["he1r", "f12rr"],
          ["f19rr", "he2r"],
          ["f11rr", "he1r"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //right headlight
            {"groundModel":"plastic"},
            {"group":"pab_v55_headlight_R"},
            {"dragCoef":3},
            ["he3r","he1r","he4r"],
            ["he4r","he1r","he2r"],
            ["he4r","he2r","he5r"],
            ["he1r","he5r","he2r"],
            ["he3r","he5r","he1r"],
            ["he4r","he5r","he3r"],
            {"group":""},
    ],
},
"pab_v55_headlight_L_lexus": {
    "information":{
        "authors":"Kenemation",
        "name":"Left Headlight [Lexus Style]",
        "value":320,
    },
    "slotType" : "pab_v55_headlight_L",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_headlightframe_L_lexus", ["pab_v55_headlight_L"]],
         {"deformGroup":"headlightglass_L_break", "deformMaterialBase":"pab_v55_glass", "deformMaterialDamaged":"pab_v55_taillight_glass"},
         ["pab_v55_headlightglass_L", ["pab_v55_headlight_L"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound4", "deformVolume":0.5}],
         {"deformGroup":""},
         {"deformGroup":"headlightglass_L_break", "deformMaterialBase":"pab_v55_lights", "deformMaterialDamaged":"pab_v55_lights"},
         ["pab_v55_headlight_L_lexus", ["pab_v55_headlight_L"]],
         {"deformGroup":""},
    ],
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightBrightness":0.25,
            "lightRange":70,
            "lightColor":{"r":235, "g":235, "b":255, "a":255},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":true,
            "flareName":"vehicleHeadLightFlare",
            "flareScale":0.25,
            "cookieName":"art/special/BNG_light_cookie_headlight.dds"
            "texSize":512,
            "shadowSoftness":0.4,
        },
        //low beams angled right slightly to avoid blinding oncoming traffic
        ["lowhighbeam"    , "SPOTLIGHT"        , "he4l", "he3l", "he2l", {"x":-48, "y":30, "z":-45} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.384, "y":0.298, "z":0.031},"lightRange":50,"lightBrightness":0.5,"flareScale":0.0,"deformGroup":"headlightglass_L_break"}],
        //high beams
        ["highbeam" ,         "SPOTLIGHT"        , "he4l", "he3l", "he2l", {"x":-40, "y":30, "z":-40} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.699, "y":0.386, "z":-0.012},"lightRange":80,"lightBrightness":0.8,"flareScale":0.0,"deformGroup":"headlightglass_L_break"}],
     ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--HEADLIGHT--
         //left
         {"selfCollision":true},
         {"collision":true},
         {"nodeMaterial":"|NM_PLASTIC"},
         {"frictionCoef":0.5},
         {"nodeWeight":0.75},
         {"group":"pab_v55_headlight_L"},
         ["he1l", 0.53521, -2.06414, 0.71705],
         ["he3l", 0.47193, -2.12579, 0.61728],
         ["he2l", 0.82822, -1.71859, 0.79634],
         ["he4l", 0.83393, -1.77859, 0.65634],
         {"selfCollision":false},
         ["he5l", 0.57000, -1.79649, 0.69695],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //--HEADLIGHT--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":600600,"beamDamp":90},
          {"beamDeform":13350,"beamStrength":128000},
          //headlight main shape
          {"deformLimitExpansion":1.1},
          {"deformGroup":"headlightglass_L_break", "deformationTriggerRatio":0.05},
          //l
          ["he1l","he2l"],
          ["he3l","he4l"],
          ["he1l","he3l"],
          ["he2l","he4l"],

          ["he1l","he4l"],
          ["he2l","he3l"],

          ["he1l","he5l"],
          ["he2l","he5l"],
          ["he3l","he5l"],
          ["he4l","he5l"],

          //attach
          {"deformLimitExpansion":""},
          {"beamSpring":600600,"beamDamp":90},
          {"beamDeform":11000,"beamStrength":20500},
          //l
          {"breakGroup":"headlight_L_a"},
          ["he5l","f15ll"],
          ["he2l","f15ll"],
          ["he4l","f15ll"],
          ["he4l","f19ll"],

          {"beamDeform":11000,"beamStrength":22500},
          {"breakGroup":"headlight_L_b"},
          ["he1l","f15ll"],
          ["he1l","f15l"],
          ["he3l","f15l"],
          ["he3l","f13ll"],
          ["he5l","f15l"],
          {"breakGroup":""},
          {"deformGroup":""},

          //headlight support beams
          {"beamType":"|SUPPORT", "beamLongBound":4},
          {"beamSpring":600600,"beamDamp":90},
          {"beamDeform":13200,"beamStrength":330000},
          {"optional":false},
          ["he4l", "f14l"],
          ["he2l", "f14l"],
          ["he3l", "f12ll"],
          ["he1l", "f12ll"],
          ["f19ll", "he2l"],
          ["f11ll", "he1l"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //left headlight
            {"groundModel":"plastic"},
            {"group":"pab_v55_headlight_L"},
            {"dragCoef":3},
            ["he1l","he3l","he4l"],
            ["he1l","he4l","he2l"],
            ["he2l","he4l","he5l"],
            ["he5l","he1l","he2l"],
            ["he5l","he3l","he1l"],
            ["he5l","he4l","he3l"],
            {"group":""},
    ],
},
}