- nav:
- cs-nation home
- counter-strike info
- scripting
- basic tutorial - intro to aliases
Obviously a few aliases will not make you a great player, but they can and do allow you to coordinate your team, do repetitive things faster, and give you a large edge of speed over a non-alias using player.
In terms of programming each aliases is a function (or subroutine) and a command is the call (or executor).
All aliases have the same basic look:
An alias names are the exact same thing as a command name, and can be used in other aliases.
-
» Open up /Half-Life/cstrike/config.cfg with notepad (or any
other text editor). Find the line that says
» Next, right click on all of your Half-Life/Counter-Strike shortcuts and go down to properties. Select the tab named "Shortcut". Add to the end of the Command Line
This will help stop size-related crashes, and print out useful information.
» If there isn't an autoexec.cfg file in your /cstrike/
directory, create one. Open notepad, Save As, change from *.txt to All
Files, name it "autoexec.cfg" with the quotes.
menuselect # - Replace # with a number between 1 and 9 inclusive. This selects the menu item number that you put in for #. For example:
bind KEY COMMAND - This 'binds' a key to a certain command. Remember, you can make the 'COMMAND' be an alias name. Example:
exec name.cfg - Executes a cfg file. HL automatically exec's config.cfg and autoexec.cfg.
wait - Pauses and alias for a non-fixed time. The amount of waits needed to clear a menu, for example, varies from computer and connection. Too many waits can lag, too little can have no affect.
Now, save and close the autoexec.cfg and load up Counter-Strike. Either join a public game, or create your own game. In game press the title key (` or ~, above your tab, below your escape key). What comes down is called the console.
If nothing does come down try adding BIND "`" "TOGGLECONSOLE" to your config.cfg. If it still doesn't work, you didn't complete the 2nd sub-section on this page!
Anyhow, this is the console. Anything you put into a cfg file you can enter here, and visa-versa (note, only certain client variables and binds are saved, aliases are not save when you enter them into the console or your config.cfg). So go ahead and type the following into the console:
Hooray! Your first alias worked, you said Hello World!, killed yourself, and
remarked Goodbye World! to your dead teammates.
Huzzah!
If your alias didn't work, start this subsection over. You probably messed up at the console, or with your autoexec.cfg
-rizzuh and NextWish
