21.01.2009, 16:24
Viikate Wrote:Hey Cert! Have you considered making AI blind to attack coming from sun? It should be relatively easy to make in detectable. Get vectors to sun and to enemy (actor). Normalize vectors and if the x,y & z are same or close == hun in the sun. Of course you'll need some basic checks that is the sun below horizon etc. but basically this should work. And if later reduced AI visibility in dark is implemented, this could be used so that AI can spot the enemy's silhuet easier against moon.
Of course the killer feature would be able to cast a ray from own AI's plane to enemy and see if it intersects with clouds. Hiding in the clouds would rule
This is a great idea, the implementation might be a bit tricky though, because if the player was already detected, you don't want the AI to simply forget the player is there and carry on back to whatever task they were doing. I'll give it some thought, thanks for the ideas.