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

[CS:GO] ChangeMode


Post New Thread Reply   
 
Thread Tools Display Modes
Author
chinagreenelvis
Senior Member
Join Date: Dec 2009
Plugin ID:
3523
Plugin Version:
1.3
Plugin Category:
Admin Commands
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Admin commands to change the game mode and select a new map from a custom maplist.
    Old 02-09-2013 , 22:50   [CS:GO] ChangeMode
    Reply With Quote #1

    This is a modification of SouceMod's randomcycle plugin. It will both randomize your map cycle and allow you to switch game modes in-game, automatically selecting a new custom map cycle for each mode and randomly selecting a map from that list to change to.

    The command is

    Code:
    sm_changemode_[gametype] [mapcyclefile].txt
    The gametypes are armsrace, casual, competitive, deathmatch, and demolition. For example: sm_changemode_deathmatch mapcycle_deathmatch.txt

    The casual game mode uses the original mapcycle.txt by default. You will need to create the additional following text files in your base directory:

    mapcycle_competitive.txt
    mapcycle_armsrace.txt
    mapcycle_demolition.txt
    mapcycle_deathmatch.txt

    Some maps do not support classic modes (ar_ maps and some de_ maps). These should be reserved for deathmatch, demolition, and arms race cycles. Otherwise, you'll be pistols-only unless you use a mod like the Buy Zone Simulator.

    I also recommend you download Show The Right Next Map, otherwise the wrong maps will be displayed to players in-game.

    To select modes in-game, add the following to your adminmenu_custom.txt file:

    Code:
    "Commands"
    {
    	"Game Modes"
    	{
    		"Arms Race Mode"
    		{
    			"cmd"			"sm_changemode_armsrace mapcycle_armsrace.txt"
    			"admin"			"sm_kick"
    			"execute"		"server"
    		}
    		"Casual Mode"
    		{
    			"cmd"			"sm_changemode_casual mapcycle.txt"
    			"admin"			"sm_kick"
    			"execute"		"server"
    		}
    		"Competitive Mode"
    		{
    			"cmd"			"sm_changemode_competitive mapcycle_competitive.txt"
    			"admin"			"sm_kick"
    			"execute"		"server"
    		}
    		"Deathmatch Mode"
    		{
    			"cmd"			"sm_changemode_deathmatch mapcycle_deathmatch.txt"
    			"admin"			"sm_kick"
    			"execute"		"server"
    		}
    		"Demolition Mode"
    		{
    			"cmd"			"sm_changemode_demolition mapcycle_demolition.txt"
    			"admin"			"sm_kick"
    			"execute"		"server"
    		}
    		"Random Map (Current Mode)"
    		{
    			"cmd"			"sm_changemap"
    			"admin"			"sm_kick"
    			"execute"		"server"
    		}
    	}
    }
    Attached Files
    File Type: sp Get Plugin or Get Source (changemode.sp - 2173 views - 6.6 KB)

    Last edited by chinagreenelvis; 02-14-2013 at 05:37.
    chinagreenelvis is offline
    chinagreenelvis
    Senior Member
    Join Date: Dec 2009
    Old 02-11-2013 , 20:23   Re: [CS:GO] ChangeMode
    Reply With Quote #2

    Update: v 1.1 - String lengths increased to accommodate Workshop map paths (workshop/123456789/map) when added to mapcycle files.
    Attached Files
    File Type: sp Get Plugin or Get Source (changemode.sp - 447 views - 4.9 KB)
    chinagreenelvis is offline
    chinagreenelvis
    Senior Member
    Join Date: Dec 2009
    Old 02-13-2013 , 13:37   Re: [CS:GO] ChangeMode
    Reply With Quote #3

    Update, v. 1.2 - Added config execution for game type, corrected typos for competitive mode.
    Attached Files
    File Type: sp Get Plugin or Get Source (changemode.sp - 338 views - 5.2 KB)
    chinagreenelvis is offline
    chinagreenelvis
    Senior Member
    Join Date: Dec 2009
    Old 02-14-2013 , 05:31   Re: [CS:GO] ChangeMode
    Reply With Quote #4

    Update, v. 1.3 - Corrected errors with every mode loading the casual config.
    Attached Files
    File Type: sp Get Plugin or Get Source (changemode.sp - 1199 views - 6.6 KB)
    chinagreenelvis is offline
    terrum
    SourceMod Donor
    Join Date: Apr 2006
    Location: UK, Kent
    Old 04-24-2013 , 18:28   Re: [CS:GO] ChangeMode
    Reply With Quote #5

    What about for the 'custom' gamemode?

    Also, how about a way to change the gamemode on the same map? (So it changes the gamemode on the current map)
    __________________
    Thanks,
    Terrum.



    Last edited by terrum; 04-24-2013 at 18:31.
    terrum is offline
    Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
    jwoods82
    Junior Member
    Join Date: Apr 2016
    Old 04-28-2016 , 21:50   Re: [CS:GO] ChangeMode
    Reply With Quote #6

    Im using changemode with sourcemod and metamod updated and noticing an issue i can not seem to resolve unless i remove changemode.

    When the match is over is casual the default csgo mapvote comes up and the players pick a map. map is selected and it looks like in console that changemode is overriding the default map vote and picking a random map instead of what was chosen by the players.

    Not sure if anyone has seen this but since i only use one server I would like to use this plug in but i do not think i can get it to work.

    Any help is appreciated. Thanks
    jwoods82 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 23:59.


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