module Base
{

	model 73fordFalconWheelFL1
	{
		mesh = vehicles/Vehicles_73fordFalcon_Wheels|falcon_tire0,
		texture = vehicles/Vehicles_73fordFalcon_Wheel1,
		shader = vehiclewheel,
		scale = 0.1,
	}

	model 73fordFalconWheelFR1
	{
		mesh = vehicles/Vehicles_73fordFalcon_Wheels|falcon_tire0,
		texture = vehicles/Vehicles_73fordFalcon_Wheel1,
		shader = vehiclewheel,
		invertX = TRUE,
		scale = 0.1,
	}

    model 73fordFalconWheelRL1
	{
		mesh = vehicles/Vehicles_73fordFalcon_Wheels|falcon_tire1,
		texture = vehicles/Vehicles_73fordFalcon_Wheel1,
		shader = vehiclewheel,
		scale = 0.1,
	}

	model 73fordFalconWheelRR1
	{
		mesh = vehicles/Vehicles_73fordFalcon_Wheels|falcon_tire1,
		texture = vehicles/Vehicles_73fordFalcon_Wheel1,
		shader = vehiclewheel,
		invertX = TRUE,
		scale = 0.1,
	}

	model 73fordFalconWheelFL2
	{
		mesh = vehicles/Vehicles_73fordFalcon_Wheels|falcon_tire0,
		texture = vehicles/Vehicles_73fordFalcon_Wheel2,
		shader = vehiclewheel,
		scale = 0.1,
	}

	model 73fordFalconWheelFR2
	{
		mesh = vehicles/Vehicles_73fordFalcon_Wheels|falcon_tire0,
		texture = vehicles/Vehicles_73fordFalcon_Wheel2,
		shader = vehiclewheel,
		invertX = TRUE,
		scale = 0.1,
	}

    model 73fordFalconWheelRL2
	{
		mesh = vehicles/Vehicles_73fordFalcon_Wheels|falcon_tire1,
		texture = vehicles/Vehicles_73fordFalcon_Wheel2,
		shader = vehiclewheel,
		scale = 0.1,
	}

	model 73fordFalconWheelRR2
	{
		mesh = vehicles/Vehicles_73fordFalcon_Wheels|falcon_tire1,
		texture = vehicles/Vehicles_73fordFalcon_Wheel2,
		shader = vehiclewheel,
		invertX = TRUE,
		scale = 0.1,
	}

	template vehicle FLC73Tires
	{
		part TireFrontLeft
		{
			model Tire1
			{
				file = 73fordFalconWheelFL1,
			}

			model Tire2
			{
				file = 73fordFalconWheelFL2,
			}

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

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

		}

		part TireFrontRight
		{
			model Tire1
			{
				file = 73fordFalconWheelFR1,
			}

			model Tire2
			{
				file = 73fordFalconWheelFR2,
			}

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

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

		part TireRearLeft
		{
			model Tire1
			{
				file = 73fordFalconWheelFL1,
			}

			model Tire2
			{
				file = 73fordFalconWheelFL2,
			}

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

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

		part TireRearRight
		{
			model Tire1
			{
				file = 73fordFalconWheelFR1,
			}

			model Tire2
			{
				file = 73fordFalconWheelFR2,
			}
			
			area = TireRearRight,
			wheel = RearRight,
			table install
			{
				complete = FLC73.InstallComplete.TireRearRight,
				requireInstalled = BrakeRearRight;SuspensionRearRight,
			}
			table uninstall
			{
				complete = FLC73.UninstallComplete.TireRearRight,
			}

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

		part Tire*
		{
			category = tire,
			specificItem = false,
			itemType = Base.73fordFalconTire3;Base.73fordFalconPSTire3,
			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,
			}
		}
	}

    template vehicle FLC73TiresSP
	{
		part TireFrontLeft
		{
			model Tire1
			{
				file = 73fordFalconWheelFL1,
			}

			model Tire2
			{
				file = 73fordFalconWheelFL2,
			}

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

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

		}

		part TireFrontRight
		{
			model Tire1
			{
				file = 73fordFalconWheelFR1,
			}

			model Tire2
			{
				file = 73fordFalconWheelFR2,
			}

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

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

		part TireRearLeft
		{
			model Tire1
			{
				file = 73fordFalconWheelRL1,
			}

			model Tire2
			{
				file = 73fordFalconWheelRL2,
			}

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

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

		part TireRearRight
		{
			model Tire1
			{
				file = 73fordFalconWheelRR1,
			}

			model Tire2
			{
				file = 73fordFalconWheelRR2,
			}
			
			area = TireRearRight,
			wheel = RearRight,
			table install
			{
				complete = FLC73.InstallComplete.TireRearRightPS,
				requireInstalled = BrakeRearRight;SuspensionRearRight,
			}
			table uninstall
			{
				complete = FLC73.UninstallComplete.TireRearRight,
			}

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

		part Tire*
		{
			category = tire,
			specificItem = false,
			itemType = Base.73fordFalconPSTire3;Base.73fordFalconTire3,
			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,
			}
		}        
    }
}