module Base
{
	template vehicle VVA_Hood {
		part EngineDoor
		{
			anim Close
			{
				anim = Hood_closing,
			}

			anim Open
			{
				anim = Hood_closing,
				reverse = TRUE,
			}

			anim Closed
			{
				anim = Hood_closing,
				reverse = TRUE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = Hood_closing,
				animate = FALSE,
			}
		}	
	}	
	
	template vehicle VVA_Hood_Slow {
		part EngineDoor
		{
			anim Close
			{
				rate = 0.625,
			}

			anim Open
			{
				rate = 0.5,
			}
		}
	}

	template vehicle VVA_Hood_Reg {
		part EngineDoor
		{
			anim Close
			{
				rate = 1.25,
			}

			anim Open
			{
				rate = 1.0,
			}
		}
	}
	template vehicle VVA_Hood_Fast {
		part EngineDoor
		{
			anim Close
			{
				rate = 2.5,
			}

			anim Open
			{
				rate = 2.0,
			}
		}
	}
	template vehicle VVA_Hood_nolights {
		part VVAAnchor_Hood1
		{}
		part VVAAnchor_Hood2
		{}
		part VVAAnchor_Hood3
		{}
		part VVAAnchor_Hood*
		{
			parent = EngineDoor,
			category = nodisplay,
           	itemType = Base.LightBulb,
            setAllModelsVisible = true,
			lua
	    	{
				create = Vehicles.Create.Default,
				update = Vehicles.Update.MirrorHoodCondition,
	    	}
			model Default {
				file = VVA_Dummy,
			}
		}
		template! = VVA_Hood,
		template! = VVA_Hood_Slow,
	}
	template vehicle VVA_Hood_Common {
		template! = VVA_Hood_nolights,	
	}

}