[airstrike] Missile "Bonus"

Erik Auerswald auerswal at unix-ag.uni-kl.de
Fri Feb 17 16:36:58 EST 2006


On Thu, Feb 16, 2006 at 10:15:14PM +0100, Ulf Ekström wrote:
> I think I like this missile best, it seems somehow realistic that it
> can only "see" things in the forward direction. It could be cool to
> show the targets of the missiles as some crosshair marking, so that
> you know when the missile is targeting you, and if you managed to
> shake it off.

I've implemented a crosshair using the "mark" sprite that shows a
missile lock. The seeker AI is changed so that it loses the lock if the
target is outside a viewing angle of +-60 degrees in front of the
missile, adjusted for warping. If COS_VIEW_ANGLE <= COS_NOTURN_ANGLE the
missile never loses its target.

> But maybe it can be made to turn at +-100 degrees or something?

This can be changed by setting the COS_NOTURN_ANGLE define to -0.17. The
+-90 degrees angle represents a target behind the missile. I'd prefer
the +-90 degree value but you can change if if you want.


More information about the airstrike mailing list