Only one targeted missile per object

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
SandJ
---- E L I T E ----
---- E L I T E ----
Posts: 1048
Joined: Fri Nov 26, 2010 9:08 pm
Location: Help! I'm stranded down here on Earth!

Only one targeted missile per object

Post by SandJ »

I think this only applies to one of the OXPs rather than the core game.

Where it is possible to target one of one's missiles at Target A, then switch to the next missile and point it at Target B and so on, I would like the option (I would be happy for it to be the normal behaviour, actually) for it to not be possible to target the same object twice.

I do NOT mean, fire a missile at Target A and be prevented from targetting another missile at Target A.

I DO mean, target a missile at Target A, do not fire it, and so be prevented from targetting another missile at Target A.

Could someone suggest the code for this, please?
Flying a Cobra Mk I Cobbie 3 with nothing but Explorers Club.OXP and a beam laser 4 proper lasers for company :D
Dropbox referral link 2GB of free space online + 500 Mb for the referral: good for securing work-in-progress.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Only one targeted missile per object

Post by Cody »

There are occasions when locking two missiles onto the same target is a very useful tactic.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Ganelon
---- E L I T E ----
---- E L I T E ----
Posts: 534
Joined: Fri Jul 02, 2010 11:45 am
Location: Around Rabiarce or Lasoce

Re: Only one targeted missile per object

Post by Ganelon »

I had an NPC opponent lately fire at least three missiles at me at once. Never saw that happen before, so I was a bit surprised. If they weren't simultaneous, they were close enough together that they appeared to be fired at the same time. I was at close range (less than 250 meters), so I saw the launch pretty well. Sorry I don't have a screenshot or more details, but three hardheads after you doesn't leave a lot of time for observations or screenies. LOL

I don't usually fire missiles close together (I'm a bit of a cheapskate when it comes to spending missiles), but I think there at least used to be a pause between how fast they could be fired, wasn't there?
Sleep? Who needs sleep? Got game. No need sleep.
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Only one targeted missile per object

Post by Switeck »

I added a delay between missile shots by NPC ships in my mod.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Only one targeted missile per object

Post by Commander McLane »

Ganelon wrote:
I had an NPC opponent lately fire at least three missiles at me at once. Never saw that happen before, so I was a bit surprised. If they weren't simultaneous, they were close enough together that they appeared to be fired at the same time. I was at close range (less than 250 meters), so I saw the launch pretty well. Sorry I don't have a screenshot or more details, but three hardheads after you doesn't leave a lot of time for observations or screenies. LOL

I don't usually fire missiles close together (I'm a bit of a cheapskate when it comes to spending missiles), but I think there at least used to be a pause between how fast they could be fired, wasn't there?
That was a pretty common, even standard behaviour before Oolite 1.74 (I think), and is precisely the reason why the missile_load_time key was introduced. Seems your NPC doesn't yet use this key.
Post Reply