r/Tf2Scripts • • Jul 07 '13

Script [Script] Concise voice commands

6 Upvotes

I brought up this script I made earlier on and somebody asked how I did it - so I decided to release the script to you all.

What it does: Basically, I got sick of having to reach over my finger to press the 1-8 keys to activate a voice command after hitting the z/x/c keys - because really, that 8 key is far from wasd - and decided to make a script that activates voice commands with ONLY the zxc keys, tapping different intuitive combinations to get a voice command.

~

Link to the script:

Customizable version: http://pastebin.com/cwRBYXFn (You can change the keys you tap for the voice commands away from z x and c)

z, x, c version: http://pastebin.com/wxLuNkmu (bound to z x and c by default)

~

How to work it: Install it the way you would any other script in autoexec.cfg - as a reminder: it should be in C:\Program Files\Steam\steamapps\common\team fortress 2\tf\custom\(Any folder name works)\cfg\autoexec.cfg - create any filepaths that don't exist.

The key combinations are just concise forms of the original ones. Z, X, and C, when pressed, will still start the same voicemenus as before - Be warned though, there is no little bubble with the options to help you. After pressing that, there are the same 8 options. The next key-tap of z, x, or c will narrow it down. Z always narrows it down to the first three, X to 4-6, and C to 7 and 8. Finally, press z, x, or c to make the final selection (Z will be the first of the group you narrowed down, X the second, C the third if available, or else C will do nothing)

Warning: If you start a key combination, it will stay until the combination is completed or reset. This can get confusing, which is why I added the option to have a reset button. Edit the first line of actual script in the file to change it, it should be pretty clear what you need to do.

~

Examples:

"Thanks" - z-2 becomes z-z-x

"Go! Go! Go!" - z-3 becomes z-z-c

"Need a dispenser here!" - x-5 becomes x-x-x

"Help!" - c-1 becomes c-z-z

"Nice shot!" - c-7 becomes c-c-z

~

If you have any questions, go right ahead and ask.


r/Tf2Scripts • • Mar 16 '13

Archived [Help] Sensitivity increase while charging.

6 Upvotes

I want a script which makes it so whenever I am charging with a shield as demoman my mouse sensitivy increases.


r/Tf2Scripts • • Dec 28 '12

Satisfied [Request] Random disguise upon pressing mouse4

6 Upvotes

I had a script not too long ago as spy which would randomly disguise me as a pyro, sniper, demo or engineer, but it while I was trying some other stuff I lost it :C. If anyone can post it or write a new one that be fantastic.


r/Tf2Scripts • • Dec 18 '12

Script Request scripts here!

6 Upvotes

I am bored, I am willing to try my hand at any scripts you guys might want!

Also you can ask me questions if you need help!
Edit: You can still request scripts if you want to!


r/Tf2Scripts • • Oct 26 '12

Satisfied [Request] Engineer Script - Skip Past Build/Destroy PDA?

6 Upvotes

