Team Fortress 2

Sticky Rapid Fire

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// 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

  • Davids Inferno avatar
    Davids Inferno Offline
    117 points Ranked 19732nd
    Member Joined 2 years ago
    • Report icon

    Notes:

    • Whats core.cfg,restricted.cfg

    Notes:

    • Whats core.cfg,restricted.cfg ?
    Bananite
  • urara avatar
    urara avatar Offline
    1,984 points Ranked 1939th
    Member Joined 6 years ago
    • Report icon

    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 Offline
    135 points Ranked 17981st
    Member Joined 6 years ago
    • Report icon
    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 Offline
    Member Joined 7 years ago
    • Report icon

    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 Offline
    Member Joined 6 years ago
    • Report icon

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

  • jmingrao avatar
    jmingrao Offline
    Member Joined 6 years ago
    • Report icon

    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!

    7.33/10

    Bananite
  • Vaeden avatar
    Vaeden Offline
    Member Joined 6 years ago
    • Report icon
    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 Offline
    Member Joined 6 years ago
    • Report icon

    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.

    7.33/10

    Bananite

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Key Authors
Vaeden
Unknown

Submitter

Vaeden avatar
Vaeden Offline
Member Joined 6 years ago

Vaeden
Creator

Rating

8.67/10

Stats

Posts
8
Views
9,367
Date Added
6 years ago
Date Modified
6 years ago