When in any class, on any team, switch to weapon bank 1 and throw all but your last knife.
Now hold down your +attack2 key (usually Mouse2)
Now while still holding +attack2, press your +attack key (usually Mouse1)
You should now be unable to switch weapon banks until you die, which won't be very long in some instances.
If someone else covered this bug, Please disregard.