aliens

Author Topic: [DONE]Large units can see behind themselves in certain directions. Bug?  (Read 1790 times)

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9088
    • View Profile
[I.D.T.] thereaverofdarkness
Large units can see behind themselves in certain directions. Bug?

Warboy
evidence? they should only have a 90 degree cone like everyone else
(sorry if that came across dismissively)

[I.D.T.] thereaverofdarkness
I frequently have large units spotting things which clearly should be outside of their cone of vision, usually to their side.
Today, I had a unit rush up behind a Cyberdisc. It turned and did reaction fire. Tried again, same result. Tried moving up to the other tile which was behind it, it did not react.

Warboy
had he previously attacked it before making his approach?

SkyHawk
I believe HWPs/SWSs "see" from their turret, not the chassis
So if the turret is not straight-ahead, the unit will not see straight ahead.

Warboy
that's HWPs/SWSes though, cyberdisks don't have turrets

SkyHawk
Sorry, I thought he was talking about large XCom units. Ignore me.

[I.D.T.] thereaverofdarkness
Here is a vanilla save which demonstrates it. Try to walk behind the cyberdisc.
Attachment file type: unknown
Cyberdiscs_see_behind_themselves.sav
261.00 KB

[I.D.T.] thereaverofdarkness
no
I find it happens to tanks as well as mind-controlled cyberdiscs and reapers, in terms of the unit I control being able to see things it shouldn't be able to see
Today I had mind-controlled a Reaper and was running it out of the barn it spawned in. As it exited and turned, it was facing along the wall and was able to see the Floater at the window above it, to its side, and a tile behind its head--so the rear of its two side tiles.

Warboy
ty, will look into it
« Last Edit: August 11, 2022, 08:59:45 pm by Meridian »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9088
    • View Profile
Re: Large units can see behind themselves in certain directions. Bug?
« Reply #1 on: July 24, 2022, 10:43:32 pm »
Checked with Warboy and Yankes.

Can confirm there is a bug, since May 2016, OXCE only.

Only affects 2x2 units (they are checked as if their map position was slightly shifted, by 1 tile).

Wrong code here: https://github.com/MeridianOXC/OpenXcom/commit/02cbefb8de8ba621f787f00282a42121064c957a#diff-d7634a3265ca99ef332f38eb6642ea6a2b27f1908977ff88be7097a2aa4d1d91R2998

Will be fixed in the next release.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9088
    • View Profile
Re: Large units can see behind themselves in certain directions. Bug?
« Reply #2 on: August 05, 2022, 04:37:36 pm »
Fixed.