Ok, here's the issue I'm trying to investigate and fix. I make a shot from above to the alien. The distance is bigger than 20 tiles so I don't have Line of Sight. I couldn't target this alien in normal game (without scouting it first), but I have debug mode on so I (as player) can see it and everything else.
The thing is, my soldier has good accuracy and rolls a hit most of the time. The shot is fired and hit a tile under the alien. Over and over again. I see two issues here:
- I expect the shot to target center of the tile, and hit the alien on it's way there - but I've got really wierd numbers - target voxel is (10,6,2) inside the tile, and I never saw this kind of shift for target points!
- When I shoot over and over again - shots hit the tile, but nothing changes. In logs I have the type of impact point - OBJECT, so I thought that I hit the wheat but it's laserproof for some reason.
I've just found out that wheat under alien destroyed prior to saving the game. But the question about OBJECT at target point - remains. Wierd target shift is added in canTargetTile() which I never touched, so the mystery is gone. And seems there are no bugs involved (except the "object" part but it could be just my misunderstanding)
So, the next bug (which is huge by my standarts): when you try to force-shoot with CTRL through some unit - shots spread in very unnatural way.