Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Source DS

From HalfLife 2 Knowledge Base

Jump to: navigation, search

How To Set Up a HL2 Death Match Dedicated Server With Steam

by

GreenGoo

1. Navigate in Explorer to C:\Program Files\Valve\Steam\SteamApps\YOUR NAME\half-life 2 deathmatch\hl2mp

2. Create a new folder and title it "cfg" (without the quotes)

3. Create a new file called "server.cfg"

4. Open server.cfg using notepad, and add the following:


//---------beginging of server.cfg-- //Server Name hostname "Best Server Ever - HL2World.com"

//Rcon Password rcon_password "YOUR PASSWORD"

sv_alltalk "1"
sv_lan "0"
sv_maxrate "8500"
sv_maxupdaterate "80"
sv_minrate "4000"
sv_minupdaterate "20"
sv_pausable "0"
sv_timeout "65"
sv_unlag "1"

//MP Server Settings
mp_timelimit "25"
mp_teamplay "1"
mp_weaponstay "0"
mp_forcerespawn "0"
mp_flashlight "1"
mp_fraglimit 100 // changes maps or resets scores after 100 wins

//exec the ban files
exec banned_user.cfg
writeid
//---------end of server.cfg--


5. Change the MP settings as you see fit, changing your time limit, teams/no teams (0 for free for all), weapon stay (0 for off, 1 to keep weapons even if you die), force respawn (0 to let players choose to respawn by clicking, 1 to make them respawn), flashlight (1 for on, 0 for off), and fraglimit (set number of kills to win).

6. Now create another file called "mapcycle.txt" (without the quotes). Open it, and put the names of the maps you want to cycle in, in this format:

dm_overwatch
dm_lockdown
etc
etc

7. Open Steam, and run (install if necessary) "Source Dedicated Server"

8. Set your steam settings like this:

Game: Half-Life 2: Deathmatch
Server Name: Name of your server (should match server.cfg server name)
Map: Currently disabled, don't worry, we'll reset it anyway.
Network: Internet
Max Players: What you will, but 14 is best.
UDP Port: 27015 is default, but you may opt for another.
RCON Password: Enter your password.

9. Click Start Server

10. Go to the console tab.

11. Type "exec server.cfg" (without the quotes)

12. Go to the Main tab, and double click whatever map you have selected, then change to another map (this resets the server, and applies the server.cfg)

13. Congarts! You're now running your very own HLDM server! JOY!

Personal tools