Hi.
If you have a look to the last svn revision, IA-stupid (which is in 
development) mod,
it may be possible that a character kills members of his own team.

so i read and reviewed "ai_shoot_module" module source code 
(src/ai/ai_shoot_module), i noticied that most of methods used to find enemy 
(FindEnemy or FindProximityEnemy) implements FOR_ALL_LIVING_ENEMIES 
(src/team/macro.h).

The first problem is the code of this last macro is bad indented , so the "if " 
structure control is out of the for loop, and we can't select the first 
occurence of a enemy team, so i fixed it and it seems to work (a IA bot doesn't 
kill an other of his own team).

Second problem, it's if a bot AI use NEAR_FROM_ENEMY strategy mod, and so uses 
proximityweapon, it needs to go back after having launched it (otherwises it 
exploses with, for example of this weapon is mine).


My code isn't perfect but seems to be work, That's why I've written a patch.

Hoping to help you.
_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à