Both your position and the direction you're facing are somehow taken into account during the respawn weapon switch. This is consistently reproducible.
(Pay attention to the MC switch animation)
I haven't tried all combinations of indoor/outdoors/challenges/etc. Probably applies to player respawns.
(Edit: I bound Tab to Enter via autohotkey since there's no keybind option for it)