module Base
{
    model 85gmBbodyWheel0L
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire0,
		texture = vehicles/Vehicles_85gmBbody_Wheel0,
		shader = vehiclewheel,
		scale = 0.090,
	}

    model 85gmBbodyWheel0R
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire0,
		texture = vehicles/Vehicles_85gmBbody_Wheel0,
		shader = vehiclewheel,
		scale = 0.090,
        invertX = TRUE,
	}

    model 85gmBbodyWheel1L
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire1,
		texture = vehicles/Vehicles_85gmBbody_Wheel1,
		shader = vehiclewheel,
		scale = 0.090,
	}

    model 85gmBbodyWheel1R
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire1,
		texture = vehicles/Vehicles_85gmBbody_Wheel1,
		shader = vehiclewheel,
		scale = 0.090,
        invertX = TRUE,
	}

    model 85gmBbodyWheel2L
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire2,
		texture = vehicles/Vehicles_85gmBbody_Wheel2,
		shader = vehiclewheel,
		scale = 0.090,
	}

    model 85gmBbodyWheel2R
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire2,
		texture = vehicles/Vehicles_85gmBbody_Wheel2,
		shader = vehiclewheel,
		scale = 0.090,
        invertX = TRUE,
	}

    model 85gmBbodyWheel3L
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire3,
		texture = vehicles/Vehicles_85gmBbody_Wheel3,
		shader = vehiclewheel,
		scale = 0.090,
	}

    model 85gmBbodyWheel3R
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire3,
		texture = vehicles/Vehicles_85gmBbody_Wheel3,
		shader = vehiclewheel,
		scale = 0.090,
        invertX = TRUE,
	}

    model 85gmBbodyWheel4L
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire3,
		texture = vehicles/Vehicles_85gmBbody_Wheel4,
		shader = vehiclewheel,
		scale = 0.090,
	}

    model 85gmBbodyWheel4R
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire3,
		texture = vehicles/Vehicles_85gmBbody_Wheel4,
		shader = vehiclewheel,
		scale = 0.090,
        invertX = TRUE,
	}

    model 85gmBbodyWheel5L
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire4,
		texture = vehicles/Vehicles_85gmBbody_Wheel5,
		shader = vehiclewheel,
		scale = 0.090,
	}

    model 85gmBbodyWheel5R
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire4,
		texture = vehicles/Vehicles_85gmBbody_Wheel5,
		shader = vehiclewheel,
		scale = 0.090,
        invertX = TRUE,
	}

    model 85gmBbodyWheel6L
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire2,
		texture = vehicles/Vehicles_85gmBbody_Wheel6,
		shader = vehiclewheel,
		scale = 0.090,
	}

    model 85gmBbodyWheel6R
	{
		mesh = vehicles/Vehicles_85gmBbody_Wheels|gm_tire2,
		texture = vehicles/Vehicles_85gmBbody_Wheel6,
		shader = vehiclewheel,
		scale = 0.090,
        invertX = TRUE,
	}

    model 85gmBbodyWheel7L
	{
		mesh = vehicles/Vehicles_STEEL_Wheels|vic91_tire,
		texture = vehicles/Vehicles_STEEL01_Wheel,
		shader = vehiclewheel,
		scale = 0.090,
	}

    model 85gmBbodyWheel7R
	{
		mesh = vehicles/Vehicles_STEEL_Wheels|vic91_tire,
		texture = vehicles/Vehicles_STEEL01_Wheel,
		shader = vehiclewheel,
		scale = 0.090,
        invertX = TRUE,
	}

	template vehicle DEV84Tires
	{
		part TireFrontLeft
		{
			model GM85Tire0L
			{
				file = 85gmBbodyWheel0L,
			}

            model GM85Tire1L
			{
				file = 85gmBbodyWheel1L,
			}

            model GM85Tire3L
			{
				file = 85gmBbodyWheel3L,
			}

            model GM85Tire4L
			{
				file = 85gmBbodyWheel4L,
			}

            model GM85Tire5L
			{
				file = 85gmBbodyWheel5L,
			}

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

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

		}

		part TireFrontRight
		{
			model GM85Tire0R
			{
				file = 85gmBbodyWheel0R,
			}

            model GM85Tire1R
			{
				file = 85gmBbodyWheel1R,
			}

            model GM85Tire3R
			{
				file = 85gmBbodyWheel3R,
			}

            model GM85Tire4R
			{
				file = 85gmBbodyWheel4R,
			}

            model GM85Tire5R
			{
				file = 85gmBbodyWheel5R,
			}

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

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

		part TireRearLeft
		{
			model GM85Tire0L
			{
				file = 85gmBbodyWheel0L,
			}

            model GM85Tire1L
			{
				file = 85gmBbodyWheel1L,
			}

            model GM85Tire3L
			{
				file = 85gmBbodyWheel3L,
			}

            model GM85Tire4L
			{
				file = 85gmBbodyWheel4L,
			}

            model GM85Tire5L
			{
				file = 85gmBbodyWheel5L,
			}

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

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

		part TireRearRight
		{
			model GM85Tire0R
			{
				file = 85gmBbodyWheel0R,
			}

            model GM85Tire1R
			{
				file = 85gmBbodyWheel1R,
			}

            model GM85Tire3R
			{
				file = 85gmBbodyWheel3R,
			}

            model GM85Tire4R
			{
				file = 85gmBbodyWheel4R,
			}

            model GM85Tire5R
			{
				file = 85gmBbodyWheel5R,
			}

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

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

		part Tire*
		{
			category = tire,
            specificItem = false,
			itemType = Base.85gmBbodyTire0;Base.85gmBbodyTire1;Base.85gmBbodyTire3;Base.85gmBbodyTire4;Base.85gmBbodyTire5,
			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,
			}

		}
	}
}