{
"eyk800_ute_modern_lightbar": {
    "information":{
        "authors":"BeamNG",
        "name":"Modern Ute Light Bar",
        "value":1400
    },
    "slotType" : "etk800_lightbar",
    "slots": [
        ["type", "default", "description"],
        ["soundscape_siren","soundscape_siren_21", "Siren Audio"]
    ],
    "soundscape": [
        ["name", "src"],
        //affects siren location because siren soundscape part is loaded after
        {"node:":"f6r"}
    ],
  
    "controller": [
        ["fileName"],
        ["lightbar", {
          "defaultModeIndex": 1,
          "modes": [
              ["name", "config"],  
              ["Chase", [
                  ["electric", "value", "duration"],
                  
                    
                    ["wigwag_L", 1, 0.4],
                    ["wigwag_L", 0, 0.4],
                    ["wigwag_R", 0, 0.4],
                    ["wigwag_R", 1, 0.4],
                    
                    ["blue_1", 1, 0.15],
                    ["blue_1", 0, 0.2],
                    ["blue_1", 1, 0.1],
                    ["blue_1", 0, 0.25],

                    ["blue_3", 0, 0.15],
                    ["blue_3", 1, 0.2],
                    ["blue_3", 0, 0.1],
                    ["blue_3", 1, 0.05],

                    ["blue_4", 1, 0.2],
                    ["blue_4", 0, 0.1],
                    ["blue_4", 1, 0.05],
                    ["blue_4", 0, 0.1],
                    ["blue_4", 1, 0.05],
                    ["blue_4", 0, 0.2],

                    ["red_1", 0, 0.1],
                    ["red_1", 1, 0.3],
                    ["red_1", 0, 0.1],
                    ["red_1", 1, 0.15],

                    ["red_3", 1, 0.25],
                    ["red_3", 0, 0.2],
                    ["red_3", 1, 0.1],
                    ["red_3", 0, 0.25],

                    ["red_4", 0, 0.1],
                    ["red_4", 1, 0.1],
                    ["red_4", 0, 0.1],
                    ["red_4", 1, 0.3],
                    
                    ["blue_2", 0, 0.25],
                    ["blue_2", 1, 0.15],
                    ["blue_2", 0, 0.1],
                    ["blue_2", 1, 0.15],
                    ["blue_2", 0, 0.1],
                    ["blue_2", 1, 0.15]
                    
                    ["red_2", 0, 0.25],
                    ["red_2", 1, 0.15],
                    ["red_2", 0, 0.1],
                    ["red_2", 1, 0.15],
                    ["red_2", 0, 0.1],
                    ["red_2", 1, 0.15]

                    ["white_2r", 0, 0.4],
                    ["white_2r", 1, 0.05],
                    ["white_2r", 0, 0.1],
                    ["white_2r", 1, 0.05],
                    ["white_2r", 0, 0.1],
                    ["white_2r", 1, 0.05]
                    
                    ["white_2l", 0, 0.4],
                    ["white_2l", 1, 0.05],
                    ["white_2l", 0, 0.1],
                    ["white_2l", 1, 0.05],
                    ["white_2l", 0, 0.1],
                    ["white_2l", 1, 0.05],
                    
                    ["white_3l", 0, 0.4],
                    ["white_3l", 1, 0.05],
                    ["white_3l", 0, 0.1],
                    ["white_3l", 1, 0.05],
                    ["white_3l", 0, 0.1],
                    ["white_3l", 1, 0.05],
                    
                    ["white_3r", 0, 0.4],
                    ["white_3r", 1, 0.05],
                    ["white_3r", 0, 0.1],
                    ["white_3r", 1, 0.05],
                    ["white_3r", 0, 0.1],
                    ["white_3r", 1, 0.05],
                      
                    ["orange_3l", 0, 0],
                    ["orange_2l", 0, 0],
                    ["orange_1l", 0, 0],
                    ["orange_1r", 0, 0],
                    ["orange_2r", 0, 0],
                    ["orange_3r", 0, 0],
                    ["white_1l", 0, 0],
                    ["white_1r", 0, 0],
                  ]
              ],
              ["Scene", [
                  ["electric", "value", "duration"],
                    
                    ["wigwag_L", 1, 0.5],
                    ["wigwag_L", 0, 0.5],
                    ["wigwag_R", 0, 0.5],
                    ["wigwag_R", 1, 0.5],
                  
                    ["blue_1", 1, 0.3],
                    ["blue_1", 0, 0.3],
                    ["blue_1", 1, 0.3],
                    ["blue_1", 0, 0.3],

                    ["blue_3", 1, 0.3],
                    ["blue_3", 0, 0.3],
                    ["blue_3", 1, 0.3],
                    ["blue_3", 0, 0.3],

                    ["blue_4", 1, 0.3],
                    ["blue_4", 0, 0.3],
                    ["blue_4", 1, 0.3],
                    ["blue_4", 0, 0.3],

                    ["red_1", 0, 0.3],
                    ["red_1", 1, 0.3],
                    ["red_1", 0, 0.3],
                    ["red_1", 1, 0.3],

                    ["red_3", 0, 0.3],
                    ["red_3", 1, 0.3],
                    ["red_3", 0, 0.3],
                    ["red_3", 1, 0.3],

                    ["red_4", 0, 0.3],
                    ["red_4", 1, 0.3],
                    ["red_4", 0, 0.3],
                    ["red_4", 1, 0.3],

                    ["white_1r", 1, 0],
                    ["white_1l", 1, 0],
                    ["white_2r", 1, 0],
                    ["white_2l", 1, 0],

                    
                    ["white_3r", 1, 0.1],
                    ["white_3l", 1, 0.1],
                    ["white_3r", 1, 0.9],
                    ["white_3l", 1, 0.9],
           
                    ["orange_3l", 0, 0],
                    ["orange_2l", 0, 0],
                    ["orange_1l", 0, 0],
                    ["orange_1r", 0, 0],
                    ["orange_2r", 0, 0],
                    ["orange_3r", 0, 0],
                    ["red_2", 0, 0],
                    ["blue_2", 0, 0],

                  ]
              ],
              ["Left Signal", [
                  ["electric", "value", "duration"],
                  //turn off unused electrics  
                    ["red_1", 0, 0],
                    ["red_2", 0, 0],
                    ["red_3", 0, 0],
                    ["blue_1", 0, 0],
                    ["blue_2", 0, 0],
                    ["blue_3", 0, 0],
                    ["white_1l", 0, 0],
                    ["white_1r", 0, 0],
                    
                    
                    ["wigwag_L", 1, 0.5],
                    ["wigwag_L", 0, 0.5],
                    ["wigwag_R", 0, 0.5],
                    ["wigwag_R", 1, 0.5],
  
                    ["red_4", 1, 0.2],
                    ["blue_4", 0, 0.2],
                    ["red_4", 0, 0.2],
                    ["blue_4", 1, 0.2],

                    ["orange_3r", 0, 0.1],
                    ["orange_2r", 0, 0.2],
                    ["orange_1r", 0, 0.3],
                    ["orange_1l", 0, 0.4],
                    ["orange_2l", 0, 0.5],
                    ["orange_3l", 0, 0.6],

                    ["orange_3r", 1, 0.9],
                    ["orange_2r", 1, 0.8],
                    ["orange_1r", 1, 0.7],
                    ["orange_1l", 1, 0.6],
                    ["orange_2l", 1, 0.5],
                    ["orange_3l", 1, 0.4],

                    ["white_2r", 1, 0],
                    ["white_2l", 1, 0],
                    
                    ["white_3r", 1, 0],
                    ["white_3l", 1, 0],

                   
                  ]
              ],
              ["Right Signal", [
                  ["electric", "value", "duration"],
                    //turn off unused electrics  
                    ["red_1", 0, 0],
                    ["red_2", 0, 0],
                    ["red_3", 0, 0],
                    ["blue_1", 0, 0],
                    ["blue_2", 0, 0],
                    ["blue_3", 0, 0],
                    ["white_1l", 0, 0],
                    ["white_1r", 0, 0],

                    
                    ["wigwag_L", 1, 0.5],
                    ["wigwag_L", 0, 0.5],
                    ["wigwag_R", 0, 0.5],
                    ["wigwag_R", 1, 0.5],
                    
                    ["red_4", 1, 0.2],
                    ["blue_4", 0, 0.2],
                    ["red_4", 0, 0.2],
                    ["blue_4", 1, 0.2],

                    ["orange_3l", 0, 0.1],
                    ["orange_2l", 0, 0.2],
                    ["orange_1l", 0, 0.3],
                    ["orange_1r", 0, 0.4],
                    ["orange_2r", 0, 0.5],
                    ["orange_3r", 0, 0.6],

                    ["orange_3l", 1, 0.9],
                    ["orange_2l", 1, 0.8],
                    ["orange_1l", 1, 0.7],
                    ["orange_1r", 1, 0.6],
                    ["orange_2r", 1, 0.5],
                    ["orange_3r", 1, 0.4],

                    
                    ["white_2r", 1, 0],
                    ["white_2l", 1, 0],
                    ["white_3r", 1, 0],
                    ["white_3l", 1, 0],
                  ]
              ]
          ]
        }]
    ],

    "glowMap":{
          "mod_lightbar_l1r":                 {"simpleFunction":{"blue_1":0.22,"orange_1r":1.0}, "off":"policeparts_lights_white", "on":"policeparts_lights_blue_on", "on_intense": "policeparts_lights_orange_on"},
          "mod_lightbar_l2r":                 {"simpleFunction":{"blue_2":0.22,"orange_2r":1.0,"white_1r":1.0}, "off":"policeparts_lights_white", "on":"policeparts_lights_blue_on", "on_intense": "invis"},
          "mod_lightbar_l2r_2":               {"simpleFunction":{"white_1r":0.22,"orange_2r":1.0,"blue_2":1.0}, "off":"invis", "on":"policeparts_lights_white_on", "on_intense": "invis"},
          "mod_lightbar_l2r_3":               {"simpleFunction":{"orange_2r":0.22,"blue_2":1.0,"white_1r":1.0}, "off":"invis", "on":"policeparts_lights_orange_on", "on_intense": "invis"},
          "mod_lightbar_l3r":                 {"simpleFunction":{"blue_3":0.22,"orange_3r":1.0}, "off":"policeparts_lights_white", "on":"policeparts_lights_blue_on", "on_intense": "policeparts_lights_orange_on"},
          "mod_lightbar_l4r":                 {"simpleFunction":"blue_4", "off":"policeparts_lights_white", "on":"policeparts_lights_blue_on"},
          "mod_lightbar_l5r":                 {"simpleFunction":"white_2r", "off":"policeparts_lights_white", "on":"policeparts_lights_white_on"},
          "mod_lightbar_l1l":                 {"simpleFunction":{"red_1":0.22,"orange_1l":1.0}, "off":"policeparts_lights_white", "on":"policeparts_lights_red_on", "on_intense": "policeparts_lights_orange_on"},
          "mod_lightbar_l2l":                 {"simpleFunction":{"red_2":0.22,"orange_2l":1.0,"white_1l":1.0}, "off":"policeparts_lights_white", "on":"policeparts_lights_red_on", "on_intense": "invis"},
          "mod_lightbar_l2l_2":               {"simpleFunction":{"white_1l":0.22,"orange_2l":1.0,"red_2":1.0}, "off":"invis", "on":"policeparts_lights_white_on", "on_intense": "invis"},
          "mod_lightbar_l2l_3":               {"simpleFunction":{"orange_2l":0.22,"red_2":1.0,"white_1l":1.0}, "off":"invis", "on":"policeparts_lights_orange_on", "on_intense": "invis"},
          "mod_lightbar_l3l":                 {"simpleFunction":{"red_3":0.22,"orange_3l":1.0}, "off":"policeparts_lights_white", "on":"policeparts_lights_red_on", "on_intense": "policeparts_lights_orange_on"},
          "mod_lightbar_l4l":                 {"simpleFunction":"red_4", "off":"policeparts_lights_white", "on":"policeparts_lights_red_on"},
          "mod_lightbar_l5l":                 {"simpleFunction":"white_2l", "off":"policeparts_lights_white", "on":"policeparts_lights_white_on"},
          
          "light_bar_LED_US_floodlight_L":                 {"simpleFunction":"white_3l", "off":"policeparts_lights_white", "on":"policeparts_lights_white_on"},
          "light_bar_LED_US_floodlight_R":                 {"simpleFunction":"white_3r", "off":"policeparts_lights_white", "on":"policeparts_lights_white_on"},
          
          "generic_flasher_led_L":                   {"simpleFunction":"red_4", "off":"policeparts_lights_red", "on":"policeparts_lights_red_on"},
          "generic_flasher_led_R":                   {"simpleFunction":"blue_4", "off":"policeparts_lights_blue", "on":"policeparts_lights_blue_on"},
    },
    "props": [
        ["func"      , "mesh"            , "idRef:", "idX:", "idY:"          , "baseRotation"        , "rotation"               , "translation"        , "min", "max", "offset", "multiplier"],
        {
            "lightInnerAngle":0,
            "lightOuterAngle":100,
            "lightBrightness":0.6,
            "lightRange":15,
            "lightColor":{"r":235, "g":235, "b":255, "a":255}
            "flareName":"vehicleBrakeLightFlare",
            "lightCastShadows":false,
            "texSize":64,
            "shadowSoftness":1,
            "flareScale":0.04,
            "cookieName":"/art/special/BNG_light_cookie_lightbar.dds"
        },
        ["white_2r"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":60, "y":-90, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.98, "y":0.50, "z":0.02},"deformGroup":"lightbar_break"}],
        ["white_2l"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":60, "y":-90, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.98, "y":0.50, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["white_2r"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":60, "y":-90, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.98, "y":0.50, "z":0.02},"deformGroup":"lightbar_break"}],
        ["white_2l"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":60, "y":-90, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.98, "y":0.50, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["white_1l"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.4, "y":0.80, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["white_1l"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":180, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.4, "y":0.20, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["white_1r"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.4, "y":0.80, "z":0.02},"deformGroup":"lightbar_break"}],
        ["white_1r"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":180, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.4, "y":0.20, "z":0.02},"deformGroup":"lightbar_break"}],
        //DEBUG CONE FLEXBODY: "spotlight_cone"
        {
            "lightBrightness":0.8,
            "lightColor":{"r":0, "g":0, "b":455, "a":2500}
        },
        ["blue_4"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":-30, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.90, "y":0.60, "z":0.02},"deformGroup":"lightbar_break"}],
        ["blue_4"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":-150, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.90, "y":0.40, "z":0.02},"deformGroup":"lightbar_break"}],
        ["blue_3"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.65, "y":0.80, "z":0.02},"deformGroup":"lightbar_break"}],
        ["blue_3"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":180, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.65, "y":0.20, "z":0.02},"deformGroup":"lightbar_break"}],
        ["blue_2"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.4, "y":0.80, "z":0.02},"deformGroup":"lightbar_break"}],
        ["blue_2"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":180, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.4, "y":0.20, "z":0.02},"deformGroup":"lightbar_break"}],
        ["blue_1"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.15, "y":0.80, "z":0.02},"deformGroup":"lightbar_break"}],
        ["blue_1"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":180, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.15, "y":0.20, "z":0.02},"deformGroup":"lightbar_break"}],
        {
            "lightBrightness":0.6,
            "lightColor":{"r":455, "g":0, "b":0, "a":2500}
        },
        ["red_4"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":-30, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.90, "y":0.60, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["red_4"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":-150, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.90, "y":0.40, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["red_3"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.65, "y":0.80, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["red_3"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":180, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.65, "y":0.20, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["red_2"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.4, "y":0.80, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["red_2"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":180, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.4, "y":0.20, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["red_1"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.15, "y":0.80, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["red_1"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":180, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.15, "y":0.20, "z":-0.02},"deformGroup":"lightbar_break"}],
        {
            "lightColor":{"r":455, "g":240, "b":0, "a":2500}
        },
        ["orange_3r"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.65, "y":0.80, "z":0.02},"deformGroup":"lightbar_break"}],
        ["orange_3r"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":180, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.65, "y":0.20, "z":0.02},"deformGroup":"lightbar_break"}],
        ["orange_2r"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.4, "y":0.80, "z":0.02},"deformGroup":"lightbar_break"}],
        ["orange_2r"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":180, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.4, "y":0.20, "z":0.02},"deformGroup":"lightbar_break"}],
        ["orange_1r"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.15, "y":0.80, "z":0.02},"deformGroup":"lightbar_break"}],
        ["orange_1r"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2r", "bastion_lightbar_4", {"x":70, "y":180, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.15, "y":0.20, "z":0.02},"deformGroup":"lightbar_break"}],
        ["orange_3l"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":0, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.65, "y":0.80, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["orange_3l"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":180, "z":180} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.65, "y":0.20, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["orange_2l"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.4, "y":0.80, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["orange_2l"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":180, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.4, "y":0.20, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["orange_1l"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":0, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.15, "y":0.80, "z":-0.02},"deformGroup":"lightbar_break"}],
        ["orange_1l"    , "SPOTLIGHT"        , "bastion_lightbar_2","bastion_lightbar_2l", "bastion_lightbar_4", {"x":70, "y":180, "z":0} , {"x":0, "y":0, "z":0}    , {"x":0, "y":0, "z":0}, 0, 0, 0, 1, {"baseTranslation":{"x":0.15, "y":0.20, "z":-0.02},"deformGroup":"lightbar_break"}],

    ],
    
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["light_bar_LED_US_body", ["bastion_lightbar"], [], {"pos":{"x": 0.0, "y":0.27, "z":1.356}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.12, "z":1.15}}],
        ["light_bar_LED_US_floodlight_L", ["bastion_lightbar"], [], {"pos":{"x": 0.0, "y":0.27, "z":1.356}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        ["light_bar_LED_US_floodlight_R", ["bastion_lightbar"], [], {"pos":{"x": 0.0, "y":0.27, "z":1.356}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        ["light_bar_mount_hi", ["etk800_body"], [], {"pos":{"x": 0.0, "y":0.27, "z":1.35}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.30}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_lights_white", "deformMaterialDamaged":"policeparts_lights_white"},
        ["light_bar_LED_US_floodlight_L_light", ["bastion_lightbar"], [], {"pos":{"x": 0.0, "y":0.27, "z":1.356}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        ["light_bar_LED_US_floodlight_R_light", ["bastion_lightbar"], [], {"pos":{"x": 0.0, "y":0.27, "z":1.356}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        ["light_bar_LED_US_lights", ["bastion_lightbar"], [], {"pos":{"x": 0.0, "y":0.27, "z":1.356}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.12, "z":1.15}}],
        {"deformGroup":"lightbar_break", "deformMaterialBase":"policeparts_glass_white", "deformMaterialDamaged":"policeparts_glass_white_dmg"},
        ["light_bar_LED_US_glass", ["bastion_lightbar"], [], {"pos":{"x": 0.0, "y":0.27, "z":1.356}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        ["light_bar_LED_US_floodlight_L_glass", ["bastion_lightbar"], [], {"pos":{"x": 0.0, "y":0.27, "z":1.356}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        ["light_bar_LED_US_floodlight_R_glass", ["bastion_lightbar"], [], {"pos":{"x": 0.0, "y":0.27, "z":1.356}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1.15, "y":1.15, "z":1.15}}],
        {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         {"group":"bastion_lightbar"},
         {"selfCollision":true},
         {"collision":true},
         {"nodeWeight":0.76},
         {"frictionCoef":0.7},
         {"nodeMaterial":"|NM_METAL"},
         ["bastion_lightbar_1", 0.00000, 0.17000, 1.49067],
         ["bastion_lightbar_2", 0.00000, 0.17000, 1.42067],
         ["bastion_lightbar_3", 0.00000, 0.41000, 1.49067],
         ["bastion_lightbar_4", 0.00000, 0.41000, 1.42067],

         ["bastion_lightbar_1l", 0.55000, 0.17000, 1.49067],
         ["bastion_lightbar_2l", 0.55000, 0.17000, 1.42067],
         ["bastion_lightbar_3l", 0.55000, 0.41000, 1.49067],
         ["bastion_lightbar_4l", 0.55000, 0.41000, 1.42067],

         ["bastion_lightbar_1r", -0.55000, 0.17000, 1.49067],
         ["bastion_lightbar_2r", -0.55000, 0.17000, 1.42067],
         ["bastion_lightbar_3r", -0.55000, 0.41000, 1.49067],
         ["bastion_lightbar_4r", -0.55000, 0.41000, 1.42067],
         {"group":""}
    ],
    "beams": [
          ["id1:", "id2:"],
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"beamSpring":701000,"beamDamp":60},
          {"beamDeform":6000,"beamStrength":"FLT_MAX"},
          //Main shape
          {"deformationTriggerRatio":0.02},
          {"deformGroup":"lightbar_break"},
          ["bastion_lightbar_1","bastion_lightbar_2"],
          ["bastion_lightbar_2","bastion_lightbar_3"],
          ["bastion_lightbar_3","bastion_lightbar_4"],
          ["bastion_lightbar_4","bastion_lightbar_1"],
          ["bastion_lightbar_1","bastion_lightbar_3"],
          ["bastion_lightbar_2","bastion_lightbar_4"],

          ["bastion_lightbar_1l","bastion_lightbar_2l"],
          ["bastion_lightbar_2l","bastion_lightbar_3l"],
          ["bastion_lightbar_3l","bastion_lightbar_4l"],
          ["bastion_lightbar_4l","bastion_lightbar_1l"],
          ["bastion_lightbar_1l","bastion_lightbar_3l"],
          ["bastion_lightbar_2l","bastion_lightbar_4l"],

          ["bastion_lightbar_1r","bastion_lightbar_2r"],
          ["bastion_lightbar_2r","bastion_lightbar_3r"],
          ["bastion_lightbar_3r","bastion_lightbar_4r"],
          ["bastion_lightbar_4r","bastion_lightbar_1r"],
          ["bastion_lightbar_1r","bastion_lightbar_3r"],
          ["bastion_lightbar_2r","bastion_lightbar_4r"],

          ["bastion_lightbar_1r","bastion_lightbar_1"],
          ["bastion_lightbar_2r","bastion_lightbar_2"],
          ["bastion_lightbar_3r","bastion_lightbar_3"],
          ["bastion_lightbar_4r","bastion_lightbar_4"],

          ["bastion_lightbar_1l","bastion_lightbar_1"],
          ["bastion_lightbar_2l","bastion_lightbar_2"],
          ["bastion_lightbar_3l","bastion_lightbar_3"],
          ["bastion_lightbar_4l","bastion_lightbar_4"],

          //Center to left cross-beams
          ["bastion_lightbar_4l","bastion_lightbar_3"],
          ["bastion_lightbar_3l","bastion_lightbar_4"],
          ["bastion_lightbar_3","bastion_lightbar_1l"],
          ["bastion_lightbar_3l","bastion_lightbar_1"],
          ["bastion_lightbar_1","bastion_lightbar_2l"],
          ["bastion_lightbar_2","bastion_lightbar_1l"],
          ["bastion_lightbar_2l","bastion_lightbar_4"],
          ["bastion_lightbar_4l","bastion_lightbar_2"],

          ["bastion_lightbar_4l","bastion_lightbar_1"],
          ["bastion_lightbar_2l","bastion_lightbar_3"],
          ["bastion_lightbar_4","bastion_lightbar_1l"],
          ["bastion_lightbar_2","bastion_lightbar_3l"],

          //Center to right cross-beams
          ["bastion_lightbar_4r","bastion_lightbar_3"],
          ["bastion_lightbar_3r","bastion_lightbar_4"],
          ["bastion_lightbar_3","bastion_lightbar_1r"],
          ["bastion_lightbar_3r","bastion_lightbar_1"],
          ["bastion_lightbar_1","bastion_lightbar_2r"],
          ["bastion_lightbar_2","bastion_lightbar_1r"],
          ["bastion_lightbar_2r","bastion_lightbar_4"],
          ["bastion_lightbar_4r","bastion_lightbar_2"],

          ["bastion_lightbar_4r","bastion_lightbar_1"],
          ["bastion_lightbar_2r","bastion_lightbar_3"],
          ["bastion_lightbar_4","bastion_lightbar_1r"],
          ["bastion_lightbar_2","bastion_lightbar_3r"],
          {"deformGroup":""},
          {"beamSpring":401000,"beamDamp":60},
          {"beamDeform":5000,"beamStrength":12000},
          //To body
          {"breakGroup":"lightbar_breakl"},
          ["bastion_lightbar_2l","rf1l"],
          ["bastion_lightbar_2l","rf2l"],
          //["bastion_lightbar_2l","rf1"],
          //["bastion_lightbar_2l","rf2"],
          ["bastion_lightbar_4l","rf1l"],
          ["bastion_lightbar_4l","rf2l"],
          //["bastion_lightbar_4l","rf1"],
          ["bastion_lightbar_4l","rf2"],

          ["bastion_lightbar_1l","rf1l"],
          ["bastion_lightbar_1l","rf2l"],
          ["bastion_lightbar_1l","rf1"],
         //["bastion_lightbar_1l","rf2"],
          ["bastion_lightbar_3l","rf1l"],
          ["bastion_lightbar_3l","rf2l"],
          ["bastion_lightbar_3l","rf1"],
          //["bastion_lightbar_3l","rf2"],

          {"breakGroup":"lightbar_breakr"},
          ["bastion_lightbar_2r","rf1r"],
          ["bastion_lightbar_2r","rf2r"],
          //["bastion_lightbar_2r","rf1"],
          //["bastion_lightbar_2r","rf2"],
          ["bastion_lightbar_4r","rf1r"],
          ["bastion_lightbar_4r","rf2r"],
          //["bastion_lightbar_4r","rf1"],
          ["bastion_lightbar_4r","rf2"],

          ["bastion_lightbar_1r","rf1r"],
          ["bastion_lightbar_1r","rf2r"],
          ["bastion_lightbar_1r","rf1"],
          //["bastion_lightbar_1r","rf2"],
          ["bastion_lightbar_3r","rf1r"],
          ["bastion_lightbar_3r","rf2r"],
          ["bastion_lightbar_3r","rf1"],
          //["bastion_lightbar_3r","rf2"],
          {"breakGroup":""},
          
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0}
    ],
    "quads": [
          ["id1:","id2:","id3:","id4:"],
          {"group":"bastion_lightbar"},
          {"dragCoef":10},
          ["bastion_lightbar_3l","bastion_lightbar_4l","bastion_lightbar_4","bastion_lightbar_3"],
          ["bastion_lightbar_1l","bastion_lightbar_3l","bastion_lightbar_3","bastion_lightbar_1"],
          ["bastion_lightbar_1l","bastion_lightbar_2l","bastion_lightbar_4l","bastion_lightbar_3l"],
          ["bastion_lightbar_1","bastion_lightbar_2","bastion_lightbar_2l","bastion_lightbar_1l"],
          ["bastion_lightbar_4l","bastion_lightbar_2l","bastion_lightbar_2","bastion_lightbar_4"],

          ["bastion_lightbar_3","bastion_lightbar_4","bastion_lightbar_4r","bastion_lightbar_3r"],
          ["bastion_lightbar_1","bastion_lightbar_3","bastion_lightbar_3r","bastion_lightbar_1r"],
          ["bastion_lightbar_3r","bastion_lightbar_4r","bastion_lightbar_2r","bastion_lightbar_1r"],
          ["bastion_lightbar_1r","bastion_lightbar_2r","bastion_lightbar_2","bastion_lightbar_1"],
          ["bastion_lightbar_4","bastion_lightbar_2","bastion_lightbar_2r","bastion_lightbar_4r"],
          {"group":""}
    ]
},
}