In the case of OOC players, the formation used is the one that was set. If its a 442 before OOC players hit 442 is used.
When a team turns bot however I think it reverts back to the formation the team had when the team was created, but I'm not 100% sure.