EDIT: Got it working, check my latest post between me and -Split- to see the solution (it includes my custom keybinds though, so you'd have to work it around to suit your needs.

Thanks to the help of someone on SPUF, I've found an engie script I like for quick build/destory (helps me a lot when playing gunslinger engie), and it's almost perfect except for one flaw, when scrolling through weps I'd ideally like it to basically pretend the build/destory PDA doesn't exist, so it would just go through the primary, secondary and melee weapons instead of all 5. Is this possible? I think I recall having an old script that did it, but I lost it when I reformatted and haven't been able to find it since.

Here's my current script if it helps

alias sentry "destroy 2; build 2"

alias dispenser "destroy 0; build 0"

alias entrance "destroy 1; build 1"

alias exitele "destroy 3; build 3"

bind 1 sentry

bind 2 dispenser

bind 3 entrance

bind 4 exitele

Thanks!


r/Tf2Scripts • • Oct 10 '12

Resolved [Help] View models!

6 Upvotes

So I typed bindtoggle p "drawviewmodel 0 1" into my console like the clueless little man I am, and now I dont have view models for any of my classes, and it doesnt help. I tried unbinding P, binding it again, so i ask you /r/tf2scripts, can you help me? Thanks! <also this is my first time doing anything like this, so I may sound like a noob>


r/Tf2Scripts • • Sep 17 '12

Answered [Help] Do the F1-F(x) vote keys have binds, or do they detect the keypress?

6 Upvotes

Basically, title sums it up. In the in-game voting system, do F1-F(x) have binds, or do they detect what you press, like how it works with readying up in MvM?

Thanks.


r/Tf2Scripts • • Sep 02 '12

Satisfied [Help]Script for calling out picks.

6 Upvotes

I think it's "bind # say_team " but i want to be able to hold shift and press the same button to say a different thing. Some help please.


r/Tf2Scripts • • Aug 28 '12

Script [Script] Spy Concise Disguise with Voice Responses Using 1-4 + viewmodel/FOV/sens per weapon

6 Upvotes

As a spy, I really like the concise disguise option where you press 4->1/2/3->1/2/3 to disguise. It lets me keep my hands on wasd and lets me disguise as any class...I found with any other option I would not use high number disguises as often, almost subconsciously, because they were less convenient to use.

Anyway, the thing I hate about it is the obtrusive disguise kit + HUD overlay, and I really liked the yes/no notification on disguise that stabby and others use. So I wrote a script to get the best of both worlds...it leverages an existing concise disguise script from shadowtroop. Since my script rebinds 1-3 multiple times, it also required me to bundle in the amby viewmodel script I use (since that rebinds 1-3 as well), which is a very slightly modified version of stabby's. It's pretty long so here's a dl link for easier download:

https://dl.dropbox.com/u/87294868/disguise.cfg

Hopefully some folks find that helpful, I find that it's super nice for disguising. I tried to make it as easily configurable as possible at the top, where you set amby/knife sens and POV and keybinds at the top and then the script does everything below. I think it also contains a POV 'zoom' bind as well. Enjoy!


// Disguise + View model Script
//`
// This script sets viewmodel controls for the amby, in addition to sensitivity controls etc.
//
// The disguise script re-sets the concise disguise menu, with vocal verification of yes (for enemy)
// and no (for friendly) disguise.  This is mostly a bastardized and glued together version of stabby's
// viewmodel script and shadowtroop's concise F-key disguise.

// Set amby and knife sens here (sapper defaults to knife sens)
alias amby_sens "sensitivity 1.600"
alias knife_sens "sensitivity 2.600"

// Set amby and knife FOV here
alias amby_fov "fov_desired 60"
alias knife_fov "fov_desired 90"

// Default binds.  Pressing four will initiate the concise disguise.  You probably don't want to change these.
bind 1 +equip_amby
bind 2 +equip_sap
bind 3 +equip_knife
bind 4 "bind 1 one; bind 2 two; bind 3 three"

// Drop disguise bind.  Change it to whatever you want.
bind 5 drop_disg 

// Mouse binds.  This has mouse4 (side button) bound to friendly disguise -- assign it however you want.
bind mouse2 "+watch;spec_prev"
bind mouse3 zoom
bind MOUSE4 +f_disg

// spawn with knife out and viewmodel mode set to "on"     
slot3
r_drawviewmodel 1
viewmodel_fov 90
amby_vm_mode



// This changes how viewmodel will change on attack.
alias knife_vm_mode "bind mouse1 +viewmodel_knife"   // binds mouse1 to turn viewmodel on when attacking (for knife knife)
alias amby_vm_mode "bind mouse1 +viewmodel_amby"     // binds mouse1 to turn viewmodel off when attacking (for amby)
alias sap_vm_mode "bind mouse1 +viewmodel_sap"       // binds mouse 1 to turn viewmodel on when attacking and off when not (for sapper)


// This tweaks when viewmodels are drawn or not 
alias +viewmodel_amby "+attack;r_drawviewmodel 0;spec_next"            // attacks, turns viewmodel off
alias -viewmodel_amby "-attack;r_drawviewmodel 0; echo minus vm_amby"                      // finishes attack, turns viewmodel off again as a safeguard

alias +viewmodel_knife "+attack;r_drawviewmodel 1;spec_next"           // attacks, turns viewmodel on
alias -viewmodel_knife "-attack;r_drawviewmodel 1; echo minus vm_knife"                     // finishes atack, turns viewmodel on again as safeguard

alias +viewmodel_sap "+attack;r_drawviewmodel 1;spec_next"             // shows sapper when sapping
alias -viewmodel_sap "-attack;r_drawviewmodel 0"                       // hides sapper when mouse1 released


// Equip the item, add sensitivity/FOV options
alias +equip_amby "slot1;amby_fov;amby_sens"                // Equips amby
alias -equip_amby "amby_vm_mode; echo minus equip_amby"                            // Sets viewmodels to turn OFF when shooting     

alias +equip_sap "slot2;r_drawviewmodel 1;knife_fov;knife_sens"               // Equips sapper, turns viewmodels on
alias -equip_sap "sap_vm_mode"                                                // Sets viewmodels to turn on while firing, and off when not

alias +equip_knife "slot3;r_drawviewmodel 1;knife_fov;knife_sens"             // Equips knife, turns viewmodels on
alias -equip_knife "knife_vm_mode;r_drawviewmodel 1"                          // Sets viewmodels to turn ON when stabbing (makes sure it stays on)
     
alias +watch "+attack2;r_drawviewmodel 1"                                     // watch up/cloak on/secondary attack + viewmodels on
alias -watch "-attack2;r_drawviewmodel 1"                                     // viewmodels on again as safeguard


/////////////////////////
/// ENEMY DISGUISE
/////////////////////////
// 2nd part of the concise disguise, 1-3 are again rebound with class choices based on if you press 1-3
alias one "bind 1 e_scout; bind 2 e_soldier; bind 3 e_pyro;"
alias two "bind 1 e_demoman; bind 2 e_hwguy; bind 3 e_engineer;"
alias three "bind 1 e_medic; bind 2 e_sniper; bind 3 e_spy;"

// At this point, we are choosing the class.  Play the 'yes' voiceover, and rebind 1-3 to the weapon slots. 
alias e_scout "disguise 1 -1; play vo\scout_yes01; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias e_sniper "disguise 2 -1; play vo\sniper_yes03; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias e_soldier "disguise 3 -1; play vo\soldier_yes04; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias e_demoman "disguise 4 -1; play vo\demoman_yes01; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias e_medic "disguise 5 -1; play vo\medic_yes03; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias e_hwguy "disguise 6 -1; play vo\heavy_yes03; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias e_pyro "disguise 7 -1; play vo\pyro_moveup01; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias e_spy "disguise 8 -1; play vo\spy_yes02; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias e_engineer "disguise 9 -1; play vo\engineer_yes03; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"

///////////////////////////
/// FRIENDLY DISGUISE
///////////////////////////

// How friendly disguise really works is you don't need to press 4.  You can just hold the friendly disguise button and then choose your class.
alias +f_disg "bind 1 frone; bind 2 frtwo; bind 3 frthree; " //switches teams when held down, you must hold it down for both f# key presses
alias -f_disg "bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife;"

// The rest of this is the same as enemy disguise, just with friendly classes instead
alias frone "bind 1 a_scout; bind 2 a_soldier; bind 3 a_pyro;"
alias frtwo "bind 1 a_demoman; bind 2 a_hwguy; bind 3 a_engineer; "
alias frthree "bind 1 a_medic; bind 2 a_sniper; bind 3 a_spy;"

alias a_scout "disguise 1 -2; play vo\scout_no02; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias a_sniper "disguise 2 -2; play vo\sniper_no01; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias a_soldier "disguise 3 -2; play vo\soldier_no02; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias a_demoman "disguise 4 -2; play vo\demoman_no03; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias a_medic "disguise 5 -2; play vo\medic_no01; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias a_hwguy "disguise 6 -2; play vo\heavy_no03; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias a_pyro "disguise 7 -2; play vo\pyro_no01; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias a_spy "disguise 8 -2; play vo\spy_no03; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"
alias a_engineer "disguise 9 -2; play vo\engineer_no01; bind 1 +equip_amby; bind 2 +equip_sap; bind 3 +equip_knife"

// Simple drop disguise by disguising as friendly spy
alias drop_disg "disguise 8 -2" // instantly removes disguise

// Bind MOUSE3 to 'zoom in' toggle
alias zoom "zoomin1"

alias zoomin1 "fov_desired 10; alias zoom zoomin2"
alias zoomin2 "fov_desired 60; alias zoom zoomin1"

r/Tf2Scripts • • Aug 27 '12

Archived [Help] A script that brings up net_graph while the scoreboard is up (while holding tab)

6 Upvotes

r/Tf2Scripts • • Aug 03 '12

Satisfied [Help] Toggle incoming voice chat

6 Upvotes

If necessary it can be 2 diff keys but I need to disable mic chat yet still allowing me to speak, Me and my wife play together with sound but only need 1 computer listening to voice chat so we don't have annoying echo. We both need to be able to speak though. It is a hassle to constantly go through menu options to turn it on or off.

Things we have tried:

Bind "F8" "voice_enable 1" (doesnt work) Bind "F9" "voice_enable 0" (Turns off incoming voice but also disables mic) Bindtoggle "F8" "voice_enable" (did nothing, or at least did not turn it back on)


r/Tf2Scripts • • Jul 26 '12

Satisfied Spy disguise script

6 Upvotes

I need a script that will disguise as a enemy engie, spy, pyro, or demoman randomly whan I mousewheel down and randomly disguise as an ally scout, demoman, medic, sniper when I hit mousewheel up. Any help would be greatly appriated and I may have a reward based on the amount of time I get this back based on the complexity of this script.


r/Tf2Scripts • • Jul 21 '12

Archived [HELP]Viewmodel Toggle

6 Upvotes

How would I go about binding a key to toggle viewmodels? Right now i have R bound to hide viewmodels (r_drawviewmodels 0) and T bound to show viewmodels (r_drawviewmodels 1) but I'd like to know how to get R to toggle between on and off.


r/Tf2Scripts • • May 19 '12

Script [Script] Keypad disguising

6 Upvotes

This one was harder to make than I thought it would be.

Push corresponding keypad button to disguise as an enemy from the other team. Push the same button again to disguise as that class on your team.

1-Scout 2-Soldier 3-Pyro 4-Demo 5-Heavy 6-Engineer 7-Medic 8-Sniper 9-Spy

resetkeypad1
bind mouse1 "+breakdisguise"
alias "+breakdisguise" "+attack; spec_next; resetkeypad1"
alias "-breakdisguise" "-attack"
alias "resetkeypad1" "bind kp_end disguisescout1; bind kp_downarrow disguisesoldier1; bind kp_pgdn disguisepyro1; resetkeypad2"
alias "resetkeypad2" "bind kp_leftarrow disguisedemo1; bind kp_5 disguiseheavy1; bind kp_rightarrow disguiseengy1; resetkeypad3"
alias "resetkeypad3" "bind kp_home disguisemedic1; bind kp_uparrow disguisesniper1; bind kp_pgup disguisespy1"
alias "disguisescout1" "enemyscout; bind kp_end friendscout; bind kp_downarrow resetsoldier; bind kp_pgdn resetpyro; disguisescout2"
alias "disguisescout2" "bind kp_leftarrow resetdemo; bind kp_5 resetheavy; bind kp_rightarrow resetengy; disguisescout3"
alias "disguisescout3" "bind kp_home resetmedic; bind kp_uparrow resetsniper; bind kp_pgup resetspy"
alias "disguisesoldier1" "enemysoldier; bind kp_end resetscout; bind kp_downarrow friendsoldier; bind kp_pgdn resetpyro; disguisesoldier2"
alias "disguisesoldier2" "bind kp_leftarrow resetdemo; bind kp_5 resetheavy; bind kp_rightarrow resetengy; disguisesoldier3"
alias "disguisesoldier3" "bind kp_home resetmedic; bind kp_uparrow resetsniper; bind kp_pgup resetspy"
alias "disguisepyro1" "enemypyro; bind kp_end resetscout; bind kp_downarrow resetsoldier; bind kp_pgdn friendpyro; disguisepyro2"
alias "disguisepyro2" "bind kp_leftarrow resetdemo; bind kp_5 resetheavy; bind kp_rightarrow resetengy; disguisepyro3"
alias "disguisepyro3" "bind kp_home resetmedic; bind kp_uparrow resetsniper; bind kp_pgup resetspy"
alias "disguisedemo1" "enemydemo; bind kp_end resetscout; bind kp_downarrow resetsoldier; bind kp_pgdn resetpyro; disguisedemo2"
alias "disguisedemo2" "bind kp_leftarrow frienddemo; bind kp_5 resetheavy; bind kp_rightarrow resetengy; disguisedemo3"
alias "disguisedemo3" "bind kp_home resetmedic; bind kp_uparrow resetsniper; bind kp_pgup resetspy"
alias "disguiseheavy1" "enemyheavy; bind kp_end resetscout; bind kp_downarrow resetsoldier; bind kp_pgdn resetpyro; disguiseheavy2"
alias "disguiseheavy2" "bind kp_leftarrow resetdemo; bind kp_5 friendheavy; bind kp_rightarrow resetengy; disguiseheavy3"
alias "disguiseheavy3" "bind kp_home resetmedic; bind kp_uparrow resetsniper; bind kp_pgup resetspy"
alias "disguiseengy1" "enemyengy; bind kp_end resetscout; bind kp_downarrow resetsoldier; bind kp_pgdn resetpyro; disguiseengy2"
alias "disguiseengy2" "bind kp_leftarrow resetdemo; bind kp_5 resetheavy; bind kp_rightarrow friendengy; disguiseengy3"
alias "disguiseengy3" "bind kp_home resetmedic; bind kp_uparrow resetsniper; bind kp_pgup resetspy"
alias "disguisemedic1" "enemymedic; bind kp_end resetscout; bind kp_downarrow resetsoldier; bind kp_pgdn resetpyro; disguisemedic2"
alias "disguisemedic2" "bind kp_leftarrow resetdemo; bind kp_5 resetheavy; bind kp_rightarrow resetengy; disguisemedic3"
alias "disguisemedic3" "bind kp_home friendmedic; bind kp_uparrow resetsniper; bind kp_pgup resetspy"
alias "disguisesniper1" "enemysniper; bind kp_end resetscout; bind kp_downarrow resetsoldier; bind kp_pgdn resetpyro; disguisesniper2"
alias "disguisesniper2" "bind kp_leftarrow resetdemo; bind kp_5 resetheavy; bind kp_rightarrow resetengy; disguisesniper3"
alias "disguisesniper3" "bind kp_home resetmedic; bind kp_uparrow friendsniper; bind kp_pgup resetspy"
alias "disguisespy1" "enemyspy; bind kp_end resetscout; bind kp_downarrow resetsoldier; bind kp_pgdn resetpyro; disguisespy2"
alias "disguisespy2" "bind kp_leftarrow resetdemo; bind kp_5 resetheavy; bind kp_rightarrow resetengy; disguisespy3"
alias "disguisespy3" "bind kp_home resetmedic; bind kp_uparrow resetsniper; bind kp_pgup friendspy"
alias "enemyscout" "disguise 1 -1"
alias "enemysoldier" "disguise 3 -1"
alias "enemypyro" "disguise 7 -1"
alias "enemydemo" "disguise 4 -1"
alias "enemyheavy" "disguise 6 -1"
alias "enemyengy" "disguise 9 -1"
alias "enemymedic" "disguise 5 -1"
alias "enemysniper" "disguise 2 -1"
alias "enemyspy" "disguise 8 -1"
alias "resetscout" "resetkeypad1; disguise 1 -1"
alias "resetsoldier" "resetkeypad1; disguise 3 -1"
alias "resetpyro" "resetkeypad1; disguise 7 -1"
alias "resetdemo" "resetkeypad1; disguise 4 -1"
alias "resetheavy" "resetkeypad1; disguise 6 -1"
alias "resetengy" "resetkeypad1; disguise 9 -1"
alias "resetmedic" "resetkeypad1; disguise 5 -1"
alias "resetsniper" "resetkeypad1; disguise 2 -1"
alias "resetspy" "resetkeypad1; disguise 8 -1"
alias "friendscout" "disguise 1 -2; resetkeypad1"
alias "friendsoldier" "disguise 3 -2; resetkeypad1"
alias "friendpyro" "disguise 7 -2; resetkeypad1"
alias "frienddemo" "disguise 4 -2; resetkeypad1"
alias "friendheavy" "disguise 6 -2; resetkeypad1"
alias "friendengy" "disguise 9 -2; resetkeypad1"
alias "friendmedic" "disguise 5 -2; resetkeypad1"
alias "friendsniper" "disguise 2 -2; resetkeypad1"
alias "friendspy" "disguise 8 -2; resetkeypad1"

r/Tf2Scripts • • May 09 '12

Script [Engineer] Build a new sentry in one button.

6 Upvotes

bind "MOUSE3" "destroy 2 0;build 2 0"

Press scroll to build a sentry, if one is already up it will destroy your old one.


r/Tf2Scripts • • May 02 '12

Answered [Q] can you bind to the caps lock key?

6 Upvotes

I'm having trouble finding a clear answer to this question. If you can, what is the name you use to bind it?


r/Tf2Scripts • • May 16 '26

Script Rocket jump script for Htwo's "B.A.S.E. Boosting" tech

5 Upvotes

Change mouse4 to whatever you want to use to jump with. Jump and then press this key off a wall to go flying horizontally

bind space "+jump 1; -jump 1"

bind mouse4 +bboost

alias +bboost "+duck; +jump 1; -jump 1; +attack 1; -attack 1"

alias -bboost "+jump 1; -jump 1; -duck"


r/Tf2Scripts • • Aug 27 '25

Question This might be a long shot

5 Upvotes

Would it be possible for me to have a script that allows the detonator to detonate when I release the fire button, and have it change upon switching weapons (so I can airblast) And I'm not using mastercomfig


r/Tf2Scripts • • Jul 05 '25

Question Spy disguise script help

5 Upvotes

I've been writing a script to make disguising faster and easier. Most of it works fine but I'm having trouble trying to bind a key to open the disguise menu to disguise as my own team. I have written bind "n" "slot4; disguiseteam" and it just opens the disguise menu to the enemy team. Is "disguiseteam" the wrong command to change what team I am disguising as? I have inserted my spy.cfg below for reference.

exec reset.cfg
bind "1" "disguise 1 -2"
bind "2" "disguise 3 -1"
bind "3" "disguise 7 -1"
bind "4" "disguise 4 -1"
bind "5" "disguise 6 -1"
bind "6" "disguise 9 -1"
bind "mwheelup" "slot1"
bind "mwheeldown" "slot3"
bind "q" "slot2"
bind "mouse3" "disguise 8 -2"
bind "mouse4" "disguise 5 -1"
bind "mouse5" "disguise 2 -1"
bind "r" "disguise 1 -1"
bind "t" "disguise 8 -1"
bind "n" "slot4; disguiseteam"
bind "b" "lastdisguise"

Cheers in advance :)


