module Base
{
	template vehicle M101A2Tires
	{
		part TireFrontLeft
		{
            model Tire1
			{
				file = 86chevyCUCVWheel1RL,
			}
            model Tire2
			{
				file = 86chevyCUCVWheel2RL,
			}

			area = TireFrontLeft,
			wheel = FrontLeft,
			table install
			{
				complete = CUCV86.InstallComplete.TireFrontLeft,
				requireInstalled = SuspensionFrontLeft,
			}
			table uninstall
			{
				complete = CUCV86.UninstallComplete.TireFrontLeft,
			}

			lua
			{
				create = Vehicles.Create.Tire,
				init = CUCV86.Init.TireFrontLeft,
				checkOperate = Vehicles.CheckOperate.Tire,
				update = Vehicles.Update.Tire,
			}

		}

		part TireFrontRight
		{
            model Tire1
			{
				file = 86chevyCUCVWheel1RR,
			}
            model Tire2
			{
				file = 86chevyCUCVWheel2RR,
			}

			area = TireFrontRight,
			wheel = FrontRight,
			table install
			{
				complete = CUCV86.InstallComplete.TireFrontRight,
				requireInstalled = SuspensionFrontRight,
			}
			table uninstall
			{
				complete = CUCV86.UninstallComplete.TireFrontRight,
			}

			lua
			{
				create = Vehicles.Create.Tire,
				init = CUCV86.Init.TireFrontRight,
				checkOperate = Vehicles.CheckOperate.Tire,
				update = Vehicles.Update.Tire,
			}
		}

		part Tire*
		{
			category = tire,
			specificItem = false,
			itemType = Base.86chevyCUCVTire1;Base.86chevyCUCVTire2,
			container
			{
				capacity = 35,
				test = Vehicles.ContainerAccess.Tire,
				contentType = Air,
			}
			table install
			{
				items
				{
					1
					{
						type = Base.Jack,
						count = 1,
						keep = true,
					}
					2
					{
						type = Base.LugWrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 400,
				skills = Mechanics:1,
				test = Vehicles.InstallTest.Default,
			}
			table uninstall
			{
				items
				{
					1
					{
						type = Base.Jack,
						count = 1,
						keep = true,
					}
					2
					{
						type = Base.LugWrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 400,
				skills = Mechanics:1,
				test = Vehicles.UninstallTest.Default,
			}
		}
	}
}