require "DAMN_Parts";
require "DAMN_Spawns";

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

DAMN.Parts:processConfigV2("W460", {
	["BumperFront"] = {
		partId = "DAMNBumperFront",
		itemToModel = {
			["Base.W460Bumper1"] = "Bumper1",
			["Base.W460Bullbar2"] = "Bullbar2",
			["Base.W460Bullbar3"] = "Bullbar3",
            ["Base.W460BullbarM"] = "BullbarM",
		},
		default = "first",
	},
    ["BumperFrontM"] = {
		partId = "DAMNBumperFront",
		itemToModel = {
            ["Base.W460BullbarM"] = "BullbarM",
			["Base.W460Bumper1"] = "Bumper1",
			["Base.W460Bullbar2"] = "Bullbar2",
			["Base.W460Bullbar3"] = "Bullbar3",
		},
		default = "first",
	},
    ["BumperRear"] = {
		partId = "DAMNBumperRear",
		itemToModel = {
			["Base.W460BumperRear1"] = "BumperRear1",
		},
		default = "first",
	},
    ["DoorFrontLeftArmor"] = {
		partId = "DAMNFrontLeftArmor",
		itemToModel = {
			["Base.W460CarFrontDoorArmor1"] = "W460leftdoora",
		},
	},
	["DoorFrontRightArmor"] = {
		partId = "DAMNFrontRightArmor",
		itemToModel = {
			["Base.W460CarFrontDoorArmor1"] = "W460rightdoora",
		},
	},
	["DoorRearLeftArmor"] = {
		partId = "DAMNRearLeftArmor",
		itemToModel = {
			["Base.W460CarRearDoorArmor1"] = "W460leftdoorra",
		},
	},
	["DoorRearRightArmor"] = {
		partId = "DAMNRearRightArmor",
		itemToModel = {
			["Base.W460CarRearDoorArmor1"] = "W460rightdoorra",
		},
	},
	["WindowBackLeftArmor"] = {
		partId = "DAMNBackLeftArmor",
		itemToModel = {
			["Base.W460CarBackWindowArmor1"] = "W460winbla",
		},
	},
	["WindowBackRightArmor"] = {
		partId = "DAMNBackRightArmor",
		itemToModel = {
			["Base.W460CarBackWindowArmor1"] = "W460winbra",
		},
	},
	["WindshieldArmor"] = {
		partId = "DAMNWindshieldArmor",
		itemToModel = {
			["Base.W460WindshieldArmor1"] = "W460winda",
		},
	},
	["WindshieldRearArmor"] = {
		partId = "DAMNWindshieldRearArmor",
		itemToModel = {
			["Base.W460WindshieldRearArmor1"] = "W460windra",
		},
	},
    ["WindshieldRearSplitArmor"] = {
		partId = "DAMNWindshieldRearArmor",
		itemToModel = {
			["Base.W460WindshieldRearArmorM"] = "W460windra",
		},
	},
    ["Mudflaps"] = {
		partId = "DAMNMudflaps",
		itemToModel = {
			["Base.W460Mudflaps1"] = "Mudflaps1",
		},
		default = "trve_random",
		noPartChance = 50,
	},
    ["Roofrack"] = {
		partId = "W460Roofrack",
		itemToModel = {
			["Base.W460Roofrack1"] = "Roofrack1",
            ["Base.W460RoofrackM"] = "RoofrackM",
		},
		default = "trve_random",
		noPartChance = 97,
	},
    ["Bodykit"] = {
		partId = "W460Bodykit",
		itemToModel = {
			["Base.W460Bodykit1"] = "Bodykit1",
		},
		default = "trve_random",
		noPartChance = 50,
	},
    ["BodykitM"] = {
		partId = "W460Bodykit",
		itemToModel = {
            ["Base.W460BodykitM"] = "BodykitM",
            ["Base.W460Bodykit1"] = "Bodykit1",
		},
		default = "first",
	},
    ["Snorkel"] = {
		partId = "DAMNSnorkel",
		itemToModel = {
			["Base.W460SnorkelM"] = "SnorkelM",
		},
		default = "trve_random",
		noPartChance = 90,
	},
    ["SnorkelM"] = {
		partId = "DAMNSnorkel",
		itemToModel = {
            ["Base.W460SnorkelM"] = "SnorkelM",
		},
		default = "first",
	},
    ["Guards"] = {
		partId = "W460Guards",
		itemToModel = {
			["Base.W460Guards"] = "GuardsM",
		},
		default = "trve_random",
		noPartChance = 90,
	},
    ["GuardsM"] = {
		partId = "W460Guards",
		itemToModel = {
            ["Base.W460Guards"] = "GuardsM",
		},
		default = "first",
	},
    ["GasCan"] = {
		partId = "DAMNGasCanOne",
		itemToModel = {
			["USMIL.GasCan0"] = "GasCan",
			["USMIL.WaterCan0"] = "WaterCan",
		},
		default = "trve_random",
		noPartChance = 25,
	},
    ["SpareTire"] = {
		partId = "DAMNSpareTire",
		itemToModel = {
			["Base.W460NormalTire2"] = "SpareTire1",
            ["Base.W460WideTire2"] = "SpareTire2",
            ["Base.W460ModernTire2"] = "SpareTire3",
            ["damnCraft.SmallTire1"] = "SpareTire4",
		},
		default = "trve_random",
		noPartChance = 25,
	},
    ["SpareTireM"] = {
		partId = "DAMNSpareTire",
		itemToModel = {
			["Base.W460MilitaryTire2"] = "SpareTireM",
		},
		default = "trve_random",
		noPartChance = 50,
	},
	["TireFrontLeft"] = {
		partId = "TireFrontLeft",
		itemToModel = {
			["Base.W460NormalTire2"] = "W460Tire0",
			["Base.W460WideTire2"] = "W460Tire1",
            ["Base.W460ModernTire2"] = "W460Tire2",
            ["damnCraft.SmallTire1"] = "W460Tire3",
		},
	},
	["TireFrontRight"] = {
		partId = "TireFrontRight",
		itemToModel = {
			["Base.W460NormalTire2"] = "W460Tire0",
			["Base.W460WideTire2"] = "W460Tire1",
            ["Base.W460ModernTire2"] = "W460Tire2",
            ["damnCraft.SmallTire1"] = "W460Tire3",
		},
	},
	["TireRearLeft"] = {
		partId = "TireRearLeft",
		itemToModel = {
			["Base.W460NormalTire2"] = "W460Tire0",
			["Base.W460WideTire2"] = "W460Tire1",
            ["Base.W460ModernTire2"] = "W460Tire2",
            ["damnCraft.SmallTire1"] = "W460Tire3",
		},
	},
	["TireRearRight"] = {
		partId = "TireRearRight",
		itemToModel = {
			["Base.W460NormalTire2"] = "W460Tire0",
			["Base.W460WideTire2"] = "W460Tire1",
            ["Base.W460ModernTire2"] = "W460Tire2",
            ["damnCraft.SmallTire1"] = "W460Tire3",
		},
	},
});