Author Topic: Units on Inclines Appear Immune to Psi Attack  (Read 2442 times)

Offline Surrealistik

  • Colonel
  • ****
  • Posts: 484
    • View Profile
Units on Inclines Appear Immune to Psi Attack
« 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

Offline Surrealistik

  • Colonel
  • ****
  • Posts: 484
    • View Profile
Re: Units on Inclines Appear Immune to Psi Attack
« Reply #1 on: September 12, 2016, 01:52:30 am »
It seems that this is oddly true only for northwest inclines.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: Units on Inclines Appear Immune to Psi Attack
« Reply #2 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.
« Last Edit: September 12, 2016, 10:19:52 am by Meridian »

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Units on Inclines Appear Immune to Psi Attack
« Reply #3 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.
« Last Edit: September 14, 2016, 03:33:57 am by Warboy1982 »