GithubHelp home page GithubHelp logo

zk-servidores / mapconfigs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bcserv/mapconfigs

2.0 0.0 0.0 56 KB

Sourcemod plugin that allows you to have per map config files. Support for map prefix configs (example: dm_.cfg)

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

SourcePawn 100.00%

mapconfigs's Introduction

Map Confis

Allows you to have per map config files. Support for map prefix configs (example: dm_.cfg)

This is a complete rewrite of a map configs plugin I found somewhere.

You can have prefix configs that allow you to easily execute cvars/commands for a group of maps, without having to create a cfg file for each of them.

The executing order is alphabetical, that means configs that have the shortest name will be executed first.

Example

Your maps name is js_build_puzzle_nine_v10.

Your config files are js_build_puzzle_nine_v10.cfg, js_build_.cfg and js_.cfg

The executing order will be:

  • js_.cfg
  • js_build_.cfg
  • js_build_puzzle_nine_v10.cfg

For anyone looking for the chance to change ConVars such as mp_teamplay instantly with this plugin upon map/s load, not having to set them before changing map anymore, you can use attached custom version.

Config file patterns:

  • *.pre.cfg (new): For settings that must be applied as soon as map begins loading (required for mp_teamplay)
  • *.cfg (unchanged): For settings that must be applied right after both the map and base settings (e.g. server.cfg) load

Use case: "Overriding gamemode = CTF. I want to enforce mp_teamplay 1, and also set timelimit 60"

  • Add mp_teamplay 1 to ctf.pre.cfg and mp_timelimit 60 to ctf.cfg.
    • If you need to disable teamplay on the normal modes (not CTF), you could add mp_teamplay 0 to ctf.cfg; this way, the value will be 0 at the CTF session/s but teamplay disable will only be effective when returning to a normal mode.

Credits

mapconfigs's People

Contributors

crashzk avatar tabakhase avatar berni2288 avatar

Stargazers

PPrinter avatar Hubert 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.