require "DAMN_Parts";
require "DAMN_Spawns";

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

DAMN.Parts:processConfigV2("DEL85", {
	["BumperFront"] = {
		partId = "DAMNBumperFront",
		itemToModel = {
			["Base.85oldsmobileDelta88BumperFront0"] = "FrontBumper0",
			["Base.85oldsmobileDelta88BumperFrontA"] = "FrontBumperA",
            ["Base.85gmBbodyBullbarFrontA"] = "FrontBullbarA",
		},
		default = "first",
	},
	["BumperRear"] = {
		partId = "DAMNBumperRear",
		itemToModel = {
			["Base.85oldsmobileDelta88BumperRear0"] = "RearBumper0",
            ["Base.85gmBbodyWagonBumperRear1"] = "RearBumper1",
            ["Base.85gmBbodyWagonBumperRear2"] = "RearBumper2",
		},
		default = "first",
	},
    ["WindshieldArmor"] = {
		partId = "DAMNWindshieldArmor",
		itemToModel = {
			["Base.85gmBbodyWindshieldArmorW"] = "DEL85windaW",
            ["Base.85gmBbodyWindshieldArmorM"] = "DEL85windaM",
		},
	},
	["FrontLeftArmor"] = {
		partId = "DAMNFrontLeftArmor",
		itemToModel = {
			["Base.85gmBbodyFrontWindowArmorW"] = "DEL85leftWindowaW",
            ["Base.85gmBbodyFrontWindowArmorM"] = "DEL85leftWindowaM",
		},
	},
	["FrontRightArmor"] = {
		partId = "DAMNFrontRightArmor",
		itemToModel = {
			["Base.85gmBbodyFrontWindowArmorW"] = "DEL85rightWindowaW",
            ["Base.85gmBbodyFrontWindowArmorM"] = "DEL85rightWindowaM",
		},
	},
	["RearLeftArmor"] = {
		partId = "DAMNRearLeftArmor",
		itemToModel = {
			["Base.85gmBbodyRearWindowArmorW"] = "DEL85leftWindowraW",
            ["Base.85gmBbodyRearWindowArmorM"] = "DEL85leftWindowraM",
		},
	},
	["RearRightArmor"] = {
		partId = "DAMNRearRightArmor",
		itemToModel = {
			["Base.85gmBbodyRearWindowArmorW"] = "DEL85rightWindowraW",
            ["Base.85gmBbodyRearWindowArmorM"] = "DEL85rightWindowraM",
		},
	},
    ["BackLeftArmor"] = {
		partId = "DAMNBackLeftArmor",
		itemToModel = {
			["Base.85gmBbodyWagonBackWindowArmorW"] = "DEL85leftWindowbaW",
            ["Base.85gmBbodyWagonBackWindowArmorM"] = "DEL85leftWindowbaM",
		},
	},
	["BackRightArmor"] = {
		partId = "DAMNBackRightArmor",
		itemToModel = {
			["Base.85gmBbodyWagonBackWindowArmorW"] = "DEL85rightWindowbaW",
            ["Base.85gmBbodyWagonBackWindowArmorM"] = "DEL85rightWindowbaM",
		},
	},
    ["WindshieldRearArmorS"] = {
		partId = "DAMNWindshieldRearArmor",
		itemToModel = {
			["Base.85gmBbodyWindshieldRearArmorW"] = "DEL85windraW",
            ["Base.85gmBbodyWindshieldRearArmorM"] = "DEL85windraM",
		},
	},
    ["SpareTire"] = {
		partId = "DAMNSpareTire",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "na",
			["Base.85gmBbodyTire1"] = "na",
            ["Base.85gmBbodyTire2"] = "na",
            ["Base.85gmBbodyTire3"] = "na",
            ["Base.85gmBbodyTire4"] = "na",
            ["Base.85gmBbodyTire5"] = "na",
            ["Base.85gmBbodyTire6"] = "na",
		},
		default = "trve_random",
		noPartChance = 33,
	},
    ["TireFrontLeft"] = {
		partId = "TireFrontLeft",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0L",
			["Base.85gmBbodyTire1"] = "GM85Tire1L",
            ["Base.85gmBbodyTire2"] = "GM85Tire2L",
            ["Base.85gmBbodyTire3"] = "GM85Tire3L",
            ["Base.85gmBbodyTire4"] = "GM85Tire4L",
            ["Base.85gmBbodyTire5"] = "GM85Tire5L",
            ["Base.85gmBbodyTire6"] = "GM85Tire6L",
		},
	},
	["TireFrontRight"] = {
		partId = "TireFrontRight",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0R",
			["Base.85gmBbodyTire1"] = "GM85Tire1R",
            ["Base.85gmBbodyTire2"] = "GM85Tire2R",
            ["Base.85gmBbodyTire3"] = "GM85Tire3R",
            ["Base.85gmBbodyTire4"] = "GM85Tire4R",
            ["Base.85gmBbodyTire5"] = "GM85Tire5R",
            ["Base.85gmBbodyTire6"] = "GM85Tire6R",
		},
	},
	["TireRearLeft"] = {
		partId = "TireRearLeft",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0L",
			["Base.85gmBbodyTire1"] = "GM85Tire1L",
            ["Base.85gmBbodyTire2"] = "GM85Tire2L",
            ["Base.85gmBbodyTire3"] = "GM85Tire3L",
            ["Base.85gmBbodyTire4"] = "GM85Tire4L",
            ["Base.85gmBbodyTire5"] = "GM85Tire5L",
            ["Base.85gmBbodyTire6"] = "GM85Tire6L",
		},
	},
	["TireRearRight"] = {
		partId = "TireRearRight",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0R",
			["Base.85gmBbodyTire1"] = "GM85Tire1R",
            ["Base.85gmBbodyTire2"] = "GM85Tire2R",
            ["Base.85gmBbodyTire3"] = "GM85Tire3R",
            ["Base.85gmBbodyTire4"] = "GM85Tire4R",
            ["Base.85gmBbodyTire5"] = "GM85Tire5R",
            ["Base.85gmBbodyTire6"] = "GM85Tire6R",
		},
	},
    ["RoofrackSedan"] = {
		partId = "GM85Roofrack",
		itemToModel = {
			["Base.85gmBbodyRoofrack1"] = "Roofrack0",
		},
		default = "trve_random",
			noPartChance = 90,
	},
    ["RoofrackWagon"] = {
		partId = "GM85Roofrack",
		itemToModel = {
			["Base.85gmBbodyRoofrack1"] = "Roofrack1",
            ["Base.85gmBbodyWagonRoofrack1"] = "Roofrack2",
            ["Base.85gmBbodyWagonRoofRails1"] = "Roofrails3",
		},
		allowedForRandom = {
            "Base.85gmBbodyWagonRoofrack1", "Base.85gmBbodyWagonRoofRails1"
        },
		default = "trve_random",
		noPartChance = 25,
	},
    ["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,
	},
});