Remeber my rant about how teleportation did not belong in Zerok? Well, rather than just being the useless guy who rants about everything, I decided to code my ideas into reality. xponen ended up doing most of the work, however. (Thanks for the code, xponen) Anyway, here's the code
http://pastebin.com/2TRPpea2This is my version of unit_teleport.lua .Rather than automagically teleporting units, it uses it's newton-like powers to toss them across the map, then slow them to a stop so that they don't die on the recieving end.
The result of my ideas is a Unit Cannon, not unlike the Noah unitcannon from SupCom2. It's just too cool to watch.
There are a few rough edges on this code (currently it does not find the optimal launch angle for transport, and as such sends units flying higher than it needs too. But it does get them to the drop zone safely every time.
This code is dedicated to all the Scallops that died during testing. May they rest in pieces.