module Base
{

	model 91rangeSeatfl
	{
		mesh = vehicles/Vehicles_91range_Body_mk2|range_seat_fl,
		texture = Vehicles/Vehicles_91range_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	model 91rangeSeatfr
	{
		mesh = vehicles/Vehicles_91range_Body_mk2|range_seat_fl,
		texture = Vehicles/Vehicles_91range_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
        invertX = TRUE,
	}
	model 91rangeSeatrl
	{
		mesh = vehicles/Vehicles_91range_Body_mk2|range_seat_rl,
		texture = Vehicles/Vehicles_91range_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	model 91rangeSeatrr
	{
		mesh = vehicles/Vehicles_91range_Body_mk2|range_seat_rr,
		texture = Vehicles/Vehicles_91range_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	
	template vehicle RR91Seats
	{
		part SeatFrontLeft
		{
			
			model SeatFL
			{
				file = 91rangeSeatfl,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}
			
			area = SeatFrontLeft,
			container
			{
				seat = FrontLeft,
			}
		}

		part SeatFrontRight
		{

			model seatFR
			{
				file = 91rangeSeatfr,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

			area = SeatFrontRight,
			container
			{
				seat = FrontRight,
			}
		}

		part SeatRearLeft
		{

			model seatRL
			{
				file = 91rangeSeatrl,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

			area = SeatRearLeft,
			container
			{
				seat = RearLeft,
			}
		}

		part SeatRearRight
		{

			model seatRR
			{
				file = 91rangeSeatrr,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

			area = SeatRearRight,
			container
			{
				seat = RearRight,
			}
		}

		part SeatFront*
		{
			category = seat,
			itemType = Base.91rangeSeatFront,
			mechanicRequireKey = true,
            durability = 3,
			container
			{
				test = Vehicles.ContainerAccess.Seat,
			}
			table install
			{
				items
				{
					1
					{
						tags = Screwdriver,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 300,
				skills = Mechanics:1,
				recipes = Basic Mechanics,
				test = Vehicles.InstallTest.Default,
			}
			table uninstall
			{
				items
				{
					1
					{
						tags = Screwdriver,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 300,
				skills = Mechanics:1,
				recipes = Basic Mechanics,
				test = Vehicles.UninstallTest.Default,
				requireEmpty = true,
			}
			lua
			{
				create = Vehicles.Create.Default,
			}
		}

		part SeatRear*
		{
			category = seat,
			itemType = Base.91rangeSeatRear,
			mechanicRequireKey = true,
            durability = 3,
			container
			{
				test = Vehicles.ContainerAccess.Seat,
			}
			table install
			{
				items
				{
					1
					{
						tags = Screwdriver,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 300,
				skills = Mechanics:1,
				recipes = Basic Mechanics,
				test = Vehicles.InstallTest.Default,
			}
			table uninstall
			{
				items
				{
					1
					{
						tags = Screwdriver,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 300,
				skills = Mechanics:1,
				recipes = Basic Mechanics,
				test = Vehicles.UninstallTest.Default,
				requireEmpty = true,
			}
			lua
            		{
            		create = Vehicles.Create.Default,
					}
		}
	}
}