Just like what Ren said. NPCS are unaffected by the state of the gun. NPCs always take good damage. Only players will take damage based on the repaired state of the weapon you are using.