This is a very bad idea! You WILL be prosecuted for illegal discharge of a firearm in public. If you hurt someone, you will be charged with a felony. Brandishing a weapon will also leave you open for a misdemeanor charge.
If you pull out a weapon, it is best to start pumping lead into those who pose a DIRECT danger to you. No other course of action will prevent charges from being filed against you.
This is a very bad idea.
You are exactly right. Most of the replies here will get the shooter arrested and convicted no matter how unfair it seems. Most of the gun laws are very clear and specific of when you can and cannot use deadly force. I don’t agree with them but if you just start shooting at a group of people, you will probably end up in jail. Fair? No.. Reality? Yes...