You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in #45865, NPC for no visible reason drops their weapon.
It might happen both with player-owned NPCs and those belonging to other factions.
Until now, despite a few tries, I was unable to reproduce it.
Steps To Reproduce
I happened to test some unrelated changes while breakpoint related to this issue triggered.
I think the problem is as such:
NPC when not doing anything might attempt to try to find and equip a better weapon.
Code visits cached inventory, function returns some better weapon.
NPC puts off their current weapon (probably dropping it) and tries to wield a better one
NPC is not allowed to pick up loot, function stops.
Tomorrow, I will probably try to change a chance to trigger this check to once per minute and try to inspect reproducing this bug further.
Expected behavior
Check whether NPC can actually pick up a better item before dropping the current one
Describe the bug
As described in #45865, NPC for no visible reason drops their weapon.
It might happen both with player-owned NPCs and those belonging to other factions.
Until now, despite a few tries, I was unable to reproduce it.
Steps To Reproduce
I happened to test some unrelated changes while breakpoint related to this issue triggered.
I think the problem is as such:
NPC when not doing anything might attempt to try to find and equip a better weapon.
Code visits cached inventory, function returns some better weapon.
NPC puts off their current weapon (probably dropping it) and tries to wield a better one
NPC is not allowed to pick up loot, function stops.
Tomorrow, I will probably try to change a chance to trigger this check to once per minute and try to inspect reproducing this bug further.
Expected behavior
Check whether NPC can actually pick up a better item before dropping the current one
Versions and configuration
Revision 207a94d
The text was updated successfully, but these errors were encountered: