Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Left-Click Quickscope - A Config Script for Team Fortress 2

33 2 kb Raw Code
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
alias attack1 "+attack; wait 2; -attack"
alias attack2 "+attack2; wait 2; -attack2"

alias null ""
alias unbindMouse "alias m1 null; unbind mouse2"


alias standardAttack "bind space +jump; unbindMouse; attack1; wait 207; alias m1 quickscope; bind mouse2 scope"
alias unscope "bind space +jump; unbindMouse; unbind 2; unbind 3; attack2; wait 15; bind 2 two; bind 3 three; wait 25; alias m1 quickscope; bind mouse2 scope"


alias scopedJump "unscope; bind space +jump; +jump; wait 2; -jump"
alias quickscope "unbindMouse; attack2; wait 14; attack1; wait 207; alias m1 quickscope; bind mouse2 scope"
alias scope "bind space scopedJump; unbindMouse; attack2; wait 14; alias m1 standardAttack; wait 25; bind mouse2 unscope"


alias secondaryAttack "+attack; wait 2; -attack; wait 2; one"

alias one "unbindMouse; unbind 1; slot1; wait 66; bind mouse1 +m1_pressed; alias m1 quickscope; bind mouse2 scope"
alias two "-m1_pressed; slot2; bind mouse1 null; bind mouse2 +attack2; bind 1 one; bind space +jump; wait 66; bind mouse1 secondaryAttack"
alias three "-m1_pressed; slot3; bind mouse1 +attack; bind mouse2 +attack2; bind 1 one; bind space +jump"


//if the wait command works on a server, the script will be activated. if not, the machina will function as it normally would.
alias wait "alias waitTest waitDisabled"

alias loop_default "m1; wait 2; loop"
alias +m1_pressed "alias loop loop_default; wait 2; loop"
alias -m1_pressed "alias loop null"  
alias waitEnabled "bind mouse1 +m1_pressed; alias m1 quickscope; bind mouse2 scope; unbind 1; bind 2 two; bind 3 three; echo script enabled"
alias waitDisabled "bind mouse1 +attack; bind mouse2 +attack2; bind 1 slot1; bind 2 slot2; bind 3 slot3; echo script disabled"

alias waitTest waitEnabled; wait; waitTest

Updates

1.4 1mo
  • - Added support for holding down left click
i know the variable names dont make sense, i made this while half asleep
1.3.1 3mo BugFix 1.3 3mo BugFix 1.2 3mo BugFix 1.1 3mo Improvement
This is a reliable, efficient way to make left-clicking with the machina sniper rifle work like any other when not zoomed in.

This doesn't work well with a gun as your secondary, but why would you have a secondary gun as sniper? that's on you.

Note that this was made for personal use, and I have the mouse wheel unbound

IMPORTANT: add this to the cfg files for the other 8 classes:


bind 1 slot1

bind 2 slot2
bind 3 slot3
bind space +jump
bind mouse1 +attack
bind mouse2 +attack2
alias loop ""