-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some issues in map_votes #268
Comments
Another issue is m_iMapCooldown = 10 with cvar cs2f_vote_maps_cooldown , by default is 10 but if maplist.cfg is under 10 maps This is a missconfigured situation because cs2f_vote_maps_cooldown = 10 but a have only 3 maps => cs2f_vote_maps_cooldown must be 1 or 2 My suggestion is to check this at end of bool CMapVoteSystem::LoadMapList() Another issue in OnLevelInit at server start |
Yeah I'm also aware of that issue, I plan to do a larger rewrite of the cooldown system soon and will address it in the process. |
If you do that i have 2 suggetions:
|
When is used setnexmap m_iForcedNextMapIndex will be != -1
but in FinishVote() :
at line 352 m_iForcedNextMapIndex = -1;
so next lines
359 bool bIsNextMapForced = m_iForcedNextMapIndex != -1;
if (bIsNextMapForced) {
iNextMapVoteIndex = 0;
g_pGameRules->m_nEndMatchMapGroupVoteOptions[0] = m_iForcedNextMapIndex;
g_pGameRules->m_nEndMatchMapVoteWinner = iNextMapVoteIndex;
}
don't have sens, maybe is better reset m_iForcedNextMapIndex after found iWinningMap and iWinningMap==m_iForcedNextMapIndex
otherwise m_iForcedNextMapIndex remain same unti cleanup with setnextmap
another issue in maplist.cfg maps order must be same as in gamemodes_server.txt if is used
The text was updated successfully, but these errors were encountered: