CSS autoexec "like" file for a specific map?

Post Reply
squirrelof09
This is my homepage
This is my homepage
Posts: 76
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Mar 14, 2011 5:09 pm

CSS autoexec "like" file for a specific map?

Post by squirrelof09 »

Not sure if the topic made sense. I understand how autoexec works. Is it possible to have a file like it that would apply server commands per a specific map?

We're trying to bandaid fix an issue we're having. One of the maps we have loaded on the server seems to apply "mp_limitteams 1" upon map load. I'm hoping to see if there is a way to have the server apply mp_limitteams 0 after the map is loaded.

Is there a better recommended way of accomplishing this?
User avatar
TimeX
Staff
Staff
Posts: 1731
Joined: Thu Jul 22, 2004 12:24 am
Location: Big Bear, CA

Re: CSS autoexec "like" file for a specific map?

Post by TimeX »

If you have this in your server.cfg file:

mapchangefile "server.cfg"

...then the server.cfg file should run after every map change anyhow, even if the one map is trying to set it on its own.
TimeX
dawnofviolence
A regular
A regular
Posts: 37
Joined: Mon Nov 01, 2010 7:16 pm
Contact:

Re: CSS autoexec "like" file for a specific map?

Post by dawnofviolence »

there isnt any plugin that i know of atm that will load specific cfg for a map. Best way is to keep 2 cfgs name one something like gungame.cfg or blahblah.cfg and load it when the map you want is picked.
DoVGaming.net CSS COMMUNITY POWERED BY NFOSERVERS.COM
User avatar
TimeX
Staff
Staff
Posts: 1731
Joined: Thu Jul 22, 2004 12:24 am
Location: Big Bear, CA

Re: CSS autoexec "like" file for a specific map?

Post by TimeX »

The game itself supports map specific configs by placing a maps folder inside the cfg folder, then placing de_dust2.cfg and such in there. squirrelof09 is just trying to force a setting on map change though, without different settings loading for different maps from the sounds of it.
TimeX
wtfaatp
New to forums
New to forums
Posts: 12
Joined: Thu Feb 09, 2012 9:36 pm

Re: CSS autoexec "like" file for a specific map?

Post by wtfaatp »

TimeX wrote:The game itself supports map specific configs by placing a maps folder inside the cfg folder, then placing de_dust2.cfg and such in there. squirrelof09 is just trying to force a setting on map change though, without different settings loading for different maps from the sounds of it.
  • Go to your "maps" directory.
  • In there create a file called cfg.
  • Inside the cfg folder create a .cfg withe the name of the "PROBLEM" map.
  • Inside the .cfg put mp_limitteams 0.
  • Save the .cfg
  • Restart server.
If you just want a cvar to be executed after a map change put it in ur server.cfg (It always executes after every map change)
> NFO rocks. love you guys!
> NEVER GO ANYWERE! Thats an order..
> You have to try and give the customer what they want right?
> WELL I WANT YOU TO STAY HERE
> :D AWESOME SERVERS, AWESOME TECH SUPPORT..
> Thank you guys so much :D
Post Reply