module Base
{
    model 82porsche911doorfla
    	{
        mesh = vehicles/Vehicles_82porsche911_Body|p911_window_fl_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
        static = FALSE,
    	}

    model 82porsche911doorfra
    	{
        mesh = vehicles/Vehicles_82porsche911_Body|p911_window_fr_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
        static = FALSE,
    	}

    model 82porsche911doorrla
    	{
        mesh = vehicles/Vehicles_82porsche911_Body|p911_window_rl_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
    	}

    model 82porsche911doorrra
    	{
        mesh = vehicles/Vehicles_82porsche911_Body|p911_window_rr_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
    	}

    model 82porsche911windshielda
    	{
        mesh = vehicles/Vehicles_82porsche911_Body|p911_windshield_front0_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
    	}

    model 82porsche911windshieldreara
    	{
        mesh = vehicles/Vehicles_82porsche911_Body|p911_windshield_rear0_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
    	}

        model 82porsche911windshieldrearb
    	{
        mesh = vehicles/Vehicles_82porsche911_Body|p911ta_windsheld_rear0_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
    	}

	template vehicle PRS82Armor
		{
		part DAMNWindshieldArmor
        	{

			model winda
				{
                		file = 82porsche911windshielda,
				}

			area = TruckBed,
			category = bodywork,
			specificItem = false,
			itemType = Base.82porsche911WindshieldArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

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

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				tags = Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

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

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

		part DAMNFrontLeftArmor
        {

			model fla
				{
                		file = 82porsche911doorfla,
				}

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

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

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

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				tags = Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

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

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

		part DAMNFrontRightArmor
        {

			model fra
				{
                		file = 82porsche911doorfra,
				}

			area = SeatFrontRight,
			category = bodywork,
			parent = DoorFrontRight,
			specificItem = false,
			itemType = Base.82porsche911FrontWindowArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

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

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				tags = Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

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

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

		part DAMNRearLeftArmor
        {

			model rla
				{
                		file = 82porsche911doorrla,
				}

			area = SeatRearLeft,
			category = bodywork,
			parent = DoorRearLeft,
			specificItem = false,
			itemType = Base.82porsche911RearWindowArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

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

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				tags = Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

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

            		lua
            		{
					create = PRS82.Create.RearLeftArmor,
					init = PRS82.Init.RearLeftArmor,
					}
		}

		part DAMNRearRightArmor
        {

			model rra
				{
                		file = 82porsche911doorrra,
				}

			area = SeatRearRight,
			category = bodywork,
			parent = DoorRearRight,
			specificItem = false,
			itemType = Base.82porsche911RearWindowArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

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

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				tags = Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

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

            		lua
            		{
					create = PRS82.Create.RearRightArmor,
					init = PRS82.Init.RearRightArmor,
					}
		}

		part DAMNWindshieldRearArmor
        {

				model windra
				{
                		file = 82porsche911windshieldreara,
				}

			area = Engine,
			category = bodywork,
			specificItem = false,
			itemType = Base.82porsche911WindshieldRearArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

                	time = 700,
                	skills = Mechanics:4,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = PRS82.InstallComplete.WindshieldRearArmor,
                	requireInstalled = WindshieldRear,
            }

            table uninstall
            {
                	items
                	{
                    	1
                    		{
			  				tags = Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

					time = 750,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
		            test = Vehicles.UninstallTest.Default,
					complete = PRS82.UninstallComplete.WindshieldRearArmor,
            		}

            		lua
            		{
					create = PRS82.Create.WindshieldRearArmor,
					init = PRS82.Init.WindshieldRearArmor,
                    }
			}
		}

        template vehicle PRS82ArmorTA
		{
		part DAMNWindshieldArmor
        	{

			model winda
				{
                		file = 82porsche911windshielda,
				}

			area = TruckBed,
			category = bodywork,
			specificItem = false,
			itemType = Base.82porsche911WindshieldArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

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

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				tags = Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

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

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

		part DAMNFrontLeftArmor
        {

			model fla
				{
                		file = 82porsche911doorfla,
				}

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

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

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

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				tags = Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

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

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

		part DAMNFrontRightArmor
        {

			model fra
				{
                		file = 82porsche911doorfra,
				}

			area = SeatFrontRight,
			category = bodywork,
			parent = DoorFrontRight,
			specificItem = false,
			itemType = Base.82porsche911FrontWindowArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

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

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
			  				tags = Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

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

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

		part DAMNWindshieldRearArmor
        {

				model windra
				{
                		file = 82porsche911windshieldrearb,
				}

			area = Engine,
			category = bodywork,
			specificItem = false,
			itemType = Base.82porsche911taWindshieldRearArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
							equip = primary,
                    		}
                	}

                	time = 700,
                	skills = Mechanics:4,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = PRS82.InstallComplete.WindshieldRearArmorTA,
                	requireInstalled = WindshieldRear,
            }

            table uninstall
            {
                	items
                	{
                    	1
                    		{
			  				tags = Screwdriver,
							count = 1,
							keep = true,
							equip = primary,
                    		}
                	}

					time = 750,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
		            test = Vehicles.UninstallTest.Default,
					complete = PRS82.UninstallComplete.WindshieldRearArmorTA,
            		}

            		lua
            		{
					create = PRS82.Create.WindshieldRearArmorTA,
					init = PRS82.Init.WindshieldRearArmorTA,
			}
		}
	}
}
