the stuttering probably comes from the floor_dist=c_trace and if(floor_dist<=4)
Your gravity probably takes you closer than 4 from the floor, so while the slope is still less than 4 you dont go down, until enough slope has been passed for it to be >4 again...
I would recomment removing that c_trace and the whole if/else part... along with the clamp
I would just go with the following:
while(1)
{
c_move(me,vector(my.move_vec_x,my.move_vec_y,my.move_vec_z),nullvector,IGNORE_ME|IGNORE_PASSABLE|GLIDE);
wait(1);
}
just decide on a value and set it for your gravity once in your code somewhere before this