Optimized

Improved weapon switching cod, only one function.