r/Tf2Scripts • • Sep 14 '24

Script My 9in1 class inspired insult, super chat script.

5 Upvotes

I missed the old days of people having a chat bind for when they get a kill. Anyone remember "Meatshot"?
So I made one
When I decided to make one initially, it was just for soldier. It would cycle through 11 soldier inspired insults on the same key, T
During my testing, another gamer said "I wonder what he says when he dies", and so I decided to make a set of death lines, bound on the right alt key.
I then wondered if I could make a set of lines for engineer but also have those on T
I haven't made the lines yet, which is the only thing missing from this script excluding the 'cycle-script' that goes with the lines, but I ended up preparing it for every class. There's an empty setup for Scout though which can be copy pasted and then edited a little.

I needed a way to switch between the classes, at first I thought to just write whatever class-set you wanted to use in console, 'scout', 'soldier' and so on, which would just switch it.
But that wasn't super user-friendly, so I added numpad keybinds, but I don't have a numpad, so it wasn't useful for me, and therefore I needed a third method, which ended up turning my x key into both voice_menu 2, but also the class changer, inspired by u/DeltaEks

Just a little bit of fun, I hope you liked the little script, and that some of you might find some fun in this as well.


r/Tf2Scripts • • Jul 13 '24

Answered Need help with a scout script

