Author |
Message |
|
Posted:
Thu Mar 17, 2005 8:39 pm
|
|
|
Forum Medic
Joined: 14 Mar 2005
Posts: 130
Location: Pennsylvania
|
|
I figured I would post some of the basic scripts that are commonly used for us lazy folk such as the reload script:
// Move and Reload Keys
alias +w "+forward;+reload"
alias -w "-forward;+reload;wait;-reload"
alias +s "+back;+reload"
alias -s "-back;+reload;wait;-reload"
alias +l "+moveleft;+reload"
alias -l "-moveleft;+reload;wait;-reload"
alias +r "+moveright;+reload"
alias -r "-moveright;+reload;wait;-reload"
bind w "+w"
bind s "+s"
bind a "+l"
bind d "+r"
This reload script does not jam up upon death, you can respawn fine everytime.
Here is the quick weapon switch script also:
// Quick weapon swap
alias shoot "+attack; wait; -attack"
alias weapon "slot3; shoot; bind SHIFT weapon2"
alias weapon2 "slot5; shoot; bind SHIFT weapon"
bind SHIFT weapon |
|
|
|
|
|
|
Posted:
Thu Mar 17, 2005 8:43 pm
|
|
|
Forum H4xor
Joined: 08 Dec 2004
Posts: 2504
Location: NJ
|
|
were the hell do i put this?? Please explain |
_________________
|
|
|
|
|
|
Posted:
Thu Mar 17, 2005 9:42 pm
|
|
|
Forum H4xor
Joined: 30 Nov 2004
Posts: 2918
Location: Raleigh, NC
|
|
the easy way i handle all this - type it, or copy and paste it, into your console
should work. class-specific ones i haven't bothered with... |
_________________
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Fri Mar 18, 2005 11:19 am
|
|
|
Forum Soldier
Joined: 10 Mar 2005
Posts: 352
|
|
to use it, open notepad, cope and paste that code in, and save it in the tfc folder and call it userconfig.cfg |
_________________
|
|
|
|
|
|
Posted:
Fri Mar 18, 2005 6:08 pm
|
|
|
Forum Medic
Joined: 14 Mar 2005
Posts: 130
Location: Pennsylvania
|
|
you need to find the proper steam folder
BY default is should be located c:\programfiles\valve\steam\steampapps\youracct\teamfortressclassic\tfc
in that folder is a .cfg file called userconfig.cfg. For simplicity sake put it there. |
|
|
|
|
|
|
Posted:
Fri Mar 18, 2005 6:48 pm
|
|
|
Forum H4xor
Joined: 25 Nov 2004
Posts: 1269
Location: sacramento ca
|
|
i have my reload setup to react to my releasing mouse1.
bind mouse1 +attackx
alias +attackx "-reload; +attack"
alias -attackx "-attack; +reload"
much less effort in a reload script.
as far as "jam up upon death" it does sti there untill you press fire again or your reload key. i like how this keeps me from repawning till i want to.
i keep all my scripts in tfc/scripts folder
i have one just for turning on the swing hook (hookon.cfg) and the taunts script(which i need new taunts ) |
_________________ Albert Einstein once said “The only reason for time is so that everything doesn’t happen at once.”
-[CfH]-Server Admin
Hanlon's Razor. Never attribute to malice that which can be adequately explained by stupidity. |
|
|
|
|
|
Posted:
Sat Mar 19, 2005 12:49 pm
|
|
|
Forum Medic
Joined: 14 Dec 2004
Posts: 113
Location: Tallahassee, FL
|
|
It's easier to put it all in the autoexec. Trust me, if I can do it, you can haha. And if your computer crashes you don't have to do it again . |
_________________ We can't stop here! This is bat country! |
|
|
|
|
|
Posted:
Mon Mar 21, 2005 6:16 pm
|
|
|
Forum Medic
Joined: 14 Mar 2005
Posts: 130
Location: Pennsylvania
|
|
//Throw flag Script
alias specthrow "dropitems; wait; dropitems; wait; dropitems; wait; dropitems; wait; dropitems; wait; dropitems"
alias "+st1" "specthrow"
alias "-st1" "specthrow"
//Auto Use Script
alias specuse "+use; wait; -use; wait; +use; wait; -use; wait; +use; wait; -use; wait; +use; wait; -use; wait; +use; wait; -use"
alias "+su1" "specuse"
alias "-su1" "specuse"
alias x1 "bind mouse4 +st1; developer 1; echo Special Throw on; developer 0; bind pgdn x2"
alias x2 "bind mouse4 +su1; developer 1; echo Special Use on; developer 0; bind pgdn x1"
bind mouse4 "+st1"
bind pgdn x1 |
|
|
|
|
|
|
Posted:
Mon Mar 21, 2005 7:43 pm
|
|
|
Forum H4xor
Joined: 25 Nov 2004
Posts: 4336
Location: Eugene, Oregon
|
|
My throw flag:
alias throwflag "say_team OmgZ I tossed t3h flag!!1! [%h|%a]; dropitems"
bind MOUSE5 "throwflag"
My reload:
alias +f "+forward; +reload"
alias -f "-forward; +reload; -reload"
alias +b "+back; +reload"
alias -b "-back; +reload; -reload"
alias +l "+moveleft; +reload"
alias -l "-moveleft; +reload; -reload"
alias +r "+moveright; +reload"
alias -r "-moveright; +reload; -reload"
bind w "+f"
bind s "+b"
bind a "+l"
bind d "+r" |
_________________
(dead)-[CfH]-Server Admin but--- because I could not stop for death, He kindly stopped for me
|
|
|
|
|
|
Posted:
Mon Mar 21, 2005 8:35 pm
|
|
|
Forum H4xor
Joined: 25 Nov 2004
Posts: 1269
Location: sacramento ca
|
|
doesnt that make your movement controls lagged? |
_________________ Albert Einstein once said “The only reason for time is so that everything doesn’t happen at once.”
-[CfH]-Server Admin
Hanlon's Razor. Never attribute to malice that which can be adequately explained by stupidity. |
|
|
|
|
|
Posted:
Mon Mar 21, 2005 9:06 pm
|
|
|
Forum H4xor
Joined: 25 Nov 2004
Posts: 4336
Location: Eugene, Oregon
|
|
I've never noticed that. |
_________________
(dead)-[CfH]-Server Admin but--- because I could not stop for death, He kindly stopped for me
|
|
|
|
|
|
Posted:
Mon Mar 21, 2005 9:41 pm
|
|
|
Forum H4xor
Joined: 30 Nov 2004
Posts: 2918
Location: Raleigh, NC
|
|
trans... your flag throw script, do you bind a key to +st1 and another to -st1? or what.
i'm still fairly noobish with scripting... |
_________________
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Mon Mar 21, 2005 10:46 pm
|
|
|
Forum Medic
Joined: 14 Mar 2005
Posts: 130
Location: Pennsylvania
|
|
you only need to bind the +st part. The + represents the pushing of the button. the - is what happens when you release the button. |
|
|
|
|
|
|
Posted:
Mon Mar 21, 2005 11:54 pm
|
|
|
Forum H4xor
Joined: 25 Nov 2004
Posts: 1269
Location: sacramento ca
|
|
Transient wrote: |
//Throw flag Script
alias specthrow "dropitems; wait; dropitems; wait; dropitems; wait; dropitems; wait; dropitems; wait; dropitems"
alias "+st1" "specthrow"
alias "-st1" "specthrow"
//Auto Use Script
alias specuse "+use; wait; -use; wait; +use; wait; -use; wait; +use; wait; -use; wait; +use; wait; -use; wait; +use; wait; -use"
alias "+su1" "specuse"
alias "-su1" "specuse"
alias x1 "bind mouse4 +st1; developer 1; echo Special Throw on; developer 0; bind pgdn x2"
alias x2 "bind mouse4 +su1; developer 1; echo Special Use on; developer 0; bind pgdn x1"
bind mouse4 "+st1"
bind pgdn x1 |
get rid of the extra aliases and just bind a key to "specuse" |
_________________ Albert Einstein once said “The only reason for time is so that everything doesn’t happen at once.”
-[CfH]-Server Admin
Hanlon's Razor. Never attribute to malice that which can be adequately explained by stupidity. |
|
|
|
|
|
Posted:
Tue Mar 22, 2005 8:53 pm
|
|
|
Forum Medic
Joined: 14 Mar 2005
Posts: 130
Location: Pennsylvania
|
|
the use of aliases for pressing and unpressing of a key is far better then just pushing a button when you don't use any _special binds. You will get 2x the amount of actions without creating a bind that is too long that would prevent you from doing a second action timely. |
|
|
|
|
|
|