are you using c_trace to detect the ground beneath you? what version are you using? in 6.4 or something there was a bug where c_trace would return dodgy values when it hits dynamic entities unless you enable the USE_POLYGON flag in your c_trace.
this is only a guess. please give us an example of your code.