{
"revuelto_bumper_F": {
    "information":{
        "authors":"BeamNG",
        "name":"Front Bumper",
        "value":450,
    },
    "slotType" : "revuelto_bumper_F",
    "slots": [
        ["type", "default", "description"],
        ["revuelto_lip_F","revuelto_lip_F", "Front Lip"],
        ["revuelto_licenseplate_F","revuelto_licenseplate_F_EU", "Front License Plate"],
        ["revuelto_sidemarker_FR","revuelto_sidemarker_FR", "Front Right Side Marker"],
        ["revuelto_sidemarker_FL","revuelto_sidemarker_FL", "Front Left Side Marker"],
        ["revuelto_flashers_bumper_F","", "Concealed Flashers"],
    ],
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["revuelto_bumper_F", ["revuelto_bumper_F"]],
         ["revuelto_bumpersignal_backing_F", ["revuelto_bumper_F"]],
         {"deformGroup":"bumpersignal_FR_break", "deformMaterialBase":"revuelto_details", "deformMaterialDamaged":"revuelto_details"},
         ["revuelto_drl_R", ["revuelto_bumper_F"]],
         {"deformGroup":"bumpersignal_FL_break", "deformMaterialBase":"revuelto_details", "deformMaterialDamaged":"revuelto_details"},
         ["revuelto_drl_L", ["revuelto_bumper_F"]],
         {"deformGroup":""},
    ],
    "nodes": [
         ["id", "posX", "posY", "posZ"],
         //--FRONT BUMPER--
         {"collision":true}
         {"selfCollision":true},
         {"frictionCoef":0.8},
         {"nodeMaterial":"|NM_PLASTIC"},

         {"group":"revuelto_bumper_F"},
         {"nodeWeight":0.2},
         ["fb1rrr", -1.00077, -1.59819, 0.69791],
         ["fb1rr", -0.87679, -1.88797, 0.66894],
         //["fb1r", -0.55135, -2.06668, 0.52934],
         //["fb1", 0.00011, -2.15768, 0.50634],
         //["fb1l", 0.55157, -2.06668, 0.52934],
         ["fb1ll", 0.87702, -1.88797, 0.66894],
         ["fb1lll", 1.00099, -1.59819, 0.69791],

         ["fb2rrr", -1.00469, -1.70032, 0.56639],
         ["fb2rr", -0.84134, -2.14544, 0.48592],
         ["fb2r", -0.42517, -2.30726, 0.42981],
         ["fb2", 0.00011, -2.42859, 0.40058],
         ["fb2l", 0.42540, -2.30726, 0.42981],
         ["fb2ll", 0.84156, -2.14544, 0.48592],
         ["fb2lll", 1.00469, -1.70032, 0.56639],

         ["fb3rrr", -0.96465, -1.72562, 0.13010],
         ["fb3rr", -0.82784, -2.17330, 0.15019],
         ["fb3r", -0.48510, -2.42509, 0.15131],
         ["fb3", 0.00011, -2.54178, 0.17091],
         ["fb3l", 0.48533, -2.42509, 0.15131],
         ["fb3ll", 0.82807, -2.17330, 0.15019],
         ["fb3lll", 0.98955, -1.78076, 0.13010],

         {"nodeWeight":0.3},
         {"group":""},
         ["fb4r", -0.43262, -2.20562, 0.30000, {"collision":false, "selfCollision":false}],
         ["fb4l", 0.43284, -2.20562, 0.30000, {"collision":false, "selfCollision":false}],

    ],
    "beams": [
          ["id1:", "id2:"],
          //--FRONT BUMPER--
          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},

          //main shape
          {"beamSpring":101000,"beamDamp":20},
          {"beamDeform":20000,"beamStrength":59000},
          {"deformLimitExpansion":1.2},
          ["fb3rrr", "fb2rrr"],
          ["fb2rrr", "fb1rrr", {"deformGroup":"bumpersignal_FR_break", "deformationTriggerRatio":0.01}],
          ["fb3rr", "fb2rr"],
          ["fb2rr", "fb1rr"],
          ["fb3r", "fb2r"],
          ["fb2r", "fb1r"],
          ["fb3", "fb2"],
          ["fb2", "fb1"],
          ["fb3l", "fb2l"],
          ["fb2l", "fb1l"],
          ["fb3ll", "fb2ll"],
          ["fb2ll", "fb1ll"],
          ["fb3lll", "fb2lll"],
          ["fb2lll", "fb1lll", {"deformGroup":"bumpersignal_FL_break", "deformationTriggerRatio":0.01}],
          ["fb3rrr", "fb3rr"],
          ["fb3rr", "fb3r"],
          ["fb3r", "fb3"],
          ["fb3", "fb3l"],
          ["fb3l", "fb3ll"],
          ["fb3ll", "fb3lll"],
          ["fb2rrr", "fb2rr"],
          ["fb2rr", "fb2r"],
          ["fb2r", "fb2"],
          ["fb2", "fb2l"],
          ["fb2l", "fb2ll"],
          ["fb2ll", "fb2lll"],
          ["fb1rrr", "fb1rr", {"deformGroup":"bumpersignal_FR_break", "deformationTriggerRatio":0.01}],
          ["fb1rr", "fb1r"],
          ["fb1r", "fb1"],
          ["fb1", "fb1l"],
          ["fb1l", "fb1ll"],
          ["fb1ll", "fb1lll", {"deformGroup":"bumpersignal_FL_break", "deformationTriggerRatio":0.01}],

          //crossing
          {"deformLimitExpansion":""},
          {"beamDeform":9750,"beamStrength":59000},
          ["fb3lll", "fb2ll"],
          ["fb2lll", "fb3ll"],
          ["fb3ll", "fb2l"],
          ["fb2ll", "fb3l"],
          ["fb3l", "fb2"],
          ["fb2l", "fb3"],
          ["fb3", "fb2r"],
          ["fb2", "fb3r"],
          ["fb3r", "fb2rr"],
          ["fb2r", "fb3rr"],
          ["fb3rr", "fb2rrr"],
          ["fb2rr", "fb3rrr"],
          ["fb2lll", "fb1ll"],
          ["fb1lll", "fb2ll", {"deformGroup":"bumpersignal_FL_break", "deformationTriggerRatio":0.01}],
          ["fb2ll", "fb1l"],
          ["fb1ll", "fb2l"],
          ["fb2l", "fb1"],
          ["fb1l", "fb2"],
          ["fb2", "fb1r"],
          ["fb1", "fb2r"],
          ["fb2r", "fb1rr"],
          ["fb1r", "fb2rr"],
          ["fb2rr", "fb1rrr", {"deformGroup":"bumpersignal_FR_break", "deformationTriggerRatio":0.01}],
          ["fb1rr", "fb2rrr"],

          //rigids
          {"beamDeform":3200,"beamStrength":59000},
          //vertical
          ["fb3lll", "fb1lll"],
          ["fb3ll", "fb1ll"],
          ["fb3l", "fb1l"],
          ["fb3", "fb1"],
          ["fb3r", "fb1r"],
          ["fb3rr", "fb1rr"],
          ["fb3rrr", "fb1rrr"],
          //widthwise
          {"beamDeform":3500,"beamStrength":120000},
          ["fb1lll", "fb1l"],
          ["fb1ll", "fb1"],
          ["fb1l", "fb1r"],
          ["fb1", "fb1rr"],
          ["fb1r", "fb1rrr"],
          ["fb2lll", "fb2l"],
          ["fb2ll", "fb2"],
          ["fb2l", "fb2r"],
          ["fb2", "fb2rr"],
          ["fb2r", "fb2rrr"],
          ["fb3lll", "fb3l"],
          ["fb3ll", "fb3"],
          ["fb3l", "fb3r"],
          ["fb3", "fb3rr"],
          ["fb3r", "fb3rrr"],

          //rigidifier
          {"beamDeform":3500,"beamStrength":"FLT_MAX"},
          ["fb4l", "fb4r"],
          ["fb4l", "fb3l"],
          ["fb4l", "fb3ll"],
          ["fb4l", "fb3"],
          ["fb4r", "fb3"],
          ["fb4r", "fb3r"],
          ["fb4r", "fb3rr"],
          ["fb4l", "fb3r"],
          ["fb4r", "fb3l"],
          {"beamDeform":3500,"beamStrength":"FLT_MAX"},
          ["fb4r", "fb2"],
          ["fb4r", "fb1"],
          ["fb4r", "fb2r"],
          ["fb4r", "fb1r"],
          ["fb4r", "fb2rr"],
          ["fb4r", "fb1rr"],
          ["fb4r", "fb3rrr"],
          ["fb4r", "fb2rrr"],
          ["fb4r", "fb1rrr"],
          ["fb4l", "fb2"],
          ["fb4l", "fb1"],
          ["fb4l", "fb2l"],
          ["fb4l", "fb1l"],
          ["fb4l", "fb2ll"],
          ["fb4l", "fb1ll"],
          ["fb4l", "fb3lll"],
          ["fb4l", "fb2lll"],
          ["fb4l", "fb1lll"],

          //attach
          {"beamSpring":201000,"beamDamp":40},
          {"beamDeform":4750,"beamStrength":12500},
          {"breakGroup":"frontbumper_a_R"},
          {"deformGroup":"bumpersignal_FR_break", "deformationTriggerRatio":0.01}
          ["fbs4rrr", "fb1rrr"],
          ["fbs4rrr", "fb1rr"],
          ["fbs4rrr", "fb2rrr"],
          ["fb1rrr", "fbs2rr"],
          ["fbs2rrr", "fb3rrr"],
          ["fbs2rrr", "fb3rr"],
          ["fbs2rrr", "fb2rrr"],
          ["fb3rrr", "fbs2rr"],
          ["fbs1rr", "fb3rr"],
          ["fbs1rr", "fb3rrr"],
          ["fbs1rr", "fb2rr"],
          {"breakGroup":"frontbumper_a_L"},
          {"deformGroup":"bumpersignal_FL_break", "deformationTriggerRatio":0.01}
          ["fbs4lll", "fb1lll"],
          ["fbs4lll", "fb1ll"],
          ["fbs4lll", "fb2lll"],
          ["fb1lll", "fbs2ll"],
          ["fbs2lll", "fb3lll"],
          ["fbs2lll", "fb3ll"],
          ["fbs2lll", "fb2lll"],
          ["fb3lll", "fbs2ll"],
          ["fbs1ll", "fb3ll"],
          ["fbs1ll", "fb3lll"],
          ["fbs1ll", "fb2ll"],
          {"deformGroup":""},
          {"beamDeform":2150,"beamStrength":12500},
          {"breakGroup":"frontbumper_M1"},
          {"deformGroup":"frontbumperflashers_break", "deformationTriggerRatio":0.01}
          ["fbs1", "fb4l"],
          ["fbs1", "fb4r"],
          ["fbs1", "fb3"],
          ["fbs1r", "fb4r"],
          ["fbs1l", "fb4l"],
          ["fbs3l", "fb4l"],
          ["fbs3r", "fb4r"],
          ["fb2", "fbs1"],
          {"breakGroup":"frontbumper_M2"},
          ["fb1", "bbf2"],
          ["fb1", "bbf2l"],
          ["fb1", "bbf2r"],
          ["bbf2", "fb1r"],
          ["fb1l", "bbf2"],
          ["fb2", "bbf2"],
          ["fb2", "bbf2r"],
          ["fb2", "bbf2l"],
          ["fb2l", "bbf2"],
          ["fb2r", "bbf2"],
          ["fb1", "bbf1"],
          ["fb1", "bbf1r"],
          ["fb1", "bbf1l"],
          {"deformGroup":""}

          //to fender
          {"beamSpring":201000,"beamDamp":20},
          {"beamDeform":2750,"beamStrength":8500},
          {"optional":true},
          {"breakGroup":"frontbumper_b_R"},
          ["fb1rrr", "fe3rrr"],
          ["fb1rrr", "fe2rr"],
          ["fb1rr", "fe3rrr"],
          ["fb1rr", "fe2rr"],
          ["fb1rr", "fe3rr"],
          ["fb1rrr", "fe4rrr"],
          {"breakGroup":"frontbumper_b_L"},
          ["fb1lll", "fe3lll"],
          ["fb1lll", "fe2ll"],
          ["fb1ll", "fe3lll"],
          ["fb1ll", "fe2ll"],
          ["fb1ll", "fe3ll"],
          ["fb1lll", "fe4lll"],
          {"optional":false},
          {"deformGroup":""}
          {"breakGroup":""},

          //front bumper support beams
          {"beamType":"|SUPPORT", "beamLongBound":4},
          {"beamSpring":101000,"beamDamp":20},
          {"beamDeform":7000,"beamStrength":425000},
          //to chassis
          ["fb2r", "fx3r"],
          ["fb2l", "fx3l"],

          ["fb1l", "bbf2l"],
          ["fb2l", "bbf1l"],
          ["fb4l", "bbf1l"],
          ["fb2r", "bbf1r"],
          ["fb1r", "bbf2r"],
          ["fb4r", "bbf1r"],
          ["fb2", "bbf1"],
          ["fb1", "bbf2"],
          ["fb2l", "fx1l"],
          ["fb1l", "fx3l"],
          ["fb2r", "fx1r"],
          ["fb1r", "fx3r"],
          ["fb2rrr", "f13rr"],
          ["fb1rrr", "f13rr"],
          ["fb2lll", "f13ll"],
          ["fb1lll", "f13ll"],

          ["fb1r", "fx1r"],
          ["fb3r", "fx3r"],
          ["fb3r", "fx1r"],
          ["fb3l", "fx1l"],
          ["fx1l", "fb1l"],
          ["fb3l", "fx3l"],

          ["fb3rr", "fx1r"],
          ["fb1rr", "fx3r"],
          ["fx3r", "fb3rr"],
          ["fx1r", "fb1rr"],
          ["fx1l", "fb3ll"],
          ["fb1ll", "fx3l"],
          ["fx3l", "fb3ll"],
          ["fb1ll", "fx1l"],

          ["fb1", "fx3r"],
          ["fb1", "fx3l"],
          ["fb3", "fx1r"],
          ["fb3", "fx1l"],

          //to bumpersupport
          {"beamDeform":5000,"beamStrength":425000},
          ["fb3rrr", "fbs2rr"],
          ["fb1rrr", "fbs2rr"],
          ["fb3lll", "fbs2ll"],
          ["fb1lll", "fbs2ll"],
          ["fb3ll", "fbs2lll"],
          ["fb1ll", "fbs4lll"],
          ["fb3rr", "fbs2rrr"],
          ["fb1rr", "fbs4rrr"],
          ["fbs3r", "fb2r"],
          ["fbs3r", "fb3r"],
          ["fbs3r", "fb1r"],
          ["fbs3l", "fb2l"],
          ["fbs3l", "fb1l"],
          ["fbs3l", "fb3l"],
          ["fbs1l", "fb3l"],
          ["fbs1l", "fb3"],
          ["fbs1", "fb3"],
          ["fbs1r", "fb3r"],
          ["fbs1r", "fb3"],
          ["fb4l", "fbs3l"],
          ["fb4r", "fbs3r"],
          ["fb4l", "fbs5"],
          ["fb4r", "fbs5"],

          //to fenders
          {"optional":true},
          ["fb2r", "fe1r"],
          ["fb2rr", "fe2rr"],
          ["fb2rrr", "fe3rrr"],
          ["fb1rrr", "fe4rrr"],
          ["fb1rr", "fe3rr"],
          ["fb1r", "fe2r"],
          ["fb2l", "fe1l"],
          ["fb2ll", "fe2ll"],
          ["fb2lll", "fe3lll"],
          ["fb1lll", "fe4lll"],
          ["fb1ll", "fe3ll"],
          ["fb1l", "fe2l"],
          {"beamType":"|SUPPORT", "beamLongBound":10},
          //to hood
          ["fb2r", "h4r"],
          ["fb2", "h4"],
          ["fb2l", "h4l"],
          {"optional":false},

          {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
          {"deformLimitExpansion":1.2},
    ],
    "triangles": [
            ["id1:","id2:","id3:"],
        {"triangleType":"NORMALTYPE"},
            //front bumper
            {"groundModel":"plastic"},
            {"dragCoef":4},
            //{"liftCoef":10},
            {"group":"revuelto_bumper_F"},
            ["fb2ll",  "fb3lll", "fb2lll"],
            ["fb2ll",  "fb3ll",  "fb3lll"],
            ["fb2ll",  "fb3l",   "fb3ll"],
            ["fb2ll",  "fb2l",   "fb3l"],
            ["fb2l",   "fb3",    "fb3l"],
            ["fb2l",   "fb2",    "fb3"],
            ["fb1",    "fb2",    "fb1l"],
            ["fb1l",   "fb2",    "fb2l"],
            ["fb1l",   "fb2l",   "fb2ll"],
            ["fb2ll",  "fb1ll",  "fb1l"],
            ["fb1ll",  "fb2ll",  "fb2lll"],
            ["fb2lll", "fb1lll", "fb1ll"],

            ["fb3rrr", "fb2rr",  "fb2rrr"],
            ["fb3rr",  "fb2rr",  "fb3rrr"],
            ["fb3r",   "fb2rr",  "fb3rr"],
            ["fb2r",   "fb2rr",  "fb3r"],
            ["fb3",    "fb2r",   "fb3r"],
            ["fb2",    "fb2r",   "fb3"],
            ["fb2",    "fb1",    "fb1r"],
            ["fb2",    "fb1r",   "fb2r"],
            ["fb2r",   "fb1r",   "fb2rr"],
            ["fb1rr",  "fb2rr",  "fb1r"],
            ["fb2rr",  "fb1rr",  "fb2rrr"],
            ["fb1rrr", "fb2rrr", "fb1rr"],
            {"liftCoef":""},
            {"group":""},
    ],
},
"revuelto_sidemarkers_F": {
    "information":{
        "authors":"BeamNG",
        "name":"Amber Front Marker Lights",
        "value":50,
    },
    "slotType" : "revuelto_sidemarkers_F",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         {"deformGroup":"bumpersignal_FR_break", "deformMaterialBase":"revuelto_lights", "deformMaterialDamaged":"revuelto_lights"},
         ["revuelto_bumpersignal_FR", ["revuelto_bumper_F"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound2", "deformVolume":0.2}],
         {"deformGroup":"bumpersignal_FL_break", "deformMaterialBase":"revuelto_lights", "deformMaterialDamaged":"revuelto_lights"},
         ["revuelto_bumpersignal_FL", ["revuelto_bumper_F"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound2", "deformVolume":0.2}],
         {"deformGroup":""},
    ],
    "glowMap":{
       "revuelto_markerlight_F": {"simpleFunction":{"lowhighbeam":1},                  "off":"revuelto_lights", "on":"revuelto_lights_on", "on_intense":"revuelto_lights_on_intense"},
    }
    "props": [
        ["func", "mesh", "idRef:", "idX:", "idY:", "baseRotation", "rotation", "translation", "min", "max", "offset", "multiplier"],
        //signal
        {
            "lightInnerAngle":0,
            "lightOuterAngle":130,
            "lightRange":20,
            "lightColor":{"r":255, "g":220, "b":0, "a":120},
            "lightAttenuation":{"x":0, "y":1, "z":1},
            "lightCastShadows":false,
            "flareName":"vehicleBrakeLightFlare",
        },
        ["lowhighbeam", "SPOTLIGHT", "fb1rrr", "fb1rr", "fb2rrr", {"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.2, "y":0.05, "z":0.005},"flareScale":0.03,"lightBrightness":0.03,"deformGroup":"bumpersignal_FR_break"}],
        ["lowhighbeam", "SPOTLIGHT", "fb1lll", "fb1ll", "fb2lll", {"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.2, "y":0.05, "z":-0.005},"flareScale":0.03,"lightBrightness":0.03,"deformGroup":"bumpersignal_FL_break"}],
    ],
},
"revuelto_sidemarkers_F_eu": {
    "information":{
        "authors":"BeamNG",
        "name":"Clear Front Reflectors",
        "value":50,
    },
    "slotType" : "revuelto_sidemarkers_F",
    "flexbodies": [
         ["mesh", "[group]:", "nonFlexMaterials"],
         ["revuelto_bumpersignal_FR", ["revuelto_bumper_F"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound2", "deformVolume":0.2}],
         ["revuelto_bumpersignal_FL", ["revuelto_bumper_F"],[]{"deformSound":"event:>Destruction>Vehicle>Glass>glassbreaksound2", "deformVolume":0.2}],
         {"deformGroup":""},
    ],
    "glowMap":{
       "revuelto_markerlight_F": {"simpleFunction":{"dummy":1},                  "off":"revuelto_lights_eu", "on":"revuelto_lights_eu_on", "on_intense":"revuelto_lights_on_intense"},
    }
},
}