If you pull your gun out in civilian areas and aim for a bit, you get a warning that you're doing something illegal and the regular non-hostile NPCs start running around away from you or cowering. So there's already code there, it's just not implemented uniformly it seems, which is a theme of...