UMCNominate - Silenci0/UMC GitHub Wiki
Purpose
The Nomination module is used to nominate maps for Ultimate Mapchooser votes, similar to the functionality built into SourceMod by the nominate.smx plugin. This module provides clients on the server a way to nominate maps through a menu, either by typing "nominate" in chat, or using the "sm_nominate" command.
sm_nominate
- Displays a nomination menu to the client who used the command.
Maps appearing in the nomination menu follow the Nomination and Display Exclusion guidelines, outlined here.
The Nomination module also defined one new map option, nominate_flags, as well as one new map group option, also called nominate_flags.
"umc_mapcycle"
{
"A Group"
{
"nominate_flags" "FLAG_STRING"
...
"A Map"
{
"nominate_flags" "FLAG_STRING"
...
}
}
}
FLAG_STRING: a string containing SourceMod admin flags, one of which an admin must require in order to nominate that map. The nominate_flags at the group level defines the nominate_flags option for all maps in the group, manually defining nominate_flags for a map overrides the group setting. If the group-level nominate_flags is left blank or omitted, the flags specified in the sm_umc_nominate_adminflags cvar are used (see cvars below).
List of CVars
The list of cvars for the Nomination module is located in cfg/sourcemod/umc-nominate.cfg.
// File to use for Ultimate Mapchooser's map rotation.
// -
// Default: "umc_mapcycle.txt"
sm_umc_nominate_cyclefile "umc_mapcycle.txt"
// Flags necessary for a player to nominate a map, if flags are not specified by a map in the mapcycle. If empty, all players can nominate.
// -
// Default: ""
sm_umc_nominate_defaultflags ""
// Specifies whether players have the ability to nominate maps for votes.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_umc_nominate_enabled "1"
// Specifies how many past map groups to exclude from nominations.
// -
// Default: "0"
// Minimum: "0.000000"
sm_umc_nominate_groupexclude "0"
// Specifies how many past maps to exclude from nominations. 1 = Current Map Only
// -
// Default: "4"
// Minimum: "0.000000"
sm_umc_nominate_mapexclude "4"
// Determines the order of maps in the nomination menu.
// 0 - Same as mapcycle,
// 1 - Alphabetical
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_umc_nominate_sorted "0"
// Organizes the nomination menu so that users select a group first, then a map.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_umc_nominate_tiermenu "0"