Version 1.4.0
If you are upgrading from 1.3.0, delete cfg/sourcemod/nextmapmode.cfg.
Description
----------------------------------------------------
Next Map Mode is a plugin that allows you to
define modes for specific maps. It will automatically
change game type and mode appropriately.
Once map names are placed in cfg/maplist_demolition.txt,
for instance, those maps will load in Demolition mode
by default.
Commands and Cvars
----------------------------------------------------
Commands
sm_nmm <mode> - (ADMFLAG_CHANGEMAP) Set the mode for the next map. This overrides any other settings and convars. Acceptable arguments for <mode>: (0, 1, 2, 3, 4, Casual, Competitive, [ArmsRace, Arms_Race, Arms Race], Demolition, [Deathmatch, Death_Match, Death Match]). (Command override: sm_nmm)
Cvars
sm_nmm_version "1.4.0" - Plugin version.
sm_nmm_enable "1" - Enable or disable plugin (1 - enable, 0 - disable).
sm_nmm_defaultmode "0" - What mode should be used if the next map mode is not specified (0-Casual, 1-Competitive, 2-Arms Race, 3-Demolition, 4-Deathmatch).
sm_nmm_random "0" -Randomize the next map mode (1 - randomize, 0 - don't randomize).
sm_nmm_maplist_casual "cfg/maplist_casual.txt" - Text file list of casual maps.
sm_nmm_maplist_competitive "cfg/maplist_competitive.txt" - Text file list of competitive maps.
sm_nmm_maplist_armsrace "cfg/maplist_armsrace.txt" - Text file list of arms race maps.
sm_nmm_maplist_demolition "cfg/maplist_demolition.txt" - Text file list of demolition maps.
sm_nmm_maplist_deathmatch "cfg/maplist_deathmatch.txt" - Text file list of deathmatch maps.
sm_nmm_mapcycle_casual "" - Mapcyclefile for casual mode (Leave blank for no change)
sm_nmm_mapcycle_competitive "" - Mapcyclefile for competitive mode (Leave blank for no change)
sm_nmm_mapcycle_armsrace "" - Mapcyclefile for arms race mode (Leave blank for no change)
sm_nmm_mapcycle_demolition "" - Mapcyclefile for demolition mode (Leave blank for no change)
sm_nmm_mapcycle_deathmatch "" - Mapcyclefile for deathmatch mode (Leave blank for no change)
Requirements
----------------------------------------------------
Counter-Strike: Global Offensive
SourceMod 1.5.0+
Installation
----------------------------------------------------
Place nextmapmode.smx in the /csgo/addons/sourcemod/plugins directory.
Change settings in csgo/cfg/sourcemod/nextmapmode.cfg.
Add maps to the maplist files according to what you want their default mode to be.
Example csgo/cfg/maplist_armsrace.txt:
Code: Select all
ar_baggage
ar_monastery
ar_shoots
sm_nmm - Admins with access to this command can use sm_nmm to change the mode for the next map. Note that this command will override the default maplist settings (i.e. if you've set ar_baggage to load in Arms Race mode, and you use "!nmm Casual" and switch to ar_baggage, the map will load in Casual mode).
You can use admin_groups.cfg or admin_overrides.cfg to change command permissions.
Example admin_overrides.cfg:
Code: Select all
Overrides
{
"sm_nmm" "cdr"
}
IMPORTANT: Your server will be UNJOINABLE if your gamemodes_server.txt has not been set up to accomodate all your maps for every mode. See an example of a proper configuration here: https://forums.alliedmods.net/showpo...01&postcount=3
Create files named "maplist_competitive.txt", "maplist_deathmatch.txt", etc. in your csgo/cfg/ directory, and place map names in them (in the same manner as mapcycle.txt). If a map name is in "maplist_armsrace.txt", for instance, then that map will load in Arms Race mode by default. If a map is not present in one of the maplists, then the default mode specified by sm_nmm_defaultmode will be used.
If you define custom MapCycleFiles, e.g. sm_nmm_mapcyclefile_competitive "cfg/mapcycle_competitive.txt", then mapcycle_competitive.txt will be used as the mapcycle (for purposes of map voting and map rotations) whenever you switch to competitive mode. Note that switching back to another mode will not reset the mapcyclefile to the regular mapcycle.txt, unless you define the convars for the other modes to do so.
Complementary Plugins
----------------------------------------------------
RockTheMode - https://forums.alliedmods.net/showthread.php?t=196148
-Give players the ability to vote for a mode change.
Plugin / Source