Class Lmits per Map


smashingpunk007
05-18-2007, 12:37 PM
What is the best way to limit classes within a map and not server side. Is there any other method to make a map have only 1 class to choose from besides using the game_player_equip entity? I couldn't find another thread on it, but i read a while back that you could embed a class limit file in the bsp and that will limit the classes per map. For instance, having only the assault classes available on a training map. But if i want that class to not have a smoke grenade it has to be with the entity right? Just asking for some clarification , thanks.

Jimmy Crack Corn
05-18-2007, 02:09 PM
If this is for a server you need to have access to the server. If you do in fact have this kind of access this is how you would limit weapons for a map without affecting the whole server.

Open up wordpad, click on the file tab and open a new file, choose text document and click OK, copy and paste this in it;

//allies

mp_limit_allies_assault "-1"
mp_limit_allies_mg "-1"
mp_limit_allies_rifleman "-1"
mp_limit_allies_rocket "-1"
mp_limit_allies_sniper "-1"
mp_limit_allies_support "-1"

//axis

mp_limit_axis_assault "-1"
mp_limit_axis_mg "-1"
mp_limit_axis_rifleman "-1"
mp_limit_axis_rocket "-1"
mp_limit_axis_sniper "-1"
mp_limit_axis_support "-1"


Copy above this, don't copy from here down. Before you close it now is the time to set the class limits.

"-1" is unlimited
"1" is one weapon
"2" is two weapons

you get the idea.

Once you have everything the way you want it, go to file and click on save as. at the bottom it will ask you to name the file. It will be highlighted in blue as Document.txt this is where you need to type in the name of the map like this. If you were doing this to avalanche you would name it avalanche.cfg then click Save . Be sure you know where this file is being saved to.

Now its time to put it on the server. You will need to put in the dod folder. Now everytime the map comes up it will have those class limits that you have set and none of the other maps will be affected.

Remember if you don't spell the map name correctly this won't work. Also when you get the file to put it on your server make sure it's named correctly. if it's not correct right click on the file and rename it to the correct name. I've seen people think they've named it avalanche.cfg but when they check it, it shows up as avalanche.cfg.txt . You will need to rename it and take off the .txt from the end of it.

Savvy?

smashingpunk007
05-19-2007, 11:48 PM
thanks that helps, just a couple more things. does the text file have to go in a specific folder, and if i embed the file in the bsp will it still work?

Jimmy Crack Corn
05-21-2007, 08:54 AM
thanks that helps, just a couple more things. does the text file have to go in a specific folder

Yes, the server's dod folder.

and if i embed the file in the bsp will it still work?

As long as it installs in the server's dod folder. There might be a caveat though. I'm not sure which item will actually govern in game. Some servers limit weapons in their server.cfg and some servers can limit weapons in mani mod on a map by map basis. I'm note sure which one will win out when the map actually runs if all 3 are in place . I'll have to do a test or 2 and let you know.

JCC

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.