@Rich: When I used that trace it returned a value of -504.856 (-292.285 when the player was 1 quant above the ground in WED) for distance_to_ground. In other words, it still caused the player to fly into the sky. =P

@DJBMASTER: Interesting, but that function does not seem to offer as much freedom compared to the c_trace function.