Shuffle
Posted: 06 Nov 2014 10:09
So i heard you guys would like some shuffle function.
I think it's pretty much possible using noghost command "forceteam <playerdID> <team>. Only thing is, how would the system build the players tree and split them equally.
1. possible way is to grab users name and sort them according to rank in statistics.
2. way is to sort the players according to number of frags in the time when the shuffle occurs.
Both ways can lead to wrong shuffle. First one, even a good player can be lower in rank when he played less games. Second a good player can have a bad start and low score when the shuffle takes place.
Next problem is how to skip spectators. but i think in the status query there is a list of which team is player in. I need to check that.
And the last problem or question is, how to initiate the shuffle vote. Or how to call it...but i thing this can be done using classic in-game voting. I can create some string (vstr shuffle), which can be voted, when this vote pass, string will write some config file with specific name (set vstr shuffle "writeconfig shuffle.cfg" ) and the system will keep checking for existence of this file. When a file will be found a shuffle script will be called and the shuffle file removed. so i don't see a problem in this.
simple
/callvote vstr shuffle
would do the trick from quake side.
Let me know what you think or if you have any better ideas let me know.
Y
I think it's pretty much possible using noghost command "forceteam <playerdID> <team>. Only thing is, how would the system build the players tree and split them equally.
1. possible way is to grab users name and sort them according to rank in statistics.
2. way is to sort the players according to number of frags in the time when the shuffle occurs.
Both ways can lead to wrong shuffle. First one, even a good player can be lower in rank when he played less games. Second a good player can have a bad start and low score when the shuffle takes place.
Next problem is how to skip spectators. but i think in the status query there is a list of which team is player in. I need to check that.
And the last problem or question is, how to initiate the shuffle vote. Or how to call it...but i thing this can be done using classic in-game voting. I can create some string (vstr shuffle), which can be voted, when this vote pass, string will write some config file with specific name (set vstr shuffle "writeconfig shuffle.cfg" ) and the system will keep checking for existence of this file. When a file will be found a shuffle script will be called and the shuffle file removed. so i don't see a problem in this.
simple
/callvote vstr shuffle
would do the trick from quake side.
Let me know what you think or if you have any better ideas let me know.
Y