I’m going to make this simple and let Nelson and Commenters decide how complex this will be.
Give firearms and handheld items unique hitboxes. They can block bullets fired at you if it hits them, but it will sustain damage in the process (10-75% damage depending on what type of round hit).