module Base
{

	model 84cadillacDeVilleSeatfl
	{
		mesh = vehicles/Vehicles_84cadillacDeVille_Body|deville_seat_f,
		texture = Vehicles/Vehicles_84cadillacDeVille_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}
	model 84cadillacDeVilleSeatfr
	{
		mesh = vehicles/Vehicles_84cadillacDeVille_Body|deville_seat_f,
		texture = Vehicles/Vehicles_84cadillacDeVille_Interior,
		shader = vehiclewheel,
		scale = 0.1,
		invertX = TRUE,
	}
	model 84cadillacDeVilleSeatrl
	{
		mesh = vehicles/Vehicles_84cadillacDeVille_Body|deville_seat_r,
		texture = Vehicles/Vehicles_84cadillacDeVille_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}
	model 84cadillacDeVilleSeatrr
	{
		mesh = vehicles/Vehicles_84cadillacDeVille_Body|deville_seat_r,
		texture = Vehicles/Vehicles_84cadillacDeVille_Interior,
		shader = vehiclewheel,
		scale = 0.1,
		invertX = TRUE,
	}
	
	template vehicle DEV84Seats
	{
		part SeatFrontLeft
		{
			
			model SeatFL
			{
				file = 84cadillacDeVilleSeatfl,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}
			
			area = SeatFrontLeft,
			container
			{
				seat = FrontLeft,
			}
		}

		part SeatFrontRight
		{

			model seatFR
			{
				file = 84cadillacDeVilleSeatfr,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

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

		part SeatRearLeft
		{

			model seatRL
			{
				file = 84cadillacDeVilleSeatrl,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

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

		part SeatRearRight
		{

			model seatRR
			{
				file = 84cadillacDeVilleSeatrr,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

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

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

		part SeatRear*
		{
			category = seat,
			itemType = Base.84cadillacDeVilleSeatRear,
			mechanicRequireKey = true,
			container
			{
				test = Vehicles.ContainerAccess.Seat,
			}
			table install
			{
				items
				{
					1
					{
						type = Base.Screwdriver,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 300,
				skills = Mechanics:1,
				recipes = Intermediate Mechanics,
				test = DAMN.InstallTest.Default,
			}
			table uninstall
			{
				items
				{
					1
					{
						type = Base.Screwdriver,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 300,
				skills = Mechanics:1,
				recipes = Intermediate Mechanics,
				test = DAMN.UninstallTest.Default,
				requireEmpty = true,
			}
			lua
            		{
            		create = Vehicles.Create.Default,
					}
		}
	}
}

