Fractal Softworks Forum

Starsector => Bug Reports & Support => Topic started by: j01 on March 09, 2012, 08:56:20 AM

Title: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: j01 on March 09, 2012, 08:56:20 AM
Just as it says in the title.

I had an engine hullmod hyperion, sped up to engineboost speed during combat, then fired my annihilator rockets. They were exactly the same speed as me, stayed on top of my ship as I went along, and exploded on me after a very brief moment.

This might not ought to be the case, and I can see it being a more common problem on maps with nav beacons that give speed upgrades.

Possibly related, though probably not a bug: I've noticed while flying fast ships around tight clusters of enemies that use missiles, their own missiles can be directed back into them sometimes, but sometimes they pass right through. It seems random, but consistent enough that fast ships can use this as a viable strategy to destroy enemies with their own missiles, if the enemy is quite slow.
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Alex on March 09, 2012, 10:44:48 AM
Missiles can hit the launching ship after they flame out - that's all working as-intended.
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: frag971 on March 10, 2012, 08:15:25 AM
Don't pee against the wind? :D
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Ghosti on April 02, 2012, 03:17:09 PM
No. This is actually an issue. If object A launches a projectile B with force F, then B's starting velocity (vB) should the sum of A's velocity and F (vB= vA+F). I am not really good at physics but i think i got my point across.
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Upgradecap on April 02, 2012, 03:20:37 PM
Ok, I've actully had issues with this, when I fired pilum missiles and then was going faster than them, and when they were exactly on top of me, they exploded. What??
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Uomoz on April 02, 2012, 03:56:17 PM
Missiles can hit the launching ship after they flame out - that's all working as-intended.

That's pretty clear.
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Upgradecap on April 03, 2012, 01:21:28 AM
But mine didn't flame out.
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Vandala on April 03, 2012, 01:23:19 AM
Maybe it happened so fast you just didn't see it.
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Upgradecap on April 03, 2012, 01:25:37 AM
I doubt pilums flame out four seconds after launch.
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Alex on April 03, 2012, 10:59:09 AM
Hmm. I'll be on the lookout.

This should be impossible for several reasons - Pilums don't hit friendly ships, and non-flamed-out-missiles don't hit the launching ship. It's possible, of course, but I almost suspect something else was going on.
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Psycho Society on April 04, 2012, 10:19:30 PM
Why don't missiles retain the firing ship's velocity?
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: cp252 on April 05, 2012, 03:27:38 AM
Because that would be hard to code as hell. If you think of a way, I applaud you. If that way is practical performance-wise, I hope Alex takes it and puts it in the official game.  :)
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Wyvern on April 05, 2012, 08:22:14 AM
Why don't missiles retain the firing ship's velocity?

Because they use the same sort of hand-wavium engines that ships do, where turning on the engine slows you down above a certain maximum speed.

Might be fun sometime to play with a missile that had some low-ish acceleration and an absurdly high max speed, though.
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Alex on April 05, 2012, 08:40:17 AM
The problem is all objects need to have a top speed. If they don't, you run into all sorts of trouble - from gameplay issues (imagine how it would work/look if a missile or ship could travel across several screens in a second!) to engine issues (you could miss collisions if objects travel very far in a single frame, and would need to use a different, much more complex algorithm for collision detection).

Missiles *do* retain the firing ship's velocity, though. This is most apparent in the case of bombs, which rely on the velocity of the launching ship to carry them to the target.

Might be fun sometime to play with a missile that had some low-ish acceleration and an absurdly high max speed, though.

Seems like it, doesn't it? From everything I've tried that was like that, though, it's actually just frustrating to watch because it feels so sluggish.

That was the original idea for Pilums. What'd happen is they'd always miss their target on the first pass - can't accelerate fast enough to track it, and the high speed is a handicap in this case, since they have less time to adjust for target course changes. Then, they'd literally take about a minute to turn around and reverse their velocity, only to miss on the second pass or flame out.

I suppose it's probably possible to work it out to where it'd feel better, with some combination of speed/acceleration and AI behavior, though.
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Wyvern on April 05, 2012, 08:51:04 AM
Heh.  Sounds like it would be fun to play around with stats, but not that fun to use... unless you made them proximity-triggered beam missiles!  Bwahaha.  Or something.  I'll have to see what I can cook up next game version.  (Hm.  Supersized sabot missiles might work too, come to think of it.)
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: Kirsendarken on April 05, 2012, 01:02:42 PM
Might be fun sometime to play with a missile that had some low-ish acceleration and an absurdly high max speed, though.

Seems like it, doesn't it? From everything I've tried that was like that, though, it's actually just frustrating to watch because it feels so sluggish.

That was the original idea for Pilums. What'd happen is they'd always miss their target on the first pass - can't accelerate fast enough to track it, and the high speed is a handicap in this case, since they have less time to adjust for target course changes. Then, they'd literally take about a minute to turn around and reverse their velocity, only to miss on the second pass or flame out.

I suppose it's probably possible to work it out to where it'd feel better, with some combination of speed/acceleration and AI behavior, though.

Heh.  Sounds like it would be fun to play around with stats, but not that fun to use... unless you made them proximity-triggered beam missiles!  Bwahaha.  Or something.  I'll have to see what I can cook up next game version.  (Hm.  Supersized sabot missiles might work too, come to think of it.)

I'd have to agree that this type of setup might work well with a sabot or MIRV type missile. Long range shots verse large, slow moving ships designed to make it through that ship's PD fire.
Title: Re: 0.51a RC3, Flying as fast as my missiles when I fire them - they hit me
Post by: RawCode on April 06, 2012, 01:12:46 AM
there is no movement friction in space, missiles and ship and everything else shoud have topspeed and engine speed.

topspeed value will allow missiles launched from moving ships go faster but wont allow this speed if missile change direction or launched from immovable platform.