module Base
{
    model M911WindshieldArmor
    	{
        mesh = vehicles/Vehicles_82oshkoshM911_mk3_Body|m911_windshield_a,
        shader = damn_vehicle_noreflect_shader,
        scale = 0.1,
    	}

	model M911doorfla
	{
		mesh = vehicles/Vehicles_82oshkoshM911_mk3_Body|m911_door_fl_a,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_fl_bone 1.0,
	}

	model M911doorfra
	{
		mesh = vehicles/Vehicles_82oshkoshM911_mk3_Body|m911_door_fr_a,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_fr_bone 1.0,
	}

    model M911WindshieldRearArmor
    	{
        mesh = vehicles/Vehicles_82oshkoshM911_mk3_Body|m911_windshield_rear_a,
		shader = damn_vehicle_shader,
        scale = 0.1,
        boneWeight = trunk_bone 1.0,
    	}

	template vehicle M911Armor
	{
        part M911WindshieldArmor
        {

			model WindshieldArmor
			{
                file = M911WindshieldArmor,
			}

			area = Engine,
			category = bodywork,
			specificItem = false,
			itemType = Base.M911WindshieldArmor,
			mechanicRequireKey = false,

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

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

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

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

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

		part M911DoorFrontLeftArmor
		{
			model DoorFrontLeftArmor
				{
				file = M911doorfla,
				}
				parent = DoorFrontLeft,
				specificItem = false,
				table install
				{
				requireInstalled = WindowFrontLeft,
				}
				area = SeatFrontLeft,

                category = door,
			itemType = Base.M911CarFrontDoorArmor,
			
				mechanicRequireKey = true,
				table install
				{
					items
					{
						item
						{
							type = Base.Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 1200,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.InstallTest.Default,
					complete = M911.InstallComplete.DoorFrontLeftArmor,
				}
				table uninstall
				{
					items
					{
						item
						{
							type = Base.Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 1200,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.UninstallTest.Default,
					complete = M911.UninstallComplete.DoorFrontLeftArmor,
				}

				lua
				{
					create = M911.Create.DoorFrontLeftArmor,
					init = M911.Init.DoorFrontLeftArmor,
				}
		}

		part M911DoorFrontRightArmor
		{
			model DoorFrontRightArmor
				{
				file = M911doorfra,
				}
				parent = DoorFrontRight,
				specificItem = false,
				table install
				{
				requireInstalled = WindowFrontRight,
				}
				area = SeatFrontRight,
				
				
			category = door,
			itemType = Base.M911CarFrontDoorArmor,
			
				mechanicRequireKey = true,
				table install
				{
					items
					{
						item
						{
							type = Base.Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 1200,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.InstallTest.Default,
					complete = M911.InstallComplete.DoorFrontRightArmor,
				}
				table uninstall
				{
					items
					{
						item
						{
							type = Base.Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 1200,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.UninstallTest.Default,
					complete = M911.UninstallComplete.DoorFrontRightArmor,
				}

                lua
				{
					create = M911.Create.DoorFrontRightArmor,
					init = M911.Init.DoorFrontRightArmor,
				}
		}

        part M911WindshieldRearArmor
        {

			model WindshieldArmor
				{
                		file = M911WindshieldRearArmor,
				}

				area = TruckBed,
				parent = TrunkDoor,
				category = bodywork,
				specificItem = false,
				itemType = Base.M911WindshieldRearArmor,
				mechanicRequireKey = false,

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

                	time = 1100,
                	skills = Mechanics:4,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = M911.InstallComplete.WindshieldRearArmor,
            		}

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

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

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