CleverRaven / Cataclysm-DDA

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

Exodii Quadruped becomes hostile against player if it self-damages with its electricity weapon #59495

Closed DamienRoyan closed 1 year ago

DamienRoyan commented 2 years ago

Describe the bug

Was watching a Quadruped go to town on some zombies. The noise was attracting more and more of them.

By the time it used all the bullets and started using the arc weapon, some zombies got really close. The arcs of electricity damaged the quadruped and it got aggro against me.

Steps to reproduce

  1. Find/Spawn quadruped
  2. Find/Spawn zombies. Keep on until it runs out of bullets
  3. Spawn a zombie really close to it so it fires the weapon point blank. If it self-damages then-
  4. RUN!

Expected behavior

It should not become aggro against me when it self-damages. It's anger against the player should only occur if I actually did it.

I checked it's Anger Trigger flags in the Nornagon guide https://nornagon.github.io/cdda-guide/#/monster/mon_exodii_quad and I suspect the HURT flag indiscriminately makes the creature hostile against the player regardless of true guilty party.

I think dogs are also affected by this. I used to think it was because they associated zombies with the players and so got aggro by association (which is a neat simulation of animal behavior to me), but looking at the tags in: https://nornagon.github.io/cdda-guide/#/monster/mon_dog https://nornagon.github.io/cdda-guide/#/monster/mon_dog_bull it seems they are also attacking the player due to this bug

Screenshots

No response

Versions and configuration

Additional context

No response

PatrikLundell commented 2 years ago

Creatures in a fight seem to attack everything that isn't friendly to them, and so you'd have to wait until they calm down after a fight before approaching them. Thus, I suspect you'd be attacked if you approached even if the quads hadn't been damaged. As far as I understand it's a limit of the faction system.

DamienRoyan commented 2 years ago

Thus, I suspect you'd be attacked if you approached even if the quads hadn't been damaged.

No I've walked right up to one to smash the corpses as it stood over them to "inspect" it's work

PatrikLundell commented 2 years ago

Interesting. Thanks for correcting my impression.

github-actions[bot] commented 1 year 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.