Guard NPCs draw weapon when turning from the player
Describe the bug Guard NPCs who were defeated previously draw their weapon before turning away when avoiding conflict.
Expected behavior Guard NPCs who were defeated previously no longer draw their weapon before turning away when avoiding conflict.
Steps to reproduce the issue
- Defeat a guard(!) NPC in combat.
- Perform a forbidden action in front of them.
I'm not sure if that is really a bug. As I take it from the scripts[1], the guard NPCs may draw their weapon as initial reaction, but when turning away they will sheath it. That strikes me as a natural reaction like initially noticing an offense and then deciding to ignore it.
I will mark this as opinionated until this has been confirmed to pose an issue or look different in practice.
[1] The AI state ZS_TurnAway is started only once in the scripts; from within ZS_ProclaimAndPunish. A fix would not be trivial, because the weapon is already drawn before entering the state of proclain-and-punish. It would be a lot of work to prevent withdrawing the weapon in multiple functions.