As far as not being in uniform is concerned
No, The same thing happend to a friend of a friend.
This kid, was always getting in trouble. One day on the South side of Chicago, he was confronted by 6 huge black men, dressed in regular clothes, mainly sweats who chased him to his car, he shot at them.
(I only mention this because he was in a gang and it was Mexicans fighting against blacks, so he assumed it was a rival gang).
Anyway, they unloaded on his ass! He got hit in the head but survived.
They confiscated his car and smashed it into a tiny 1'x1'box and gave it to my friend. Well it turns out that this kid was shooting at undercover cops. They didn't identify themselves as cops.
Today he's been in jail for about 6 years and has 53 more to go! I knew a good lawyer who could have likely gotten him off as a self-defense, stating that the thought that they were rival gang memebers, but he's expensive and the kid isn't that good of a friend of mine.
But who knows, talk to a lawyer, no one here can really give you advice, unless they are a lawyer in your state and you retain them.
Different states and even counties in the same state treat matters differently, the only hope that you have is getting a good lawyer who handles this type of case and preferably knows the judge and has been heard in front of him before.
One way or another you will get a lesson from this, if you don't do any time, it will cost you some money to get out of this, that's for sure.