Files
source/TacticalAI
Wanne 1af9037c1e - AI Improvements: Made enemies more likely to make a partial move toward the target if the chance to hit is really, really low (by tazpn)
Now a more controversial change and perhaps unrelated now since its not in NCTH code. In line with my comment above I tried to make soldiers more likely to make a partial move toward the target if the chance to hit is really, really low and out of effective gun range but still reserving enough AP to make a partial shot. I also allowed this on Cunning soldiers instead of just aggressives figuring that target is in sight they are more likely to fight.

This with the other change has at least made them more aggressive and less likely to run in circles when armed with pistols and has actually made them quite a threat again. Not crazy about the implementation since I'd like a more accurate range check and AP calculation since AP to fire will change after movement. I figure the increased CTH by getting closer will counteract the cost to move.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4715 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2011-10-15 23:16:07 +00:00
..
2006-06-05 23:34:43 +00:00