N@Dynamic Jumper
I@X1 Y1 Z1 PDist
O@Velocity Distance Pitch Ang RecAngle
schedule(10)
X=extposx()
Y=extposy()
Z=extposz()
Pitch=extangp()
Yaw=extangy()
Roll=extangr()
Ang=abs(Pitch)
X2=abs((X^2+Y^2+Z^2)^0.5-(X1^2+Y1^2+Z1^2)^0.5)
G=600
Velocity=0

PDist<70 & PDist!=0-> Velocity=((X2*G)/sin(2*Ang))^0.5;
RecAngle = (1/2)*asin((G*X2)/Velocity^2)
Distance=X2