Sticky Rapid Fire

// wherever these are bound
bind "MOUSE1" "+fire1"
bind "MOUSE2" "+fire2"


// in core.cfg
alias +fire1 "+f1"
alias -fire1 "-f1"
alias +fire2 "+f2"
alias -fire2 "-f2"

alias +f1    "+attack"
alias -f1    "-attack"
alias +f2    "+attack2"
alias -f2    "-attack2"

alias +e     "alias +e1 +d1; alias -e1 -a1; alias +e2 +d2; alias -e2 -a2"
alias -e     "alias +e1;     alias -e1;     alias +e2;     alias -e2"

alias +e1    "+d1"
alias +d1    "+a1"
alias +a1    "+attack;  wait 2; +b1"
alias +b1    "+c1"
alias +c1    "-a1"

alias -e1    "-a1"
alias -a1    "-attack;  wait 2; -b1"
alias -b1    "-c1"
alias -c1    "+e"

alias +e2    "+d2"
alias +d2    "+a2"
alias +a2    "+attack2; wait 2; +b2"
alias +b2    "+c2"
alias +c2    "-a2"

alias -e2    "-a2"
alias -a2    "-attack2; wait 2; -b2"
alias -b2    "-c2"
alias -c2    "+e"

alias wait   "echo WAIT DISABLED BY HOST; alias wait; exec restricted.cfg"
wait


// in restricted.cfg
alias +fire1 "+attack"
alias -fire1 "-attack"
alias +fire2 "+attack2"
alias -fire2 "-attack2"

alias +a1    "-attack; -attack2"
alias -a1    "-attack; -attack2"
alias +a2    "-attack; -attack2"
alias -a2    "-attack; -attack2"


// in demoman.cfg
exec core.cfg

alias +f1 "alias +c1 +e;  alias -c1 +a1; alias +b2 -a2; alias -b2 +a1; alias +d2 -a1; +e1; -e"
alias -f1 "alias +c1 -a1; alias -c1 +e;  alias +b2 +c2; alias -b2 -c2; alias +d2 +a2; -e1; -e"
alias +f2 "alias +b1 -a1; alias -b1 +a2; alias +c2 +e;  alias -c2 +a2; alias +d1 -a2; +e2; -e"
alias -f2 "alias +b1 +c1; alias -b1 -c1; alias +c2 -a2; alias -c2 +e;  alias +d1 +a1; -e2; -e"


// in engineer.cfg, heavyweapons.cfg, medic.cfg, pyro.cfg, scout.cfg, sniper.cfg, soldier.cfg, & spy.cfg
exec core.cfg

The primary and secondary attacks retain functionality when pressed independently but rapidly cycle between them when pressed together. Other classes are unaffected. If the host has disabled the wait command, the script will restore default attack functionality to prevent the client from freezing.

Update: Removed rapid fire for the pistol.

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Script.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Script a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Script.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • Davids Inferno avatar
    Davids Inferno
    Availability
    Offline
    Points Level
    Beggar Points Level icon
    Beggar
    117 points
    Account Age Level
    Apprentice Age Level icon
    Apprentice
    2 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    1 year ago:

    Notes:

    • Whats core.cfg,restricted.cfg

    Notes:

    • Whats core.cfg,restricted.cfg ?
    Bananite
  • urara avatar
    urara avatar
    Availability
    Offline
    Points Level
    Drudge Points Level icon
    Drudge
    1,306 points
    Account Age Level
    Veteran Age Level icon
    Veteran
    5 years old
    Clearance Level
    Treehouse VIP Clearance Level icon
    Treehouse VIP
    urara avatar
    Username
    urara
    • Report icon
    5 years ago:

    This script should no longer work due to the new update that the pistols have a certain shoot speed instead of the player pushing it down fast.

    But, the script was good while it lasted.

    Bananite
  • (CW) Cheese avatar
    (CW) Cheese
    Availability
    Offline
    Points Level
    Beggar Points Level icon
    Beggar
    135 points
    Account Age Level
    Veteran Age Level icon
    Veteran
    6 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    5 years ago:
    Posted by windson0888 Help my scout.cfg folder is empty when I open it with notepad or word

    It's SUPPOSED to be empty. you copy and paste the script there

    cheese, or Whiz, you decide
  • Makaveli726 avatar
    Makaveli726
    Availability
    Offline
    Account Age Level
    Elder Age Level icon
    Elder
    6 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    5 years ago:

    I cant get this to work, I tried the tuts but they dont cover the restricted.cfg or core.cfg and when I made my own the way I made autoexec none of my guns fire at all. Please help I really love this script =(

    Bananite
  • ImmortalKing avatar
    ImmortalKing
    Availability
    Offline
    Account Age Level
    Veteran Age Level icon
    Veteran
    5 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    5 years ago:

    Help my scout.cfg folder is empty when I open it with notepad or word

  • jmingrao avatar
    jmingrao
    Availability
    Offline
    Account Age Level
    Veteran Age Level icon
    Veteran
    5 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    5 years ago:

    I tried it again, works like a charm. my one gripe is that its a fast fire script for mostly the secondary weapon, thus i bound fire1 and 2 to mouse 5 and 4 respectively, however, i tried adding "slot2" to bind mouse5 +fire1 and it caused a continued fire. meh, i guess ill just have to get used to switching on my owns. otherwise GREAT JOB!

    Bananite
  • Vaeden avatar
    Vaeden
    Availability
    Offline
    Account Age Level
    Veteran Age Level icon
    Veteran
    5 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    5 years ago:
    Posted by jmingrao It seems your script gets into a loop and cannot stop for some reason. even if you type in -attack into console. id love to see that fixed. keep up the good work man.

    I corrected a small error in demoman.cfg, but I don't think it is the cause.

    I corrected another error that involved the disabling code that caused attack to stick when joining a server where wait is disabled, but I don't think it is the cause either.

    It works for me so I'm not sure how to replicate your error. Try this version, and if I doesn't work, let me know what steps you took after joining a server, i.e. which class and in what order you pressed the attack buttons, so I can try to replicate it.

  • jmingrao avatar
    jmingrao
    Availability
    Offline
    Account Age Level
    Veteran Age Level icon
    Veteran
    5 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    5 years ago:

    It seems your script gets into a loop and cannot stop for some reason. even if you type in -attack into console. id love to see that fixed. keep up the good work man.

    Bananite

Credits

Key Authors
Vaeden
Unknown

Submitter

Vaeden avatar
Vaeden
Availability
Offline
Account Age Level
Veteran Age Level icon
Veteran
5 years old
Clearance Level
Member Clearance Level icon
Member

Vaeden
(Creator/Co-creator)

Rating

8.67/10
Based off 2 rating(s)

Stats

Post Count
8
ViewCount
8,800
Date Added
5 years ago
Date Modified
5 years ago

License

N/A

Share

Code to use:

More embeddable images

Bookmark and Share