module Base
{
    model 91fordRangerWindowfla
    	{
        mesh = vehicles/Vehicles_91fordRanger_Body|91ranger_window_fl_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
        static = FALSE,
    	}

    model 91fordRangerWindowfra
    	{
        mesh = vehicles/Vehicles_91fordRanger_Body|91ranger_window_fr_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
        static = FALSE,
    	}

   model 91fordRangerWindowbla
    	{
        mesh = vehicles/Vehicles_91fordRanger_Body|91ranger_window_bl_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
    	}

    model 91fordRangerWindowbra
    	{
        mesh = vehicles/Vehicles_91fordRanger_Body|91ranger_window_br_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
    	}

    model 91fordRangerWindshielda
    	{
        mesh = vehicles/Vehicles_91fordRanger_Body|91ranger_windshield_front_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
    	}

	template vehicle RNG91ArmorSC
		{
		part DAMNWindshieldArmor
        	{

			model winda
				{
                		file = 91fordRangerWindshielda,
				}

			area = Engine,
			category = bodywork,
			specificItem = false,
			itemType = Base.91fordRangerWindshieldArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	type = Base.Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

                	time = 550,
                	skills = Mechanics:4,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = RNG91.InstallComplete.WindshieldArmor,
                	requireInstalled = Windshield,
            		}

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				type = Base.Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

						time = 600,
						skills = Mechanics:4,
						recipes = Intermediate Mechanics,
			            test = Vehicles.UninstallTest.Default,
						complete = RNG91.UninstallComplete.WindshieldArmor,
            		}

            		lua
            		{
					create = RNG91.Create.WindshieldArmor,
					init = RNG91.Init.WindshieldArmor,
					}
		}

		part DAMNFrontLeftArmor
        {

			model leftWindowa
				{
                		file = 91fordRangerWindowfla,
				}

			area = SeatFrontLeft,
			category = bodywork,
			parent = DoorFrontLeft,
			specificItem = false,
			itemType = Base.91fordRangerFrontWindowArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	type = Base.Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

                	time = 500,
                	skills = Mechanics:4,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = RNG91.InstallComplete.FrontLeftArmor,
                	requireInstalled = WindowFrontLeft,
            		}

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				type = Base.Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

					time = 550,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
		            test = Vehicles.UninstallTest.Default,
					complete = RNG91.UninstallComplete.FrontLeftArmor,
            		}

            		lua
            		{
					create = RNG91.Create.FrontLeftArmor,
					init = RNG91.Init.FrontLeftArmor,
					}
		}

		part DAMNFrontRightArmor
        {

			model rightWindowa
				{
                		file = 91fordRangerWindowfra,
				}

			area = SeatFrontRight,
			category = bodywork,
			parent = WindowFrontRight,
			specificItem = false,
			itemType = Base.91fordRangerFrontWindowArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	type = Base.Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

                	time = 500,
                	skills = Mechanics:4,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = RNG91.InstallComplete.FrontRightArmor,
                	requireInstalled = WindowFrontRight,
            		}

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				type = Base.Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

					time = 550,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
		            test = Vehicles.UninstallTest.Default,
					complete = RNG91.UninstallComplete.FrontRightArmor,
            		}

            		lua
            		{
					create = RNG91.Create.FrontRightArmor,
					init = RNG91.Init.FrontRightArmor,
					}
		}
	}

    template vehicle RNG91ArmorXC
		{
            template! = RNG91ArmorSC,

		part DAMNBackLeftArmor
        {

			model winbla
				{
                		file = 91fordRangerWindowbla,
				}

			area = SeatRearLeft,
			category = bodywork,
			specificItem = false,
			itemType = Base.91fordRangerBackWindowArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	type = Base.Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

                	time = 500,
                	skills = Mechanics:4,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = RNG91.InstallComplete.BackLeftArmor,
                	requireInstalled = WindowRearLeft,
            		}

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				type = Base.Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

					time = 550,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
		            test = Vehicles.UninstallTest.Default,
					complete = RNG91.UninstallComplete.BackLeftArmor,
            		}

            		lua
            		{
					create = RNG91.Create.BackLeftArmor,
					init = RNG91.Init.BackLeftArmor,
					}
		}

		part DAMNBackRightArmor
        {

			model winbra
				{
                		file = 91fordRangerWindowbra,
				}

			area = SeatRearRight,
			category = bodywork,
			specificItem = false,
			itemType = Base.91fordRangerBackWindowArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	type = Base.Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

                	time = 500,
                	skills = Mechanics:4,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = RNG91.InstallComplete.BackRightArmor,
                	requireInstalled = WindowRearRight,
            		}

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				type = Base.Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

					time = 550,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
		            test = Vehicles.UninstallTest.Default,
					complete = RNG91.UninstallComplete.BackRightArmor,
            		}

            		lua
            		{
					create = RNG91.Create.BackRightArmor,
					init = RNG91.Init.BackRightArmor,
					}
		}
	}
}