module Base
{
	repeat
	model VVA_Vehicles_[LABEL][Postfix]_HeadlightMounts
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Light_Host_[LABEL][Postfix]_obj,
else
		mesh = vehicles/[FILENAME]|Light_Host[Postfix]_obj,
end
		shader = vehicle_multiuv_noreflect,
		static = FALSE,
		scale = [SCALE],
  checkprop:	Bones 
  	repeatprop: Bones 
		boneWeight = [Bones] 1.0,
	end
  else
		boneWeight = HeadlightBone 1.0,
  end
	}
	model VVA_Vehicles_[LABEL][Postfix]_HeadlightMounts_nr
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Light_Host_[LABEL][Postfix]_obj,
else
		mesh = vehicles/[FILENAME]|Light_Host[Postfix]_obj,
end
		shader = vehicle_norandom_multiuv_noreflect,
		static = FALSE,
		scale = [SCALE],
  checkprop:	Bones 
  	repeatprop: Bones 
		boneWeight = [Bones] 1.0,
	end
  else
		boneWeight = HeadlightBone 1.0,
  end
	}

	template vehicle VVA_[LABEL][Postfix]_LightHost {
		template! = VVA_LightHostAnimate,
		part LightsHost
		{
			model Default
			{
				file = VVA_Vehicles_[LABEL][Postfix]_HeadlightMounts,
			}
		}
		part HeadlightLeft 
		{
			parent = LightsHost,
		}
		part HeadlightRight 
		{
			parent = LightsHost,
		}
	}
	template vehicle VVA_[LABEL][Postfix]_LightHost_nr {
		template! = VVA_LightHostAnimate,
		part LightsHost
		{
			model Default
			{
				file = VVA_Vehicles_[LABEL][Postfix]_HeadlightMounts_nr,
			}
		}
		part HeadlightLeft 
		{
			parent = LightsHost,
		}
		part HeadlightRight 
		{
			parent = LightsHost,
		}
	}
	endrepeat
	setflag: LightsHost
}