I have seen videos testing longbows against armor. I have never seen a video seeing just how well a typical pistol or rifle bullet would penetrate armor from the middle ages. Penetrating a wooden shield makes sense, but what about chain mail, plate armor, or just heavy cotton behind it? Of course, from what I have heard, most soldiers didn't full armor.