Data Realms Fan Forums http://45.55.195.193/ |
|
Javelin Rocket http://45.55.195.193/viewtopic.php?f=1&t=19490 |
Page 1 of 1 |
Author: | Koolaidperson [ Thu Aug 12, 2010 4:55 am ] |
Post subject: | Javelin Rocket |
I'm working on a Javelin type rocket launcher. Firing the rocket is a 3 step process...
1. Rocket leaves the barrel 2. 1/4 of a second later the rocket flies 200 pixels vertically into the air. 3. The rocket locks onto a target within a 1000 pixel radius, and begins it's decent =) I have steps 1 & 3 covered, how would I go about doing step 2? Thanks in advance! |
Author: | Coops [ Thu Aug 12, 2010 6:43 am ] |
Post subject: | Re: Javelin Rocket |
2: Attach an Emitter that emits something that pushes the missile upwards then samething to go restore the angle to point forward Or just Lua for it all.. |
Author: | [Insert Name Here] [ Thu Aug 12, 2010 11:07 am ] |
Post subject: | Re: Javelin Rocket |
Yeah, we can probably cannibalize the destroyer's Lua code for the 2nd stage then add in the homing missile's code but for a 1000 pixel radius. |
Author: | PhantomAGN [ Thu Aug 12, 2010 7:13 pm ] |
Post subject: | Re: Javelin Rocket |
Do you want it to target enemies that are near the start point or the peak of the second stage? It makes sense to me to limit the field of "vision" to 45º from where the actor aims the weapon, and to pick a target even before it fires the missile. |
Author: | p3lb0x [ Thu Aug 12, 2010 7:28 pm ] |
Post subject: | Re: Javelin Rocket |
Or, use pure ini coding like I did. (Not very accurate) |
Author: | Koolaidperson [ Thu Aug 12, 2010 11:07 pm ] |
Post subject: | Re: Javelin Rocket |
PhantomAGN wrote: Do you want it to target enemies that are near the start point or the peak of the second stage? It makes sense to me to limit the field of "vision" to 45º from where the actor aims the weapon, and to pick a target even before it fires the missile. After it's at the end of the second stage it should search for the nearest target. At p3lb0x: That looks nice, but it should go up straighter. Coops9753 wrote: 2: Attach an Emitter that emits something that pushes the missile upwards then samething to go restore the angle to point forward I have no idea how to do that |
Author: | 411570N3 [ Fri Aug 13, 2010 7:37 am ] |
Post subject: | Re: Javelin Rocket |
How are you making the mod otherwise then? |
Author: | Koolaidperson [ Fri Aug 13, 2010 4:51 pm ] |
Post subject: | Re: Javelin Rocket |
411570N3 wrote: How are you making the mod otherwise then? I'm using the homing missile launcher's lua script. I need to add a step that makes it fly upward, then I could handle it from there. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |