|
How to bind keys to "say" different things while playing? |
|
|
|
You can bind keys in the game so that they will cycle through pre-set comments you've prepared; for example, your 'Thank You' key might say 'Thanks', 'Thank you', or 'TY' when it's pressed. The way to do this is to add the following lines to the autoexec.cfg file in your SoF2 base\mp folder (if this file doesn't exist, simply create and save a file named autoexec.cfg to this folder using Notepad or a similar plain text editor):
bind leftarrow "vstr good00"
bind uparrow "vstr kill00"
bind rightarrow "vstr laff00"
bind downarrow "vstr dead00"
bind F12 "vstr thnk00"
set good00 "say GOOD GAME MESSAGE ONE; bind leftarrow vstr good01"
set good01 "say GOOD GAME MESSAGE TWO; bind leftarrow vstr good02"
set good02 "say GOOD GAME MESSAGE THREE; bind leftarrow vstr good00"
set kill00 "say GOOD KILL MESSAGE ONE; bind uparrow vstr kill01"
set kill01 "say GOOD KILL MESSAGE TWO; bind uparrow vstr kill02"
set kill02 "say GOOD KILL MESSAGE THREE; bind uparrow vstr kill00"
set laff00 "say LAUGH MESSAGE ONE; bind rightarrow vstr laff01"
set laff01 "say LAUGH MESSAGE TWO; bind rightarrow vstr laff02"
set laff02 "say LAUGH MESSAGE THREE; bind rightarrow vstr laff00"
set dead00 "say GOOD DEATH MESSAGE ONE; bind downarrow vstr dead01"
set dead01 "say GOOD DEATH MESSAGE TWO; bind downarrow vstr dead02"
set dead02 "say GOOD DEATH MESSAGE THREE; bind downarrow vstr dead00"
set thnk00 "say THANKS MESSAGE ONE; bind F12 vstr thnk01"
set thnk01 "say THANKS MESSAGE TWO; bind F12 vstr thnk02"
set thnk02 "say THANKS MESSAGE THREE; bind F12 vstr thnk00"
In this example, I've basically set up five keys I can press while playing - the left arrow is for 'good game' messages, the up arrow is for 'good kill' messages, the right arrow is for 'laugh' messages, the down arrow is for 'gotcha' messages, and the F12 key is for 'thank you' messages. The first time I press the F12 key I will say "THANKS MESSAGE ONE" in the game; the second time I will say "THANKS MESSAGE TWO" in the game; and so on.
To customize these settings, simply replace all the MESSAGES I've used with your own; for example, change THANKS MESSAGE ONE to Thank you!, change THANKS MESSAGE TWO to Thanks!, and change THANKS MESSAGE THREE to Thanks a lot!. You can also change the key bindings to whatever you want; for example, if you want to use the F11 key for laughing instead of the right arrow, change ALL instances of rightarrow to F11. Lastly, as long as you're careful to leave the numbering scheme in place, you can add as many lines of comments as you want (for example, my 'gotcha' binding has about 50 comments to cycle through). If you wanted five different thank you messages instead of just three, the thank you section would look like:
set thnk00 "say THANKS MESSAGE ONE; bind F12 vstr thnk01"
set thnk01 "say THANKS MESSAGE TWO; bind F12 vstr thnk02"
set thnk02 "say THANKS MESSAGE THREE; bind F12 vstr thnk03"
set thnk03 "say THANKS MESSAGE FOUR; bind F12 vstr thnk04"
set thnk04 "say THANKS MESSAGE FIVE; bind F12 vstr thnk00"
And finally, listed here are the values SoF2 uses for every key on a standard keyboard, so you'll know how to set up your binds (this is how you know that the right arrow is 'rightarrow', and not 'Right-Arrow' or 'R-arrow').
|