A plugin for SourceMod that helps load gamemodes.
- unloads all other gamemodes before loading chosen gamemode to avoid conflicts
- changes gamemode for next map at current map's end
- works well with Ultimate Mapchooser (using
postvote-command
assm_nextgamemode <gamemode>
)
CVars
gamemode_manager_version
- Gamemode Manager versiongamemode_manager_use_default <0|1>
- how map change should be handled if no gamemode was specifically set (0 - use gamemode of current map, 1 - use default gamemode specified bygamemode_manager_default_gamemode
)gamemode_manager_default_gamemode <gamemode>
- the default gamemode to be loaded each map (forgamemode_manager_use_default 1
)gamemode_manager_debug <0|1>
- turns on debugging and action logging
Commands
sm_reloadgamemodes
- reload game modes from file configsm_nextgamemode [gamemode]
- get/set the next map's gamemodesm_gamemodemenu
- opens up a menu to select the next map's gamemode
"gamemodes"
{
"vanilla" // a gamemode included by default that unloads all other gamemodes when run
{
}
"super-awesome-nonexistent-gamemode" // name of the gamemode (e.g. sm_nextgamemode super-awesome-nonexistent-gamemode)
{
"plugins" // moved between plugins/ and plugins/disabled/ and loaded/unloaded in order specified
{
"1" "important-dependency.smx" // load/unload dependency first
"2" "gamemode/super-awesome-gamemode.smx" // include path to plugin from plugins/ folder
"3" "gamemode/gamemode-modifier.smx" // load plugin that depends on the gamemode last
}
"enable-commands" // executed in the order written after plugins loaded
{
"1" "super_gamemode_enabled 1"
"2" "super_gamemode_type 3"
"3" "gamemode_modifier 5.0"
}
"disable-commands" // executed in the order written before plugins unloaded
{
"1" "super_gamemode_enabled 0"
}
}
}
- SourceMod
1.2.0 (2013-10-04)
- revamped admin menu to fix issues
- prevented possible collisions
1.1.0 (2013-09-22)
- added admin menu
1.0.2 (2013-09-22)
- fixed up documentation a little
1.0.1 (2013-09-22)
- made version CVar public
- changed path sizes to SourceMod constant
1.0.0 (2013-09-22)
- initial release
- Place
plugins/gamemode-manager.smx
in yourplugins
directory. - Edit
configs/gamemodes.cfg
appropriately and place it in yourconfigs
directory.