Git Product home page Git Product logo

sp-map-config's Introduction

Sp-Map-config

A Sourcepython plugin which allow you to configure Cvar and restriction by map.

How to install it ?

Put the plugin in addons/source-python/plugins directory.
Go in cfg/source-python directory and add a folder map_config. In this folder you can add maps configs.

How to use it ?

Restriction system :

I made my restriction like this :

restrict_ + weapon name + _team
1 - Weapon is restricted
0 - Weapon not restricted

  • Default :
    You can find a map_config.cfg in cfg/source-python directory. It's the default config always load before map config. In this file you can just set restriction. If you want on all of your maps add a restriction on Awp you can do this in this file.

  • By map :

Example :

// File de_dust2.cfg
restrict_ssg08_t 1
restrict_ssg08_ct 1

With this config when you are on de_dust2 ssg08 will be restricted for CT and T.

Cvar system :

Example :

// File de_dust2.cfg
sv_alltalk 0

You can also add cvar in the config file, in our example when you are on de_dust2 alltalk cvar will be set to 0.

sp-map-config's People

Contributors

exiistenz avatar

Stargazers

 avatar

Watchers

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