Quickswitch To Specific Weapon
ReK
Join Date: 2004-08-30 Member: 31058Members, Constellation, Reinforced - Shadow, WC 2013 - Silver
<div class="IPBDescription">without loosing your lasinv</div> <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->alias "+fastblink" "weapon_blink; wait; +attack; wait"
alias "-fastblink" "-attack; wait; weapon_swipe"
bind "mouse2" "+fastblink"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
I'm wondering if this will work. The idea is that, as long as mouse2 is held down, you will blink around. When it's released, it will stop and switch back to swipe (Not sure if that last wait in the + should be moved to the start of the -).
Will this interfere with the built-in lastinv or can I do this and stil have meta set to it?
This will, of course, work for other combos, like leap, knife, spore, etc.
alias "-fastblink" "-attack; wait; weapon_swipe"
bind "mouse2" "+fastblink"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
I'm wondering if this will work. The idea is that, as long as mouse2 is held down, you will blink around. When it's released, it will stop and switch back to swipe (Not sure if that last wait in the + should be moved to the start of the -).
Will this interfere with the built-in lastinv or can I do this and stil have meta set to it?
This will, of course, work for other combos, like leap, knife, spore, etc.
Comments
2. <a href='http://www.unknownworlds.com/forums/index.php?showtopic=84353&view=findpost&p=1312710' target='_blank'>http://www.unknownworlds.com/forums/index....dpost&p=1312710</a>
3. I found that the reaction time of a script like you want is really crap for blink and that a lastinv script will work much quicker. I personally have found it much better to keep swipe and blink on lastinv and metabolise on mouse2. You may find that it works how you want but this is just from my experience.
However I can't stand fade scripts because there's just no need for them, and IMO they do more damage than good.
I use mouse1 +attack, mouse2 +s3, and:
KP_leftarrow slot1
KP_end slot2
KP_downarrow slot3
KP_5 slot4
I use arrow keys cos I'm old(ish) "skool". I just swap manually most of the time.
alias -s1 "-attack;w;slot1"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Thats from your script, mintman. Since prefattack is a variable for a specific slot, eg slot2, isn't that almost exactly the same as mine? I just have an extra wait...
bind mouse2 "slot2; wait; +attack; wait; -attack"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->This assumes you have hud_fastswitch set to 1.
<span style='color:red'><b>Don't use this one, look a few posts down, I didn't fully think about it. Sorry!</b></span>
Well that SUCKS <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad-fix.gif' border='0' style='vertical-align:middle' alt='sad-fix.gif' /><!--endemo-->
alias -slotone "-attack"
alias +slottwo "slot2; wait; +attack"
alias -slottwo "-attack"
bind mouse1 "+slotone"
bind mouse2 "+slottwo"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
And Uzguz, I'm not sure I understand what your reset does... If I'm right, it resets your lastinv to slot2 and switches you to slot1?
Is there any way to, with a scripted lastinv, set the default lastinv every spawn? So, for example, it will default to pistol as a marine. I already have the structure for different configs per team/species, and I use mwheelup to reset my fastattack every spawn, so just adding that function to the bind would work (too bad theres no way to detect a spawn, or anything else for that matter...).
I'm thinking something like
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind "MWHEELUP" "mbind; +kk1b"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
mbind is an alias to reset my sens and quickattack.
On a side note, I've modified the fastblink so it is now a generic fastattack. It defaults to different slots depending what team/species you are, but you can cycle through the slots by pressing b to go foreward and v to back. There is also an audio notification of which slot is set, eg for slot1, you will hear the hl annoucement voice say "one."
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->//General Quickattack
alias +qs1 "slot1;wait;+attack;"
alias -qs1 "-attack;"
alias +qs2 "slot2;wait;+attack;
alias -qs2 "-attack;wait;wait;slot1"
alias +qs3 "slot3;wait;+attack;
alias -qs3 "-attack;wait;wait;slot1"
alias +qs4 "slot4;wait;+attack;
alias -qs4 "-attack;wait;wait;slot1"
alias qs1 "bind mouse2 +qs1; speak one; alias qsf qs2; alias qsb qs4"
alias qs2 "bind mouse2 +qs2; speak two; alias qsf qs3; alias qsb qs1"
alias qs3 "bind mouse2 +qs3; speak three; alias qsf qs4; alias qsb qs2"
alias qs4 "bind mouse2 +qs4; speak four; alias qsf qs1; alias qsb qs3"
alias qsf "qs2"
alias qsb "qs2"
bind "v" "qsb"
bind "b" "qsf"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
In the cfg's for the seperate teams/species, I just call qs* to set the default. Pushing the mwheel up will also do this, so you can reset it at spawn.
The cycler assumes that the default is qs2. I restate qsf and qsb as qs3 for the ones that aren't in their cfg's.
Marine: qs3, +kk1b
Skulk: qs3, +kk1b
Lerk: qs2, +kk1c
Fade: qs2, +kk1c
Onos: qs3, +kk1b
Gorge: qs2, +kk1c
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->kkrc
alias +lastinv_reset "kkrc"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
You should use +lastinv_reset as a matter of habit every time you die (or respawn, if it's on a mouse button), so that you always know what weapon you have on lastinv.
I don't really have any use for the reset as it can be set by mwheelup.
but if I bind +kk## to mwheelup, wont the - be called on release? I don't know how you hold a mouse wheel up, but ya.
When you bind +attack to mouse1, releasing it will automatically call -attack. Or does that only work if it is the only command bound?
I know that calling a + in an alias will not call the -, which is why I put it in the bind instead of under mbind.
make sure hud_fastswitch is 1
Bind mwheelup to slot2
Bind mwheeldown to slot1
Bind mouse2 to 3jump script since you can't use mwheel to bhop
There. Now you can switch to blink and back to swipe all with just one hand. I even wrote a small toggle script that'll switch my mwheelup between slot2 and slot3 because I like this setup when I leap-bte as well.
I don't really have any use for the reset as it can be set by mwheelup.
but if I bind +kk## to mwheelup, wont the - be called on release? I don't know how you hold a mouse wheel up, but ya.
When you bind +attack to mouse1, releasing it will automatically call -attack. Or does that only work if it is the only command bound?
I know that calling a + in an alias will not call the -, which is why I put it in the bind instead of under mbind.<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
If I recall, for a +/- command to toggle properly, it must be the only command bound. Don't take my word for it, though. However, I said what I did because I was originally under the impression that you intended to call the +kk1* aliases directly in your species configs.
Note, however, that if you're using the standard version of romano's, you won't have to worry about that, because I added the +/- floodguards to the kk#* commands; in the original, they're one-step aliases.
But you might as well use the reset version, since it has inbuilt support for default lastinv switching. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
By the way, out of curiosity, can I see mbind? Your script is incomplete without, and I'd like to see if I can improve its efficiency for you. Something seems... redundant in it, like an unnecessary bridge alias or some such. But maybe that's just me being stupid.
(P.S. I've changed a couple of things with the reset function, to make it more useful. Firstly, there are now one-step versions of the default lastinv switching commands. They, as well as the original +/- versions, now redefine the one-step lastinv-reset as well as +lastinv_reset. The net effect is to make the reset function more easily integrated into existing weapon-switch related configs. Finally, there's a new one-step alias, lastinv_reinit, which calls kkrb and redefines +lastinv_reset and lastinv_reset to the same, meaning that it performs lastinv_reset's originally intended function of a one-line full lastinv system reset; useful for team-join configs and such. These changes are reflected in the version in my own thread.)
Uzguz, I am using your version for the floodgaurds, but I cut out the reset part. I counldn't find an unmodded version of romano's, and your's was the closest.
Now, I've had a smack-on-the-forehead kind of revelation. I'll just call the non-flood commands once inside the .cfg. Then mwheelup will just call the .cfg and everything should work, I think....
My entire config system can be found <a href='http://comvex.freeserverhost.com/forums/viewtopic.php?p=310#310' target='_blank'>here.</a>
Care to post it?
Care to post it? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
alias +swipe "slot2 ;wait"
alias -swipe "wait; slot1"
bind "mouse2" +swipe
Thats what I use, and that's all one hand. Just hold down Mouse2 for blink, and when you let go it switches back to swipe. Plus it isn't blocked by mp_bs 1.
i got sick of forcing my fps down to get the timing correct, not to mention the mp_blockscript 1 servers screwing with them.. so that script will switch to the health/ranged/movement attacks and then back to melee (and spit for gorge) attack etc...
alias w "wait"
alias +fade "slot1"
alias -fade "bind q +fade2"
alias +fade2 "slot2"
alias -fade2 "bind q +fade"
bind q "+fade"
this one is handy, though when you get right out of egg and hit q you dont go to blink, just hit it a few times to make sure its working. (you could fix this by having +fade execute slot2 instead of slot 1, and just switch everything, im just lazy and dont care)
alias +meta "slot3;w;+attack"
alias -meta "-attack;w;lastinv"
bind "mouse2" +meta
does what it looks like.
i have shift bound to use acid rocket then lastinv.