module Base
{
	model VVA_Vehicles_Racer_LightCapFL
	{
		mesh = vehicles/VVA/Racer/static|Light_FrontLeftC_obj,
		shader = vehicle_multiuv_noreflect,
		scale = 0.01,
	}
	model VVA_Vehicles_Racer_LightCapFR
	{
		mesh = vehicles/VVA/Racer/static|Light_FrontRightC_obj,
		shader = vehicle_multiuv_noreflect,
		scale = 0.01,
	}
	model VVA_Vehicles_Racer_LightCapFL_nr
	{
		mesh = vehicles/VVA/Racer/static|Light_FrontLeftC_obj,
		shader = vehicle_norandom_multiuv_noreflect,
		scale = 0.01,
	}
	model VVA_Vehicles_Racer_LightCapFR_nr
	{
		mesh = vehicles/VVA/Racer/static|Light_FrontRightC_obj,
		shader = vehicle_norandom_multiuv_noreflect,
		scale = 0.01,
	}

	model VVA_Vehicles_Racer_LightCapRL
	{
		mesh = vehicles/VVA/Racer/static|Light_RearLeftC_obj,
		shader = vehicle_multiuv_noreflect,
		scale = 0.01,
	}
	model VVA_Vehicles_Racer_LightCapRR
	{
		mesh = vehicles/VVA/Racer/static|Light_RearRightC_obj,
		shader = vehicle_multiuv_noreflect,
		scale = 0.01,
	}
	model VVA_Vehicles_Racer_LightCapRL_nr
	{
		mesh = vehicles/VVA/Racer/static|Light_RearLeftC_obj,
		shader = vehicle_norandom_multiuv_noreflect,
		scale = 0.01,
	}
	model VVA_Vehicles_Racer_LightCapRR_nr
	{
		mesh = vehicles/VVA/Racer/static|Light_RearRightC_obj,
		shader = vehicle_norandom_multiuv_noreflect,
		scale = 0.01,
	}


	template vehicle VVA_Racer_FrontLightCaps {
		part HeadlightCapLeft
		{
			parent = EngineDoor,
			model Default
			{
				file = VVA_Vehicles_Racer_LightCapFL,
			}
			category = nodisplay,
			specificItem = false,
			itemType = Base.LightBulb,
			lua
			{
				create = Vehicles.Create.Default,
				init = Vehicles.Init.Default,
			}
		}
		part HeadlightCapRight
		{
			parent = EngineDoor,
			model Default
			{
				file = VVA_Vehicles_Racer_LightCapFR,
			}
			category = nodisplay,
			specificItem = false,
			itemType = Base.LightBulb,
			lua
			{
				create = Vehicles.Create.Default,
				init = Vehicles.Init.Default,
			}
		}
		part HeadlightLeft
		{
			table install {
				complete = Vehicles.Install.RemoveCapFL,
			}
		}
		part HeadlightRight
		{
			table install {
				complete = Vehicles.Install.RemoveCapFR,
			}
		}
	}
	template vehicle VVA_Racer_FrontLightCaps_nr {
		part HeadlightCapLeft
		{
			model Default
			{
				file = VVA_Vehicles_Racer_LightCapFL_nr,
			}
			category = nodisplay,
			specificItem = false,
			itemType = Base.LightBulb,
			lua
			{
				create = Vehicles.Create.Default,
				init = Vehicles.Init.Default,
			}
		}
		part HeadlightCapRight
		{
			model Default
			{
				file = VVA_Vehicles_Racer_LightCapFR_nr,
			}
			category = nodisplay,
			specificItem = false,
			itemType = Base.LightBulb,
			lua
			{
				create = Vehicles.Create.Default,
				init = Vehicles.Init.Default,
			}
		}
		part HeadlightLeft
		{
			table install {
				complete = Vehicles.Install.RemoveCapFL,
			}
		}
		part HeadlightRight
		{
			table install {
				complete = Vehicles.Install.RemoveCapFR,
			}
		}
	}




	template vehicle VVA_Racer_RearLightCaps {
		part TaillightCapLeft
		{
			model Default
			{
				file = VVA_Vehicles_Racer_LightCapRL,
			}
			category = nodisplay,
			specificItem = false,
			itemType = Base.LightBulb,
			lua
			{
				create = Vehicles.Create.Default,
				init = Vehicles.Init.Default,
			}
		}
		part TaillightCapRight
		{
			model Default
			{
				file = VVA_Vehicles_Racer_LightCapRR,
			}
			category = nodisplay,
			specificItem = false,
			itemType = Base.LightBulb,
			lua
			{
				create = Vehicles.Create.Default,
				init = Vehicles.Init.Default,
			}
		}
		part HeadlightRearLeft
		{
			table install {
				complete = Vehicles.Install.RemoveCapRL,
			}
		}
		part HeadlightRearRight
		{
			table install {
				complete = Vehicles.Install.RemoveCapRR,
			}
		}
	}
	template vehicle VVA_Racer_RearLightCaps_nr {
		part TaillightCapLeft
		{
			model Default
			{
				file = VVA_Vehicles_Racer_LightCapRL_nr,
			}
			category = nodisplay,
			specificItem = false,
			itemType = Base.LightBulb,
			lua
			{
				create = Vehicles.Create.Default,
				init = Vehicles.Init.Default,
			}
		}
		part TaillightCapRight
		{
			model Default
			{
				file = VVA_Vehicles_Racer_LightCapRR_nr,
			}
			category = nodisplay,
			specificItem = false,
			itemType = Base.LightBulb,
			lua
			{
				create = Vehicles.Create.Default,
				init = Vehicles.Init.Default,
			}
		}
		part HeadlightRearLeft
		{
			table install {
				complete = Vehicles.Install.RemoveCapRL,
			}
		}
		part HeadlightRearRight
		{
			table install {
				complete = Vehicles.Install.RemoveCapRR,
			}
		}
	}
}
