Binds: Difference between revisions
mNo edit summary |
m →The List: Added the orphaned AutomateTurretToggle alias I created a bit ago |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 13: | Line 13: | ||
#Clean up the WGAF file by removing any '/' characters at the beginning of the aliases and/or binds you copied. | #Clean up the WGAF file by removing any '/' characters at the beginning of the aliases and/or binds you copied. | ||
==Deleting a bind while in the game== | |||
While in the game, on the command line, just bind the key to a non-existent command. Usually this can be accomplished by hitting random keys until satisfied that you have a non-existent command: | |||
/bind o asdgf8af | |||
The game will report that command "asdg.." does not exist. | |||
Further calls to ''/bind o'' will indicate that the key is not bound to anything. When you restart the game and check wgaf.cfg, the bind will be gone. | |||
Unfortunately aliases cannot be "deleted" in the same way. | |||
==Loading a Bind (/load filename.cfg)== | ==Loading a Bind (/load filename.cfg)== | ||
Line 58: | Line 69: | ||
To call an alias you can either bind it directly to a key, or call it directly from within another bind or alias. | To call an alias you can either bind it directly to a key, or call it directly from within another bind or alias. | ||
bind | bind "~" masterturbo | ||
alias foo masterturbo | alias foo masterturbo | ||
Line 64: | Line 75: | ||
alias +t "+turbo; alias -t masterturbo" | alias +t "+turbo; alias -t masterturbo" | ||
As this example demonstrates, you can also within the alias assign new aliases as part of the assigned alias. This nesting can get quite complex, but also gives you a great deal of control. | As this example demonstrates, you can also within the alias assign new aliases as part of the assigned alias. This nesting can get quite complex, but also gives you a great deal of control. | ||
==Using Quotes== | ==Using Quotes== | ||
Quotes need to be dealt with in a similar manner to other programming languages, with the exception that there is not an escape character. In order to nest a quote within a bind definition, you need to switch from the outside double quotes ( | Quotes need to be dealt with in a similar manner to other programming languages, with the exception that there is not an escape character. In order to nest a quote within a bind definition, you need to switch from the outside double quotes (") to an apostrophe or single quote ('). | ||
In the below example, the alias example creates a new alias foo, that contains two commands included within the single quotes. It also calls a third alias, foo3. | In the below example, the alias example creates a new alias foo, that contains two commands included within the single quotes. It also calls a third alias, foo3. | ||
Line 81: | Line 92: | ||
==The List== | ==The List== | ||
*[[Auto_aim_bind|Auto Aim Toggle]] - Lets you assign a key to toggle the auto-aim feature. | *[[Auto_aim_bind|Auto Aim Toggle]] - Lets you assign a key to toggle the auto-aim feature. | ||
*[[AutomateTurretToggle]] - turns the press-and-hold turret activator into a toggle on/off. | |||
*[[Chainfiring]] - "Cowboy style" shooting | *[[Chainfiring]] - "Cowboy style" shooting | ||
*[[Channel_toggle|Channel Toggle]] - Allows the player to cycle through several channels with the press of a button. | *[[Channel_toggle|Channel Toggle]] - Allows the player to cycle through several channels with the press of a button. |