5 Upvotes

I need some help with a scout script, I only started messing around with scripting recently and I'm stuck. my goal is to bind m1 to swap to my scattergun and to keep shooting as long as I hold it down, then to bind m2 to my secondary and to do the same thing and m4 to my melee. I want to bind these buttons to automatically swap to a weapon and act as its firing button. Is this possible all I have now is a swap to my scattergun and secondary but I cannot fire them.


r/Tf2Scripts • • May 11 '24

Question Are variables in TF2 Scripting (and overall in source scripting) a thing?

5 Upvotes

I'm getting into creating TF2 scripts and I'm not new to programming things in source games (mainly in Garry's mod) but I can't figure out how to create variables local or not in .cfg files.

Usually it's something like "local var = 1" and i can just use that. Is it anything simillar in TF2?


r/Tf2Scripts • • May 04 '24

Script Demo Record - Toggle Script

5 Upvotes

Hey everyone, since P-REC is no longer supported in TF2 I figured I would share a demo recording script that I wrote. It's just a simple toggle bind using the ds demo feature which auto-names them using dates and timestamps. I have it bound to home for my own convenience, but you can change them to whatever you like. I also have a bookmark button bound to the end key. Hope y'all find this useful.

//Recording - Toggle Bind
bind home precord
alias precord "ds_record; play buttons\button17.wav; bind home stoprec"
alias stoprec "ds_stop; play buttons\button17.wav; bind home precord"
bind end ds_mark

Thanks for reading! Have a good day.


r/Tf2Scripts • • Aug 27 '23

Issue Issue with reload bind with vaccinator

5 Upvotes

When I'm playing medic have my reload key to be MWHEELDOWN for whenever I'm using vacc to switch resistances, that works fine then I thought what if I could make it so that it reloads twice for MWHEELUP, making it switch 2 resistances so that it feels more like a cycle, however, it seems to not be working "bind MWHEELUP "+reload; wait 5; +reload" Or "bind MWHEELUP "+reload; +reload" Whenever I introduce one of these commands, the MWHEELDOWN also just stops working, esentially I'm stuck using just one resistance Any help would be appreciated as of why this happens and if it's actually possible to reload twice like this for the cycle feeling I'm looking for