Fractal Softworks Forum

Starsector => Suggestions => Topic started by: Ghoti on September 06, 2012, 09:15:04 PM

Title: Missiles track targets of turret
Post by: Ghoti on September 06, 2012, 09:15:04 PM
So I'm not 100% sure what the behavior currently is. I've got a point defense missile launcher, believe it or not, it works pretty well. However when you set a target, the launcher will point towards a fighter or incoming missile, fire, and the fired missile will go towards MY target, not the PDML's target. Weird thing though, because that doesn't happen 100% of the time.

Try it for yourself. when you're not targeting anything, or you're shooting it manually, everything works great.
Things only go sour when you set it on automatic, then set a target.

http://www.mediafire.com/?h00adn9j8yb1uov

Title: Re: Missiles track targets of turret
Post by: xenoargh on September 06, 2012, 09:25:36 PM
If it's on Autofire and you've set a Target, I agree, it should continue to function as PD first, and only target the Target if there are no valid PD targets within its range.  Probably a minor bug with that code; Alex added that into the game in a real hurry :)
Title: Re: Missiles track targets of turret
Post by: Sproginator on September 07, 2012, 12:48:11 AM
Love this idea
Title: Re: Missiles track targets of turret
Post by: Alex on September 08, 2012, 10:03:21 AM
So I'm not 100% sure what the behavior currently is. I've got a point defense missile launcher, believe it or not, it works pretty well. However when you set a target, the launcher will point towards a fighter or incoming missile, fire, and the fired missile will go towards MY target, not the PDML's target. Weird thing though, because that doesn't happen 100% of the time.

Try it for yourself. when you're not targeting anything, or you're shooting it manually, everything works great.
Things only go sour when you set it on automatic, then set a target.

http://www.mediafire.com/?h00adn9j8yb1uov

Hmm - not seeing the issue. Spent maybe 10 minutes running through it in a simulation, and it goes after missiles regardless of what I've got targeted. It *does* go after the targeted ship if the missiles are out of range or out of arc, though - maybe that's what you're seeing?

I'd suggest adding "DO_NOT_AIM" to the hints (instead of GUIDED_POOR). It'll still try to aim at the target, but won't assume it can't hit something because it's out of arc, or hold off on firing because it's not pointed right at the target.
Title: Re: Missiles track targets of turret
Post by: Ghoti on September 08, 2012, 12:10:32 PM
you messed with it for 10 minutes without seeing strangeness? Even with do_not_aim the flares have a habit of going after out of range targets rather than the reason they got launched. I'll make a video of it later today.