|
Senior Member
|
07-19-2019
, 18:07
Re: [Question]Random Boss Pack always go to the first
|
#2
|
public int Handler_VoteCharset(Handle menu, MenuAction action, int param1, int param2)
{
if(action==MenuAction_VoteEnd)
{
FF2CharSet=param1 ? param1-1 : validCharsets[GetRandomInt(1, FF2CharSet)]-1; //If param1 is 0 then we need to find a random charset
char nextmap[32];
GetConVarString(cvarNextmap, nextmap, sizeof(nextmap));
GetMenuItem(menu, param1, FF2CharSetString, sizeof(FF2CharSetString));
FPrintToChatAll("%t", "nextmap_charset", nextmap, FF2CharSetString); //"The character set for {1} will be {2}."
isCharSetSelected=true;
}
else if(action==MenuAction_End)
{
CloseHandle(menu);
}
}
judging by the code it seems to be random,so i think in your case its just rng,maybe you wanna ask batfox to edit his fork so that random cant use the same pack twice?
__________________
My FF2 server @[]
TL;DR my server aims for quality then quantity
|
|
|
|