I can't imagine most pain meds causing problems - not anti-inflammatories nor aspirin or paracetamol. Maybe things with opiates like codeine. The most renowned drugs for effects on orgasm are some blood pressure meds and anti-depressants like prozac, zoloft et al. But maybe the REASON you are taking pain meds is the reason - not the med?????