I had a cat once that used to pee on clothes we left on the floor.
The vet said the only way to get her to stop is to train her out of it--to smack her around when she did it.
And she got over it.
Until the end of her life when she started taking a **** on the front room rug. But that was because it was terribly painful for her to go to the litter box. For a little while we moved a box into the living room, but only until we could get her into the vet to get put down.