I'm not attorney but, I drink like one. Regarding shooting people in the leg it's fairly lethal but, some states/governments consider it a lesser class of lethality. Some jurisdictions consider a gunshot above the waist attempted murder IF it's not considered a justified shooting so tread lightly. If you have the time/luxery of shooting someone in the limb it sounds like a job for a less-lethal device IE rubber bullets,beanbag rounds and such. In a real life life or death situation, justifying lethal force such as a firearm nobody has the luxury of shooting with purposes of wounding.
Everything is up to how fucking stupid the cop(s) are that are first on scene, how fucking stupid the DA is judging your situation, remember to invoke the 5th, STFU get an attorney and don't record yourself doing/saying anything, if they can't prove you even fired a weapon it's in your best interest justified or not.