OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: yrizoud on January 17, 2015, 05:44:39 pm

Title: Alien shooting at XCOM from out-of-range
Post by: yrizoud on January 17, 2015, 05:44:39 pm
I've seen a weird behavior where the Alien can take reaction shots even though they are out of range of their victim.

I now have a save game (with mods, unfortunately) where the alien placed at 19 east, 7 south shot at my advancing scout. From the player's standpoint, that tile is still black, out of range.
I've tested with debug mode : The alien doesn't "see" the soldier, according to the UI (no [1] sign). Yet during its own turn, the alien AI keeps staying on this tile on shooting at my soldier.

Anybody has an idea how to troubleshoot better ?
Title: Re: Alien shooting at XCOM from out-of-range
Post by: Warboy1982 on January 18, 2015, 11:18:14 am
post the save
Title: Re: Alien shooting at XCOM from out-of-range
Post by: yrizoud on January 18, 2015, 05:27:44 pm
I attached the saved game, after "cleaning it up" to no longer require the mod (xops).

When playing the alien turn, I can see that by moving away and then back, the XCOM soldier gets a reaction fire, even though I, the player, don't see this tile. So the difference seems to be between :
Category 1 : What the battlescape displays as visible or not
Category 2 : What the AI and reaction fire consider visible

edit: Added a screenshot of where the sharp-eyed alien stands. The tile is at a distance of sqrt(19²+7²) = 20.248