A Soldier
09-24-2006, 03:14 PM
Ok, i made tihs topic because when i mentioned a fire script everone was like "wtf?" so im here to explain what it is.
First of all lets get some definitions out of the way:
Console- the magical square that tells you what the hell is goin on in the game
Command String- a command placed in console such as net_graph 30 (<command> <arugement> <second Argument> ect ect
Command String "wait"- tells the game to take a .5 second pause before executeing another command
Command String "Alias"- lets the user define his own command string such as "alias <your custom string name> <what your string name does>" Example: alias cycle nextwepon (changes your wepon to the next in your inventory when you type cycle in console)
Command String "echo"- displays a message in console, mainly used as a way to give the user directions if you forget how to use a fire script (like what buttons)
Now that we have the definitions out of the way we can get to the actual codeing of the fire script. a basic fire script should look like this:
echo Burst Fire - PGUP
echo Duel Fire - home
echo Single fire - ins
echo Normal - Del
alias duelfire "bind mouse1 duel2; developer 1; echo Duel Fire Enabled; developer 0; bind end burstfire"
alias duel2 "+attack; wt3; -attack; wt3; +attack; wt3; -attack; wt3"
alias wt3 "wait; wait; wait"
alias burstfire "bind mouse1 burst3; developer 1; echo Burst Fire Enabled; developer 0; bind end standard"
alias burst3 "+attack; wt3; -attack; wt3; +attack; wt3; -attack; wt3; +attack; wt3; -attack; wt3;"
alias normal "bind mouse1 +attack; bind end burstfire; developer 1; echo Normal Fire Enabled; developer 0; bind end singlefire"
alias singlefire "bind mouse1 single1; developer 1; echo Single Fire Enabled; developer 0; bind end duelfire"
alias single1 "+attack; wt3; -attack; wt3; echo Single Fire Enabled"
alias fireselect "fireselect1"
alias fireselect1 "normal; alias fireselect fireselect2"
alias fireselect2 "singlefire; ali
Looks like ribbish huh?, well to some there like omfg thats a fire script?!?! but to a programer this is a simple command. what this command states is that when you pres the desired key (del, insert, PG up, PG down) you will get a different fire script alias. the burst script alias looks like this.
alias burstfire "bind mouse1 burst3; developer 1; echo Burst Fire Enabled; developer 0; bind end standard"
alias burst3 "+attack; wt3; -attack; wt3; +attack; wt3; -attack; wt3; +attack; wt3; -attack; wt3;"
alias wt3 "wait; wait; wait"
ok, this looks like alot but you need these three alias strings to make burst fire work, the first string "alias burstfire" tells to game to bind mouse one (fire button) to the alias command "burst3", then it tells the console to write Burst Fire Enabeled to show the user that the script works.
Next, is the burst3 command, it tells the came to use another alias "wt3" wich tells the game to execute wt3's command wich is just 1.5 seonds of pause. so now you have a combo of attack and attack stop commands (+attack, -attack) this tells the gun to fire and to stop fireing, but sience your not going full auto and using this script. you get a nice triplet burst from anyone of your "AUTOMATIC" Guns (ak47, M4, SMG's, Riffles) Not Pistols!! (thats another script :))
now your probally thinking wow this is soo illigal and its going to get me banned! wrong! this is doable in the console and valve cant do anything about it!
Now to install this script you need a .CFG file (dont copy and paste this one cause i made shure it dosent work unless you tweak it).
i always copy my "config.cfg" and put it on my desktop and open it with notepad and rewrite it, but if you have another way thats fine. so after you have this code you place it in a config and "save it" do not "save as" it cause it wont be a CFG anymore. next name the CFG to somthing like "cycle" or somthing and place the new CFG into the "c/programfiles/steam/steamapps/*Ur Email*/Counter Ctrike Source/CFG" folder and open up your Config.cfg.
now in this you need to find the end of the cfg and add "exec cycle.cfg" without quotes, and thats it your done!
post any questions or comments if you need to, and if you want a script ill gladly make you a working one.
*note* the script i used above does not work withpout a special command i left out so dont try to do this and be like "WTF it dosent work?!?!" cause i ment it not to work unless you PM me and ill give you a real one.
First of all lets get some definitions out of the way:
Console- the magical square that tells you what the hell is goin on in the game
Command String- a command placed in console such as net_graph 30 (<command> <arugement> <second Argument> ect ect
Command String "wait"- tells the game to take a .5 second pause before executeing another command
Command String "Alias"- lets the user define his own command string such as "alias <your custom string name> <what your string name does>" Example: alias cycle nextwepon (changes your wepon to the next in your inventory when you type cycle in console)
Command String "echo"- displays a message in console, mainly used as a way to give the user directions if you forget how to use a fire script (like what buttons)
Now that we have the definitions out of the way we can get to the actual codeing of the fire script. a basic fire script should look like this:
echo Burst Fire - PGUP
echo Duel Fire - home
echo Single fire - ins
echo Normal - Del
alias duelfire "bind mouse1 duel2; developer 1; echo Duel Fire Enabled; developer 0; bind end burstfire"
alias duel2 "+attack; wt3; -attack; wt3; +attack; wt3; -attack; wt3"
alias wt3 "wait; wait; wait"
alias burstfire "bind mouse1 burst3; developer 1; echo Burst Fire Enabled; developer 0; bind end standard"
alias burst3 "+attack; wt3; -attack; wt3; +attack; wt3; -attack; wt3; +attack; wt3; -attack; wt3;"
alias normal "bind mouse1 +attack; bind end burstfire; developer 1; echo Normal Fire Enabled; developer 0; bind end singlefire"
alias singlefire "bind mouse1 single1; developer 1; echo Single Fire Enabled; developer 0; bind end duelfire"
alias single1 "+attack; wt3; -attack; wt3; echo Single Fire Enabled"
alias fireselect "fireselect1"
alias fireselect1 "normal; alias fireselect fireselect2"
alias fireselect2 "singlefire; ali
Looks like ribbish huh?, well to some there like omfg thats a fire script?!?! but to a programer this is a simple command. what this command states is that when you pres the desired key (del, insert, PG up, PG down) you will get a different fire script alias. the burst script alias looks like this.
alias burstfire "bind mouse1 burst3; developer 1; echo Burst Fire Enabled; developer 0; bind end standard"
alias burst3 "+attack; wt3; -attack; wt3; +attack; wt3; -attack; wt3; +attack; wt3; -attack; wt3;"
alias wt3 "wait; wait; wait"
ok, this looks like alot but you need these three alias strings to make burst fire work, the first string "alias burstfire" tells to game to bind mouse one (fire button) to the alias command "burst3", then it tells the console to write Burst Fire Enabeled to show the user that the script works.
Next, is the burst3 command, it tells the came to use another alias "wt3" wich tells the game to execute wt3's command wich is just 1.5 seonds of pause. so now you have a combo of attack and attack stop commands (+attack, -attack) this tells the gun to fire and to stop fireing, but sience your not going full auto and using this script. you get a nice triplet burst from anyone of your "AUTOMATIC" Guns (ak47, M4, SMG's, Riffles) Not Pistols!! (thats another script :))
now your probally thinking wow this is soo illigal and its going to get me banned! wrong! this is doable in the console and valve cant do anything about it!
Now to install this script you need a .CFG file (dont copy and paste this one cause i made shure it dosent work unless you tweak it).
i always copy my "config.cfg" and put it on my desktop and open it with notepad and rewrite it, but if you have another way thats fine. so after you have this code you place it in a config and "save it" do not "save as" it cause it wont be a CFG anymore. next name the CFG to somthing like "cycle" or somthing and place the new CFG into the "c/programfiles/steam/steamapps/*Ur Email*/Counter Ctrike Source/CFG" folder and open up your Config.cfg.
now in this you need to find the end of the cfg and add "exec cycle.cfg" without quotes, and thats it your done!
post any questions or comments if you need to, and if you want a script ill gladly make you a working one.
*note* the script i used above does not work withpout a special command i left out so dont try to do this and be like "WTF it dosent work?!?!" cause i ment it not to work unless you PM me and ill give you a real one.