Binds: Difference between revisions
Roguelazer (talk | contribs) |
m →The List: Added the orphaned AutomateTurretToggle alias I created a bit ago |
||
(7 intermediate revisions by 6 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. | ||
Line 99: | Line 111: | ||
*[[Turbo_lock_bind|Turbo Lock]] - Lets you change the tab key to toggle turbo, or to act normally. | *[[Turbo_lock_bind|Turbo Lock]] - Lets you change the tab key to toggle turbo, or to act normally. | ||
*[[Variable_zoom_bind|Variable Zoom]] - Allows you to zoom in/out incrementally, using the mouse wheel if you so desire. | *[[Variable_zoom_bind|Variable Zoom]] - Allows you to zoom in/out incrementally, using the mouse wheel if you so desire. | ||
==Command line Binds== | ==Command line Binds== | ||
Line 121: | Line 132: | ||
[[Category:General Information]] | [[Category:General Information]] | ||
[[Category:Binds]] | [[Category:Binds]] | ||
[[Category:Configuration]] |