View Single Post
  #3  
Old 01-16-2005, 04:11 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
Quote:
Originally Posted by Sildae
Use a loop to test increasing powers simulating shoot, until you have found one that works for the distance.
sike, that's a terrible way

just calculate the projectile physics, like i did

v = dt
d=1/2at^2 + vit

simultaneous equations, or whatever it's called, the time is the same in both equations (well, the time is double in the v=dt equation)

the information about projectile movement can be found in newfeatures.txt

i used a constant zangle of 45 degrees

i could just post you the entire script but that might be against the rules?
__________________


Last edited by Evil_Trunks; 01-16-2005 at 05:03 AM..
Reply With Quote