Print Version

View original submission

Workshop Map Loader

Posted by: Diablo Oct 2 2019, 09:01 PM

Description
This plugin searches for workshop maps in your servers map directory and assists the admin in handling those. It will also ensure that the current game mode will get automatically adjusted, if requested by the admin.

The plugin was developed for CS:GO and will not work in other games.

Commands



Snippet for your adminmenu_custom.txt:
CODE
    "ServerCommands"
    {
        "Load Workshop Map"
        {
            "cmd"        "sm_wml"
            "admin"        "sm_changemap"
        }
        "Refresh Workshop Map List"
        {
            "cmd"        "sm_wml_reload"
            "admin"        "sm_changemap"
        }
        "Start Next Workshop Map Vote"
        {
            "cmd"        "sm_wml_vote_now"
            "admin"        "sm_changemap"
        }
    }

Cvars
CODE
This plugin generates it's config file in csgo/cfg/sourcemod/wml.cfg after first load.
sm_wml_version returns current plugin version
sm_wml_changemode will change the game mode corresponding to the selected category <1 = Enabled/Default, 0 = Disabled>
sm_wml_autoreload defines if the database content should be refreshed on plugin reload. It's recommended to turn it off after the first successful load for performance reasons <1 = Enabled/Default, 0 = Disabled>
sm_wml_armsrace_weapon defines the weapon in Armsrace mode where voting shall pop up if the first player acquired it <awp = Default>
sm_wml_nominate_all_maps defines if all maps shall be allowed to get into vote nomination rather than only maps matching the current game mode (e.g. in Casual there won't be Armsrace maps nominated) <1 = Enabled, 0 = Disabled/Default>
sm_wml_override_mapcycle creates and sets a custom mapcycle file on each mapchange with workshop maps matching the current game mode. This will allow excellent automated interaction with stock map management plugins <1 = Enabled/Default, 0 = Disabled>


Translations


Optional Dependencies


Installation/Requirements