OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: Surrealistik on September 12, 2016, 01:38:06 am

Title: Units on Inclines Appear Immune to Psi Attack
Post by: Surrealistik on September 12, 2016, 01:38:06 am
Per the summary; units on inclines like hills, ramps, etc appear to be completely immune to psionic attack (Mind Control/Panic Units).

https://openxcom.org/bugs/openxcom/issues/1274
Title: Re: Units on Inclines Appear Immune to Psi Attack
Post by: Surrealistik on September 12, 2016, 01:52:30 am
It seems that this is oddly true only for northwest inclines.
Title: Re: Units on Inclines Appear Immune to Psi Attack
Post by: Meridian on September 12, 2016, 10:10:18 am
Can you post a save?

EDIT: Also, your bug report says nightly 2016-8-11 and piratez... which is currently an impossible combination. OXCE+ is based on nightly 2016-01-02.
Title: Re: Units on Inclines Appear Immune to Psi Attack
Post by: Warboy1982 on September 14, 2016, 02:19:20 am
_target = _parent->getSave()->getTile(_action.target)->getUnit();

to explain a bit further on my response in the bug report: this is a tile based check, not voxel based.
this means that if there's a unit in the tile you've clicked on, he's the target and it's all math from there.
geometry doesn't factor into the equation, only distance, relative stats and some random variance.
if it makes the noise, and shows the animation, the attack went through.
if nothing happens after that, it simply means you were unsuccessful on that attempt.

probably what you are experiencing is either confirmation bias, or a problem with OXCE+ (or whatever branch you're using).
unfortunately, that's beyond my control to fix.