module Base
{

	model 90pierceArrowWheelFL
	{
		mesh = vehicles/Vehicles_90pierceArrow_Wheels|pierce_tire,
		texture = vehicles/Vehicles_90pierceArrow_Wheel,
		shader = damn_wheel_shader,
		scale = 0.1,
	}

	model 90pierceArrowWheelFR
	{
		mesh = vehicles/Vehicles_90pierceArrow_Wheels|pierce_tire,
		texture = vehicles/Vehicles_90pierceArrow_Wheel,
		shader = damn_wheel_shader,
		invertX = TRUE,
		scale = 0.1,
	}

	model 90pierceArrowWheelRL
	{
		mesh = vehicles/Vehicles_90pierceArrow_Wheels|pierce_tires,
		texture = vehicles/Vehicles_90pierceArrow_Wheels,
		shader = damn_wheel_shader,
		scale = 0.1,
	}

	model 90pierceArrowWheelRR
	{
		mesh = vehicles/Vehicles_90pierceArrow_Wheels|pierce_tires,
		texture = vehicles/Vehicles_90pierceArrow_Wheels,
		shader = damn_wheel_shader,
		invertX = TRUE,
		scale = 0.1,
	}

	template vehicle ARRWTires
	{
		part TireFrontLeft
		{
			model 90pierceArrowTireFL
			{
				file = 90pierceArrowWheelFL,
			}

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

		}

		part TireFrontRight
		{
			model 90pierceArrowTireFR
			{
				file = 90pierceArrowWheelFR,
			}

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

		part TireRearLeft
		{
			model 90pierceArrowTireRL
			{
				file = 90pierceArrowWheelRL,
			}

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

		part TireRearRight
		{
			model 90pierceArrowTireRR
			{
				file = 90pierceArrowWheelRR,
			}

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

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

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

