have a look at disable_z_glide, move_min_z and move_friction.