[cod] COD2 / Blocking sv_maxclients ?

Chris Hearn chris at hostworx.co.uk
Wed May 3 14:02:58 EDT 2006


A different approach to Jeff's solution would be:

Exec contract.cfg on the command line when launching the server (make the
file read only). Exec the customers config on the first line and then place
any dvar settings you want to override after this.

I have not tested this, but I can't see any reason it would not work.

Kind regards
Chris


-----Original Message-----
From: drlove at notorious9.net [mailto:drlove at notorious9.net] 
Sent: 03 May 2006 16:46
To: cod at icculus.org
Subject: RE: [cod] COD2 / Blocking sv_maxclients ?

> Yes I try to add +set sv_maxclients 12 or just +sv_maxclients 12 on the
> command line, but if sv_maxclients 32, for exemple, is present in the
> server.cfg file, the server will be a 32 slots one.

You could have the server exec a 'contract.cfg' or similar included by the
server.cfg. This config would have vars which are manditory per the
customer's contract, and would over-write any identical vars in the server
config file. Although possible to remove the include, simply describe in
commented lines that altering or removing the contract config is not
allowed.
I've done this with sof2 servers.

Jeff Love
Burgh Gaming




More information about the Cod mailing list