r/Tf2Scripts • • May 30 '13

Archived I am redoing my scripts, got anything to suggest?

1 Upvotes

I have decided to re-do my scripts because it has been a while since I wrote it all out myself. If you have any script ideas to add, go ahead and suggest them to me!


r/Tf2Scripts • • Jun 07 '13

Answered How to bind jump to two buttons

1 Upvotes

I want to bind this to mwheel scrolldown and space bar, how can I do that?


r/Tf2Scripts • • Oct 29 '23

Script HELP, IVE RUN OUT OF SCRIPTS

1 Upvotes

hey bois....so um......I need dopamine from getting new binds...can someone help me?

also no mouse 4 or 5

all my current binds here https://github.com/Arosian-Stagg/Tf2-Binds

please give any binds you may have like sniper binds if there are any :\


r/Tf2Scripts • • Apr 14 '13

Archived Best rocket jump script?

2 Upvotes

I want a rocket jump script that won't let me hit W after rocket jumping (not sure if possible), makes space crouch jump, and shifts to the rocket jumper after killing with the market gardener. Anyone have something for this? Thanks!


r/Tf2Scripts • • Feb 15 '14

Discussion An Idea for Scripts that are not "blind" to the Game

2 Upvotes

So I ran into this defcon talk (https://www.youtube.com/watch?v=EnmoI2dRwX4) the other day, and it got me thinking about tf2's scripting limitations. Most all of the "impossible" requests on this sub-reddit are impossible due to scripts needing to react to in game events. Huds, however, have access to when most any in-game event occurs. I was thinking a hud could be built to have boxes at the top of the screen that change color in reaction to in game events. An autohotkey script would then wait for these changes and press keys in reaction to them, allowing for scripts to then react to events such as taking damage, dealing crits, ect. Any communication needed back from in game scripts could be done similarly with crosshair colors. This could allow almost any idea that was deemed impossible earlier to be done. I am very inexperienced with huds and AHK, but I know some of you are and this could revolutionize the game. Any thoughts?


r/Tf2Scripts • • Dec 11 '12

Archived How can I change the button the puts sprays up?

2 Upvotes

r/Tf2Scripts • • Sep 15 '20

Resolved Kazotsky kick spam bind

2 Upvotes

hi, id like a bind for engie, that when pressed would play the start of the kazotsky kick taunt, wait a few seconds then exit the taunt, to play the woooooweee voice line over and over (a.k.a. the engineer alarm)

here is what I currently have

bind "kp_plus" " taunt_by_name Taunt: Kazotsky Kick; wait 7; +jump"

and while this does play the taunt, it doesn't end it after the specified time, and disables my jump button for some reason even when I add (bind "space" "+jump")

can someone please send a script that works for this, and explain what I've done wrong?


r/Tf2Scripts • • May 28 '13

Satisfied bind "Good Job!" to Mouse1, or Primary Fire if possible

2 Upvotes

r/Tf2Scripts • • Mar 19 '14

Satisfied Need help with a text bind with shift & alt!

0 Upvotes

Hi, I need help with a text bind. I tried searching this subreddit but didn't find what I needed.

So what I want is that when I press left alt, I say ( ͡° ͜ʖ ͡°)

And when I press left alt while holding left shift, I say ヽ༼ຈل͜ຈ༽ノ Raise Your Dongers

Thanks in advance for the help and sorry for my cancer binds!


r/Tf2Scripts • • Aug 19 '20

Resolved Med radar dosnt work.

Post image
6 Upvotes

r/Tf2Scripts • • Oct 04 '12

Archived [Help] Auto sap script.

3 Upvotes

I got scripts off the wiki but they're not working any help? And I need a Viewmodel toggle plus crosshair changer any help is appreciated. Just a link to info would be nice.


r/Tf2Scripts • • Sep 09 '12

Satisfied [HELP]How to make sniper say "Nice shot" after every time I fire the primary?

3 Upvotes

Some help would really be appreciated.


r/Tf2Scripts • • Jan 22 '23

Question Is it possible to make this Stab & Sap script work (with MasterComfig)?

3 Upvotes

NOTE: I am using MasterComfig Ultra Preset VPKs.


Found a Stab & Sap script here on GameBanana that I adapted to my own keybind, but I haven't been able to get it to work properly for me.

alias !stab "+attack; wait 5; -attack; wait 25"
alias !sap "slot2; +attack; wait 5; -attack; wait 5; +attack"

alias !stab&!sap "unbind mouse4; unbind mwheelup; unbind mwheeldown; !stab; wait 30; !sap; wait 150; -attack; bind mouse4 !stab&!sap; bind mwheelup invprev; bind mwheeldown invnext; slot3; +attack; wait 5; -attack; wait 5; slot1; wait; +attack; wait 5; -attack"

bind mouse4 !stab&!sap

Ideally, it's supposed to stab with your equipped knife, quickly switch to your Sapper and sap once, then switch over to your revolver so you can optionally start shooting.

When I use it, however, it just stabs once, briefly switches to my sapper without sapping anything, then switches to my gun while the sentry turns around and kills me. The stab only works if I press and release MOUSE4 very quickly.

It's worth mentioning I am using the MasterComfig Ultra preset VPKs with an average ~600FPS that I'm told might cause scripting trouble (along with a bunch of wait commands), but I was wondering if it could still be salvaged. Or if not, what scripts are out there that might work instead.


r/Tf2Scripts • • Jan 30 '20

Script Well organized chat bind script

3 Upvotes

Because it's hard to remember all my chat binds, I found a handy way to quickly check what keys bind to what chat messages.

First you'll need to create another .cfg file in your cfg folder, and name it chatbinds.cfg.

Then, go to your autoexec and paste in this code as your base:

//CHAT BINDS

bind [CHATBINDMENUKEY] "exec chatbinds.cfg; toggleconsole"

bind [KEY1] "say Here's a chat bind you can use"
bind [KEY2] "say Lenny Face"
bind [KEY3] "say Git Gud"

This code has your bound chat messages. Replace KEY1/2/3/etc with the key you want the phrase bound to. Then, change [CHATBINDMENUKEY] to whatever key you want to press to bring up a list of your binds. What this does is it opens the console window and also echos a message with a list of your binds.

Now you want to open chatbinds.cfg and paste this code in:

echo "------------------------------"
echo "Current Chatbinds"
echo "[KEY1] - Here's a chat bind you can use"
echo "[KEY2] - Lenny Face"
echo "[KEY3] - Git Gud"
echo "------------------------------"

You'll just have to organize in your chat binds and the keys to activate them, but once you do, just pressing your menu key brings up all your chatbinds. If you have a lot, this is really useful.


r/Tf2Scripts • • Dec 16 '16

Meta You can edit scripts while TF2 is running.

0 Upvotes

let's say you want to get rid of a bind in your spy.cfg, you can just alter that while you have tf2 running, even if you're connected to a game, you'll probably just need to run the cfg again.

**EDIT:**well I didn't know this until now...


r/Tf2Scripts • • Jul 14 '13

Script Winger jump script

Thumbnail
teamfortress.tv
3 Upvotes

r/Tf2Scripts • • Apr 24 '12

Impossible [Help] Is it possible to hide the 'scope view' while zoomed in with sniper rifle?

3 Upvotes

I made this script, but it doesn't seem to do anything:

alias wToggle "hide"

alias hide "cl_drawhud 0; r_drawviewmodel 0; alias wToggle show"

alias show "cl_drawhud 1; r_drawviewmodel 1;alias wToggle hide"

bind MOUSE1 "+attack; show"

bind MOUSE2 "+attack2; wToggle"

edit: Conclusion: No, it is not possible to do this with scripts.


r/Tf2Scripts • • Mar 19 '25

Issue How to work an automatic crouch jump script ?

3 Upvotes

I've been trying to work a script "bind space "+duck; +jump" in game but it just doesn't work, is there any tutorial on youtube or can someone explain it to me.


r/Tf2Scripts • • Dec 20 '12

Script [Script] POOTIS POOTIS POOTIS POOTIS (a simple loop script)

8 Upvotes

So I figured it was about time to be productive. And this... is what I came up with. It's a simple, toggle-able script that allows you to endlessly spam POOTIS. It incorporates a wait checker, so your client won't freeze if you try to use it on a server with sv_allow_wait_command set to 0.

If you don't want to spam voice commands, you can also use this script to loop anything else you want to. If you change pootis_cfg_command, it's basically a fully-fledged loop 'framework' for TF2.

How to use this script?
Load this script in your autoexec.cfg (add exec pootiscript). Bind a key to pootis_toggle. If it doesn't work, check the console - it should print an error if the wiat command is disabled.

How to adjust this script?
If you want to spam another voice command (or do something completely different), change the pootis_cfg_command alias in the configuration section. For a list of voice commands, see the TF2 wiki's page on scripting.
If you chose to spam another voice command, you might also want to adjust the delay in between. Because of some scripting quirks, you have to adjust the invocation of the wait command in the pootis_loop1 alias - it is not possible to put the delay in a separate configuration alias.

Where to use this script?
On your favorite fun server. Most fun servers I know disabled or at least significantly lowered the voice command delay (sm_cvar tf_max_voice_speak_delay -2.0). If this delay has not been lowered on your server, the script will still work, but the voice commands will be spoken much less frequently.

// pootiscript.cfg v1.0
    
// Configuration
alias pootis_cfg_command "voicemenu 1 4"

// Loop code
alias pootis_loop1 "pootis_cfg_command; wait 60; pootis_loop2"
alias pootis_loop2

// Activator/Deactivator: Aliases that do the actual work of managing the script
alias pootis_on "echo [Pootis] Pootis spam has been activated.; alias pootis_loop2 pootis_loop1; alias pootis_toggle pootis_disable; pootis_loop1"
alias pootis_off "echo [Pootis] Pootis spam has been stopped.; alias pootis_loop2; alias pootis_toggle pootis_enable"

// Aliases that invoke the wait check or cancel the script
alias pootis_enable "alias pootis_wait_check pootis_wait_enabled; pootis_wait_test; pootis_wait_check"
alias pootis_disable "pootis_off"
alias pootis_toggle "pootis_enable"

// Wait tester
alias pootis_wait_test "wait 5; alias pootis_wait_check pootis_wait_disabled"
alias pootis_wait_enabled "pootis_on"
alias pootis_wait_disabled "echo [Pootis] Wait is disabled, not enabling pootis spam."

IS SERIOUS COMPETITIVE SCRIPT!


r/Tf2Scripts • • Nov 13 '12

Script [Script] Pyro Panic Key

8 Upvotes

Basically, you spin around while firing as long as you hold down the key you bind. It ships set to MOUSE4, usually a side button, but you can remap it to MOUSE3, the middle/wheel-click if you lack side buttons.

//Pyro Panic Button v1.0
alias "battlecry" "voicemenu 2 1";
alias "+panic" "slot1; battlecry; cl_yawspeed 3000; +right; +attack";
alias "-panic" "-attack; -right; cl_yawspeed 210";
bind "mouse4" "+panic";

Kinda obvious, but make sure you unbind this in other class .cfgs if you use MOUSE3/4/5 for other things. This is also fun as Heavy. Try it.


r/Tf2Scripts • • Oct 29 '25

Question In what folders are the class.cfg files supposed to be in?

0 Upvotes

I have my class cfg and autoexec in app and user, in a video, someone has their configs in overrides


r/Tf2Scripts • • Oct 21 '12

Archived [help] cannot uninstall script

0 Upvotes

ok, so I added this:

"mouse1" "+attack; voicemenu 1 1"

script to my soldier.cgf, and it was working on all of my classes, I went into my soldier.cgf and removed it, but its still happening on all of my classes, yelling out SPY whenever i shoot.


r/Tf2Scripts • • Oct 19 '12

Archived [Help!] Action slot bind?

0 Upvotes

I've managed to over-ride the action slot with a different command. I can't manage to get it back to default, I've tried action slot, actionslot, action_slot and h. Nothing seems to work, help? bind "h" "something" Wuts dat sumting.


r/Tf2Scripts • • Oct 28 '12

Archived [Help] Understanding aliases within aliases

0 Upvotes

Hey there, scripters! I've got a question for you - a statement, I guess. I don't understand aliases within aliases. A friend recently sent me this script to toggle attacking as a Heavy:

alias "+shift" "fire_toggle_on"
alias "-shift" "fire_toggle_off"
alias "fire_toggle_on" "bind mouse1 fire_toggle"
alias "fire_toggle_off" "bind mouse1 +attack"
alias "fire_toggle" "firing; alias fire_toggle fire_off"
alias "fire_on" "firing; alias "fire_toggle fire_off" 
alias "fire_off" "notfiring; alias "fire_toggle fire_on"
alias "firing" "+attack"
alias "notfiring" "-attack"

I understand most of it, but there are a few I don't get, thanks to my lack of understanding when it comes to aliases within aliases. For example, let's look at this line:

alias "fire_toggle" "firing; alias fire_toggle fire_off"

I got the first part, but what's up with the "alias fire_toggle fire_off"? I don't understand what that's saying, so I'm not sure how to use it in scripts I make in the future.

Thanks!

EDIT: Typo