Is it possible to pass the name parameter on the command line when launching Counter-Strike?
I have tried this and it does not work:
-nojoy -nomaster -nointro -game cstrike -appid 10 -gl -steam +nameExample
|
Is it possible to pass the I have tried this and it does not work:
|
||||
|
|
|
The command in console is no longer name, but "setinfo name" , so what you want to add is then:
|
||||
|
|
|
There's a short list of things you can pass on the command line, and not every config file option is supported. There's a full list of what command line parameters exist on this page. (Note that the original CounterStrike is a "Gold Source" game.) You can, however, do this by having the correct command in a config file. The list of config file commands is far longer, and is on this page. I covered how to create config files in this question: How do I use a script without having to type it in the console row by row? You won't need to read the part about binding keys to "exec" other configs, since you're not doing that. Also, since the asker of that question was playing TF2, you'll have to adapt the "cfg" directory path to where your CounterStrike install is. If you want to run this config every time the game starts, pass Also, typically the game will automatically execute |
|||
|
|