PDA

View Full Version : AllowVote in Spearhead


UnDead
04-11-2003, 12:49 PM
I want to allow voting on our server but people tend to get out of hand with it. They will vote over and over till there vote passes.

My question is, is there a way we can only allow voting 3 times per map. So if bobthemoron votes for omaha, and it fails and he votes for it again and it fails and the last time he votes for it it also fails, the server would turn off voting till next map. That would be great, if its possible.

Would MAM be able to do this? Would we have to extract another file from one of the pk3 and put it in a seperate pk3 on the server, like we do with the custom voting options.

Thanks for any help,

Grateful UnDead

Buzz_Litebeer
04-11-2003, 06:22 PM
no there is no way to check votes like that man ;-( I am sorry, that is the problem with voting some people will abuse it.

Just ban them.

elgaucho
04-11-2003, 08:58 PM
i'm trying to limit this problem by limiting what they can vote for..... Hopefully this will have some effect once i put it on the server.... Allow them only to vote rotations, not starting with the most popular maps...

Buzz_Litebeer
04-11-2003, 09:24 PM
you could only allow the vote for the next map perhaps... i dont think thta would work to well.. I could write something that would do it effectively , but it would be hard to unerstand ;-(

Hammer perhaps could write a MAM module to do map mixes by vstring, then what you could do is have it vote for a MAM command, then the thing could execute the MAM command, and it could set up the map to be the next in the rotation.

elgaucho
04-12-2003, 12:56 AM
you could only allow the vote for the next map perhaps... i dont think thta would work to well.. I could write something that would do it effectively , but it would be hard to unerstand ;-(

I've been trying to add a vote for nextmap for the last few days, but sadly, i'm hopeless at this whole thing....
(View newbies idea (http://www.mohadmin.com/nuke/modules.php?name=Forums&file=viewtopic&t=1782&highlight=)). Is there an easier way of solving/doing this? In this case, it doesn't work too badly, but it is an awkward way of doing it, and especially odd in Obj maps, which aren't ffa....

Buzz_Litebeer
04-12-2003, 01:20 AM
actually avoid using MAM altogether, here is how to do it.
[code:1]
set x1 "set nextmap vstr x2;timelimit 20; fraglimit 200; g_gametype 2; map dm/mohdm1"
set x2 "set nextmap vstr x3;timelimit 15; fraglimit 5; g_gametype 5; map obj/mp_flughafen_tow"
set x3 "set nextmap vstr x1;timelimit 10;fraglimit 2; g_gametype 4; map obj/obj_team3"
[/code:1]


In this set up for example typing

vstr x1

would set the nextmap to vstr x2, and then start up mohdm1 map.... this is not what you want though!

so what you woudl do is set up a couple more alias, specifically for voting.
In this case I am gonig to assume you want to do the 3 maps listed above using vstring, and you want to let the players vote for which map they want NEXT, IE NOT CHANGE THE ONE THEY ARE USING.

well and here is how you do that ;-)

Add this to your callvote.cfg file, and remove the regular voting, and you can now only vote for the 3 maps, and only as the NEXT map in the cycle, instead of the current map.

this SHOULD work, if not it can be changed a little to make it work.
[code:1]
"NextMapVote" "set" list
{
"Southern France" "nextmap vstr x1"
"Fluffy Agen Map!" "nextmap vstr x2"
"Omaha (I think)" "nextmap vstr x3"
}[/code:1]