Username:    Password:    Remember Me:     Click Here to Signup     Forgotten Password
Main Menu
Online
Guests: 7, Members: 0 ...

most ever online: 45
(Members: 0, Guests: 45) on 12 Jun : 16:00

Members: 390
Newest member: forpicuanec1975
Advertisement
Hosting Provided By

Banner


Donate!

Powered by
e107
PHP
MySQL
Hello Guest!
If you are seeing this message it is because you are not currently logged in. You are more than welcome to visit this site as a guest, but if you sign up you will have permission to post in our forum for suggestions or help and can also play games in our arcade section or have a live chat session with me if I am online! Registration is simple and free and just a few clicks away. CLICK HERE to go to our sign up page today. stu-pidaso.net will not sell your personal info or send spam to your email.
Alias's, Scripts, and Binds.
I am writing this tutorial to educate people on the creation and use of alias's scripts and binds. Many people think these things are cheats when in fact if they did not exsist, the game itself would not function properly. Please also note this tutorial is for information purposes only. What you do with this information is up to you. This is in no way condoning or condemning the use of scripts to have advantages over other players.

Alias's
An alias is simply a way to rename a command or multiple commands that can then be bound to a single key. A simple example would be as follows,

alias "fire1" "attack"

+attack is the default alias for your primary fire button which is usually bound to mouse1. Now after creating this alias you could do...

bind "mouse1" "+fire1"

...and would still act as the primary fire button on mouse1. You may also wonder about the + sign in front of these commands. What this does is tell the engine that when you release the button it needs to "release" or stop doing the command. Example of this would be if you were to...

bind "mouse1" "attack"

...without the + sign, pressing mouse1 would result in your weapon firing non stop even if you let go of mouse1.

This next example I'm going to show you how an alias can have multiple commands in it. Before I show the alias in its entirety though I will explain what each command does.

hud_viewdrawmodel 1

With the value for this set to "1" your weapon is diplayed, with it set to 0 your weapon is hidden.

r_drawhud 1

With the value for this set to 1 you can see your ammo, health, and armor information, with the value set to 0 it hides these things.

crosshairs 1

With the value set to 1 you can see your crosshairs, with it set to 0 it hides your crosshairs.

Now with this information we can write a script that allows us to take a screenshot with no weapons, crosshairs, or hud information.

// Clean screen shot
alias cleansnap "crosshair 0; r_drawviewmodel 0;hud_draw 0; wait4; snapshot; wait; r_drawviewmodel 1; crosshair 1;hud_draw 1"


Now we just bind it to a key like so...

bind "F5" "cleansnap"

Now when you press the F5 key it will take a screen shot with no weapon/crosshairs/hud showing.

You would take the above information and place into your userconfig.cfg file that should be located in your valve folder. If you do not have one, I have provided a link at the end of this tutorial that you can download one.

Another script I created was for reducing speaker volume while speaking. The reason I came up with this script is that when you use the mic in game, any action going on nearby such as explosions can come back through the mic making it very difficult to hear you speak.

// Background Sound Reducer
alias "+talk" "volume 0.1;+voicerecord"
alias "-talk" "volume 0.8;-voicerecord"


now bind the key you want to use to speak, in this case the default is "k"

bind "k" "+talk"

You will notice this time we used a + in front of the alias. This signifies that the "volume 0.1;+voicerecord" will be active as long as the bound key is held down. Once released, then it knows to do the - command which in this case is "volume 0.8;-voicerecord"

With this information you should be able to look at a list of console commands and be able to write some of your own scripts/aliases. Here is a blank userconfig file if you do not have one. userconfig.cfg

You must be logged in to make comments on this site - please log in, or if you are not registered click here to signup
Traduction automatique en Français Maschinelle Übersetzung in Deutschen Traducción automática en español Tradução de máquina no português 日本語への機械翻訳 한국어에게 기계번역 机器翻译中文 الترجمه الي العربيه
Server Admins
Head Admin
Stu Pidaso

Co-Admin
Bry

Co-Admin
Uncle Daddy
This site is not associated or affiliated with Valve Software or Sierra Distributions.
© Valve Corporation. All rights reserved. Valve,
Half-Life, and Counter-Strike are trademarks and/or registered trademarks of Valve Corporation.
All trademarks are © to their respective owners, all other content is © to this website.
This site is powered by e107, which is released under the terms of the GNU GPL License.
Render time: 0.1459 sec, 0.0365 of that for queries.