Fortress Forever

Go Back   Fortress Forever > Community > Tips and Tutorials

Reply
 
Thread Tools Display Modes
Old 06-25-2008, 02:20 AM   #1
pF
no war but class war
Fortress Forever Staff
 
pF's Avatar
 
Join Date: Oct 2007
Location: big bad berlin
Class/Position: Soldier / Scout
Gametype: ctf
Affiliations: [w~k!]
Posts Rated Helpful 3 Times
Script that treats MWheelDown/Up as regular keypress

I can't seem to adjust the sensitivity on my mousewheel properly, so when i try to cycle through the weapons inventory i usually miss the weapons i want to select..(mwheel bound to next/prev inventory).

Would there be a way to bind mwheeldown/up as a regular keyboard key.. so no matter how long i use the mwheel, it'd just change to the next item in inventory?
__________________
Support FF:

Gay And Lesbian Fiction | Teen Books | Bath Products
pF is offline   Reply With Quote


Old 06-25-2008, 02:25 AM   #2
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
The thing is that it already is a regular keypress, it just hits a lot if you keep scrolling.

You could only bind 1 weapon per up/down. Like mwheelup goes to slot 3 and down goes to 2 so that no matter how many times you hit each it would just keep selected 2 or 3. Unfortunately, what you want is already implemented, you just hit it too much.

You could maybe alias each direction to go to next/prevslot and then rebind itself to do nothing then rebind again to do next/prevslot so that every inbetween click does nothing incase you hit it too much.

BTW do you use quickswitch?
Jester is offline   Reply With Quote


Old 06-25-2008, 02:31 AM   #3
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 352 Times
Send a message via AIM to squeek.
What if you did something like

Code:
alias "downonce" "invprev; unbind mwheeldown"
bind "mwheeldown" "downonce"

alias "uponce" "invnext; unbind mwheelup"
bind "mwheelup" "uponce"

bind "w" "+forward; bind mwheeldown downonce; bind mwheelup uponce"
Probably not be the most reliable solution, but it might work.
__________________
#FF.Pickup ยค Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington
squeek. is offline   Reply With Quote


Old 06-25-2008, 02:34 AM   #4
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
I was thinking more like:
Code:
alias switcher "+attack;wait;wait;wait;wait;wait;-attack;bind mwheelup switchup;bind mwheeldown switchdown;bind mouse1 +attack"
alias switchup "invprev;unbind mwheelup;bind mouse1 switcher"
alias switchdown "invnext;unbind mwheeldown;bind mouse1 switcher"
bind mwheelup switchup
bind mwheeldown switchdown
Only goes up or down once and unbinds those keys until you select with the mouseclick. This is if you have quickswitch off.
Jester is offline   Reply With Quote


Old 06-25-2008, 05:05 AM   #5
pF
no war but class war
Fortress Forever Staff
 
pF's Avatar
 
Join Date: Oct 2007
Location: big bad berlin
Class/Position: Soldier / Scout
Gametype: ctf
Affiliations: [w~k!]
Posts Rated Helpful 3 Times
Wow guys, thanks for jumping to my rescue.. the bind/unbind/bind/unbind might be a solution to get rid of the jittery weapon selection.. my mousewheel just seems a little erratic / unpredictable, so i'll have to test that solution.

fastweaponswitch is "1", like it should be
__________________
Support FF:

Gay And Lesbian Fiction | Teen Books | Bath Products
pF is offline   Reply With Quote


Old 06-25-2008, 05:08 AM   #6
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
Code:
alias "downonce" "invprev; unbind mwheeldown; bind mwheelup uponce"
bind "mwheeldown" "downonce"

alias "uponce" "invnext; unbind mwheelup; bind mwheeldown downonce"
bind "mwheelup" "uponce"

bind "w" "+forward; bind mwheeldown downonce; bind mwheelup uponce"
Modified squeeks code so you can go back and forth between next and previous, this will work with fastswitch. Feel free to change the bind "w" to any key you hit a lot and remember to hit it after each switch.
Jester is offline   Reply With Quote


Reply


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 09:10 PM.


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