Raised This Month: $51 Target: $400
 12% 

MapConfig


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author
magicyan
Member
Join Date: Nov 2005
Plugin ID:
79
Plugin Version:
0.1
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Loading cfg file with a specific map
    Unapprover:
    Reason for Unapproving:
    built into source
    Old 07-11-2007 , 03:15   MapConfig
    #1

    This little plugin allow to loading a specific cfg file with a specific map.
    Like '/cfg/mani_admin_plugin/map_config/' of Mani Admin Plugin.

    CVARS:
    • Not yet

    CHANGELOG:
    • 0.1: Beta

    INSTALLATION:
    • Click "Get Plugin" at the bottom of the post and save to your addons\sourcemod\plugins directory
    • The cfg file will be in cfg/sourcemod/mapconfig/ directory.
    • For example, if you want gravity only de_dust2:
      Create a cfg file with this name: de_dust2.cfg
      Edit the file and put sv_gravity 150

    TO DO:
    • Create 2 cvars (sm_mapconfig_enabled & sm_mapconfig_dir)

    Thank you to Nicolous for his help
    Attached Files
    File Type: sp Get Plugin or Get Source (mapconfig.sp - 2557 views - 620 Bytes)
    __________________
    Serveur Test SourceMod => 77.111.201.216:27015

    Tuto 'SourceMod' in french
    http://www.support-cssource.info/viewtopic.php?t=184

    Last edited by magicyan; 07-11-2007 at 03:36.
    magicyan is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 07-11-2007 , 07:38   Re: MapConfig
    #2

    I do believe this is built into SRCDS, by places configs in modname/maps/cfg/

    I've heard that multiple times, anyways.
    __________________
    I'm a blast from the past!
    ferret is offline
    magicyan
    Member
    Join Date: Nov 2005
    Old 07-11-2007 , 08:18   Re: MapConfig
    #3

    Quote:
    Originally Posted by ferret View Post
    I do believe this is built into SRCDS, by places configs in modname/maps/cfg/

    I've heard that multiple times, anyways.
    oO , I didn't know.
    Thank for information.

    Then my plugin isn't useful

    Bye
    __________________
    Serveur Test SourceMod => 77.111.201.216:27015

    Tuto 'SourceMod' in french
    http://www.support-cssource.info/viewtopic.php?t=184
    magicyan is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 07-11-2007 , 08:20   Re: MapConfig
    #4

    I'll try to confirm that. I believe mani added it because it wasn't there originally, and at some point VALVe did add it, and mani just never removed his.
    __________________
    I'm a blast from the past!
    ferret is offline
    trawiator
    Senior Member
    Join Date: Nov 2004
    Old 07-11-2007 , 08:29   Re: MapConfig
    #5

    SRCDS read mapconfigs from <modname>/cfg/
    trawiator is offline
    magicyan
    Member
    Join Date: Nov 2005
    Old 07-11-2007 , 08:33   Re: MapConfig
    #6

    Quote:
    Originally Posted by ferret View Post
    I'll try to confirm that. I believe mani added it because it wasn't there originally, and at some point VALVe did add it, and mani just never removed his.
    Yes, I confirm.
    I try and it's work fine.

    Plugin obsolete ^^

    ++
    __________________
    Serveur Test SourceMod => 77.111.201.216:27015

    Tuto 'SourceMod' in french
    http://www.support-cssource.info/viewtopic.php?t=184
    magicyan is offline
    theY4Kman
    Join Date: Jun 2007
    Location: Yak
    Old 07-11-2007 , 09:37   Re: MapConfig
    #7

    SRCDS does do it, but it has one huge fault. If your map config changes mp_friendlyfire to 1, but your server.cfg doesn't change mp_friendlyfire at all, friendly fire will remain on when you change to that map. Perhaps you could read from the map config file before it is executed, and store all the default values of the cvars it will change. Then, when the map changes, it restores those values.
    __________________
    http://y4kstudios.com
    Is that loud enough? Oh, while I have you, check out Viper.
    theY4Kman is offline
    Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
    Hell Phoenix
    Senior Member
    Join Date: Jan 2005
    Old 07-11-2007 , 10:22   Re: MapConfig
    #8

    Thats how it should work. Whatever you want the default value to be should be set in your server.cfg.
    __________________
    Hell Phoenix is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 07-11-2007 , 10:46   Re: MapConfig
    #9

    Server.cfg should force your default and contain anything you change in other configs. IMO.
    __________________
    I'm a blast from the past!
    ferret is offline
    supermj
    Senior Member
    Join Date: May 2004
    Location: Georgia
    Old 07-13-2007 , 08:38   Re: MapConfig
    #10

    One question though, when does the valve cfg execute and when does this. With atac, I was trying to set turn off spawn protection with a cvar in a custom config using the valve folder, but it wasn't working. I could only speculate that it was getting executed too early, then the atac cfg was executed afterward overriding it. If this plugin could execute it as late as possible, I believe it could be of some benefit.
    __________________
    supermj is offline
    Closed Thread



    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 03:36.


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