CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.34k stars 4.14k forks source link

Turrets can shoot monsters and NPC inside cars when the door next to them is open. #48536

Open ifffrt opened 3 years ago

ifffrt commented 3 years ago

Describe the bug

For weeks now I've been annoyed by this bug where a turret can seemingly shoot at the Briggite LaCroix inside my car even though it supposedly had a "roof". Yet when a zombie is right next to me, I can't seem to do anything against it. It turned out that you can't shoot at anything inside your car at all, EXCEPT in cases where the door closest to the monster you're trying to shoot at is open (see attached save files).

Steps To Reproduce

  1. Get a car with a turret.
  2. Get a zombie or NPC follower to get in the car with you.
  3. Try to shoot at the zombie or NPC with all the doors closed. You will fail no matter how hard you try.
  4. Try to do the same except this time with the door next to the zombie or NPC opened.
  5. Success!(?)

Expected behavior

The turret shouldn't be able to shoot at anything inside your car, or at least your turret's ability to shoot at things inside your vehicle shouldn't depend on whether the door next to them is open or closed.

Screenshots

Versions and configuration

Additional context

doorsopened.zip doorsclosed.zip

souricelle commented 3 years ago

Can confirm this has happened to me several times.

OliveChukar commented 3 years ago

Tested on 0.E-10395-g4525b4f [64-bit] with Dark Days Ahead [dda] only no mods. I was not able to shoot creatures inside the car with the doors closed. Opening the doors caused some tiles to be labeled exterior when looked at and I was able to shoot creatures on those tiles. Creatures on tiles labeled interior were never shootable.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not \'bump\' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.