A script is a list of commands that you can bind to a key to simplify play and perform actions quickly that would normally take a while. They can also make performing certain actions easier or enable you to do things you couldn't normally do. You put scripts in your .cfg files - have a look at the Configs section to see how it all hangs together. There are simple scripts and hugely complicated scripts - personally I use few scripts but there are a couple that I couldn't do without and I will use them as examples. |
|
This script toggles you standing up and ducking. Normally, when you press duck you duck (duh) but when you release it you stand up. Thus, when you are playing as a sniper, for example, you have to hold the duck key if you want to stay ducked and hold the fire button to keep your rifle charged - this is a pain. To make this easier I use the following script... |
alias ducktog "duckon" alias duckon "+duck ;alias ducktog duckoff" alias duckoff "-duck; alias ducktog duckon" bind "x" "ducktog" |
So, when you press x you duck and stay ducked until you press x again. Hugely useful and very easy to set up. |
|
This is a very cool script - it gives you that little bit more chance of faking death sucessfully if you are a spy. Normally, if you feign you just groan and drop. All well and good, but you don't drop an ammo bag - when anyone dies they drop an ammo back and relatively switched on players will notice this and realise you are faking it. |
alias fakedeath " feign; discard" bind x fakedeath |
So, when you press x you will groan, pretend to die and drop a backpack at the same time - this gives you MUCH more chance of faking sucessfully and I personally find it works pretty well against a lot of players. |
I hope these examples have given you a good idea of what scripts are all about - have a look at my links page where you can find links to sites containing loads and loads of useful (and useless) scripts and you'll soon wonder how you did without them. |