Cataclysm-TISH-team/Cataclysm-TISH

Isolated Artisans - Turrets attack player if in a vehicle

Closed this issue · 3 comments

Describe the bug

As title says: the turrets remain neutral until the player takes control of a vehicle, at which point they will turn the car into a block of Swiss Cheese.

Attach save file

N/A

Steps to reproduce

  1. Create a world and a character,
  2. find the Isolated Artisans
  3. walk around on foot and notice how turrets do nothing.
  4. Spawn a car and get on it.
  5. Take control of the vehicle and drive at any direction
  6. watch as the turrets put holes on your car and then on you.

Expected behavior

I would expect the turrets to only attack the vehicle if it is moving by itself with no visible driver, otherwise, to not engage if they can see the player. This might be related to the "Turrets now target vehicles" feature.

Screenshots

No response

Versions and configuration

Windows.
Most recent update from April 10th.

Additional context

No response

not engage if they can see the player.

While I'm not against this behavior per se, it will allow players to destroy neutral turrets without any risk while using a vehicle. I.e. let turret see player character operating a vehicle - turret won't fire at vehicle - player destroys turret by ramming it with a vehicle. I'm not sure we want such an exploit.

Hmmm, that's a fair point.

As it currently stands, it makes it so the player has to park their car outside the reality bubble of the artisans' house and go on foot. 🤔 I sadly cannot think of a way to avoid the issue in question other than just walking the distance.

Well, we can add a check for tolerable distance. Turret will ignore vehicle with visible player unless it's closer than, let's say, 5 tiles.