Painkillers are used to remove the pain status effect. When a player is wounded, there is a chance that they will be in pain. Really. Being in pain causes the screen to shake, making it difficult to aim accurately.
Painkillers are relatively common, but can reliably be found inside hospitals. Taking up one main inventory slot, painkillers can be used by right-clicking them in the gear menu. The effect of painkillers is instant.