Absurd Minds

HLDS Command Line variables
Page 1 of 1

Author:  Amaroq [ 16 May 2010 14:16 ]
Post subject:  HLDS Command Line variables

This is a full list of all the entries you can put in your command line when you launch your Half Life Dedicated Server:

(the command line is the thing that looks like "./hlds_run -game czero +maxplayers 16 +map de_dust_cz" or whatever)

-game <game>
For example, -game czero. Put this command first in your command line. For a full list of games, check out this thread.

Launches the game in console mode. (That's for Windows only - in Linux you're already running it in a console.)

Disables VAC security.

-num_edicts <variable>
Limits the number of map and game entities. The default is 900, and I wouldn't really even add this command unless you know what you're doing.

+<console variable> <argument>
For example, +sv_maxrate 10000. Or even +hostname "Server Name" if you want to set the hostname through your command line.

+ip <ipaddress>
Set the IP address the server uses. Use this if you happen to have multiple network cards.

+map <mapname>
This is the map the server will launch on.

+maxplayers <number>
The number of slots the server has.

+port <port>
The port the server is on. You must specify this if you're running multiple servers off one machine. The default is 27015, and you can't have multiple servers on the same port, so you'll have to specify something else for other servers. Make sure that you're picking a port that you've forwarded in your router.

-pingboost <1/2/3>
For linux servers.

I got this information from this thread, which has a lot of other useful information.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Limited