Announcement

Collapse
No announcement yet.

toggle weapons bind

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

  • toggle weapons bind

    Is it possible to bind a key to toggle between two different weapons using the same key like in the mission packs? Can I do this from the config file?

    -Legend

  • #2
    a basic toggle that can be used for anything u like would look like this..

    Code:
    alias toggle "alias tog_on"
    alias tog_on "commandx;alias toggle tog_off"  //replace commandx by whatever command u like
    alias tog_off "commandy;alias toggle tog_on"  //replace commandy by whatever command u like
    
    bind "whateverkey" toggle
    basically by every keypress of the binded key quake will either execute commandx or commandy and switches back and forth (toggles)..

    Comment


    • #3
      Thanks. I figured out the toggle on my own but I still can't do what I want to do. I want to set a toggle and bind a key so that I can quickly go straight to the second command in the toggle. Specifically, I want to bind a key to go straight to the lava nails or multi grenades in the Dissolution of Eternity mission pack. Like a quick grenade bind. To get to the lava nails, impulse 4 has to be entered twice (push button 4 twice). I can't seem to bind the impulse 4 command to a key so it occurs twice to bring up the lava nails. It only brings up the regular nail gun. Any ideas? Is there some other command I have to put between the two impulse 4 commands to make them actually be entered twice? Thanks.

      -Legend

      Comment


      • #4
        u could try putting one or more "wait" commands in between the impulses but i doubt that will work..

        anyways a good way test would be to make a "multi-wait" alias like this and use that instead..

        Code:
        alias w1 wait
        alias w2 "w1;w1"
        alias w3 "w2;w1"
        alias w4 "w3;w1"
        alias w5 "w4;w1"
        //etc..etc..
        alias mw w1
        alias lavagun "impulse 4;mw;impulse 4"
        to test u can just type "alias mw w3" (or whatever) in the quakeconsole to change the number of wait statements in that "lavagun"-line

        Comment


        • #5
          surely the guns are assigned other impulses than just "impulse 4" twice. that would be dumb......
          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


          • #6
            it IS dumb.. as r the alternative weapons in runequake that work the same way.. if there are any unique impulses for those weapons then its about time they get documented somewhere couse the double selecting thing is a pain in the back..

            Comment


            • #7
              surely the guns are assigned other impulses than just "impulse 4" twice. that would be dumb......
              Yeah. It is really dumb.
              I tried looking all over the internet for alternate impulses but came up empty handed. Except for the laser gun and mjolnir for Scourge mission pack. Those two weapons have other impulses but not for the proximity grenade launcher. Anyways, I actually got it figured out and got it working for the DOE mission pack. I will post it later tonight. The only glitch that I can't seem to fix yet is that if you choose one of the new weapons like the lava nails as your primary weapon, then use your secondary weapon, it doesn't switch back to the lava nails (or any other new weapon you may have chosen). Instead, it switches back to the regular weapon in that slot like the regular nail gun or rocket launcher. Anyways, I will post it later tonight and hopefully someone will try it out and maybe even figure out how to fix the problem (if I don't figure it out today). Thanks to everyone for the help and to Canadian Sniper who's Dual Weapons config I used as a basis for this one.

              -Legend

              Comment


              • #8
                u will need to do an "impulse 4" on the -bind as well to make that work properly.. however this may couse all kinds of undesired effects since -commands get executed even if ur just typing in the console or in msgmode... so unless u bind ur commands to a "safe" key (a mouse button) that u wont press in any other situation u should be fine...

                on the runequake mod for example, impulses on -binds kept screwing things becouse they r being used for the menu as well.. since i use SPACE as a firebutton this triggered the menu while typing in msgmode..

                edit:

                for runequake there is +sattack tho that should fix this problem but i guess that wouldnt work for the missionpacks...
                Last edited by =peg=; 01-29-2007, 04:06 PM.

                Comment

                Working...
                X