Unfortunately, some cops think if you do not have a badge, you are their enemy. It seems they were overly paranoid. The cops you ran into sound like one a relative of mine knew that would not open the door to his car with having his gun drawn. Paranoid Schizophrenia can be acquired, and the cops you ran into sound like they are headed down that road. If it happens again, ask to speak to their Lieutenant.