So, you're the last person on earth to play a Half-Life 1 based mod, and you don't have a clue what you're doing! Well, have no fear, Jason is here to help.
Now, I'm assuming that you know the extremely basic stuff already, like how to install, and run the game, and even how to connect to a server. If you don't, please post on the forum (if you can figure that out!) so we can all make fun of you
Ok, lets tart with the basics. There are 2 basic types of commands. The First is chat or say commands. These are used by typing a certain message in the say area, as if you were speaking to everyone in the server. The default key for this is the 'y' key.
The second type of command is a console command. These are typed into your console. How do you access your console? Hit the ~ key on the top left of your keyboard.
So, what are the various say commands available to you? Well, that varies from server to server. Here at dUsTy you have several different options. Here they are, laid out with the command on the left and a description on the right.
/hsprac Enables / disables headshot practice mode. This will make it so the only damage you can deal players is in their heads.
/medicmenu This opend the medic menu so you can choose to be a medic. A tutorial on how to control the medic class is in the works /hats This opens the hats menu. In our server players can wear hats to give them their own unique look, and to have a bit of fun.
So, are you still with me? If not, make a post in our forum with your question, and a dUsTy member will help you!
The next type of command we are going to cover is a console command. Now, there are many many many different consolecommands, I even have a list of them all here in the tutorials section. We will be talking about the most basic ones for now.
Remember to use a console command, you must open your console with the ~ key! Here are some of those consolecommands:
throw_smoke Throws a smoke grenade!
voice_smoke Your player calls out "Smoke'em!"
name "your nickname" Changes your name in game (whn you are alive)
net_graph 0,1,2,3 Depending on which number you put you will see different net_graphs which show ping, loss,choke, and frames per second
connect 69.93.20.20 Connects you to our server
retry retries your connection to whatever server you were just on
Ok, so now we have a few consolecommands, but some of them don't work very well as just consolecommands. For example, every time you want to throw a smoke grenade, you don't want to have to open your console and type in throw_smoke. You'll get shot every time! So what do we do? Create a bind!
What the crap is a bind?!? Well, a bind is a link between a user interface control (such as a keyboard or mouse) and a command to be made in the game. For example when you click your left mouse button and your gun shoots, that is an example of a bind. So lets set up a simple bind to throw your smoke grenades.
Lets say you want to throw a smoke nade when you press the letter 'f'. You need to open your console and type the following command:
Now, when you press the letter 'f' in the dUsTy server, you'll throw a smoke nade. Before we move on, what exactly did that command do? By typing bind in your console you are telling dod that you want it make a link between 2 things, in this case, the letter f and the command throw_smoke. Now, here is where it can be a bit tricky. Bind is a function (something computer programmers use alot) . Functions take arguments, in this case 2 arguments are given. "f" and "throw_smoke". We put these arguments in quotation marks because by default all functions in half-life break arguments apart based on spaces.
So what does this mean to you? Well, alot of players forget to put their quotation marks in place. Sometimes it is an issue, and other times it is not. Why is that? Well, lets say you want to make a bind to have your player say "I love playing on the dUsTy server!" How would you do this? Well if we tried our command from above, but without the quotation marks... it would look like this:
This wouldn't work though. Why not? Well when the function bind looks for its arguments, it will take the first argument to be 'f' which is ok, but the second argument will be 'say'. What happened to what we wanted to say? It is still there, but is being ignored by bind. Bind takes 2 arguments, that's it, but when bind is called by your console, it gives bind 9 arguments! They are:
1. f 2. say 3. I 4. love 5. playing 6. on 7. the 8. dUsTy 9. server!
So, how do we make our bind work? We need to use the quotation marks to keep our entire message together as a single argument.
bind "f" "say I love playing on the dUsTy server!"
Ok, now that we have the basic binds down, what happens when we want to press a button, and have 2 things happen? Bind only takes one argument! Well, we will use a delimiter to separate our arguments in a way that the Half-Life engine will see them as 2, but the bind function will see them as 1. How do we do it?
Lets say you want to use the two commands voice_smoke and throw_smoke at the same time (makes sense right?) Then we would use the ';' key as a delimiter in our bind argument. Lets have a look: