Hey all. I'm replacing my kitchen cabinets. Below the kitchen is a bathroom and there is a vent pipe coming up through a wall that I am opening up. I plan on re-routing that vent pipe along the half-wall that will be left, to the exterior wall, then angling back over to the original location in the attic, but I'm not sure how that will affect the bathroom on the floor below, or if there is any code requiring that pipe to go straight up and down only, or if a 45%(ish) angle is ok as long as it vents through the roof.

Thanks in advance!