Bug 2: when I aim at the deep one, the agent (Rafael Silva/Snpr) has 86% accuracy with aimed shot. But once I make the shot, the next one is 95%, without any terrain getting damaged.
Here's the bug in the natural habitat. On the picture you can see rayscan of target for left, center and right point of view. # means exposed voxel, O means covering object - tree and part of the slope at the right side. Left rayscan from each pair show first scanning (for 86% accuracy), right one is the second. Origin point of view unexpectedly shifting without any visible reason, and target for left shift becomes a little bit more exposed, just for 79%, which gives 120*0.79=94.8 of total accuracy, rounded up to 95.
Just wanted to share, while I'm still figuring that out)
upd: left/center/right shift represents "leaning" of shooter to find more effective line of fire.
upd2: first calculation assumes that unit is facing direction=6 (top left) which is obviously wrong, Second one uses direction=5 (left), thus moving left shift origin to a better position, which gives 95% accuracy. If you right-click to the left of ot first, you'll get 95% immediately, albeit there won't be visible unit rotation. Odd.
upd3: mystery solved. Origin defining function uses so-called "action" object to get origin tile coodinates... There's no action if you didn't do anything. Action could be walking or turning, so even if you press RMB in the direction you're already looking - there won't be any TUs spent but it will create TURN action, which will have origin tile where unit is located. Original "UFO Extender accuracy" didn't accept action as parameter, it was much less complex.
upd4: Bug #2 fixed, uploaded to accuracy repo, now it all up to Xilmi to merge. What about Bug #1... There IS a reason why your soldier missed
If you look at the picture and imagine what it was like when the left tree was there - well, seems like there were just a couple voxels exposed. But that's totally a bug anyway. If someone get similar bug while playing - please load autosave, check if the bug is presented, and send it to me via this forum.