module Base
{
    model 78amgeneralM35A2windshieldArmor1
    	{
        mesh = vehicles/Vehicles_78amgeneralM35A2_Body|m35_windshield_a,
        shader = damn_vehicle_noreflect_shader,
        scale = 0.1,
    	}

	model 78amgeneralM35A2doorfla
	{
		mesh = vehicles/Vehicles_78amgeneralM35A2_Body|m35_door_left_a,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_left_bone 1.0,
	}

	model 78amgeneralM35A2doorfra
	{
		mesh = vehicles/Vehicles_78amgeneralM35A2_Body|m35_door_right_a,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
		boneWeight = door_right_bone 1.0,
	}

	template vehicle M35A2Armor
	{

		part DAMNWindshieldArmor
        {

			model M35WindshieldArmor1
				{
                		file = 78amgeneralM35A2windshieldArmor1,
				}

			area = Engine,
			category = bodywork,
			specificItem = false,
			itemType = Base.M35A2WindshieldArmor1,
			mechanicRequireKey = false,
            durability = 5,
			table install
					{
						requireInstalled = Windshield,
					}

			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 = M35A2.InstallComplete.WindshieldArmor,
            		}

            		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 = M35A2.UninstallComplete.WindshieldArmor,
            		}

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

		part DAMNFrontLeftArmor
		{
			model M35DoorLeftArmor1
				{
				file = 78amgeneralM35A2doorfla,
				}
				parent = DoorFrontLeft,
				itemType = Base.M35A2DoorArmor1,
				specificItem = false,
				area = SeatFrontLeft,
				table install
					{
						requireInstalled = WindowFrontLeft,
					}
				lua
				{
					create = M35A2.Create.DoorLeftArmor,
					init = M35A2.Init.DoorLeftArmor,
				}
		}

		part DAMNFrontRightArmor
		{
			model M35DoorRightArmor1
				{
				file = 78amgeneralM35A2doorfra,
				}
				parent = DoorFrontRight,
				itemType = Base.M35A2DoorArmor1,
				specificItem = false,
				area = SeatFrontRight,
				table install
					{
						requireInstalled = WindowFrontRight,
					}
				lua
				{
					create = M35A2.Create.DoorRightArmor,
					init = M35A2.Init.DoorRightArmor,
				}
		}

		part DAMNFront*
		{
			category = door,
			    door
			    {
				}
				anim Open
				{
					sound = VehicleDoorOpenStandard,
				}
				anim Close
				{
					sound = VehicleDoorCloseStandard,
				}
				anim Lock
				{
					sound = LockVehicleDoorStandard,
				}
				anim Unlock
				{
					sound = UnlockVehicleDoorStandard,
				}
				anim IsLocked
				{
					sound = VehicleDoorIsLockedStandard,
				}
				anim ActorOpen
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				anim ActorClose
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				mechanicRequireKey = true,
                durability = 5,
				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 = Vehicles.InstallComplete.Door,
				}
				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 = Vehicles.UninstallComplete.Door,
				}
			}
	}
}