Hi guys,
In source engine you can do a command like so:
CMatRenderContextPtr context(materials);
context->SetHeightClipMode(MATERIAL_HEIGHTCLIPMODE_RENDER_BELOW_HEIGHT);
context->SetHeightClipZ(GetAbsOrigin().z+heightToClip);
Which essentially stops rendering the model above a certain distance. This is really useful for stuff like first person legs (to hide the chest and arms)
Thanks