View Single Post
Author Message
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 04-05-2008 , 17:37   Map configs with prefix support 1.3
Reply With Quote #1

with prefix support


Plugin on Github: https://github.com/bcserv/mapconfigs - Forks & Pull requests are welcome

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:
  1. js_.cfg
  2. js_build_.cfg
  3. js_build_puzzle_nine_v10.cfg
Config structure

cfg/sourcemod/map-cfg/

ConVars

none

Todo

-


Changelog


06-05-2015 Version 1.3
  • Fixed handle leak

26-10-2014 Version 1.2
  • Added support for workshop maps (CS:GO), thanks to tabakhase

23-8-2009 Version 1.1.1
  • Fixed configs getting executed twice OnPluginStart

23-8-2009 Version 1.1
  • Added version Convar mc_version
  • Code cleanup
7-5-2008 Version 1.02
  • The plugin is now using OnAutoConfigsBuffered() instead of OnConfigsExecuted() for more reliable cvar changing.
7-5-2008 Version 1.01
  • Fixed wrong folder structor in attached rar file.
5-4-2008 Version 1.0
  • Initial release
Tested games
  • CS: GO
  • Half Life 2: Deathmatch
  • Counter Strike: Source
  • Team Fortress 2
  • Day of Defeat: Source
  • Should work with any games

Contributors
Attached Files
File Type: zip mapconfigs.zip (8.1 KB, 11511 views)
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0

Last edited by berni; 05-05-2015 at 18:07.
berni is offline