I haven't test it but Master's Code should work!
vec_for_vertex replaces ent_vertex, but this function gives you the real world coordinates of the Vertex.
vec_for_mesh gives you the Mesh-Coordinate of the Modell/Terain and have to be used for a deformation!

I think the only differences between the code of Master an me is, that his code is easier to set up but for that the engine have a bit more to work. But I think this "more to work" is really not much, I should test it.

P.S.: Again: vec_for_vertex, vec_for_mesh, vec_to_mesh are only Beta-Features at the moment. But the mesh-functions doesn't work correctly (BUT THEY WORK!).