Class Limiter
So I've been trying to get a new map to work properly but it would seem that my server.cfg file keeps getting in the way of the lua file for my map.
In my LUA file, I currently have all classes disabled except for Engineer and I'd like that class to be unlimited so anyone can choose Engineer. However, when I load my map it only allows 3 maximum Engi's per team which is the limit I have in my server.cfg file. Shouldn't the LUA file take precedence? I mean it allows me to disable classes outright with no problems but as soon as I have a class limit set in my server.cfg file, it takes over. Here's the code I'm using. I should mention it's in the includes part of my LUA file, originally called base_ctf, I made a copy of it called base_ctf_sg_battle so the original would not get modified. I attempted just bypassing this file altogether by putting this code directly in my map's LUA file to see if that might fix the problem but it does not. Code:
function startup() |
Do map specific cfgs work in ff?
You make a FortressForever/maps/cfg/mapname.cfg file and put what you want in it. I think they changed it to ModName/cfg/mapname.cfg in later versions. |
Quote:
FortressForever/cfg/mapname.cfg Making the Lua class limits take precedence to 'solve' this would mean that the server cvars would never do anything. |
Ok thanks. Is there anything specific I need to have in this cfg file other than the code I posted?
And squeek, I think that would be how it should work, server.cfg would still always be there (UNLESS) the map lua first specifies the limit. What would be the negative cost if that were the case? |
Quote:
Map cfgs work just like any other config and is loaded after the default server.cfg. A single "cr_engineer 0" line inside cfg/mapname.cfg will only affect that map as long as you have the default cr_engineer setting in server.cfg. |
Ok, thanks.:thumbsup:
|
Quote:
This would also unbreak hunted on servers with a sniper limit. |
All times are GMT. The time now is 01:28 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.