You are missing the movement mode.
If you have the latest A6 or any A7 edition replace this line:
Code:
ent_move(move_vec,NULLVECTOR);

with this one:
Code:
c_move(my,move_vec,nullvector,IGNORE_PASSABLE);