require "DAMN_Parts";
require "DAMN_Spawns";

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

DAMN.Parts:processConfigV2("R32", {
    ["Muffler"] = {
		partId = "R32Muffler",
		itemToModel = {
			["Base.R32muffler0"] = "Muffler0",
			["Base.R32muffler1"] = "Muffler1",
		},
		default = "trve_random",
		noPartChance = 10,
	},
	["BumperFront"] = {
		partId = "DAMNBumperFront",
		itemToModel = {
			["Base.R32Bumper0"] = "Bumper0",
			["Base.R32Bumper1"] = "Bumper1",
            ["Base.R32Bumper2"] = "Bumper2",
			["Base.R32Bumper3"] = "Bumper3",
			["Base.R32BumperA"] = "BumperA",
		},
        allowedForRandom = {
            "Base.R32Bumper0", "Base.R32Bumper1", "Base.R32Bumper2", "Base.R32Bumper3"
        },
		default = "trve_random",
		noPartChance = 10,
	},
	["BumperRear"] = {
		partId = "DAMNBumperRear",
		itemToModel = {
			["Base.R32BumperRear0"] = "BumperRear0",
			["Base.R32BumperRear1"] = "BumperRear1",
            ["Base.R32BumperRear2"] = "BumperRear2",
			["Base.R32BumperRear3"] = "BumperRear3",
			["Base.R32BumperRearA"] = "BumperRearA",
		},
        allowedForRandom = {
            "Base.R32BumperRear0", "Base.R32BumperRear1", "Base.R32BumperRear2", "Base.R32BumperRear3"
        },
		default = "trve_random",
		noPartChance = 10,
	},
	["WindshieldArmor"] = {
		partId = "DAMNWindshieldArmor",
		itemToModel = {
			["Base.R32WindshieldArmor"] = "WindshieldArmor",
		},
	},
	["RearWindshieldArmor"] = {
		partId = "DAMNWindshieldArmor",
		itemToModel = {
			["Base.R32WindshieldRearArmor"] = "RearWindshieldArmor",
		},
	},
	["DoorFrontLeftArmor"] = {
		partId = "DAMNFrontLeftArmor",
		itemToModel = {
			["Base.R32DoorArmor"] = "DoorFrontLeftArmor",
		},
	},
	["DoorFrontRightArmor"] = {
		partId = "DAMNFrontRightArmor",
		itemToModel = {
			["Base.R32DoorArmor"] = "DoorFrontRightArmor",
		},
	},
	["WindowRearLeftArmor"] = {
		partId = "DAMNRearLeftArmor",
		itemToModel = {
			["Base.R32RearWindowArmor"] = "WindowRearLeftArmor",
		},
	},
	["WindowRearRightArmor"] = {
		partId = "DAMNRearRightArmor",
		itemToModel = {
			["Base.R32RearWindowArmor"] = "WindowRearRightArmor",
		},
	},
	["Spoiler"] = {
		partId = "DAMNSpoiler",
		itemToModel = {
			["Base.R32Spoiler0"] = "Spoiler0",
			["Base.R32Spoiler1"] = "Spoiler1",
            ["Base.R32Spoiler2"] = "Spoiler2",
			["Base.R32Spoiler3"] = "Spoiler3",
		},
		default = "trve_random",
		noPartChance = 10,
	},
	["Sideskirts"] = {
		partId = "DAMNSideskirts",
		itemToModel = {
			["Base.R32Sideskirts1"] = "Sideskirts1",
			["Base.R32Sideskirts2"] = "Sideskirts2",
            ["Base.R32Sideskirts3"] = "Sideskirts3",
			["Base.R32SideskirtsA"] = "SideskirtsA",
		},
        allowedForRandom = {
            "Base.R32Sideskirts1", "Base.R32Sideskirts2", "Base.R32Sideskirts3"
        },
		default = "trve_random",
		noPartChance = 35,
	},
	["TireFrontLeft"] = {
		partId = "TireFrontLeft",
		itemToModel = {
			["Base.R32Tire0"] = "R32Tire0",
			["Base.R32Tire1"] = "R32Tire1",
            ["Base.R32Tire2"] = "R32Tire2",
			["Base.R32TireA"] = "R32TireA",
		},
	},
	["TireFrontRight"] = {
		partId = "TireFrontRight",
		itemToModel = {
			["Base.R32Tire0"] = "R32Tire0",
			["Base.R32Tire1"] = "R32Tire1",
            ["Base.R32Tire2"] = "R32Tire2",
			["Base.R32TireA"] = "R32TireA",
		},
	},
	["TireRearLeft"] = {
		partId = "TireRearLeft",
		itemToModel = {
			["Base.R32Tire0"] = "R32Tire0",
			["Base.R32Tire1"] = "R32Tire1",
            ["Base.R32Tire2"] = "R32Tire2",
			["Base.R32TireA"] = "R32TireA",
		},
	},
	["TireRearRight"] = {
		partId = "TireRearRight",
		itemToModel = {
			["Base.R32Tire0"] = "R32Tire0",
			["Base.R32Tire1"] = "R32Tire1",
            ["Base.R32Tire2"] = "R32Tire2",
			["Base.R32TireA"] = "R32TireA",
		},
	},
    ["SpareTire"] = {
		partId = "DAMNSpareTire",
		itemToModel = {
			["Base.R32Tire0"] = "R32Tire0",
			["Base.R32Tire1"] = "R32Tire1",
            ["Base.R32Tire2"] = "R32Tire2",
			["Base.R32TireA"] = "R32TireA",
		},
        default = "trve_random",
		noPartChance = 20,
	},
});