Blender 2 SMD (Half-LIfe 2) exporter - NEEDED!!!

I have Blender 2 MD5 (Doom 3) exporter for Blender 2.49b, that happens to write into HL2 SMD format too. It rough, but it somewhat works.
Can someone rip HL2 SMD part out of it, convert to Blender 2.54 / 2.55 API and merge it with existing Blender 2 MD5 exporter for Blender 2.54?
Ideally, the math part and format writing part should be merged with blender2md GUI. This way we would have 2 separate exporters.
Thank you.