Thread: (Request) Class Limiter
View Single Post
Old 04-01-2014, 12:57 AM   #5
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 352 Times
Send a message via AIM to squeek.
Quote:
Originally Posted by KubeDawg View Post
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?
But the map Lua always specifies the limit, even if it's just the default limit of 0. There might be a decent way to resolve conflicting class limits, but simply having the Lua setting take precedent is not the solution (especially if you want a Lua limit of 0 to override the server cvar settings, which would mean the server cvars would become useless).

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.
__________________
#FF.Pickup ยค Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington

Last edited by squeek.; 04-01-2014 at 01:00 AM.
squeek. is offline   Reply With Quote