I'm a bad searcher. Didn't find anything in HLSDK. Maybe someone can point where exactly it is or give a code example.
Anyway. I've got an entity with a model. Entity's angles are set according to surface. It adjusts the angles to ground. Probably moving the entity one unit up, when it touches the end of the slope would fix it.