You still need trace to measure the height you can climb. Trace when your entity hit the wall.
Code:
fromvec.x = my.ent.z + fcos(my.pan,this_ent_width*2);
fromvec.y = my.ent.z + fsin(my.pan,this_ent_width*2);
fromvec.z = my_ent.z + max_climbable_height;
vec_set(tovec.x, fromvec.x);
c_trace(...);//argh, I forgot what to put here, been a while since I do 3DGS