Dogbones wrote:QUOTE (Dogbones @ Jan 20 2008, 05:41 PM) I am not sure I like this idea, it would make it fairly simply to avoid any direct hit from a missile with AOE.
Fly straight until missile is close then side thrust. You do not have to time it that well, just side thrust back and forth a little but frequently. The missile will end up with a wavy line and pretty much always detonate early with the above suggested code. Adding a small delta might help.
([current range to target] > [previous range to target] + delta)
delta could work, though the distance towards the ship covered by the missile each update would be much more than the distance moved by the ship from a small sidethrust as the missile is heading towards the ship quite fast, and ships in allegiace take some time to get going in a direction.
so i don't think it would really be a problem, though i guess that's something for testing, if a delta were needed, i would think it would only be 1 or 2 (even 0.5) as missiles may only have AOEs of 20 or 30 and if the delta were 10 then that would mean they would never detonate when they were within 10m (the delta) of the ship which is bad. (suppose delta could be a % of the AOE range)
alternatively you could try and do a look ahead and work out (by extrapolation) where the ship and missile will be next tick and see if the distance from the target then is even bigger than the distance from it now too.
but yeah, i don't think they could trigger it as they would have to be out running the missile when it is within AOE range which is hard given that the missile is much faster then the ship.
i think its a try it and see thing given that it would be a fairly well contained change