Announcement

Collapse
No announcement yet.

Cheap alias commands

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

  • Cheap alias commands

    Okay I was watching someone play DM and I've seen some QW demos in the past that got me thinking, so just for sh!ts and grins I made this for newbs to get one up on advanced players.....

    This "legal" script will switch to your best short-range and long-range weapon, shoot it, then change back to shotgun so if you die while firing you wont drop the best weapon in your backpack.

    Code:
    //Delay alias
    alias w5 "wait;wait;wait;wait;wait;"
    
    //Long range weapons (RL primary)
    alias +atk1 "bestweapon 7 5 4 3 2 1;w5;+attack;"
    alias -atk1 ";-attack;w5;bestweapon 2 1"
    
    //Short range weapons (LG primary)
    alias +atk2 "bestweapon 8 5 4 3 2 1;w5;+attack;" 
    alias -atk2 ";-attack;w5;bestweapon 2 1"
    
    //Grr'nade Spam  
    alias +atk3 "bestweapon 6 2 1;w5;+attack;"
    alias -atk3 ";-attack;w5;bestweapon 2 1"
    
    bind mouse1 +atk1 
    bind mouse2 +atk2
    bind mouse3 +atk3
    just add this to the bottom of your autoexec.cfg

    What this script does is assigns the left mouse button to fire your long range weapons, right mouse button for short-range, middle mouse button for the grenade launcher.

    If you have weapon 7 (rl) it will shoot that, if not it goes to the next weapon in line, (5) the SNG, down the line until it finds a weapon in your inventory with ammo.

    The bestweapon command is included in ProQuake way back around 2001 so 99% of the players have it. Qrack has it available as well.

    It's kinda newbiefied but but might help new players play against adept players, and hopefully encourage more people to play.

    I'm going to get flames for this but, at least this is out there for newbs.
    Last edited by R00k; 09-10-2011, 02:17 AM.
    www.quakeone.com/qrack | www.quakeone.com/cax| http://en.twitch.tv/sputnikutah

  • #2
    Peg helped me with a very similar script way back before PQ even had it and
    a version of this is included in his big config.
    I needed something to avoid Turnovers in DM matches and went to him for help,which he was more than able to do.
    His provides a sticky function so after each shot it returns to whatever you assign,for me it was SG.
    At first it is a bit awkward because there is a small cost in lag but as you become used to the delay you find you can shoot the SG while the Rockets
    in flight allowing far more ordinance on target at once since there is no waiting between Roxshots.
    I had it bound to my wheel around 2000 with the GL as secondary and it was a potent weapon for a dialup user being able to heard the opponent with pines into the Rox blast zone and not having any delays between the shots.
    I would play tic tac toe on large open areas herding then filling in the holes. [email protected]@[email protected]@-
    Last edited by bluntz; 09-12-2011, 06:07 AM.
    WARNING
    May be too intense for some viewers.
    Stress Relief Device
    ....BANG HEAD HERE....
    ---------------------------
    .
    .
    .
    .
    .--------------------------

    Comment


    • #3
      You don't need the waits.

      Here's my dm config:

      Code:
      bind "F1" "say_team team quad. %t"
      bind "F2" "say_team ENEMY QUAD!!! %t"
      bind "F3" "say_team Get Quad!!!"
      bind "F4" ""
      bind "F5" ""
      
      bind "F6" "say_team team pent. %t"
      bind "F7" "say_team ENEMY PENT!!! %t"
      bind "F8" "say_team Get Pent!!!"
      bind "F9" ""
      bind "F10" ""
      
      bind "F11" "say_team Team Eyes."
      bind "F12" "say_team Enemy Eyes!!!"
      
      bind mouse3 "say_team pak at %l, who wants it???"
      bind MOUSE4 "say_team %l [%aA %hH] %w"
      
      
      // ==============
      // Primary Attack
      // ==============
      bind "1" "impulse 1;alias w1 impulse 1"
      bind "2" "bestweapon 2 1;alias w1 bestweapon 2 1"
      bind "3" "alias w1 bestweapon 3 2 1"
      bind "4" "alias w1 bestweapon 4 3 2 1"
      bind "5" "alias w1 bestweapon 5 4 3 2 1"
      bind "6" "alias w1 bestweapon 6 5 4 3 2 1"
      bind "7" "alias w1 bestweapon 7 5 4 3 2 1"
      bind "8" "alias w1 bestweapon 8 5 4 3 2 1"
      
      bind "MWHEELUP" "alias w1 bestweapon 8 5 4 3 2 1"
      bind "MWHEELDOWN" "alias w1 bestweapon 7 5 4 3 2 1"
      
      alias "+m1attack" "w1;+attack"
      alias "-m1attack" "-attack;bestweapon 2 1"
      
      bind "MOUSE1" "+m1attack"
      
      
      // ================
      // Secondary Attack
      // ================
      bind "SHIFT" "alias m2weap bestweapon 2 1"
      bind "z" "alias m2weap bestweapon 3 2 1"
      bind "x" "alias m2weap bestweapon 4 3 2 1"
      bind "c" "alias m2weap bestweapon 5 4 3 2 1"
      bind "v" "alias m2weap bestweapon 6 5 4 3 2 1"
      bind "b" "alias m2weap bestweapon 8 5 4 3 2 1"
      
      alias "+m2attack" "m2weap;+attack"
      alias "-m2attack" "-attack;bestweapon 2 1"
      bind "MOUSE2" "+m2attack"

      Comment


      • #4
        That is pretty elegant Mag.
        I think it's just SWELL.
        The waits are needed for us HPB's though or the scripts become unreliable.
        I promised Xray I would share my Drillbit script so here it is.
        As an HPB The LG is almost a worthless weapon waving all over the target.
        My solution was to change the sensitivity on the fly and create an almost slow motion effect.
        Lowering the sensitivity makes for longer dwell times on the target.
        I don't use it often and it is not intended to kill, more of a stabbing tool to create some room to use my RL.
        alias +lg "impulse 8;wait;sensitivity 4;wait;+attack"
        alias -lg "sensitivity 10;wait;-attack;wait;impulse 7"
        bind "ctrl" "+lg"
        WARNING
        May be too intense for some viewers.
        Stress Relief Device
        ....BANG HEAD HERE....
        ---------------------------
        .
        .
        .
        .
        .--------------------------

        Comment

        Working...
        X