{
"ARaz1_taillight_R": {
    "information":{
        "authors":"BeamNG",
        "name":"Right Taillight",
        "value":110,
    },
    "slotType" : "ARaz1_taillight_R",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["ARaz1_taillightframe_R", ["ARaz1_taillight_R"]],
         {"deformGroup":"taillight_R_break", "deformMaterialBase":"ARaz1_lights", "deformMaterialDamaged":""},
         ["ARaz1_taillight_R", ["ARaz1_taillight_R"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound4", "deformVolume":0.5}],
         {"deformGroup":"taillight_RR_break", "deformMaterialBase":"ARaz1_lights", "deformMaterialDamaged":""},
         ["ARaz1_taillight_RR", ["ARaz1_taillight_RR"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound4", "deformVolume":0.5}],
         {"deformGroup":"taillight_R_break", "deformMaterialBase":"ARaz1_glass", "deformMaterialDamaged":"ARaz1_glass_dmg"},
         ["ARaz1_taillightglass_R", ["ARaz1_taillight_R"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound4", "deformVolume":0.5}],
         {"deformGroup":""},
    ],
    "props": [
        ["func", "mesh", "idRef:", "idX:", "idY:", "baseRotation", "rotation", "translation", "min", "max", "offset", "multiplier"],
         {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightRange":8,
            "lightColor":{"r":255, "g":255, "b":160, "a":255},
            "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", "tl2r", "tl4r", "tl1r", {"x":-24,"y":0,"z":-3},   {"x":0,"y":0,"z":0}, {"x":0,"y":0,"z":0}, 0, 0, 0, 1,{"baseTranslation":{"x":0.845, "y":0.719, "z":-0.006},"flareScale":0.0,"lightBrightness":0.06,"deformGroup":"taillight_R_break"}],
        //taillights
        {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightRange":10,
            "lightColor":{"r":255, "g":50, "b":0, "a":255},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleBrakeLightFlare",
        },
        ["brake",       "SPOTLIGHT", "tl2r", "tl4r", "tl1r", {"x":-25,"y":10,"z":0},     {"x":0,"y":0,"z":0}, {"x":0,"y":0,"z":0}, 0, 0, 0, 1,{"baseTranslation":{"x":0.40, "y":0.58, "z":0.012},"flareScale":0.,"lightBrightness":0.19,"deformGroup":"taillight_R_break"}],
        ["lowhighbeam", "SPOTLIGHT", "tl2r", "tl4r", "tl1r", {"x":-25,"y":10,"z":0},     {"x":0,"y":0,"z":0}, {"x":0,"y":0,"z":0}, 0, 0, 0, 1,{"baseTranslation":{"x":0.40, "y":0.58, "z":0.012},"flareScale":0.0,"lightBrightness":0.12,"lightRange":8,"deformGroup":"taillight_R_break"}],
        ["lowhighbeam", "SPOTLIGHT", "tl2r", "tl4r", "tl1r", {"x":-20,"y":-10,"z":70},    {"x":0,"y":0,"z":0}, {"x":0,"y":0,"z":0}, 0, 0, 0, 1,{"baseTranslation":{"x":-0.1, "y":0.644, "z":-0.06},"flareScale":0.0,"lightBrightness":0.08,"lightRange":7,"deformGroup":"taillight_R_break"}],
        //corner
        {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightRange":8,
            "lightColor":{"r":255, "g":155, "b":0, "a":255},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleBrakeLightFlare",
            "cookieName":"art/special/BNG_light_cookie_headlight.dds"
            "texSize":512,
            "shadowSoftness":0.1,
            "flareScale":0.0,
            "lightBrightness":0.34,
        },
        ["signal_R",    "SPOTLIGHT", "tl2r", "tl4r", "tl1r", {"x":-20,"y":0,"z":45},    {"x":0,"y":0,"z":0}, {"x":0,"y":0,"z":0}, 0, 0, 0, 1,{"baseTranslation":{"x":0.02, "y":0.54, "z":-0.02},"deformGroup":"taillight_R_break"}],
     ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--taillight--
         //right
         {"selfCollision":false},
         {"collision":true},
         {"nodeMaterial":"|NM_PLASTIC"},
         {"frictionCoef":0.5},
         {"nodeWeight":0.35},
         {"group":"ARaz1_taillight_R"},
         ["tl1r", -0.43504, 1.43578, 0.76496],
         ["tl2r", -0.43503, 1.43613, 0.64696],
         ["tl3r", -0.32700, 1.43661, 0.76496],
         ["tl4r", -0.32769, 1.43681, 0.64696],
         ["tl5r", -0.38989, 1.40295, 0.70496],
         {"group":"ARaz1_taillight_RR"},
            ["tl1rr", -0.58622, 1.43578, 0.76496],
            ["tl2rr", -0.58621, 1.43613, 0.64696],
            ["tl3rr", -0.47818, 1.43661, 0.76496],
            ["tl4rr", -0.47886, 1.43681, 0.64696],
            ["tl5rr", -0.54106, 1.40295, 0.70496],

         {"group":""},
    ],

    "beams": [
          ["id1:", "id2:"],
          //--taillight--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":658940,"beamDamp":18.8},
          {"beamDeform":7000,"beamStrength":42000},
          //taillight main shape
          {"deformGroup":"taillight_R_break", "deformationTriggerRatio":0.05},
          {"deformLimitExpansion":1.2},
          ["tl4r", "tl3r"],
          ["tl2r", "tl1r"],
          ["tl1r", "tl3r"],
          ["tl4r", "tl2r"],
          ["tl2r", "tl3r"],
          ["tl1r", "tl4r"],
          ["tl5r", "tl2r"],
          ["tl5r", "tl1r"],
          ["tl5r", "tl4r"],
          ["tl5r", "tl3r"],
            ["tl4rr", "tl3rr"],
            ["tl3rr", "tl1rr"],
            ["tl1rr", "tl2rr"],
            ["tl2rr", "tl4rr"],
            ["tl4rr", "tl5rr"],
            ["tl5rr", "tl2rr"],
            ["tl1rr", "tl5rr"],
            ["tl5rr", "tl3rr"],
            ["tl3rr", "tl2rr"],
            ["tl4rr", "tl1rr"],

          //attach
          {"deformLimitExpansion":""},
          {"beamSpring":470940,"beamDamp":18.8},
          {"beamDeform":2800,"beamStrength":9700},
          {"breakGroup":"taillight_a_R"},
            ["tl4r", "r4r"],
            ["r4r", "tl3r"],
            ["tl3r", "r5r"],
            ["r5r", "tl4r"],
            ["tl4r", "r4"],
            ["r4", "tl3r"],
            ["tl3r", "r5rr"],
            ["r5rr", "tl4r"],
            ["tl4r", "r4rr"],
            ["r4rr", "tl3r"],
            ["tl1r", "r5rr"],
            ["r5rr", "tl2r"],
            ["tl2r", "r4rr"],
            ["r4rr", "tl1r"],
            ["tl1r", "r5r"],
            ["r5r", "tl2r"],
            ["tl2r", "r4r"],
            ["r4r", "tl1r"],
            ["tl2r", "q8r"],
            ["q8r", "tl1r"],
            ["tl3r", "r5"],
            ["r5", "tl4r"],
          {"deformGroup":"taillight_RR_break", "deformationTriggerRatio":0.05},
          {"breakGroup":"taillight_a_RR"},
            ["tl4rr", "r4r"],
            ["r4r", "tl3rr"],
            ["tl3rr", "r5r"],
            ["r5r", "tl4rr"],
            ["tl4rr", "r4"],
            ["r4", "tl3rr"],
            ["tl3rr", "r5rr"],
            ["r5rr", "tl4rr"],
            ["tl4rr", "r4rr"],
            ["r4rr", "tl3rr"],
            ["tl1rr", "r5rr"],
            ["r5rr", "tl2rr"],
            ["tl2rr", "r4rr"],
            ["r4rr", "tl1rr"],
            ["tl1rr", "r5r"],
            ["r5r", "tl2rr"],
            ["tl2rr", "r4r"],
            ["r4r", "tl1rr"],
            ["tl2rr", "q8r"],
            ["q8r", "tl1rr"],
            ["tl3rr", "r5"],
            ["r5", "tl4rr"],
          {"breakGroup":""},
          {"deformGroup":""},

          //taillight support beams
          {"beamType":"|SUPPORT", "beamLongBound":4},
          {"beamSpring":376940,"beamDamp":18.8},
          {"beamDeform":1400,"beamStrength":231000},
          //to rear fascsa
          {"optional":true}
          ["rp3r", "tl4r"],
          ["tl1r", "tl4r"],
          ["tl5r", "rp4r"],
          //to tailgate
          ["tl2r", "t4rr", {"beamLongBound":12}],
          ["tl4r", "t4r", {"beamLongBound":12}],
          //to body
          {"optional":false}
          ["tl3r", "r3r"],
          ["tl4r", "r3r"],
          ["tl1r", "q7r"],
          ["tl2r", "q7r"],
          ["tl5r", "q4r"],
          ["tl2r", "q4r"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.2},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //right taillight
            {"groundModel":"plastic"},
            {"group":"ARaz1_taillight_R"},
            {"dragCoef":4},
            ["tl3r", "tl4r", "tl2r"],
            ["tl2r", "tl1r", "tl3r"],
            ["tl1r", "tl2r", "tl5r"],
            ["tl3r", "tl1r", "tl5r"],
            ["tl4r", "tl5r", "tl2r"],
            ["tl3r", "tl5r", "tl4r"],
            {"group":"ARaz1_taillight_RR"},
            ["tl3rr", "tl4rr", "tl2rr"],
            ["tl2rr", "tl1rr", "tl3rr"],

            {"group":""},
    ],
},
"ARaz1_taillight_L": {
    "information":{
        "authors":"BeamNG",
        "name":"Left Taillight",
        "value":110,
    },
    "slotType" : "ARaz1_taillight_L",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["ARaz1_taillightframe_L", ["ARaz1_taillight_L"]],
         {"deformGroup":"taillight_L_break", "deformMaterialBase":"ARaz1_lights", "deformMaterialDamaged":""},
         ["ARaz1_taillight_L", ["ARaz1_taillight_L"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound4", "deformVolume":0.5}],
         {"deformGroup":"taillight_LL_break", "deformMaterialBase":"ARaz1_lights", "deformMaterialDamaged":""},
         ["ARaz1_taillight_LL", ["ARaz1_taillight_LL"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound4", "deformVolume":0.5}],
         {"deformGroup":"taillight_L_break", "deformMaterialBase":"ARaz1_glass", "deformMaterialDamaged":"ARaz1_glass_dmg"},
         ["ARaz1_taillightglass_L", ["ARaz1_taillight_L"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound4", "deformVolume":0.5}],
         {"deformGroup":""},
    ],
    "props": [
        ["func", "mesh", "idRef:", "idX:", "idY:", "baseRotation", "rotation", "translation", "min", "max", "offset", "multiplier"],
         {
            "lightInnerAngle":0,
            "lightOuterAngle":120,
            "lightRange":8,
            "lightColor":{"r":255, "g":255, "b":160, "a":255},
            "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", "tl2l", "tl4l", "tl1l", {"x":-156,"y":0,"z":3},   {"x":0,"y":0,"z":0}, {"x":0,"y":0,"z":0}, 0, 0, 0, 1,{"baseTranslation":{"x":0.845, "y":0.719, "z":0.006},"flareScale":0.0,"lightBrightness":0.06,"deformGroup":"taillight_R_break"}],
        {
            "lightInnerAngle":0,
            "lightOuterAngle":160,
            "lightRange":10,
            "lightColor":{"r":255, "g":50, "b":0, "a":255},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleBrakeLightFlare",
        },
        ["brake",       "SPOTLIGHT", "tl2l", "tl4l", "tl1l", {"x":-25,"y":10,"z":180},     {"x":0,"y":0,"z":0}, {"x":0,"y":0,"z":0}, 0, 0, 0, 1,{"baseTranslation":{"x":0.40, "y":0.58, "z":-0.012},"flareScale":0.,"lightBrightness":0.19,"deformGroup":"taillight_L_break"}],
        ["lowhighbeam", "SPOTLIGHT", "tl2l", "tl4l", "tl1l", {"x":-25,"y":10,"z":180},     {"x":0,"y":0,"z":0}, {"x":0,"y":0,"z":0}, 0, 0, 0, 1,{"baseTranslation":{"x":0.40, "y":0.58, "z":-0.012},"flareScale":0.0,"lightBrightness":0.12,"lightRange":8,"deformGroup":"taillight_L_break"}],
        ["lowhighbeam", "SPOTLIGHT", "tl2l", "tl4l", "tl1l", {"x":-20,"y":-10,"z":110},       {"x":0,"y":0,"z":0}, {"x":0,"y":0,"z":0}, 0, 0, 0, 1,{"baseTranslation":{"x":-0.1, "y":0.644, "z":0.06},"flareScale":0.0,"lightBrightness":0.08,"lightRange":7,"deformGroup":"taillight_L_break"}],
        //corner
        {
            "lightInnerAngle":0,
            "lightOuterAngle":160,
            "lightRange":8,
            "lightColor":{"r":255, "g":155, "b":0, "a":255},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleBrakeLightFlare",
            "cookieName":"art/special/BNG_light_cookie_headlight.dds"
            "texSize":512,
            "shadowSoftness":0.1,
            "flareScale":0.0,
            "lightBrightness":0.34,
        },
        ["signal_L",    "SPOTLIGHT", "tl2l", "tl4l", "tl1l", {"x":-20,"y":0,"z":135},     {"x":0,"y":0,"z":0}, {"x":0,"y":0,"z":0}, 0, 0, 0, 1,{"baseTranslation":{"x":0.02, "y":0.54, "z":0.02},"deformGroup":"taillight_L_break"}],
     ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--taillight--
         //right
         {"selfCollision":false},
         {"collision":true},
         {"nodeMaterial":"|NM_PLASTIC"},
         {"frictionCoef":0.5},
         {"nodeWeight":0.35},
         {"group":"ARaz1_taillight_L"},
         ["tl1l", 0.43276, 1.43578, 0.76496],
         ["tl2l", 0.43278, 1.43613, 0.64696],
         ["tl3l", 0.32702, 1.43661, 0.76496],
         ["tl4l", 0.32766, 1.43681, 0.64696],
         ["tl5l", 0.38741, 1.40295, 0.70496],
         {"group":"ARaz1_taillight_LL"},
            ["tl1ll", 0.58622, 1.43578, 0.76496],
            ["tl2ll", 0.58621, 1.43613, 0.64696],
            ["tl3ll", 0.47818, 1.43661, 0.76496],
            ["tl4ll", 0.47886, 1.43681, 0.64696],
            ["tl5ll", 0.54106, 1.40295, 0.70496],

         {"group":""},
    ],

    "beams": [
          ["id1:", "id2:"],
          //--taillight--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":658940,"beamDamp":18.8},
          {"beamDeform":7000,"beamStrength":42000},
          //taillight main shape
          {"deformGroup":"taillight_L_break", "deformationTriggerRatio":0.05},
          {"deformLimitExpansion":1.2},
          ["tl4l", "tl3l"],
          ["tl2l", "tl1l"],
          ["tl1l", "tl3l"],
          ["tl4l", "tl2l"],
          ["tl2l", "tl3l"],
          ["tl1l", "tl4l"],
          ["tl5l", "tl2l"],
          ["tl5l", "tl1l"],
          ["tl5l", "tl4l"],
          ["tl5l", "tl3l"],
            ["tl4ll", "tl3ll"],
            ["tl3ll", "tl1ll"],
            ["tl1ll", "tl2ll"],
            ["tl2ll", "tl4ll"],
            ["tl4ll", "tl5ll"],
            ["tl5ll", "tl2ll"],
            ["tl1ll", "tl5ll"],
            ["tl5ll", "tl3ll"],
            ["tl3ll", "tl2ll"],
            ["tl4ll", "tl1ll"],
          //attach
          {"deformLimitExpansion":""},
          {"beamSpring":470940,"beamDamp":18.8},
          {"beamDeform":2800,"beamStrength":9700},
          {"breakGroup":"taillight_a_L"},
            ["tl4l", "r4l"],
            ["r4l", "tl3l"],
            ["tl3l", "r5l"],
            ["r5l", "tl4l"],
            ["tl4l", "r4"],
            ["r4", "tl3l"],
            ["tl3l", "r5ll"],
            ["r5ll", "tl4l"],
            ["tl4l", "r4ll"],
            ["r4ll", "tl3l"],
            ["tl1l", "r5ll"],
            ["r5ll", "tl2l"],
            ["tl2l", "r4ll"],
            ["r4ll", "tl1l"],
            ["tl1l", "r5l"],
            ["r5l", "tl2l"],
            ["tl2l", "r4l"],
            ["r4l", "tl1l"],
            ["tl2l", "q8l"],
            ["q8l", "tl1l"],
            ["tl3l", "r5"],
            ["r5", "tl4l"],
          //taillight main shape
          {"deformGroup":"taillight_LL_break", "deformationTriggerRatio":0.05},
          {"breakGroup":"taillight_a_LL"},
            ["tl4ll", "r4l"],
            ["r4l", "tl3ll"],
            ["tl3ll", "r5l"],
            ["r5l", "tl4ll"],
            ["tl4ll", "r4"],
            ["r4", "tl3ll"],
            ["tl3ll", "r5ll"],
            ["r5ll", "tl4ll"],
            ["tl4ll", "r4ll"],
            ["r4ll", "tl3ll"],
            ["tl1ll", "r5ll"],
            ["r5ll", "tl2ll"],
            ["tl2ll", "r4ll"],
            ["r4ll", "tl1ll"],
            ["tl1ll", "r5l"],
            ["r5l", "tl2ll"],
            ["tl2ll", "r4l"],
            ["r4l", "tl1ll"],
            ["tl2ll", "q8l"],
            ["q8l", "tl1ll"],
            ["tl3ll", "r5"],
            ["r5", "tl4ll"],
          {"breakGroup":""},
          {"deformGroup":""},

          //taillight support beams
          {"beamType":"|SUPPORT", "beamLongBound":4},
          {"beamSpring":376940,"beamDamp":18.8},
          {"beamDeform":1400,"beamStrength":231000},
          //to rear fascsa
          {"optional":true}
          ["rp3l", "tl4l"],
          ["tl1l", "tl4l"],
          ["tl5l", "rp4l"],
          //to tailgate
          ["tl2l", "t4ll", {"beamLongBound":12}],
          ["tl4l", "t4l", {"beamLongBound":12}],
          //to body
          {"optional":false}
          ["tl3l", "r3l"],
          ["tl4l", "r3l"],
          ["tl1l", "q7l"],
          ["tl2l", "q7l"],
          ["tl5l", "q4l"],
          ["tl2l", "q4l"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.2},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
            //right taillight
            {"groundModel":"plastic"},
            {"group":"ARaz1_taillight_L"},
            {"dragCoef":4},
            ["tl4l", "tl3l", "tl2l"],
            ["tl1l", "tl2l", "tl3l"],
            ["tl2l", "tl1l", "tl5l"],
            ["tl1l", "tl3l", "tl5l"],
            ["tl5l", "tl4l", "tl2l"],
            ["tl5l", "tl3l", "tl4l"],
            {"group":"ARaz1_taillight_LL"},
            ["tl1ll", "tl2ll", "tl4ll"],
            ["tl4ll", "tl3ll", "tl1ll"],

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