Fortress Forever

Go Back   Fortress Forever > Community > Tips and Tutorials

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-02-2007, 07:38 PM   #8
PorkChopVII
The "other" white meat....
 
PorkChopVII's Avatar
 
Join Date: Sep 2007
Location: Tulsa, Ok
Posts Rated Helpful 0 Times
Quote:
Originally Posted by Hammock
If you only bound this once in autoexec how does it know to change the original bound slot numbers?

For example if you put in autoexec

//Quick Weapon - put in demoman.cfg
alias quick1 "slot4; wait; alias quickweapon quick2"
alias quick2 "slot5; wait; alias quickweapon quick1"
alias quickweapon quick1
bind f "quickweapon"

that'd work for any class that switches between 4 + 5. But what about a class that switches between 3 + 1 ? How does the autoexec know to change that value if you only bind it once?

I basically have the exact same script in all my config files too (just different alias name) but I needed to put it into each class, because a) Each class used different slot numbers, b) some classes use different buttons to switch.

Cheers,
Hammock
Basicly sense the key isnt being changed just what slots, the variable name is not changing, just redefining the "quickchange" variable.

So in each class cfg you would only need the
alias quick1 "slot4; wait; alias quickweapon quick2"
alias quick2 "slot5; wait; alias quickweapon quick1"
alias quickweapon quick1

then change which slot numbers are going to be used for that class.

for example sniper what to quick switch between sniper rifle and AR
Quote:
alias quick1 "slot2; wait; alias quickweapon quick2"
alias quick2 "slot3; wait; alias quickweapon quick1"
alias quickweapon quick1
would pace that in the sniper cfg. No need to add the

bind f "quickweapon"

because its already bound. Youre just changing what quickweapon does



Hope i was able to explain it better for you.
PorkChopVII is offline   Reply With Quote


 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:20 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.