I remember I used to execute a different configfile within a config file back in the days of Half-Life. Maybe you can bind a key to execute a config file “exactly the same but with player 1 and 2 reversed.
Bind “key(s)” “exec playerswap.cfg”
Something on the lines of that
Ofcourse bind another key combination to return to the previous config file so you can switch between the two.
Config a execute go to config b
Config b execute go to config a