Raised This Month: $32 Target: $400
 8% 

Help with Votemenu (item size)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Paerux
New Member
Join Date: Jan 2019
Old 01-16-2019 , 07:32   Help with Votemenu (item size)
Reply With Quote #1

I've tried all the rtv/mapchooser plugins that i could find , all of them had 5 or 6 maps limit on their vote menu. I've been on couple of servers that used ultimate map chooser that showerd 9 maps (no pagination) and checked the menu api and it said non paginated menus could list 10 items.

I tried changing the code of the plugins to make the menus non paginated but i couldn't do it. Could someone guide me on how to do this? any example on any rtv/map chooser plugin would be great
Paerux is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-16-2019 , 08:33   Re: Help with Votemenu (item size)
Reply With Quote #2

In mapchooser.sp
line 129, remove max value from cvar
Code:
	g_Cvar_IncludeMaps = CreateConVar("sm_mapvote_include", "5", "Specifies how many maps to include in the vote.", _, true, 2.0, false, 6.0);
Then you need change mapchooser config ...cfg/sourcemod/mapchooser.cfg
Code:
// Specifies how many past maps to exclude from the vote.
// -
// Default: "5"
// Minimum: "0.000000"
sm_mapvote_exclude "0"

// Specifies how many maps to include in the vote.
// -
// Default: "5"
// Minimum: "2.000000"
// Maximum: "6.000000"
sm_mapvote_include "20"

Last edited by Bacardi; 01-16-2019 at 08:35.
Bacardi is offline
Paerux
New Member
Join Date: Jan 2019
Old 01-16-2019 , 08:54   Re: Help with Votemenu (item size)
Reply With Quote #3

I've tried that, still shows like5 maps on a page and there's the Next button, how can i make the menu non paginated? I've seen on some servers and on wiki that non paginated menus can show 10 items (last one is Exit) which is exactly what i want, 9 maps and 1 exit button
Paerux is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-16-2019 , 11:01   Re: Help with Votemenu (item size)
Reply With Quote #4

....
after line 571 you could add
Code:
	g_VoteMenu = new Menu(Handler_MapVoteMenu, MENU_ACTIONS_ALL);
	g_VoteMenu.Pagination = MENU_NO_PAGINATION;
Then somewhere line 692 change
Code:
	g_VoteMenu.ExitButton = true;
__________________
Do not Private Message @me
Bacardi is offline
Reply


Thread Tools
Display Modes

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 14:31.


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