Driver takes a bullet through his hat, but is unhurt