I think I know exactly what he means.
@Loopix: Did you use GLIDE as parameter in c_move? This could be an easy solution!
Otherwise you have to look for a pathfinding solution where you place nodes aroud the player that you can trace. The nodes leading to your target and being hit without a barrier form the right path to your final target
