View Single Post
Author Message
Sheepdude
SourceMod Donor
Join Date: Aug 2012
Location: Chicago
Old 11-02-2012 , 13:25   [CS:GO] Next Map Mode (1.4.0)
Reply With Quote #1

Next Map Mode

Version 1.4.0

If you are upgrading from 1.3.0, delete cfg/sourcemod/nextmapmode.cfg.


Table of Contents
----------------------------------------------------
Description
Commands and Cvars
Requirements
Installation
Dependencies
Credits
Changelog
Command Overrides
To Do
Notes
Complementary Plugins
Download


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:
ar_baggage
ar_monastery
ar_shoots

Dependencies
----------------------------------------------------
None


Credits
----------------------------------------------------
Changelog
----------------------------------------------------
Spoiler
  • 1.4.0 (2 Feburary 2013)
    -Bug fix: Plugin now looks at mp_match_restart_delay instead of erroneously looking at mp_halftime_delay.
    -Map lists are now extracted from text files instead of from convars. You can now define an unlimited number of maps for each mode.
    -Added support for Deathmatch mode.
    -Added MapCycleFile convars to allow for dynamic map cycles when changing modes.
    -Added admin/donor overrides for sm_nmm command.

Command Overrides
----------------------------------------------------
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:
Overrides
{
	"sm_nmm" "cdr"
}
In this example, only admins who have all three "c", "d", and "r" admin flags can set the next map mode with /nmm <mode>.


To Do
----------------------------------------------------
  • None.

Notes
----------------------------------------------------
  • 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
----------------------------------------------------
Download
----------------------------------------------------
Attached Files
File Type: sp Get Plugin or Get Source (nextmapmode.sp - 7257 views - 10.9 KB)
__________________

Last edited by Sheepdude; 02-02-2013 at 18:52.
Sheepdude is offline