Cataclysm-TISH-team / Cataclysm-TISH

Cataclysm: There Is Still Hope - a fork of Cataclysm: Dark Days Ahead by CleverRaven.
Other
83 stars 5 forks source link

Isolated Artisans - Turrets attack player if in a vehicle #51

Closed AcidAntOnAMinefield closed 1 year ago

AcidAntOnAMinefield commented 1 year ago

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

Night-Pryanik commented 1 year ago

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.

AcidAntOnAMinefield commented 1 year ago

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. :thinking: I sadly cannot think of a way to avoid the issue in question other than just walking the distance.

Night-Pryanik commented 1 year ago

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.