{
"pab_v55_taillight_R": {
    "information":{
        "authors":"Kenemation",
        "name":"Right Taillight",
        "value":130,
    },
    "slotType" : "pab_v55_taillight_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_taillightframe_R", ["pab_v55_taillight_R"]],
         {"deformGroup":"taillightglass_R_break", "deformMaterialBase":"pab_v55_glass", "deformMaterialDamaged":"pab_v55_taillight_glass"},
         ["pab_v55_taillightglass_R", ["pab_v55_taillight_R"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound1", "deformVolume":0.5}],
         {"deformGroup":""},
         {"deformGroup":"taillightglass_R_break", "deformMaterialBase":"pab_v55_lights", "deformMaterialDamaged":"pab_v55_taillightmesh"},
         ["pab_v55_taillight_R", ["pab_v55_taillight_R"]],
         {"deformGroup":""},
    ],
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightRange":8,
            "lightColor":{"r":255, "g":10, "b":0, "a":255},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleBrakeLightFlare",
        },
        //taillights
        ["brake" ,         "SPOTLIGHT"        , "tl4r", "tl3r", "tl1r", {"x":-30, "y":-10, "z":-30} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.468, "y":0.206, "z":0.013},"flareScale":0.0,"lightBrightness":0.08,"deformGroup":"taillightglass_R_break"}],
        ["lowhighbeam" ,   "SPOTLIGHT"        , "tl4r", "tl3r", "tl1r", {"x":-50, "y":-20, "z":-5} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.468, "y":0.206, "z":0.013},"flareScale":0.0,"lightBrightness":0.04,"lightRange":8,"deformGroup":"taillightglass_R_break"}],
        //corner
        {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightRange":10,
            "lightColor":{"r":255, "g":79, "b":0, "a":1},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleBrakeLightFlare",
        },
        ["signal_R" ,         "SPOTLIGHT"        , "tl4r", "tl3r", "tl1r", {"x":-30, "y":-10, "z":-30} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.177, "y":0.683, "z":-0.007},"flareScale":0.0,"lightBrightness":0.04,"deformGroup":"taillightglass_R_break"}],
        //reverse lights
        {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightRange":8,
            "lightColor":{"r":255, "g":255, "b":255, "a":1},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleReverseLightFlare",
            "cookieName":"art/special/BNG_light_cookie_headlight.dds"
            "texSize":512,
            "shadowSoftness":0.5,
        },
        //reverse lights
        ["reverse" ,         "SPOTLIGHT"        , "tl4r", "tl3r", "tl1r", {"x":-30, "y":-10, "z":-30} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.379, "y":0.789, "z":-0.021},"flareScale":0.0,"lightBrightness":0.05,"deformGroup":"taillightglass_R_break"}],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--taillight--
         //right
         {"selfCollision":true},
         {"collision":true},
         {"nodeMaterial":"|NM_PLASTIC"},
         {"frictionCoef":0.5},
         {"nodeWeight":0.65},
         {"group":"pab_v55_taillight_R"},
         ["tl1r", -0.61724, 2.36718, 0.96735],
         ["tl3r", -0.57265, 2.42508, 0.78082],
         ["tl2r", -0.78897, 2.16534, 0.96588],
         ["tl4r", -0.76726, 2.29202, 0.79854],
         {"selfCollision":false},
         ["tl5r", -0.65834, 2.30521, 0.87897],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //--taillight--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":600600,"beamDamp":90},
          {"beamDeform":13350,"beamStrength":62750},
          //taillight main shape
          {"deformLimitExpansion":1.1},
          {"deformGroup":"taillightglass_R_break", "deformationTriggerRatio":0.04},
          //r
          ["tl1r","tl2r"],
          ["tl3r","tl4r"],
          ["tl1r","tl3r"],
          ["tl2r","tl4r"],

          ["tl1r","tl4r"],
          ["tl2r","tl3r"],

          ["tl1r","tl5r"],
          ["tl2r","tl5r"],
          ["tl3r","tl5r"],
          ["tl4r","tl5r"],

          //attach
          {"deformLimitExpansion":""},
          {"beamSpring":500600,"beamDamp":90},
          {"beamDeform":9150,"beamStrength":18500},
          //r
          {"breakGroup":"taillight_a_R"},
          ["tl2r","q4r"],
          ["tl5r","q4r"],
          ["tl3r","r7rr"],
          ["tl4r","q4r"],
          ["tl4r","q9r"],

          {"breakGroup":"taillight_b_R"},
          ["tl1r","r7rr"],
          ["tl5r","q9r"],
          ["tl2r","q9r"],
          ["tl5r","r7rr"],
          {"breakGroup":""},
          {"deformGroup":""},

          //taillight support beams
          {"beamType":"|SUPPORT", "beamLongBound":4},
          {"beamSpring":600600,"beamDamp":90},
          {"beamDeform":13200,"beamStrength":330000},
          ["tl2r","q8r"],
          ["tl4r","q8r"],
          ["tl2r","q3r"],
          ["tl1r","q4r"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //right taillight
            {"groundModel":"plastic"},
            {"group":"pab_v55_taillight_R"},
            {"dragCoef":3},
            ["tl1r","tl3r","tl4r"],
            ["tl1r","tl4r","tl2r"],
            {"group":""},
    ],
},
"pab_v55_taillight_L": {
    "information":{
        "authors":"Kenemation",
        "name":"Left Taillight",
        "value":130,
    },
    "slotType" : "pab_v55_taillight_L",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["pab_v55_taillightframe_L", ["pab_v55_taillight_L"]],
         {"deformGroup":"taillightglass_L_break", "deformMaterialBase":"pab_v55_glass", "deformMaterialDamaged":"pab_v55_taillight_glass"},
         ["pab_v55_taillightglass_L", ["pab_v55_taillight_L"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound2", "deformVolume":0.5}],
         {"deformGroup":""},
         {"deformGroup":"taillightglass_L_break", "deformMaterialBase":"pab_v55_lights", "deformMaterialDamaged":"pab_v55_taillightmesh"},
         ["pab_v55_taillight_L", ["pab_v55_taillight_L"]],
         {"deformGroup":""},
    ],
    "props": [
        ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"],
        {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightRange":8,
            "lightColor":{"r":255, "g":10, "b":0, "a":255},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleBrakeLightFlare",
        },
        //taillights
        ["brake" ,         "SPOTLIGHT"        , "tl4l", "tl3l", "tl1l", {"x":210, "y":-10, "z":30} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.468, "y":0.206, "z":-0.013},"flareScale":0.0,"lightBrightness":0.08,"deformGroup":"taillightglass_L_break"}],
        ["lowhighbeam" ,         "SPOTLIGHT"        , "tl4l", "tl3l", "tl1l", {"x":230, "y":-20, "z":5} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.468, "y":0.206, "z":-0.013},"flareScale":0.0,"lightBrightness":0.04,"lightRange":8,"deformGroup":"taillightglass_L_break"}],
        //corner
        {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightRange":8,
            "lightColor":{"r":255, "g":79, "b":0, "a":1},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleBrakeLightFlare",
        },
        ["signal_L" ,         "SPOTLIGHT"        , "tl4l", "tl3l", "tl1l", {"x":210, "y":-10, "z":30} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.177, "y":0.683, "z":0.007},"flareScale":0.0,"lightBrightness":0.04,"deformGroup":"taillightglass_L_break"}],
        //reverse lights
        {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightRange":8,
            "lightColor":{"r":255, "g":255, "b":255, "a":1},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleReverseLightFlare",
            "cookieName":"art/special/BNG_light_cookie_headlight.dds"
            "texSize":512,
            "shadowSoftness":0.5,
        },
        //reverse lights
        ["reverse" ,         "SPOTLIGHT"        , "tl4l", "tl3l", "tl1l", {"x":-150, "y":-10, "z":30} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.379, "y":0.789, "z":0.021},"flareScale":0.0,"lightBrightness":0.05,"deformGroup":"taillightglass_L_break"}],
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--taillight--
         //left
         {"selfCollision":true},
         {"collision":true},
         {"nodeMaterial":"|NM_PLASTIC"},
         {"frictionCoef":0.5},
         {"nodeWeight":0.65},
         {"group":"pab_v55_taillight_L"},
         ["tl1l", 0.61724, 2.36718, 0.96735],
         ["tl3l", 0.57265, 2.42508, 0.78082],
         ["tl2l", 0.78897, 2.16534, 0.96588],
         ["tl4l", 0.76726, 2.29202, 0.79854],
         {"selfCollision":false},
         ["tl5l", 0.65834, 2.30521, 0.86897],
         {"group":""},
    ],
    "beams": [
          ["id1:", "id2:"],
          //--taillight--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":600600,"beamDamp":90},
          {"beamDeform":13350,"beamStrength":128000},
          //taillight main shape
          {"deformLimitExpansion":1.1},
          {"deformGroup":"taillightglass_L_break", "deformationTriggerRatio":0.04},
          //l
          ["tl1l","tl2l"],
          ["tl3l","tl4l"],
          ["tl1l","tl3l"],
          ["tl2l","tl4l"],

          ["tl1l","tl4l"],
          ["tl2l","tl3l"],

          ["tl1l","tl5l"],
          ["tl2l","tl5l"],
          ["tl3l","tl5l"],
          ["tl4l","tl5l"],

          //attach
          {"deformLimitExpansion":""},
          {"beamSpring":500600,"beamDamp":90},
          {"beamDeform":9150,"beamStrength":18500},
          //l
          {"breakGroup":"taillight_a_L"},
          ["tl2l","q4l"],
          ["tl5l","q4l"],
          ["tl3l","r7ll"],
          ["tl4l","q4l"],
          ["tl4l","q9l"],

          {"breakGroup":"taillight_b_L"},
          ["tl1l","r7ll"],
          ["tl5l","q9l"],
          ["tl2l","q9l"],
          ["tl5l","r7ll"],
          {"breakGroup":""},
          {"deformGroup":""},

          //taillight support beams
          {"beamType":"|SUPPORT", "beamLongBound":4},
          {"beamSpring":600600,"beamDamp":90},
          {"beamDeform":13200,"beamStrength":330000},
          ["tl2l","q8l"],
          ["tl4l","q8l"],
          ["tl2l","q3l"],
          ["tl1l","q4l"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.1},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //left taillight
            {"groundModel":"plastic"},
            {"group":"pab_v55_taillight_L"},
            {"dragCoef":3},
            ["tl3l","tl1l","tl4l"],
            ["tl4l","tl1l","tl2l"],
            {"group":""},
    ],
},
}