Attempt at making hammer compatibility.

This is untested, it might not work at all. I don't have Source SDK at my disposal at this time, though. Please report bugs or confirm that it works.