/Sp-Map-config

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

Primary LanguagePython

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.