cataclysmbnteam / Cataclysm-BN

Cataclysm: Bright Nights, A fork/variant of Cataclysm:DDA by CleverRaven.
https://docs.cataclysmbn.org
Other
696 stars 271 forks source link

Friendly NPCs don't fight #3328

Open cinornu opened 1 year ago

cinornu commented 1 year ago

Describe the bug

Just a heads up that I used a translator first. I don't speak English very well :(

There is an intermittent bug that causes NPCs to perform no offensive actions with their targets locked on the farthest enemy, rather than the closest enemy.

Only after removing the targeted monster did the NPCs start acting normally. I recreated the same situation in debug mode, in the same place, and the same problem reoccurred, and I've saved and attached that part as is.

Steps To Reproduce

  1. summon a high difficulty monster on top of another z-axis terrain with no entrance or exit. Example) Roof of a building
  2. Implement combat situations for normal zombies and NPCs on a different z-axis from where the monster is located.
  3. npcs only target monsters on the other z-axis and do not fight neighboring zombies.

Screenshots

2023-09-30 (26) 2023-09-30 (27) 2023-09-30 (30) 2023-09-30 (33) 2023-09-30 (34)

Versions and configuration

Additional context

mods : https://www.dropbox.com/scl/fi/ik9nifluyaoc1i4hmcpzd/report_mods.zip?rlkey=j6wk2zbdg7vmv0q6x8cgq12lp&dl=0 save : https://www.dropbox.com/scl/fi/vq83lqo4cpqvm036im9fc/npc_ai_bugs.zip?rlkey=uvdm699edgr05w9zqr51i07ty&dl=0

scarf005 commented 1 year ago

cc @KheirFerrum

KheirFerrum commented 1 year ago

cc @KheirFerrum

Kind of unrelated to me. I've never touched NPC target acquisition/maintenance. God only knows what's going on here.

scarf005 commented 1 year ago

npcs are exciting.