module Base
{
    model 65bansheeWheel1
	{
		mesh = vehicles/Vehicles_75GrandPrix_Wheels|75pontiac_tire1,
		texture = vehicles/Vehicles_75GrandPrix_Wheel1,
		shader = damn_wheel_shader,
		scale = 0.095,
	}

	model 65bansheeWheel2
	{
		mesh = vehicles/Vehicles_75GrandPrix_Wheels|75pontiac_tire2,
		texture = vehicles/Vehicles_75GrandPrix_Wheel1,
		shader = damn_wheel_shader,
		scale = 0.095,
	}

	model 65bansheeWheel3L
	{
		mesh = vehicles/Vehicles_65banshee_Wheels|75pontiac_tire4,
		texture = vehicles/Vehicles_65banshee_Wheel1,
		shader = damn_wheel_shader,
		scale = 0.095,
	}

    model 65bansheeWheel3R
	{
		mesh = vehicles/Vehicles_65banshee_Wheels|75pontiac_tire4,
		texture = vehicles/Vehicles_65banshee_Wheel1,
		shader = damn_wheel_shader,
        invertX = TRUE,
		scale = 0.095,
	}

    model 65bansheeWheel4L
	{
		mesh = vehicles/Vehicles_65banshee_Wheels|75pontiac_tire5,
		texture = vehicles/Vehicles_65banshee_Wheel1,
		shader = damn_wheel_shader,
		scale = 0.095,
	}

    model 65bansheeWheel4R
	{
		mesh = vehicles/Vehicles_65banshee_Wheels|75pontiac_tire5,
		texture = vehicles/Vehicles_65banshee_Wheel1,
		shader = damn_wheel_shader,
        invertX = TRUE,
		scale = 0.095,
	}

    model 65bansheeWheel5L
	{
		mesh = vehicles/Vehicles_65banshee_Wheels|75pontiac_tire6,
		texture = vehicles/Vehicles_65banshee_Wheel2,
		shader = damn_wheel_shader,
		scale = 0.095,
	}

    model 65bansheeWheel5R
	{
		mesh = vehicles/Vehicles_65banshee_Wheels|75pontiac_tire6,
		texture = vehicles/Vehicles_65banshee_Wheel2,
		shader = damn_wheel_shader,
        invertX = TRUE,
		scale = 0.095,
	}

    model 65bansheeWheel6L
	{
		mesh = vehicles/Vehicles_65banshee_Wheels|75pontiac_tire7,
		texture = vehicles/Vehicles_65banshee_Wheel2,
		shader = damn_wheel_shader,
		scale = 0.095,
	}

    model 65bansheeWheel6R
	{
		mesh = vehicles/Vehicles_65banshee_Wheels|75pontiac_tire7,
		texture = vehicles/Vehicles_65banshee_Wheel2,
		shader = damn_wheel_shader,
        invertX = TRUE,
		scale = 0.095,
	}

    model 65bansheeWheel7L
	{
		mesh = vehicles/Vehicles_damnBasic_tires|damn_stock_tire0,
		texture = vehicles/Vehicles_damnBasic_Wheel1,
		shader = damn_wheel_shader,
		scale = 0.095,
	}
    model 65bansheeWheel7R
	{
		mesh = vehicles/Vehicles_damnBasic_tires|damn_stock_tire0,
		texture = vehicles/Vehicles_damnBasic_Wheel1,
		shader = damn_wheel_shader,
		scale = 0.095,
        invertX = TRUE,
	}

	template vehicle BAN65Tires
	{
		part TireFrontLeft
		{
			model Tire1
			{
				file = 65bansheeWheel1,
			}

			model Tire2
			{
				file = 65bansheeWheel2,
			}

            model Tire3
			{
				file = 65bansheeWheel3L,
			}

            model Tire4
			{
				file = 65bansheeWheel4L,
			}

            model Tire5
			{
				file = 65bansheeWheel5L,
			}

            model Tire6
			{
				file = 65bansheeWheel6L,
			}

            model Tire7
			{
				file = 65bansheeWheel7L,
			}

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

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

		}

		part TireFrontRight
		{
			model Tire1
			{
				file = 65bansheeWheel1,
			}

			model Tire2
			{
				file = 65bansheeWheel2,
			}

            model Tire3
			{
				file = 65bansheeWheel3R,
			}

            model Tire4
			{
				file = 65bansheeWheel4R,
			}

            model Tire5
			{
				file = 65bansheeWheel5R,
			}

            model Tire6
			{
				file = 65bansheeWheel6R,
			}

            model Tire7
			{
				file = 65bansheeWheel7R,
			}

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

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

		part TireRearLeft
		{
			model Tire1
			{
				file = 65bansheeWheel1,
			}

			model Tire2
			{
				file = 65bansheeWheel2,
			}

            model Tire3
			{
				file = 65bansheeWheel3L,
			}

            model Tire4
			{
				file = 65bansheeWheel4L,
			}

            model Tire5
			{
				file = 65bansheeWheel5L,
			}

            model Tire6
			{
				file = 65bansheeWheel6L,
			}

            model Tire7
			{
				file = 65bansheeWheel7L,
			}

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

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

		part TireRearRight
		{
			model Tire1
			{
				file = 65bansheeWheel1,
			}

			model Tire2
			{
				file = 65bansheeWheel2,
			}

            model Tire3
			{
				file = 65bansheeWheel3R,
			}

            model Tire4
			{
				file = 65bansheeWheel4R,
			}

            model Tire5
			{
				file = 65bansheeWheel5R,
			}

            model Tire6
			{
				file = 65bansheeWheel6R,
			}

            model Tire7
			{
				file = 65bansheeWheel7R,
			}
			
			area = TireRearRight,
			wheel = RearRight,
			table install
			{
				complete = BAN65.InstallComplete.TireRearRight,
				requireInstalled = BrakeRearRight;SuspensionRearRight,
			}
			table uninstall
			{
				complete = BAN65.UninstallComplete.TireRearRight,
			}

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

		part Tire*
		{
			category = tire,
			specificItem = false,
			itemType = Base.pontiacR115Tire1;Base.pontiacR117Tire3;Base.75grandPrixR215Tire1;Base.75grandPrixR217Tire3;Base.pontiac8L15Tire1;Base.pontiac8L17Tire3;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,
			}
		}
	}
}