module Base
{

	model 82oshkoshM911hood
	{
		mesh = vehicles/Vehicles_82oshkoshM911_mk3_Body|m911_hood,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
	}

	template vehicle M911EngineDoor
	{
		part EngineDoor
		{

			model hood136674357679
			{
				file = 82oshkoshM911hood,
				offset = 0 0 0,
				rotate = 0 0 0,
				scale = 1.0,
			}

			anim Close
			{
				anim = hood_opening,
				reverse = TRUE,
				rate = 0.70,
			}

			anim Open
			{
				anim = hood_opening,
				reverse = FALSE,
				rate = 1.25,
			}

			anim Closed
			{
				anim = hood_opening,
				reverse = FALSE,
				animate = FALSE,
				
			}

			anim Opened
			{
				anim = hood_opening,
				animate = FALSE,
				reverse = TRUE,
			}
		
			category = bodywork,
			area = Engine,
			door
			{
			}
			anim Open
			{
				sound = VehicleHoodOpenStandard,
			}
			anim Close
			{
				sound = VehicleHoodCloseStandard,
			}

			anim ActorOpen
			{
				anim = WindowOpenSuccess,
				rate = 0.15,
				angle = 0.0 0.0 0.0,
			}

			anim ActorClose
			{
				anim = Attack_Shove,
				rate = 0.3,
				angle = 0.0 90.0 0.0,
			}

			itemType = Base.M911EngineDoor,
			mechanicRequireKey = true,
            durability = 5,
			repairMechanic = true,
			table install
			{
				items
				{
					1
					{
						tags = Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 1000,
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
				test = Vehicles.InstallTest.Default,
				complete = Vehicles.InstallComplete.Door,
			}
			table uninstall
			{
				items
				{
					1
					{
						tags = Wrench,
						count = 1,
						keep = true,
						equip = primary,
					}
				}
				time = 1000,
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
				test = Vehicles.UninstallTest.Default,
				complete = Vehicles.UninstallComplete.Door,
			}
			lua
			{
				create = Vehicles.Create.Default,
				init = Vehicles.Init.Door,
				update = Vehicles.Update.EngineDoor,
				use = Vehicles.Use.EngineDoor,
			}
		}
	}
}

