Raised This Month: $4 Target: $400
 1% 

Map configs with prefix support 1.3


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Plugin ID:
344
Plugin Version:
1.2
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows you to have per map config files. Support for map prefix configs (example: dm_.cfg)
    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, 7885 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
     


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 20:24.


    Powered by vBulletin®
    Copyright ©2000 - 2020, vBulletin Solutions, Inc.
    Theme made by Freecode