module Base
{
    model 85chevyStepVandoorfla
    	{
        mesh = vehicles/Vehicles_85chevyStepVan_Body|85stepvan_window_fl_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
        static = FALSE,
    	}

    model 85chevyStepVandoorfra
    	{
        mesh = vehicles/Vehicles_85chevyStepVan_Body|85stepvan_window_fr_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
        static = FALSE,
    	}

    model 85chevyStepVanwindshielda
    	{
        mesh = vehicles/Vehicles_85chevyStepVan_Body|85stepvan_windshield_front_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
    	}

    model 85chevyStepVanwindshieldreara
    	{
        mesh = vehicles/Vehicles_85chevyStepVan_Body|85stepvan_windshield_rear_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
        static = FALSE,
    	}

        model 85chevyStepVandoorflas
    	{
        mesh = vehicles/Vehicles_85chevyStepVan_Body|85stepvan_window_fl_as,
		shader = damn_vehicle_shader,
        scale = 0.1,
        static = FALSE,
    	}

    model 85chevyStepVandoorfras
    	{
        mesh = vehicles/Vehicles_85chevyStepVan_Body|85stepvan_window_fr_as,
		shader = damn_vehicle_shader,
        scale = 0.1,
        static = FALSE,
    	}

    model 85chevyStepVanwindshieldas
    	{
        mesh = vehicles/Vehicles_85chevyStepVan_Body|85stepvan_windshield_front_as,
		shader = damn_vehicle_shader,
        scale = 0.1,
    	}

    model 85chevyStepVanwindshieldrearas
    	{
        mesh = vehicles/Vehicles_85chevyStepVan_Body|85stepvan_windshield_rear_as,
		shader = damn_vehicle_shader,
        scale = 0.1,
        static = FALSE,
    	}

	template vehicle STP85Armor
		{
		part DAMNWindshieldArmor
        	{

			model winda
				{
                		file = 85chevyStepVanwindshielda,
				}

                model windas
				{
                		file = 85chevyStepVanwindshieldas,
				}

			area = Engine,
			category = bodywork,
			specificItem = false,
			itemType = Base.85chevyStepVanWindshieldArmor;Base.85chevyStepVanWindshieldSWATArmor,
			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 = STP85.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 = STP85.UninstallComplete.WindshieldArmor,
            		}

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

		part DAMNFrontLeftArmor
        {

			model fla
				{
                		file = 85chevyStepVandoorfla,
				}

                model flas
				{
                		file = 85chevyStepVandoorflas,
				}

			area = SeatFrontLeft,
			category = bodywork,
			parent = DoorFrontLeft,
			specificItem = false,
			itemType = Base.85chevyStepVanFrontWindowArmor;Base.85chevyStepVanFrontWindowSWATArmor,
			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 = STP85.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 = STP85.UninstallComplete.FrontLeftArmor,
            		}

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

		part DAMNFrontRightArmor
        {

			model fra
				{
                		file = 85chevyStepVandoorfra,
				}

                model fras
				{
                		file = 85chevyStepVandoorfras,
				}

			area = SeatFrontRight,
			category = bodywork,
			parent = DoorFrontRight,
			specificItem = false,
			itemType = Base.85chevyStepVanFrontWindowArmor;Base.85chevyStepVanFrontWindowSWATArmor,
			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 = STP85.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 = STP85.UninstallComplete.FrontRightArmor,
            		}

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

		part DAMNWindshieldRearArmor
        {

				model windra
				{
                		file = 85chevyStepVanwindshieldreara,
				}

                model windras
				{
                		file = 85chevyStepVanwindshieldrearas,
				}

			area = TruckBed,
			category = bodywork,
			parent = TrunkDoor,
			specificItem = false,
			itemType = Base.85chevyStepVanWindshieldRearArmor;Base.85chevyStepVanWindshieldRearSWATArmor,
			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 = STP85.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 = STP85.UninstallComplete.WindshieldRearArmor,
            		}

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

    template vehicle STP85ArmorSWAT
	{
        template! = STP85Armor,

		    part DAMNWindshieldArmor
        	{

            	lua
            	{
				create = STP85.Create.WindshieldArmorS,
				init = STP85.Init.WindshieldArmorS,
				}
		    }

            part DAMNFrontLeftArmor
            {
            	lua
            	{
				create = STP85.Create.FrontLeftArmorS,
				init = STP85.Init.FrontLeftArmorS,
				}
		    }

            part DAMNFrontRightArmor
            {
           		lua
           		{
				create = STP85.Create.FrontRightArmorS,
				init = STP85.Init.FrontRightArmorS,
				}
		    }

            part DAMNWindshieldRearArmor
            {
           		lua
           		{
				create = STP85.Create.WindshieldRearArmorS,
				init = STP85.Init.WindshieldRearArmorS,
			}
		}
	}
}
