If anyone needs convenience, I'll post some of my scripts for RP.
Update: I've found that a lot of people have sets of binds. Now, I don't like having my binds all over the keyboard. So I've whipped up a script that allows you to load different sets of binds on the keypad. NOTE: IF YOU HAVE ANY BINDS ON THE KEYPAD, THEY WILL BE GONE IF YOU DECIDE TO DO THIS.
Making Sets of Binds
1. Make files named "police.cfg", "advert.cfg" and so on inside your ts folder. They can be named whatever you want as long as it ends in .cfg.
2. Open each file with notepad and copy and paste the template:
Code:
kpunbind
bind kp_ins "say shout THIS IS THE POLICE, ETCETERA"
bind kp_del
bind kp_end
bind kp_downarrow
bind kp_pgdn
bind kp_leftarrow
bind kp_5
bind kp_rightarrow
bind kp_home
bind kp_uparrow
bind kp_pgup
bind kp_slash
bind kp_enter
bind kp_plus
echo BIND SET NAME HERE loaded!
say "sms YOURCHARNAMEHERE BINDSETNAMEHERE loaded!"
Edit the template according to your will. This also sends a message to yourself in-game to tell you which binds are loaded. Make sure to do this with each .cfg file YOU made, customizing it to your needs.
3. Now open (or make) your autoexec.cfg in your TS folder. Once that file is open with notepad, paste this at the end of it:
Code:
bind del "exec police.cfg"
bind end "exec adverts.cfg"
bind pgdn "exec otherbinds.cfg"
bind pgup "exec otherbinds.cfg"
bind ins "exec otherbinds.cfg"
bind home "exec otherbinds.cfg"
alias kpunbind "unbind kp_ins;unbind kp_del;unbind kp_end;unbind kp_downarrow;unbind kp_pgdn;unbind kp_leftarrow;unbind kp_5;unbind kp_rightarrow;unbind kp_home;unbind kp_uparrow;unbind kp_pgup;unbind kp_slash;unbind kp_enter;unbind kp_plus;unbind kp_minus;unbind *;echo Keypad unbound!"
This binds delete, pageup, pagedown, home, insert and end to be your bind loaders. In the above example, it binds delete to load the police binds. You can replace the keys with F1-F12 if you want to do that.
Using the Bind Sets In-GameUsing the above example, pressing delete will load your police binds and sms yourself telling you that you have your police binds loaded (and it'll be in console). Then pressing 0 on the keypad will shout this is the police. Pressing end will load the adverts. Pressing 0 on the keypad then would say an advert instead.
How to Use Scripts
1. Navigate to "C:\Program Files\Steam\steamapps\steamaccounthere\half-life\ts"
2. In that folder, make a new text file and rename it to autoexec.cfg.
3. Open autoexec.cfg in notepad.
4. Copy and paste the scripts you want into the file.
5. Replace any PUTYOURKEYHERE with the button you want it bound to
6. If you are still in game while doing this, type in console: exec autoexec.cfg
7. Test the binds.
Here's to toggle sitting.
Toggle Sitting/Crouching
Code:
alias crouch "duck"
alias duck "alias crouch duck2; +duck; say /me sits down."
alias duck2 "alias crouch duck; -duck; say /me stands up."
bind PUTYOURKEYHERE crouch
Here's one that lets you pick up guns AND use doors.
Code:
alias +usedoor "+use; say /usedoor"
alias -usedoor "-use"
bind e +usedoor
This one toggles between walking and running.
Code:
alias togglewalk togwalk
alias togwalk "alias togglewalk togwalk2; +speed; say /me starts walking."
alias togwalk2 "alias togglewalk togwalk; -speed; say /me starts running."
bind PUTYOURKEYHERE togglewalk
If you're annoyed by the /me stuff, just remove "say /me does stuff" part of it.