module Base
{

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

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

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

		part M35A2Door*
		{
			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,
				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 = Vehicles.InstallComplete.Door,
				}
				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 = Vehicles.UninstallComplete.Door,
				}
			}
		}
	}
}