module Base
{

	model 97bushmasterwindowfl
	{
		mesh = vehicles/Vehicles_97bushmaster_Body|bush_window_fl,
		shader = damn_vehicle_noreflect_shader,
		scale = 0.1,
	}

	model 97bushmasterwindowfr
	{
		mesh = vehicles/Vehicles_97bushmaster_Body|bush_window_fr,
		shader = damn_vehicle_noreflect_shader,
		scale = 0.1,
	}
	model 97bushmasterwindowml
	{
		mesh = vehicles/Vehicles_97bushmaster_Body|bush_window_ml,
		shader = damn_vehicle_noreflect_shader,
		scale = 0.1,
	}

	model 97bushmasterwindowmr
	{
		mesh = vehicles/Vehicles_97bushmaster_Body|bush_window_mr,
		shader = damn_vehicle_noreflect_shader,
		scale = 0.1,
	}
	model 97bushmasterwindowrl
	{
		mesh = vehicles/Vehicles_97bushmaster_Body|bush_window_rl,
		shader = damn_vehicle_noreflect_shader,
		scale = 0.1,
	}

	model 97bushmasterwindowrr
	{
		mesh = vehicles/Vehicles_97bushmaster_Body|bush_window_rr,
		shader = damn_vehicle_noreflect_shader,
		scale = 0.1,
	}

	template vehicle BUSHWindows
	{
		part WindowFrontLeft
		{
			model windowFL357
			{
				file = 97bushmasterwindowfl,
			}
			area = WindowFrontLeft,
			itemType = Base.97BushFrontSideWindow,
		}

		part WindowFrontRight
		{
			model windowFR358
			{
				file = 97bushmasterwindowfr,
			}
			area = WindowFrontRight,
			itemType = Base.97BushFrontSideWindow,
		}

		part WindowMiddleLeft
		{
			model windowFL359
			{
				file = 97bushmasterwindowml,
			}
			area = WindowMiddleLeft,
			itemType = Base.97BushSideWindow,
		}

		part WindowMiddleRight
		{
			model windowFR360
			{
				file = 97bushmasterwindowmr,
			}
			area = WindowMiddleRight,
			itemType = Base.97BushSideWindow,
		}

		part WindowRearLeft
		{
			model windowFL361
			{
				file = 97bushmasterwindowrl,
			}
			area = WindowRearLeft,
			itemType = Base.97BushSideWindow,
		}

		part WindowRearRight
		{
			model windowFR362
			{
				file = 97bushmasterwindowrr,
			}
			area = WindowRearRight,
			itemType = Base.97BushSideWindow,
		}

		part Window*
		{
			category = door,
			mechanicRequireKey = true,
			window
			{
				openable = false,
			}
			table install
			{
				items
				{
					1
					{
						type = Base.Screwdriver,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 500,
				skills = Mechanics:3,
				recipes = Intermediate Mechanics,
				test = Vehicles.InstallTest.Default,
				complete = Vehicles.InstallComplete.Window,
			}
			table uninstall
			{
				items
				{
					1
					{
						type = Base.Screwdriver,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 500,
				skills = Mechanics:3,
				recipes = Intermediate Mechanics,
				test = Vehicles.UninstallTest.Default,
				complete = Vehicles.UninstallComplete.Default,
			}
			lua
			{
				create = Vehicles.Create.Window,
				init = Vehicles.Init.Window,
			}
		}

	}

	template vehicle BUSHAmbWindows
	{
		part WindowFrontLeft
		{
			model windowFL357
			{
				file = 97bushmasterwindowfl,
			}
			area = WindowFrontLeft,
			itemType = Base.97BushFrontSideWindow,
		}

		part WindowFrontRight
		{
			model windowFR358
			{
				file = 97bushmasterwindowfr,
			}
			area = WindowFrontRight,
			itemType = Base.97BushFrontSideWindow,
		}

		part WindowMiddleLeft
		{
			model windowFL359
			{
				file = 97bushmasterwindowml,
			}
			area = WindowMiddleLeft,
			itemType = Base.97BushSideWindow,
		}

		part WindowMiddleRight
		{
			model windowFR360
			{
				file = 97bushmasterwindowmr,
			}
			area = WindowMiddleRight,
			itemType = Base.97BushSideWindow,
		}

		part WindowRearRight
		{
			model windowFR362
			{
				file = 97bushmasterwindowrr,
			}
			area = WindowRearRight,
			itemType = Base.97BushSideWindow,
		}

		part Window*
		{
			category = door,
			mechanicRequireKey = true,
			window
			{
				openable = false,
			}
			table install
			{
				items
				{
					1
					{
						type = Base.Screwdriver,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 500,
				skills = Mechanics:3,
				recipes = Intermediate Mechanics,
				test = Vehicles.InstallTest.Default,
				complete = Vehicles.InstallComplete.Window,
			}
			table uninstall
			{
				items
				{
					1
					{
						type = Base.Screwdriver,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 500,
				skills = Mechanics:3,
				recipes = Intermediate Mechanics,
				test = Vehicles.UninstallTest.Default,
				complete = Vehicles.UninstallComplete.Default,
			}
			lua
			{
				create = Vehicles.Create.Window,
				init = Vehicles.Init.Window,
			}
		}

	}
}

