Not sure how to implement this, but I think you could scan the floor texture and when you get on a texture that's indoors, stop the rain action.