Best way to make a weapon selection system tied to mouse wheel
Ok, here's what I'm trying to accomplish. On mouse up and down, I want the next weapon or previous weapon to become available for use (this was actually easy to accomplish). I set up the weapons in numbered order (i.e. 1 = regular, 2 = spread, 3 = rapid) and moving the mouse wheel up or down would change the weapon selection counter +1 or -1, enabling the weapon for use.
My issue now is what if one of the weapons wasn't available and I want to skip over it? Let's say 'spread' wasn't available for selection and I moused up from blaster. I want to skip over the unavailable '2' and go to the next available weapon which is '3'. If '2' and '3' weren't available, it should loop back to '1'.
The only way I can think to accomplish this is in a referential database but that doesn't look possible in MMF2. How do others accomplish this? Thanks!
--Jarred