Sticky Rapid Fire

Hey Bro: Join GameBanana, one of the oldest mod sites, and maximize your browsing experience.

  • Subscribe: Get notified when Vaeden submits again.
  • Say Thanks: Show your appreciation by sending Vaeden points.
  • Post: Give Vaeden your thoughts on this Script.
  • Vote: Help Vaeden win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Resistance is futile...

Sign up

Already a Bananite? Login

Sticky Rapid Fire

68 lines | 2 kb | Raw Code
Font size:
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.
  • You must be a member

Comments

  • Davids Inferno avatar
    Member Joined 3 years ago
    117 points Ranked 21402nd
    Report post
    3 years ago:
    Notes:

    • Whats core.cfg,restricted.cfg
    Notes:

    • Whats core.cfg,restricted.cfg ?
    Bananite
  • urara avatar
    urara avatar I'm not here!
    Member Joined 7 years ago
    11,022 points Ranked 364th
    24 medals 1 legendary, 4 rare
    • Submitted 10 Modules Medal icon
    • 6 years a member Medal icon
    • Submitted 5 Modules Medal icon
    • Submitted 15 Tutorials Medal icon
    • Thanked 50 submitters Medal icon
    • Submitted 20 Sprays Medal icon
    Report post
    7 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
    Member Joined 7 years ago
    135 points Ranked 19508th
    Report post
    7 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
    Member Joined 8 years ago
    Report post
    7 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
    Member Joined 7 years ago
    Report post
    7 years ago:
    Help my scout.cfg folder is empty when I open it with notepad or word
  • jmingrao avatar
    jmingrao Offline
    Member Joined 7 years ago
    Report post
    7 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!

    7.3/10

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

    7.3/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 7 years ago

Vaeden
Creator

Game

Category

Stats

Posts
8
Views
10,051
Date Added
7 years ago
Jun 20 2009 @ 1:57am UTC
Date Modified
7 years ago
Sep 25 2009 @ 6:41pm UTC

Rating

8.7
Votes
2

Ratings Breakdown

CriterionAvg.VotesRange
Overall 8.7 2 7.3 to 10

License