PDA

View Full Version : Custom Settings Per Map


Barloe
12-07-2004, 09:30 AM
Hello everyone.

I was curious, is it possible to apply settings for each map independently...example...

Low Gravity tweaks to Killbox, while leaving the gravity at normal levels on the other maps in the rotation?

I am under the impression that I can't, but someone please correct me if I'm wrong with suggestions on how.

Thanks in advance!

SlayerUSA
12-07-2004, 10:25 AM
go to
www.sourcemode.net
forums
hl2 server plugins

Barloe
12-07-2004, 10:42 AM
appreciate it!

www.sourcemod.net

Lackatee
12-07-2004, 06:25 PM
Very simple.

You make a .cfg for each map you want to run different settings on and you name the .cfg the same as the map its settings apply to. You place those .cfg's inside the map folder along with the map.

You can put whatever cvars you want in it.

So if your running de_dust you would make a file called de_dust.cfg and add whatever to it and place it in your maps folder with the .bsp's It will automatically run the cfg when the map is run. Just remember that the cfg file must be named that same as the map.

I believe it works if you put them inside the mod folder too. You can try them both. :)

Good luck

EDIT:

So .. if you want killbox to be 20 minutes and low gravity you would make a .cfg file called "killbox.cfg" and place it inside your maps directory on the server. Inside that .cfg you would put

sv_gravity "200"
mp_timelimit "20"

You can even get creative and start changing your host name for certain maps or maybe the team settings or whatever else you can think of. Examples.

hostname "The 20 minute KIllbox Spree"
mp_teamplay "1300"
sv_maxrate "9000"
mp_weaponstay "0"

Whatever map does not have a .cfg when it comes up in the rotation will just use the server.cfg settings. I havent tried this on srcds just yet. So i can only speak for standard HLDS. I dont see why it wouldnt work though.

Hope that helps. :) You can really make a neat server with tons of variety by making map .cfgs for all your maps. Its a good way to stand out in a crowd for sure. I wonder why more people dont use it, They probably dont know. :)



Good Luck!

sidmind
12-08-2004, 06:59 AM
I just tried this on a Windows Dedicated Server (non steam version)

and it did NOT work.

Lackatee
12-08-2004, 08:17 AM
I guess it doesnt work on Source at this time. Which doesnt make a god damn bit of sense to me. It DOES work on Standard HLDS Servers.

Ill e-mail the hlds list and find out why. Pretty lame that they would leave that out.

Moon!
12-08-2004, 08:48 AM
Originally posted by Lackatee
I guess it doesnt work on Source at this time. Which doesnt make a god damn bit of sense to me. It DOES work on Standard HLDS Servers.

Ill e-mail the hlds list and find out why. Pretty lame that they would leave that out.

It works on HLDS because of mods ie admin mod or amx. You would have thought that something this simple and needed would have been added to the default server in Source :/

Lackatee
12-08-2004, 09:32 AM
Why wouldn't they just add the code for this? You could put all your map .cfgs in the cfg folder and everything would be sweet.

I didn't realize admin mod was doing that. What a trip. I always thought that was part of HLDS. But then again i had admin mod installed when i setup my first server sometime back.

I hadn't got around to testing it on srcds. Oh well. Guess you'll have to wait for admin mod to come out before this will do you any good. It DOES work sweet when its working though.

sidmind
12-08-2004, 09:40 AM
admin mod was coded by Alfred,

Alfred now works for Valve!

Lackatee
12-08-2004, 10:23 AM
And this has to do with....??

Moe_FuGGeR
12-08-2004, 02:47 PM
bump

paulmon
12-08-2004, 03:06 PM
Originally posted by sidmind
I just tried this on a Windows Dedicated Server (non steam version)

and it did NOT work.


It does work, i have it running on two source servers.

http://www.sourcemod.net/forums/viewtopic.php?t=222

P

Moe_FuGGeR
12-09-2004, 12:36 PM
Can someone pls say if this works for sure or not.cuz the only guy that says this works (above post) has no clue what he's talking about as he left a link to the source mod,everyone knows the source mod works i need to know if the costom map settings will work.
thx

paulmon
12-09-2004, 03:39 PM
Originally posted by Moe_FuGGeR
Can someone pls say if this works for sure or not.cuz the only guy that says this works (above post) has no clue what he's talking about as he left a link to the source mod,everyone knows the source mod works i need to know if the costom map settings will work.
thx

Your response might as well be in chinese because it makes no sense to me however I will expand on my original post.

All I was saying was the plugin that the link I provided you with on the sourcemod site allows you to use custom configs for each map. If are asking does this work out of the box without using a plugin then the answer is no.


If you take the time to read that thread on the sourcemod forum you will find it works.

you create a config file scoutzknivez.cfg and place it in the cfg folder.

in the scoutzknivez.cfg you put your cvars
sv_gravity=200

P

Moe_FuGGeR
12-10-2004, 10:44 AM
eh some say it works some say it does'nt, and i cant seem to get it to work so.....w/e i give up