NukeSilo Community

It is currently 16 Nov 2024, 14:32

All times are UTC-06:00




Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Useful User Scripts
PostPosted: 07 Mar 2009, 21:45 
Offline
Heavy Poster
User avatar

Joined: 01 Mar 2009, 15:52
Posts: 65
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-Game
Using 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.

_________________
True Neutral: I don't care who you are, what you do or where you come from. I just want to do some business with you.

Company Funds for Loans available from Moe - None.
Company Funds for Loans available from Darrell - $15,000


Last edited by MoeODonoghue on 15 Mar 2009, 13:37, edited 2 times in total.

Top
 Post subject: Re: Useful User Scripts
PostPosted: 08 Mar 2009, 00:18 
Offline
Nuke | Heavy Poster

Joined: 27 Oct 2008, 16:43
Posts: 204
do you put all this stuff in console?


Top
 Post subject: Re: Useful User Scripts
PostPosted: 08 Mar 2009, 01:10 
Offline
Heavy Poster
User avatar

Joined: 01 Mar 2009, 15:52
Posts: 65
I'm sorry, this might have been confusing for some people. You're suppose to put this in a file called autoexec.cfg in your TS folder. I'll edit the post.

_________________
True Neutral: I don't care who you are, what you do or where you come from. I just want to do some business with you.

Company Funds for Loans available from Moe - None.
Company Funds for Loans available from Darrell - $15,000


Top
 Post subject: Re: Useful User Scripts
PostPosted: 09 Mar 2009, 07:21 
Offline
Staff Member
User avatar

Joined: 19 Oct 2008, 16:49
Posts: 458
Location: Somewhere Over The Rainbow
do you seperate the scripts if you use more than one?

_________________
"If we don't get rid of this spy, pornography starring your mother will be the second worst thing to happen to you today."


Top
 Post subject: Re: Useful User Scripts
PostPosted: 09 Mar 2009, 17:05 
Offline
Staff Member
User avatar

Joined: 19 Oct 2008, 16:49
Posts: 458
Location: Somewhere Over The Rainbow
ok the walking one doesnt work at all, i keep going the same speed

_________________
"If we don't get rid of this spy, pornography starring your mother will be the second worst thing to happen to you today."


Top
 Post subject: Re: Useful User Scripts
PostPosted: 09 Mar 2009, 22:36 
Offline
Nuke | Heavy Poster

Joined: 27 Oct 2008, 16:43
Posts: 204
it all works for me you must be doing something wrong


Top
 Post subject: Re: Useful User Scripts
PostPosted: 10 Mar 2009, 06:18 
Offline
Staff Member
User avatar

Joined: 19 Oct 2008, 16:49
Posts: 458
Location: Somewhere Over The Rainbow
i got it to work, nevermind

_________________
"If we don't get rid of this spy, pornography starring your mother will be the second worst thing to happen to you today."


Top
 Post subject: Re: Useful User Scripts
PostPosted: 15 Mar 2009, 13:38 
Offline
Heavy Poster
User avatar

Joined: 01 Mar 2009, 15:52
Posts: 65
I've added another useful script: loading different sets of binds onto the keypad.

_________________
True Neutral: I don't care who you are, what you do or where you come from. I just want to do some business with you.

Company Funds for Loans available from Moe - None.
Company Funds for Loans available from Darrell - $15,000


Top
Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited