Start HL in Deathmatch Mode Created 7 years ago2017-11-10 22:21:49 UTC by User#6970 User#6970

Created 7 years ago2017-11-10 22:21:49 UTC by User#6970 User#6970

Posted 7 years ago2017-11-10 22:21:49 UTC Post #338018
Does anyone know how to start half-life in deathmatch mode (on a local server) from the command-line?
Posted 7 years ago2017-11-10 22:24:13 UTC Post #338019
Add +deathmatch 1 to the command line options.
Dr. Orange Dr. OrangeSource good.
Posted 7 years ago2017-11-10 23:14:40 UTC Post #338020
Thanks a lot!
Posted 7 years ago2017-11-13 04:45:47 UTC Post #338031
You can also add other console variables like +sv_cheats 1, which I personally find convenient when testing maps.
Oskar Potatis Oskar Potatis🦔
Posted 7 years ago2017-11-13 15:17:38 UTC Post #338036
Is there a way to pass mp_allowmonsters 1? I tried to add +mp_allowmonsters 1 and it doesn't seem to work.

Otherwise, what config file is used for servers that are not dedicated? Perhaps I could set that value in there.
Posted 7 years ago2017-11-13 15:17:51 UTC Post #338037
+mp_allowmonsters 1

Any cvar can be set using +, just as long as the game doesn't reset it later on.
Posted 7 years ago2017-11-13 15:20:00 UTC Post #338038
"Any cvar can be set using +"

+1

Thanks. I think it is reset. I need to find the proper .cfg file that manages non-dedicated servers. I tried putting mp_allowmonsters in server.cfg, but it didn't work. Weird.
Posted 7 years ago2017-11-13 15:46:59 UTC Post #338039
I think it's listenserver.cfg. Also take a look at autoexec.cfg
Oskar Potatis Oskar Potatis🦔
Posted 7 years ago2017-11-13 16:36:26 UTC Post #338040
I'm pretty sure it's listenserver.cfg:

https://developer.valvesoftware.com/wiki/Listenserver.cfg

I'll try that tonight.
You must be logged in to post a response.