I am working on a "fix" for using the scroll wheel to switch weapons. This was inspired by Overwatch. In Overwatch when you switch weapons with the scroll wheel, there is some short amount of delay before you can switch weapons again which allows to be able to use the entire scroll wheel without worrying about switching back to the same weapon.
Here is my implementation so far but it is not working properly yet.
It still doesn't work. The problem seems to be it doesn't catch that I have switched weapons the exact frame that I do start switching weapons, so I am still able to switch weapons for a few frames. I don't know if there is any way to fix that.
what about replacing the waittill weapon change with a while(self getcurrentweapon() == weapon) initialize the weapon var, then update it after each enable.... with a .05 wait?
edit: maybe add a && !isswitching to the while loop. If that don't catch it, I'm not sure what will
Last Edit: September 14, 2016, 07:23:05 pm by MakeCents