Raised This Month: $51 Target: $400
 12% 

[Question]Random Boss Pack always go to the first


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 07-19-2019 , 12:12   [Question]Random Boss Pack always go to the first
Reply With Quote #1

When the game is getting over a map end and get to vote for the boss pack, most of the player choose random and chat says it would be random. But after changing map the boss pack would most likely to be the first boss pack.
I simply named them BossPack1 BossPack2 and BossPack3.
And I have been playing BossPack1 for almost 4 or 5 maps.
So does it really be random or not?

Last edited by Hoto Cocoa; 07-19-2019 at 12:18.
Hoto Cocoa is offline
epicwindow
Senior Member
Join Date: Jan 2018
Old 07-19-2019 , 18:07   Re: [Question]Random Boss Pack always go to the first
Reply With Quote #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
epicwindow is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode