[Include] Multi-Weapon - Able to switch to every weapon received
#11

Quote:
Originally Posted by Y_Less
View Post
I used "sentinel" weapons. When the user has several weapons in the same slot, give them some other ones with very little ammo. These weapons won't be used, but switching to them can be detected. As long as they have at least one weapon and two sentinels you can detect the direction in which they scrolled.

If they have a lot of weapons you can even remove these and just change the scroll order. For example, given the following weapons:

2 (golf club), 3 (nitestick), 4 (knife) (slot 1)
22 (colt 45), 23 (silenced pistol), 24 (deagle) (slot 2)
25 (shotgun), 26 (sawed-off), 27 (spaz) (slot 3)

You initially give them 2, 22, and 25 and set their armed weapon to 22. If they switch to 2 (scroll down) remove 25 and given them 26, thus scrolling down again will loop back to the sawed-off shotgun. If the scroll up instead to 25, they now have the normal shotgun armed and you can replace 2 with 4.

This way, the scrolling order basically becomes:

25
22
2
26
23
3
27
24
4

And they only ever have three weapons on the client - the current weapon and one either side. With more active slots, you can move the replaced slot further away from the current weapon to become more responsive.
I like your way of thinking, thanks for this solution.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)