View unanswered posts | View active topics It is currently Sun Jan 05, 2025 2:10 am



Reply to topic  [ 8 posts ] 
 Javelin Rocket 
Author Message
User avatar

Joined: Sun Aug 01, 2010 5:23 am
Posts: 40
Location: Your mom's house
Reply with quote
Post 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!


Thu Aug 12, 2010 4:55 am
Profile WWW
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: Javelin Rocket
1: Self Explanatory...
2: Attach an Emitter that emits something that pushes the missile upwards then samething to go restore the angle to point forward
3: Use the Lua homing script from the Coalitions homing missile launcher. Maybe a bit buggy and unwanted details might happen.

Or just Lua for it all..


Thu Aug 12, 2010 6:43 am
Profile
User avatar

Joined: Wed May 26, 2010 9:58 pm
Posts: 270
Location: [Insert ominous, personally significant and extremely obvious location Here, e.g. behind you]
Reply with quote
Post 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.


Thu Aug 12, 2010 11:07 am
Profile WWW
User avatar

Joined: Mon Jun 29, 2009 2:40 am
Posts: 610
Location: Deep below The Map of Mars
Reply with quote
Post 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.


Thu Aug 12, 2010 7:13 pm
Profile
Forum Moderator
User avatar

Joined: Fri Feb 02, 2007 3:53 pm
Posts: 1896
Location: in my little gay bunker
Reply with quote
Post Re: Javelin Rocket
Or, use pure ini coding like I did.

Image

(Not very accurate)


Thu Aug 12, 2010 7:28 pm
Profile
User avatar

Joined: Sun Aug 01, 2010 5:23 am
Posts: 40
Location: Your mom's house
Reply with quote
Post 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


Thu Aug 12, 2010 11:07 pm
Profile WWW
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Javelin Rocket
How are you making the mod otherwise then?


Fri Aug 13, 2010 7:37 am
Profile WWW
User avatar

Joined: Sun Aug 01, 2010 5:23 am
Posts: 40
Location: Your mom's house
Reply with quote
Post 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.


Fri Aug 13, 2010 4:51 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.033s | 14 Queries | GZIP : Off ]