module Base
{

	model 49ford8NWheelFL
	{
		mesh = vehicles/Vehicles_49ford8N_Wheels|ford8N_wheel_front,
		texture = vehicles/Vehicles_49ford8N_Wheel,
		shader = vehiclewheel,
		scale = 0.1,
	}
	model 49ford8NWheelFR
	{
		mesh = vehicles/Vehicles_49ford8N_Wheels|ford8N_wheel_front,
		texture = vehicles/Vehicles_49ford8N_Wheel,
		shader = vehiclewheel,
		scale = 0.1,
		invertX = TRUE,
	}
	model 49ford8NWheelRL
	{
		mesh = vehicles/Vehicles_49ford8N_Wheels|ford8N_wheel_rear,
		texture = vehicles/Vehicles_49ford8N_Wheel,
		shader = vehiclewheel,
		scale = 0.1,
	}
	model 49ford8NWheelRR
	{
		mesh = vehicles/Vehicles_49ford8N_Wheels|ford8N_wheel_rear,
		texture = vehicles/Vehicles_49ford8N_Wheel,
		shader = vehiclewheel,
		scale = 0.1,
		invertX = TRUE,
	}

	template vehicle F8NTires
	{
		part TireFrontLeft
		{
			model f8nTirefl
			{
				file = 49ford8NWheelFL,
			}

			itemType = Base.49ford8NFrontTire,
			area = TireFrontLeft,
			wheel = FrontLeft,
			table install
			{
				requireInstalled = BrakeFrontLeft;SuspensionFrontLeft,
			}

		}

		part TireFrontRight
		{
			model f8nTirefr
			{
				file = 49ford8NWheelFR,
			}

			itemType = Base.49ford8NFrontTire,
			area = TireFrontRight,
			wheel = FrontRight,
			table install
			{
				requireInstalled = BrakeFrontRight;SuspensionFrontRight,
			}
		}

		part TireRearLeft
		{
			model f8nTirerl
			{
				file = 49ford8NWheelRL,
			}

			itemType = Base.49ford8NRearTire,
			area = TireRearLeft,
			wheel = RearLeft,
			table install
			{
				requireInstalled = BrakeRearLeft;SuspensionRearLeft,
			}
		}

		part TireRearRight
		{
			model f8nTirerr
			{
				file = 49ford8NWheelRR,
			}

			itemType = Base.49ford8NRearTire,
			area = TireRearRight,
			wheel = RearRight,
			table install
			{
				requireInstalled = BrakeRearRight;SuspensionRearRight,
			}
		}

		part Tire*
		{
			category = tire,
			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,
				complete = Vehicles.InstallComplete.Tire,
			}
			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,
				complete = Vehicles.UninstallComplete.Tire,
			}

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

