-Fixed MapChooser translating the last map in a vote without extend to "Extend Map"
-Added convar sm_mapvote_novote to MapChooser. Default is 1. Set to 0 and MapChooser will not set the map when no one votes -Added convar sm_mapvote_extend. Default is 1, set to 0 and Extend option will not appear, even if the other extend cvars would allow it. -MapChooser now sets sm_nextmap to "Vote Pending" when the map starts. (Note: If using RandomCycle as well, it will be changed to RandomCycle's choice.) -Nextmap changed to reset sm_nextmap if it is invalid at end of map intermission --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401537
This commit is contained in:
+5
-1
@@ -223,6 +223,11 @@ public Action:UserMsg_VGUIMenu(UserMsg:msg_id, Handle:bf, const players[], playe
|
||||
|
||||
GetConVarString(g_Cvar_Nextmap, map, sizeof(map));
|
||||
|
||||
if (!IsMapValid(map))
|
||||
{
|
||||
GetArrayString(g_MapList, g_MapPos, map, sizeof(map));
|
||||
}
|
||||
|
||||
if (fChatTime < 2.0)
|
||||
SetConVarFloat(g_Cvar_Chattime, 2.0);
|
||||
|
||||
@@ -311,7 +316,6 @@ FindAndSetNextMap()
|
||||
{
|
||||
decl String:current[64];
|
||||
GetCurrentMap(current, 64);
|
||||
|
||||
|
||||
for (new i = 0; i < mapCount; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user