require "DAMN_Parts";
require "DAMN_Spawns";

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

DAMN.Parts:processConfigV2("OLD84", {
	["BumperFront"] = {
		partId = "DAMNBumperFront",
		itemToModel = {
			["Base.84oldsmobile98BumperFront0"] = "FrontBumper0",
			["Base.84oldsmobile98BumperFrontA"] = "FrontBumperA",
            ["Base.85gmBbodyBullbarFrontA"] = "FrontBullbarA",
		},
		default = "first",
	},
	["BumperRear"] = {
		partId = "DAMNBumperRear",
		itemToModel = {
			["Base.84oldsmobile98BumperRear0"] = "RearBumper0",
		},
		default = "first",
	},
    ["WindshieldArmor"] = {
		partId = "DAMNWindshieldArmor",
		itemToModel = {
			["Base.85gmBbodyWindshieldArmorW"] = "OLD84windaW",
            ["Base.85gmBbodyWindshieldArmorM"] = "OLD84windaM",
		},
	},
	["FrontLeftArmor"] = {
		partId = "DAMNFrontLeftArmor",
		itemToModel = {
			["Base.85gmBbodyFrontWindowArmorW"] = "OLD84leftWindowaW",
            ["Base.85gmBbodyFrontWindowArmorM"] = "OLD84leftWindowaM",
		},
	},
	["FrontRightArmor"] = {
		partId = "DAMNFrontRightArmor",
		itemToModel = {
			["Base.85gmBbodyFrontWindowArmorW"] = "OLD84rightWindowaW",
            ["Base.85gmBbodyFrontWindowArmorM"] = "OLD84rightWindowaM",
		},
	},
	["RearLeftArmor"] = {
		partId = "DAMNRearLeftArmor",
		itemToModel = {
			["Base.85gmBbodyRearWindowArmorW"] = "OLD84leftWindowraW",
            ["Base.85gmBbodyRearWindowArmorM"] = "OLD84leftWindowraM",
		},
	},
	["RearRightArmor"] = {
		partId = "DAMNRearRightArmor",
		itemToModel = {
			["Base.85gmBbodyRearWindowArmorW"] = "OLD84rightWindowraW",
            ["Base.85gmBbodyRearWindowArmorM"] = "OLD84rightWindowraM",
		},
	},
    ["BackLeftArmor"] = {
		partId = "DAMNBackLeftArmor",
		itemToModel = {
			["Base.85gmBbodyWagonBackWindowArmorW"] = "OLD84leftWindowbaW",
            ["Base.85gmBbodyWagonBackWindowArmorM"] = "OLD84leftWindowbaM",
		},
	},
	["BackRightArmor"] = {
		partId = "DAMNBackRightArmor",
		itemToModel = {
			["Base.85gmBbodyWagonBackWindowArmorW"] = "OLD84rightWindowbaW",
            ["Base.85gmBbodyWagonBackWindowArmorM"] = "OLD84rightWindowbaM",
		},
	},
    ["WindshieldRearArmorS"] = {
		partId = "DAMNWindshieldRearArmor",
		itemToModel = {
			["Base.85gmBbodyWindshieldRearArmorW"] = "OLD84windraW",
            ["Base.85gmBbodyWindshieldRearArmorM"] = "OLD84windraM",
		},
	},
    ["SpareTire"] = {
		partId = "DAMNSpareTire",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "na",
			["Base.85gmBbodyTire1"] = "na",
            ["Base.85gmBbodyTire3"] = "na",
            ["Base.85gmBbodyTire4"] = "na",
            ["Base.85gmBbodyTire5"] = "na",
            ["Base.85gmBbodyTire5b"] = "na",
            ["Base.85gmBbodyTire7"] = "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",
            ["Base.85gmBbodyTire5b"] = "GM85Tire5bL",
            ["Base.85gmBbodyTire7"] = "GM85Tire7L",
		},
	},
	["TireFrontRight"] = {
		partId = "TireFrontRight",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0R",
			["Base.85gmBbodyTire1"] = "GM85Tire1R",
            ["Base.85gmBbodyTire3"] = "GM85Tire3R",
            ["Base.85gmBbodyTire4"] = "GM85Tire4R",
            ["Base.85gmBbodyTire5"] = "GM85Tire5R",
            ["Base.85gmBbodyTire5b"] = "GM85Tire5bR",
            ["Base.85gmBbodyTire7"] = "GM85Tire7R",
		},
	},
	["TireRearLeft"] = {
		partId = "TireRearLeft",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0L",
			["Base.85gmBbodyTire1"] = "GM85Tire1L",
            ["Base.85gmBbodyTire3"] = "GM85Tire3L",
            ["Base.85gmBbodyTire4"] = "GM85Tire4L",
            ["Base.85gmBbodyTire5"] = "GM85Tire5L",
            ["Base.85gmBbodyTire5b"] = "GM85Tire5bL",
            ["Base.85gmBbodyTire7"] = "GM85Tire7L",
		},
	},
	["TireRearRight"] = {
		partId = "TireRearRight",
		itemToModel = {
			["Base.85gmBbodyTire0"] = "GM85Tire0R",
			["Base.85gmBbodyTire1"] = "GM85Tire1R",
            ["Base.85gmBbodyTire3"] = "GM85Tire3R",
            ["Base.85gmBbodyTire4"] = "GM85Tire4R",
            ["Base.85gmBbodyTire5"] = "GM85Tire5R",
            ["Base.85gmBbodyTire5b"] = "GM85Tire5bR",
            ["Base.85gmBbodyTire7"] = "GM85Tire7R",
		},
	},
    ["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,
	},
});