If the player switches team the moment the round starts, they spawn on the enemy team spawn as their new team.
I managed to find a bug where I spawned as a guard on the intruder spawn on Oceanside by changing team the moment the round started.
Valve, pls fix.