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 DAMNWindshieldArmor
        {

			model WindshieldArmor
			{
                file = M911WindshieldArmor,
			}

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

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = 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
                    		{
                            tags = 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 DAMNFrontLeftArmor
		{
			model DoorFrontLeftArmor
				{
				file = M911doorfla,
				}
				parent = DoorFrontLeft,
				specificItem = false,
				table install
				{
				requireInstalled = WindowFrontLeft,
				}
				area = SeatFrontLeft,

                category = door,
			itemType = Base.M911CarFrontDoorArmor,
            durability = 5,
			
				mechanicRequireKey = true,
				table install
				{
					items
					{
						item
						{
							tags = 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
						{
							tags = 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 DAMNFrontRightArmor
		{
			model DoorFrontRightArmor
				{
				file = M911doorfra,
				}
				parent = DoorFrontRight,
				specificItem = false,
				table install
				{
				requireInstalled = WindowFrontRight,
				}
				area = SeatFrontRight,
				

			category = door,
			itemType = Base.M911CarFrontDoorArmor,
            durability = 5,
			
				mechanicRequireKey = true,
				table install
				{
					items
					{
						item
						{
							tags = 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
						{
							tags = 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 DAMNWindshieldRearArmor
        {

			model WindshieldArmor
				{
                		file = M911WindshieldRearArmor,
				}

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

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = 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
                    		{
			  				tags = 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,
					}
		}
	}
}