Announcement

Collapse
No announcement yet.

Binding MWHEEL problems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Binding MWHEEL problems

    Is it possible to bind commands to the mouse wheel? I've been trying to bind MWHEELUP and MWHEELDOWN to the impulse 10 and 12 commands to make it easy to switch weapons like in other games.

    Bind MWHEELUP impulse 10
    bind MWHEELDOWN impulse 12

    is this the right way? I also tried putting the Impulse in quotes. I also tried doing this in the config file through notepad but I still can't get it to work.
    I'm using winquake 1.09. Please let me know if anyone has the answer. Thanks.

    -Legend

  • #2
    puting this into ur autexec.cfg (or whatever ur cfg is called) should do it:

    Code:
    alias nextwep "impulse 10"
    alias prevwep "impulse 12"
    
    bind MWHEELUP nextwep
    bind MWHEELDOWN prevwep
    for more info see: console tutorial & console guide
    Last edited by =peg=; 01-11-2007, 07:07 AM.

    Comment


    • #3
      Is there any way to bind some of the more common aliases (ie, quickrocket or quickgrenade) to the mousewheel?

      I've edited my config files accordingly but it doesn't seem to work correctly. The scroll motion is recognized, but it just flashes the weapon quickly -- no shots are fired.

      Comment


      • #4
        Not all mods (dunno about the MPs) support "impulse 12". I think some engines force it then though.
        Quake 1 Singleplayer Maps and Mods

        Comment


        • #5
          Originally posted by Brimstone View Post
          Is there any way to bind some of the more common aliases (ie, quickrocket or quickgrenade) to the mousewheel?
          The mousewheel seems to have issues with complex aliases, doesn't it?

          Probably an engine bug, but could also be that there is no way to "hold down" the mousewheel, unlike mouse buttons and keys.

          I suspect the issue is that the -alias gets triggered almost immediately after the +alias when using the mousewheel (because it can't be held down and the -alias is sent after release).

          Case in point: only the briefest lightning gun fire results from binding +attack to mwheelup.

          So I don't think binding any +alias/-alias is really workable with the mousewheel.
          Quakeone.com - Being exactly one-half good and one-half evil has advantages. When a portal opens to the antimatter universe, my opposite is just me with a goatee.

          So while you guys all have to fight your anti-matter counterparts, me and my evil twin will be drinking a beer laughing at you guys ...

          Comment


          • #6
            @Legend - just a FYI that the [-dinput] option disables my MSWHEEL commands.

            @Brimstone - As for a quicknade or quickrocket, use my DualWeapons.cfg and configure it to your liking.

            Original config:
            Code:
            alias w1 "bind MOUSE2 +weapon1; echo DualWeapon-AXE"
            alias w2 "bind MOUSE2 +weapon2; echo DualWeapon-SG"
            alias w3 "bind MOUSE2 +weapon3; echo DualWeapon-SSG"
            alias w4 "bind MOUSE2 +weapon4; echo DualWeapon-NG"
            alias w5 "bind MOUSE2 +weapon5; echo DualWeapon-SNG"
            alias w6 "bind MOUSE2 +weapon6; echo DualWeapon-GL"
            alias w7 "bind MOUSE2 +weapon7; echo DualWeapon-RL"
            alias w8 "bind MOUSE2 +weapon8; echo DualWeapon-LG"
            
            
            alias +weapon1 "impulse 1;+attack"
            alias -weapon1 "-attack;gsnip"
            
            alias +weapon2 "impulse 2;+attack"
            alias -weapon2 "-attack;gsnip"
            
            alias +weapon3 "impulse 3;+attack"
            alias -weapon3 "-attack;gsnip"
            
            alias +weapon4 "impulse 4;+attack"
            alias -weapon4 "-attack;gsnip"
            
            alias +weapon5 "impulse 5;+attack"
            alias -weapon5 "-attack;gsnip"
            
            alias +weapon6 "impulse 6;+attack"
            alias -weapon6 "-attack;gsnip"
            
            alias +weapon7 "impulse 7;+attack"
            alias -weapon7 "-attack;gsnip"
            
            alias +weapon8 "impulse 8;+attack"
            alias -weapon8 "-attack;gsnip"
            
            bind 1 snip1
            bind 2 snip2
            bind 3 snip3
            bind 4 snip4
            bind 5 snip5
            bind 6 snip6
            bind 7 snip7
            bind 8 snip8
            alias gsnip "impulse 2"
            alias snip1 "impulse 1; alias gsnip "impulse 1""
            alias snip2 "impulse 2; alias gsnip "impulse 2""
            alias snip3 "impulse 3; alias gsnip "impulse 3""
            alias snip4 "impulse 4; alias gsnip "impulse 4""
            alias snip5 "impulse 5; alias gsnip "impulse 5""
            alias snip6 "impulse 6; alias gsnip "impulse 6""
            alias snip7 "impulse 7; alias gsnip "impulse 7""
            alias snip8 "impulse 8; alias gsnip "impulse 8""
            
            alias +shotty "impulse 2;+attack"
            alias -shotty "-attack;gsnip"
            
            alias +axey "impulse 1;+attack"
            alias -axey "-attack;gsnip"
            
            alias +nadey "impulse 6;+attack"
            alias -nadey "-attack;gsnip"
            
            alias deactivate "bind MOUSE2 +hook; bind MOUSE3 rune-use; pq_moveup 0; bind q rune-delete; bind e rune-tell; echo DualWeapons Deactivated; play items/protect2"
            
            alias activate "w8; bind MOUSE3 +shotty; pq_moveup 1; bind e +nadey; bind q +axey; echo DualWeapons Activated; play items/damage"
            Feel free to use this and add the following:
            Code:
            alias +rockety "impulse 7;+attack"
            alias -rockety "-attack;gsnip"
            Then bind a key to +nadey and +rockety like so:
            Code:
            BIND [key] "+nadey";
            BIND [key] "+rockety";
            and you don't exactly NEED the deactivate and activate aliases either. Cheers.(b)

            Comment


            • #7
              you have to be using Proquake or higher for Quake to recognize mwheelup/down as a bindable key. the original Quake clients (DosQuake, Winquake, Q95) do not support the mouse wheel. i have the same mwheel binds youre trying to use. the way i have it is:

              bind mwheelup "impulse 10"
              bind mwheeldown "impulse 12"

              Comment


              • #8
                So binding the mouse wheel to any alias, other than the default quake commands, generally doesn't work?

                Comment


                • #9
                  I think that most "state aliases" wouldn't work well. Ones that begin with a + because they have an end sequence that ends with a minus.

                  bind mwheelup "say I got the Flag!" <--- would work

                  alias gotflag "say I got the Flag!"
                  bind mwheelup "say I got the Flag!" <---- work work

                  bind mwheelup +attack <--- works poorly

                  So binding anything that has both a beginning (+) and ending (-) would probably not work very well. Anything that begins with a (+) always has a sequence that ends with a minus (-) -- +attack ends with -attack when you let go of a key or mouse button, for instance -- because the mousewheel minus action is triggered just about instantly.
                  Quakeone.com - Being exactly one-half good and one-half evil has advantages. When a portal opens to the antimatter universe, my opposite is just me with a goatee.

                  So while you guys all have to fight your anti-matter counterparts, me and my evil twin will be drinking a beer laughing at you guys ...

                  Comment


                  • #10
                    So it's not possible to bind the mouse wheel in the original dosquake or winquake? I can only do it in a newer engine?

                    -Legend

                    Comment


                    • #11
                      DosQuake = I very much doubt it

                      WinQuake/GLQuake ... as long as you aren't using DINPUT, you should be able to do ....

                      bind mwheelup "impulse 10"
                      bind mwheeldown "impulse 12" <--- you need to put quotes around impulse 10/12

                      ... I think (85% certain).

                      With ProQuake, a modestly bug-fixed WinQuake/GLQuake, you can bind the mousewheel with or without -DINPUT.

                      (But I noticed this isn't the case with aguirRe's Enhanced GLQuake).

                      /This thread kind of got sidetracked, but Peg answered your question correctly.
                      Quakeone.com - Being exactly one-half good and one-half evil has advantages. When a portal opens to the antimatter universe, my opposite is just me with a goatee.

                      So while you guys all have to fight your anti-matter counterparts, me and my evil twin will be drinking a beer laughing at you guys ...

                      Comment


                      • #12
                        zzz im lazy but will have a go.

                        bind mwheelup "firerocket"
                        alias firerocket "impulse 7 ; wait ; +attack ; bind mwheelup mis"
                        alias mis "-attack ; bind mwheelup firerocket"
                        Yet I still beat you more easily than a hammer can beat a fresh batch of Rowntree's fruit jelly.
                        The 300pingGOD ( july '98 )

                        Comment


                        • #13
                          Originally posted by Baker View Post
                          With ProQuake, a modestly bug-fixed WinQuake/GLQuake, you can bind the mousewheel with or without -DINPUT.
                          Originally posted by me View Post
                          @Legend - just a FYI that the [-dinput] option disables my MSWHEEL commands.
                          cough cough tried it?

                          Comment


                          • #14
                            But of course

                            Quakeone.com - Being exactly one-half good and one-half evil has advantages. When a portal opens to the antimatter universe, my opposite is just me with a goatee.

                            So while you guys all have to fight your anti-matter counterparts, me and my evil twin will be drinking a beer laughing at you guys ...

                            Comment


                            • #15
                              wierd. Any engine I use with -dinput fails using mwheel but works without -dinput.

                              Comment

                              Working...
                              X