module Base
{

	model 91fordCVPIWheel
	{
		mesh = vehicles/Vehicles_fordCVPI_Wheel|vic92_tire,
		texture = vehicles/Vehicles_fordCVPI_Wheel,
		shader = damn_wheel_shader,
		scale = 0.095,
	}

    model 91fordLTDWheelL
	{
		mesh = vehicles/Vehicles_91fordLTD_Wheels|vic91_tire,
		texture = vehicles/Vehicles_91fordLTD_Wheel,
		shader = damn_wheel_shader,
		scale = 0.090,
	}

    model 91fordLTDWheelR
	{
		mesh = vehicles/Vehicles_91fordLTD_Wheels|vic91_tire,
		texture = vehicles/Vehicles_91fordLTD_Wheel,
		shader = damn_wheel_shader,
		scale = 0.090,
        invertX = TRUE,
	}

    model 91fordLTD1L
	{
		mesh = vehicles/Vehicles_damnBasic_tires|damn_stock_tire0,
		texture = vehicles/Vehicles_damnBasic_Wheel1,
		shader = damn_wheel_shader,
		scale = 0.105,
	}
    model 91fordLTD1R
	{
		mesh = vehicles/Vehicles_damnBasic_tires|damn_stock_tire0,
		texture = vehicles/Vehicles_damnBasic_Wheel1,
		shader = damn_wheel_shader,
		scale = 0.105,
        invertX = TRUE,
	}

	template vehicle LTD91Tires
	{
		part TireFrontLeft
		{
            model fordCVPITire
			{
				file = 91fordCVPIWheel,
			}

			model fordLTDTire
			{
				file = 91fordLTDWheelL,
			}

            model fordLTDuniTireFL
			{
				file = 91fordLTD1L,
			}

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

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

		}

		part TireFrontRight
		{
            model fordCVPITire
			{
				file = 91fordCVPIWheel,
			}

			model fordLTDTire
			{
				file = 91fordLTDWheelR,
			}

            model fordLTDuniTireFR
			{
				file = 91fordLTD1R,
			}

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

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

		part TireRearLeft
		{
            model fordCVPITire
			{
				file = 91fordCVPIWheel,
			}

			model fordLTDTire
			{
				file = 91fordLTDWheelL,
			}

            model fordLTDuniTireRL
			{
				file = 91fordLTD1L,
			}

			area = TireRearLeft,
			wheel = RearLeft,
			table install
			{
				complete = LTD91.InstallComplete.TireRearLeft,
				requireInstalled = BrakeRearLeft;SuspensionRearLeft,
			}
			table uninstall
			{
				complete = LTD91.UninstallComplete.TireRearLeft,
			}

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

		part TireRearRight
		{
            model fordCVPITire
			{
				file = 91fordCVPIWheel,
			}

			model fordLTDTire
			{
				file = 91fordLTDWheelR,
			}

            model fordLTDuniTireRR
			{
				file = 91fordLTD1R,
			}

			area = TireRearRight,
			wheel = RearRight,
			table install
			{
				complete = LTD91.InstallComplete.TireRearRight,
				requireInstalled = BrakeRearRight;SuspensionRearRight,
			}
			table uninstall
			{
				complete = LTD91.UninstallComplete.TireRearRight,
			}

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

		part Tire*
		{
			category = tire,
            specificItem = false,
			itemType = Base.fordCVPITire1;Base.91fordLTDTire1;damnCraft.SmallTire1,
            durability = 2,
			container
			{
				capacity = 35,
				test = Vehicles.ContainerAccess.Tire,
				contentType = Air,
			}
			table install
			{
				items
				{
					1
					{
						type = Base.Jack,
						count = 1,
						keep = true,
					}
					2
					{
						tags = 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
					{
						tags = LugWrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 400,
				skills = Mechanics:1,
				test = Vehicles.UninstallTest.Default,
			}

		}
	}
}

