Does anyone know how to disable votes like xp-shuffle and swap teams after
5 minutes or something. It’s to prevent teams to be shuffled at the end or half way
the map.
Shadow Commando
Does anyone know how to disable votes like xp-shuffle and swap teams after
5 minutes or something. It’s to prevent teams to be shuffled at the end or half way
the map.
Shadow Commando
etadmin_mod has an option to do this.
If you want to do it in gamecode, you could just check the level.time in the vote code.
You can create a file called default.cfg and add the following:
vote_allow_shuffleteamsxp 1
pb_sv_taskempty
pb_sv_task 300 -1 "vote_allow_shuffleteamsxp 0"
It will only work if you are running punkbuster.
This can´t be done in server hosting menu ? You can turn off some voting…
That above will help with it…
Yes, thanks very much, tested it and it works.
Finally no more shuffle votes at the end of the map.
Well, that posted above doesn’t work perfect.
So I made it in the source.
In g_vote.c
After
} else if(!vote_allow_shuffleteamsxp.integer && ent && !ent->client->sess.referee) {
G_voteDisableMessage(ent, arg);
return(G_INVALID);
Put
} else if((level.timeCurrent - level.startTime) >= (g_votetimelimit.integer * 60000)) {
CP(va("cpm \"^3Sorry ^7%s^3, shuffle timelimit hit!
\"", ent->client->pers.netname));
return(G_INVALID);
}
You do need to add the command g_votetimelimit, if you dont you can also replace it with the amount of minutes you like.