Raised This Month: $ Target: $400
 0% 

[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 , 23: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 - 4027 views - 6.6 KB)

    Last edited by chinagreenelvis; 02-14-2013 at 06:37.
    chinagreenelvis is offline
    chinagreenelvis
    Senior Member
    Join Date: Dec 2009
    Old 02-11-2013 , 21: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 - 1422 views - 4.9 KB)
    chinagreenelvis is offline
    chinagreenelvis
    Senior Member
    Join Date: Dec 2009
    Old 02-13-2013 , 14: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 - 1453 views - 5.2 KB)
    chinagreenelvis is offline
    chinagreenelvis
    Senior Member
    Join Date: Dec 2009
    Old 02-14-2013 , 06: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 - 2857 views - 6.6 KB)
    chinagreenelvis is offline
    terrum
    AlliedModders Donor
    Join Date: Apr 2006
    Location: United Kingdom
    Old 04-24-2013 , 19: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 19: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 , 22: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
    ALOROMELIXAR
    BANNED
    Join Date: May 2022
    Location: GB
    Old 05-23-2022 , 16:20   Re: [CS:GO] ChangeMode
    Reply With Quote #7

    Quote:
    Originally Posted by chinagreenelvis View Post
    Update, v. 1.3 - Corrected errors with every mode loading the casual config.
    can you update this plugin for new sourcemod?
    ALOROMELIXAR is offline
    Send a message via ICQ to ALOROMELIXAR Send a message via AIM to ALOROMELIXAR Send a message via Yahoo to ALOROMELIXAR Send a message via Skype™ to ALOROMELIXAR
    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 06:01.


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