Supplier - queue and rotation
Proposing a measure for normal suppliers that do player selection.
The current scripting does a very simple thing:
Iterate through the actor list and if a player is found, select it as the main supply target until he's left.
This has 2 problems:
- All other players must wait for the supply target to leave.
- Players that joined earlier have extra selection priority.
The new system I'm proposing will operate pretty much like the optimized mines do.
There will not be any actor list iterators, but rather a cached list of players that approached said supplier, keeping the order of arrival.
The second part of the system consists on rotation, 2 secs should be fine, which will put the supplier target at the last position of the queue after he's used the supplier for that amount of time.
This pretty much makes target selection fair, and whoever wishes to simply hit the supplier to get a minimum reserver of ammo won't have to boost other ppl around.
Also, when there's only one person on the supplier, once reached the time limit, it won't go back to 0.
This way, if a new player hits the supplier, this new player will instantly gain priority.