just try replacing your c_move with it and see if it's what you need, it keeps you from being stuck in stuff. For instance:
c_move (me, vector(5,0,0), nullvector, glide);
would be changed to:
phys_move (me, vector(5,0,0), nullvector, glide);
so all you need to do is copy that code to near the top of your lines in your main script and change the red part in your c_move functions:
c_move (me, vector(5,0,0), nullvector, glide);
the phys_move function I gave you is a replacement for c_move, it keeps you from getting stuck in walls, nothing more.
It would be helpful if you would post the code in question.