Created by Bryan Draffen aka Skillator
email = gandolf@vci.net 
Free - free for all GameStudio projects, without restrictions
mainly from the office level anyway :P
/////////////////////////////////////////////////////////////////////////////

Launching player concept by the fang, from a catapault at that !!
Using vec_for_vertex to attach player my idea..in this case.
If you don't want to deal with programming game physics for a specific task
and you have A5.12 you can use vec_for_vertex to create an animated control
object in med.
(or a modeler with skeletel animation or key framing is Real fun)
Animate a small box fireing from a cannon in med.
Or just flying in a big arc through the air (you can just scale it up in wed).
Let the box fly all the way down almost to ground level during this animation.
This box will have your player attached to it for a fly through the air.
Choose & select a vertice on the box that will be used to attach to your
player. Note the vertice number in med.
Type that number in as indicated in the script. Put it in wed And
include this code in your script. 

I'm using this code in 1st and 3rd person views.
I also add a couple of other stationary boxes to the "controller model" 
to mark positions e.g. mximum hight of the arc, final landing point.
The idea is to put the final landing point somewhere over the destination
Since your player character will move straight through any Other objecs
while in flight. 
Keep in mind it will be interpolated so 20+ fames should do,I did have 
47 with my cannon though. Delete the cannon and save the box as a different
mdl. (after you save the cannon seperately of course) Load it in med
and assign it trajectory_prog. 
When you light the fuse. You'll go flying through the air.
As for making sure your in the cannon first vec_dist could be used from
inside the cannon. But I left that part out.

Also if the string <warlock> is already included elswhere e.g. 
the office demo, leave the string definition out.

I used a couple of bones in milkshape for my trajectory and the flight turned
out smooth. Trajecto.MDL, needs to be scaled up in wed.
If your using med and its giving you trouble (a rough ride,
during game play), you might be better off rotating a Huge shape, and
picking a control vertice out from the edge.



The next step is adding type of colison detection that terminates the action
if you come in contact with anything. I havn't done that yet.


Numerous Ogers were injured during the writing of this script. 
