AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   MapConfig (https://forums.alliedmods.net/showthread.php?t=57779)

magicyan 07-11-2007 03:15

MapConfig
 
1 Attachment(s)
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 :)

ferret 07-11-2007 07:38

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

I've heard that multiple times, anyways.

magicyan 07-11-2007 08:18

Re: MapConfig
 
Quote:

Originally Posted by ferret (Post 502003)
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

ferret 07-11-2007 08:20

Re: MapConfig
 
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.

trawiator 07-11-2007 08:29

Re: MapConfig
 
SRCDS read mapconfigs from <modname>/cfg/

magicyan 07-11-2007 08:33

Re: MapConfig
 
Quote:

Originally Posted by ferret (Post 502020)
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 ^^

++

theY4Kman 07-11-2007 09:37

Re: MapConfig
 
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.

Hell Phoenix 07-11-2007 10:22

Re: MapConfig
 
Thats how it should work. Whatever you want the default value to be should be set in your server.cfg.

ferret 07-11-2007 10:46

Re: MapConfig
 
Server.cfg should force your default and contain anything you change in other configs. IMO.

supermj 07-13-2007 08:38

Re: MapConfig
 
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.


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

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