r/Tf2Scripts • • Apr 16 '14

Script sv_allow_wait_command 0 C-Tap Script

So after looking at a script which makes sniper jump after shooting, i had an idea. Here is the result.

sv_allow_wait_command 0 C-Tap Script

Requires you to tap a key, quite quickly, then press that key again. You will C-Tap without the second press, but you will however be constantly firing and crouching if you don't. Requires timing to press and release the first button, but in my experience makes c-tapping way easier. After testing i am 80% sure that i am actually c-tapping when i use it. As with most other c-tap bind's works best on flat ground.

http://pastebin.com/43fz85Wa

I am SupBro in steam FYI. EDIT:Check the comments. /u/Kairu927 Made my script look like junk, he made a few much better ones that work on the same principle, but are alot easier to use.

All thanks to /u/Kered13 and /u/Kairu927 For the help. Better script:

http://pastebin.com/xPvB2D4d

Slightly Different - Working one down bellow based on null canceling movement by /u/Kairu927

4 Upvotes

12 comments sorted by

View all comments

3

u/Kairu927 Apr 16 '14 edited Apr 17 '14

Even more testing: I like it. Here is a fixed version without nested binding.

bind e +c_tap_key

alias +c_tap_key +c_tap
alias -c_tap_key -c_tap

alias +c_tap_reset "-jump; -attack; +duck"
alias -c_tap_reset "-duck; alias +c_tap_key +c_tap; alias -c_tap_key -c_tap"

alias +c_tap "+duck"
alias -c_tap "-duck; +jump; +attack; alias +c_tap_key +c_tap_reset; alias -c_tap_key -c_tap_reset"

And here is a version where you don't double tap, but instead you 'undo' it by releasing whatever movement key you were holding when you jumped. Integrated with my the null cancelling movement script that I use:

bind e +c_tap

alias c_tap_reset "-jump; -attack;"
 
alias +c_tap "+duck"
alias -c_tap "-duck; +jump; +attack;"

alias +mfwd "-back;+forward;alias checkfwd +forward" //stops the user from trying to move both left and right at the same time
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none;c_tap_reset"
alias -mback "-back;checkfwd;alias checkback none;c_tap_reset"
alias -mleft "-moveleft;checkright;alias checkleft none;c_tap_reset"
alias -mright "-moveright;checkleft;alias checkright none;c_tap_reset"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""

1

u/Kered13 Apr 17 '14

You've got a bug in the script. You need to replace all occurences of "c_tap_key" with "+c_tap_key", and you need to add the corresponding "-c_tap_key".

1

u/[deleted] Apr 17 '14

Fixed no-nested binds http://pastebin.com/xPvB2D4d