As title says, if you move outside the range of gun they are wielding currently (even when almost full), they will just throw it. And I think I found answer in this old thread:
Throwing guns just does more damage then shooting it at such distance.
So the question of the thread, will there be an NPC rework, or something that prevents this behavior. It’s confusing to see NPC disarming themselves to say the least.
I probably have to mention that I only saw this behavior with enemy NPC. Version is resent (ish) experimental (title screen says 6882600).