Quick update (since I can't seem to edit my post for some reason), change the first sleep 170 to sleep 130. I was not sure of the melee lunge delay, so I made it longer to be safe. Now I am sure that 130 milliseconds will be enough.
Also, there aren't a whole lot of scripts for shooters besides the rapid fire scripts that everyone and their mother makes, but I'm working on something that will take further advantage of the double-switch cancel technique. It's actually a very simple script, the problem is testing to make sure it works for all weapons.