GithubHelp home page GithubHelp logo

iebb / workshopmaploader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nefarius/workshopmaploader

0.0 3.0 0.0 1.22 MB

Advanced Workshop Map Loader and Game Type Adjuster

Home Page: https://forums.alliedmods.net/showthread.php?p=2081908

License: GNU General Public License v3.0

SourcePawn 100.00%

workshopmaploader's Introduction

Workshop Map Loader

This is a SourceMod plugin for Counter-Strike: Global Offensive. Head over to the Allied Modders Forum Thread for more information.

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.

Features

Admin menu

The Top-Level menu is dynamically built depending on your servers' workshop maps and their community tags:

Admin menu

Each category hosts the corresponding map:

Category menu

Note, that a map may appear in multiple categories depending of it's tags.

Vote menu

It's possible to interact with the stock MapChooser plugin or the MapChooser Extended plugin.

Vote menu

Commands

  • sm_wml brings up the map list (for Admins with at least changemap-Permissions)
  • sm_wml_reload refreshes the map list (useful to be triggered by the admin after the server has downloaded new workshop maps)
  • sm_wml_rebuild dumps the database content and rebuilds it from scratch
  • sm_wml_vote_now requests an instant next map vote
  • sm_wml_nominate_random_maps will nominate a given amount of random maps from the database for the next vote. It's behavior is controlled by the sm_wml_nominate_* Cvars.

Snippet for your adminmenu_custom.txt:

	"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

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

There currently exist the following translations:

  • English
  • German
  • Russian
  • Romanian

Plans and TODOs

Suggestions welcome!

  • More translations
  • Add map blacklist to exclude "broken" map IDs

Optional Dependencies

  • This plugin will be automatically updated by the Updater plugin
  • Use MapChooser Extended if you like to utilize advanced voting
  • You also might have a look at my Server Hibernate Fix plugin to avoid locking up your server on hibernation

Installation/Requirements

  1. You should have at least SourceMod v1.5.3
  2. Your server must be running at least one of the following extensions:
  • cURL (recommended)
  • System2
  1. Write-Permissions to sourcemod/data and sourcemod/data/sqlite directory.
  2. Download the latest archive.
  3. Extract the contents of WorkshopMapLoader-master into your servers csgo/addons/sourcemod directory.
  4. Restart your server or load the plugin by hand.
  5. Adjust the configuration file to your needs or just go with the defaults.
  6. Leave feedback!

workshopmaploader's People

Contributors

nefarius avatar

Watchers

James Cloos avatar ieb avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.