require "DAMN_Parts";
require "DAMN_Spawns";

--***********************************************************
--**                   KI5 / bikinihorst                   **
--***********************************************************

DAMN.Parts:processConfigV2("DEV84", {
	["BumperFront"] = {
		partId = "DAMNBumperFront",
		itemToModel = {
			["Base.84cadillacDeVilleBumperFront0"] = "FrontBumper0",
			["Base.84cadillacDeVilleBumperFrontA"] = "FrontBumperA",
            ["Base.85gmBbodyBullbarFrontA"] = "FrontBullbarA",
		},
		default = "first",
	},
	["BumperRear"] = {
		partId = "DAMNBumperRear",
		itemToModel = {
			["Base.84cadillacDeVilleBumperRear0"] = "RearBumper0",
		},
		default = "first",
	},
    ["WindshieldArmor"] = {
		partId = "DAMNWindshieldArmor",
		itemToModel = {
			["Base.85gmBbodyWindshieldArmorW"] = "DEV84windaW",
            ["Base.85gmBbodyWindshieldArmorM"] = "DEV84windaM",
		},
	},
	["FrontLeftArmor"] = {
		partId = "DAMNFrontLeftArmor",
		itemToModel = {
			["Base.85gmBbodyFrontWindowArmorW"] = "DEV84leftWindowaW",
            ["Base.85gmBbodyFrontWindowArmorM"] = "DEV84leftWindowaM",
		},
	},
	["FrontRightArmor"] = {
		partId = "DAMNFrontRightArmor",
		itemToModel = {
			["Base.85gmBbodyFrontWindowArmorW"] = "DEV84rightWindowaW",
            ["Base.85gmBbodyFrontWindowArmorM"] = "DEV84rightWindowaM",
		},
	},
	["RearLeftArmor"] = {
		partId = "DAMNRearLeftArmor",
		itemToModel = {
			["Base.85gmBbodyRearWindowArmorW"] = "DEV84leftWindowraW",
            ["Base.85gmBbodyRearWindowArmorM"] = "DEV84leftWindowraM",
		},
	},
	["RearRightArmor"] = {
		partId = "DAMNRearRightArmor",
		itemToModel = {
			["Base.85gmBbodyRearWindowArmorW"] = "DEV84rightWindowraW",
            ["Base.85gmBbodyRearWindowArmorM"] = "DEV84rightWindowraM",
		},
	},
    ["BackLeftArmor"] = {
		partId = "DAMNBackLeftArmor",
		itemToModel = {
			["Base.85gmBbodyWagonBackWindowArmorW"] = "DEV84leftWindowbaW",
            ["Base.85gmBbodyWagonBackWindowArmorM"] = "DEV84leftWindowbaM",
		},
	},
	["BackRightArmor"] = {
		partId = "DAMNBackRightArmor",
		itemToModel = {
			["Base.85gmBbodyWagonBackWindowArmorW"] = "DEV84rightWindowbaW",
            ["Base.85gmBbodyWagonBackWindowArmorM"] = "DEV84rightWindowbaM",
		},
	},
    ["WindshieldRearArmorS"] = {
		partId = "DAMNWindshieldRearArmor",
		itemToModel = {
			["Base.85gmBbodyWindshieldRearArmorW"] = "DEV84windraW",
            ["Base.85gmBbodyWindshieldRearArmorM"] = "DEV84windraM",
		},
	},
    ["SpareTire"] = {
		partId = "DAMNSpareTire",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "na",
			["Base.85gmBbodyTire1"] = "na",
            ["Base.85gmBbodyTire3"] = "na",
            ["Base.85gmBbodyTire4"] = "na",
            ["Base.85gmBbodyTire5"] = "na",
		},
		default = "trve_random",
		noPartChance = 33,
	},
    ["TireFrontLeft"] = {
		partId = "TireFrontLeft",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0L",
			["Base.85gmBbodyTire1"] = "GM85Tire1L",
            ["Base.85gmBbodyTire3"] = "GM85Tire3L",
            ["Base.85gmBbodyTire4"] = "GM85Tire4L",
            ["Base.85gmBbodyTire5"] = "GM85Tire5L",
		},
	},
	["TireFrontRight"] = {
		partId = "TireFrontRight",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0R",
			["Base.85gmBbodyTire1"] = "GM85Tire1R",
            ["Base.85gmBbodyTire3"] = "GM85Tire3R",
            ["Base.85gmBbodyTire4"] = "GM85Tire4R",
            ["Base.85gmBbodyTire5"] = "GM85Tire5R",
		},
	},
	["TireRearLeft"] = {
		partId = "TireRearLeft",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0L",
			["Base.85gmBbodyTire1"] = "GM85Tire1L",
            ["Base.85gmBbodyTire3"] = "GM85Tire3L",
            ["Base.85gmBbodyTire4"] = "GM85Tire4L",
            ["Base.85gmBbodyTire5"] = "GM85Tire5L",
		},
	},
	["TireRearRight"] = {
		partId = "TireRearRight",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0R",
			["Base.85gmBbodyTire1"] = "GM85Tire1R",
            ["Base.85gmBbodyTire3"] = "GM85Tire3R",
            ["Base.85gmBbodyTire4"] = "GM85Tire4R",
            ["Base.85gmBbodyTire5"] = "GM85Tire5R",
		},
	},
    ["RoofrackSedan"] = {
		partId = "GM85Roofrack",
		itemToModel = {
			["Base.85gmBbodyRoofrack1"] = "Roofrack0",
		},
		default = "trve_random",
		noPartChance = 95,
	},
    ["RoofSedan"] = {
		partId = "GM85VinylRoof",
		itemToModel = {
			["Base.85gmBbodyVinylRoofBlack"] = "Roofb",
            ["Base.85gmBbodyVinylRoofMaroon"] = "Roofm",
            ["Base.85gmBbodyVinylRoofWhite"] = "Roofw",
            ["Base.85gmBbodyVinylRoofBrown"] = "Roofbr",
            ["Base.85gmBbodyVinylRoofBlue"] = "Roofbl",
		},
		default = "trve_random",
			noPartChance = 50,
	},
    ["RoofCoupe"] = {
		partId = "GM85VinylRoof",
		itemToModel = {
			["Base.85gmBbodyVinylRoofBlack"] = "Roofb",
            ["Base.85gmBbodyVinylRoofMaroon"] = "Roofm",
            ["Base.85gmBbodyVinylRoofWhite"] = "Roofw",
            ["Base.85gmBbodyVinylRoofBrown"] = "Roofbr",
            ["Base.85gmBbodyVinylRoofBlue"] = "Roofbl",
            ["Base.85gmBbodyVinylRoofQuarterBlack"] = "Roofbq",
            ["Base.85gmBbodyVinylRoofQuarterMaroon"] = "Roofmq",
            ["Base.85gmBbodyVinylRoofQuarterWhite"] = "Roofwq",
            ["Base.85gmBbodyVinylRoofQuarterBrown"] = "Roofbrq",
            ["Base.85gmBbodyVinylRoofQuarterBlue"] = "Roofblq",
		},
		default = "trve_random",
			noPartChance = 50,
	},
});