r/tf2scripthelp • u/Additional_Court_421 • Mar 27 '24
Question How do I bind specific buttons to crouch jump?
And not just space. I want to try different keys for crouch jumping, where can I find scripts for this?
r/tf2scripthelp • u/Additional_Court_421 • Mar 27 '24
And not just space. I want to try different keys for crouch jumping, where can I find scripts for this?
r/tf2scripthelp • u/Rakaksha • Mar 06 '24
Is it possible to make Phantom switching hat via scripting. Phantom switching is done by quickly switching between loadouts and allows to kind of quickswitch hats but they disappear when you die or touch resupply cabinet. so it allows us to equip two hats at a time during our lifespan. Getting it scripted will be a huge help to avoid the hassle of trying to quickly switch the loadouts to make it work.
r/tf2scripthelp • u/karimpai • Feb 17 '24
Context: I play on a rental computer for 2 hours at a time and all my binds get wiped out whenever i log out. I don't wanna copy and paste one line of binds each time and type in the console. Can i select everything at once and paste it?
r/tf2scripthelp • u/MillBridge101 • Jan 23 '24
So my finger cramps up easily, this is a problem because I like to play heavy and pyro. I was wondering if there is a bind available that would make it so I click M1 to fire minigun or flame thrower and click M1 again to stop firing?
r/tf2scripthelp • u/[deleted] • Jul 22 '23
As far as I can tell, in-game keybind changes save to config.cfg. Userconfig feels like an extra file.
r/tf2scripthelp • u/Soren7549 • May 27 '23
Here's my engineer.cfg: bind "MOUSE3" "destroy 2 0; build 2 0"bind "4" "destroy 0 0; build 0 0"bind "5" "destroy 1 0; build 1 0"bind "6" "destroy 1 1; build 1 1
However, whenever I play spy and try to open the disguise menu by pressing 4, the game thinks I'm trying to build a dispenser and so it doesn't do anything. Any way to fix this? I was just getting used to play engi with these binds
r/tf2scripthelp • u/[deleted] • Apr 18 '23
BINDS:
//Static crosshair
alias xhair_amby "tf_contract_progress_show 1; tf_contract_competitive_show 1; crosshair 0"
alias xhair_normal "tf_contract_progress_show 0; tf_contract_competitive_show 0; crosshair 1"
// Primary Attack
alias "+primatck" "+attack"
alias "-primatck" "-attack"// Secondary Attack
alias "+secatack" "+attack2"
alias "-secatack" "-attack2"// Melee Weapon
alias "+melwep" "slot3; +attack; xhair_normal"
alias "-melwep" "-attack"
//Binds
bind "mouse1" "+primatck; spec_next"
bind "mouse2" "+secatack; spec_prev"
bind "mouse4" "+melwep"
bind "mwheelup" "slot1; xhair_normal"
bind "mwheeldown" "slot2; xhair_amby"Whenever I play pyro (or any class that requires quick melee switching) and do the puff and sting with the degreasser and axetinguisher, pressing mouse4 would only pull out the melee and not also do an attack (had to press again for an attack to happen). This usually happen I'm close to the enemy, not sure if its a bug or my script is effed up
xhair is a command for an ambassador crosshair mod, it shouldnt effect anything
Edit: Pasted the wrong script
r/tf2scripthelp • u/ZhangRenWing • Apr 17 '23
So I am farming the shitty "win 140 games on x map' achievements, and mp_restartround 1 is used to speed up the process by skipping the captures, but I need to press it over and over again while waiting for each round to begin and end. Is there a way I can just afk it by letting the game run that command?
r/tf2scripthelp • u/furricanee37 • Mar 12 '23
Hi guys, I was trying engineer keybinds, and after a while I discovered that they are super helpfull. I am using these scripts but one of them isnt working, the eureka effect exit teleport. For some reason, I cant configure any keybind to exit teleport cfg for EE. I've tested shift, 9, \ just to see if game didnt see my keyboard button. also I can use shift, 9 and \ like walking or jumping. I wrote a little much can you help me? these are the scripts
/////////////////////////////////////////////
alias sentry "destroy 2; build 2";
alias dispenser "destroy 0; build 0";
alias entrance "destroy 1; build 1";
alias exit "destroy 3; build 3";
bind F1 "load_itempreset 0"
bind F2 "load_itempreset 1"
bind F3 "load_itempreset 2"
bind F4 "load_itempreset 3"
/////////////////////////////////////////////
bind MOUSE3 sentry;
bind CAPSLOCK dispenser;
bind 4 entrance;
bind 5 exit;
/////////////////////////////////////////////
bind "B" "slot3; eureka_teleport 0"
bind "SHIFT" "slot3; eureka_teleport 1"
/////////////////////////////////////////////
r/tf2scripthelp • u/Proxiehunter • Feb 28 '23
The script that I found while searching google for spy scripts is supposed to quickly disguise my spy using just three keys f1, f2, and f3 (I assume the intent is to hit f1, f2, or f3 to select attack defense or support class and then hit f1, f2, or f3 again to choose from within those groups) and to quickly drop the disguise when I hit t. Instead when I hit f1, f2, or f3 nothing at all happens.
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
// 3key quick disguise 'menu' //
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
// Binds // Note: To rebind the menu keys one must replace ALL f(#) instances with desired key //
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
alias "d_menu_r" "bind f1 d_menu_a;bind f2 d_menu_d; bind f3 d_menu_s"// Rebinds f(#)'s to respective menus after disguise is finished
alias "d_menu_a" "bind f1 scout; bind f2 soldier;bind f3 pyro" //Sets up attack disguise menu
alias "d_menu_d" "bind f1 demoman;bind f2 hwguy ;bind f3 engi" //Sets up defence disguise menu
alias "d_menu_s" "bind f1 medic; bind f2 sniper ;bind f3 spy " //Sets up support disguise menu
bind "f1" "d_menu_a" // Disguise menu 'Attack'
bind "f2" "d_menu_d" // Disguise menu 'Defence'
bind "f3" "d_menu_s" // Disguise menu 'Support'
bind "t" "drop_disg" // instantly removes disguise
bind "mouse3 +f_disg" //On hold disgues as friendly instead of enemy
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
// Bulk of Script //
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
alias "e_scout" "disguise 1 -1;d_menu_r"
alias "e_sniper" "disguise 2 -1;d_menu_r"
alias "e_soldier" "disguise 3 -1;d_menu_r"
alias "e_demoman" "disguise 4 -1;d_menu_r"
alias "e_medic" "disguise 5 -1;d_menu_r"
alias "e_hwguy" "disguise 6 -1;d_menu_r"
alias "e_pyro" "disguise 7 -1;d_menu_r"
alias "e_spy" "disguise 8 -1;d_menu_r"
alias "e_engi" "disguise 9 -1;d_menu_r"
alias "a_scout" "disguise 1 -2;d_menu_r"
alias "a_sniper" "disguise 2 -2;d_menu_r"
alias "a_soldier" "disguise 3 -2;d_menu_r"
alias "a_demoman" "disguise 4 -2;d_menu_r"
alias "a_medic" "disguise 5 -2;d_menu_r"
alias "a_hwguy" "disguise 6 -2;d_menu_r"
alias "a_pyro" "disguise 7 -2;d_menu_r"
alias "a_spy" "disguise 8 -2;d_menu_r"
alias "a_engi" "disguise 9 -2;d_menu_r"
alias "scout" "e_scout"
alias "sniper "e_sniper"
alias "soldier" "e_soldier"
alias "demoman" "e_demoman"
alias "medic" "e_medic"
alias "hwguy" "e_hwguy"
alias "pyro" "e_pyro"
alias "spy" "e_spy"
alias "engi" "e_engi"
alias "drop_disg" "disguise 8 -2;d_menu_r"
alias "+f_disg" "alias scout a_scout;alias sniper a_sniper;alias soldier a_soldier;alias demoman a_demoman;alias medic a_medic;alias hwguy a_hwguy;alias pyro a_pyro;alias spy a_spy;alias engi a_engi"
alias "-f_disg" "alias scout e_scout;alias sniper e_sniper;alias soldier e_soldier;alias demoman e_demoman;alias medic e_medic;alias hwguy e_hwguy;alias pyro e_pyro;alias spy e_spy;alias engi e_engi"
alias +backstab "slot3; +attack";Any help?
r/tf2scripthelp • u/SuperSteve19gr • Feb 16 '23
So i am using uncle dane script for engineer and everything is working fine but when i switch classes for example with the spy some binds from the eng.cfg are transfer to spy and i cant use the disguise kit(i am using mastercomfig and i have create a folder named override into the tf/cfg ).Does anyone knows how to fix it?
r/tf2scripthelp • u/HAAMIT_ • Jan 13 '23
I have a config for scout that changes the viewmodel_fov to 54 and tf_use_min_viewmodels to 1
and soldier with viewmodel_fov 75 and tf_use_min_viewmodels to 0 I made 2 of these scripts named scout.cfg and soldier.cfg in tf/cfg folder but when I enter the class it doesn't work.
r/tf2scripthelp • u/But_Enough_Talk • Aug 06 '22
I am using mastercomfig's High preset.
This is what I've tried so far:
Removing my HUD (flawhud, generated from TF2 HUD Manager)
Changing it's values with sv_cheats 1 enabled
Changing crosshairs - Default behaviour, stock crosshairs (crosshair 1 through 7 + default)
Adding custom crosshairs (texture files) and adjusting weapon scripts to get them functional
Removing all remaining files in Team Fortress 2\tf\custom
r/tf2scripthelp • u/PixelGhost25 • May 20 '22
Hello, all!
Longtime sound modder, here. For the longest time, a mystery I have not been able to solve is why class-specific "paincriticaldeath" sounds cannot be modified via the tf/custom folder. I finally went out of my way today to learn how to use the snd_show command in the console and the pathway seems to be as expected.
Forcing the game to play my custom pathway via the console gets it to play the sound I customized, but the game will still play the default during play. I'm trying to figure out how to search the pathway it's reading from but I haven't a clue. I'm not that savvy. I'd like to know where I can verify where the files are reading from in a way that can explain why the custom folder is not overriding these voice lines as they should.
r/tf2scripthelp • u/But_Enough_Talk • Apr 19 '22
Howdy. so I've been encountering a lot of mic spamming bots in casual that need to be quickly muted in order to not have my ears bleed.
I've created this small script that opens the escape menu and opens the old mute interface.
// Quick mute; open menu and legacy mute interface
alias "quickMute" "gameui_activate; gamemenucommand openplayerlistdialog"
bind F4 "quickMute"While this does work well, it opens the old mute menu that doesn't show how long a player has been connected to the server, making it possible to accidentally mute players that have been impersonated by bots.
My question is; what is the menu command, if it exists, to open the normal mute menu that's found in the escape (pause) menu?
Thanks in advance!
r/tf2scripthelp • u/arreyy • Oct 13 '21
Hello. My question is if i wanna put a command that would apply to all classes (Like overwrite the class cfgs), in what folder do i put it? Because i would like to avoid writing the same command 9 times in each of the class cfgs.
r/tf2scripthelp • u/Aardvark_Jolly • Oct 04 '21
quick rundown.
it has a crouch jump script and a part of the wooden sleevelet's spy script (i use mastercomfig) dunno if it has anything to do with it.
edit: its in C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\cfg
this is the script:
bind space "+cjump"
alias +cjump "+jump;+duck"
alias -cjump "-jump;checkc"
bind shift "+normc"
alias +normc "+duck;alias checkc +duck"
alias -normc "-duck;alias checkc -duck"
alias checkc "-duck"
// Primary Attack
alias "+primatck" "+attack"
alias "-primatck" "-attack"
// Secondary Attack
alias "+secatack" "+attack2"
alias "-secatack" "-attack2"
// Sapper
alias "+sapper" "slot2;+attack"
alias "-sapper" "lastinv;-attack"
// Quick Disguises
alias "checkmedigun" "slot2; disguise 5 -1"
alias "friendlyscout" "disguise 1 -2"
alias "enemyscout" "disguise 1 -1"
alias "undisguise" "disguise 8 -2"
// Feel free to change the keys these are bound to!
bind "mouse1" "+primatck"
bind "mouse2" "+secatack"
bind "mouse3" "lastinv"
bind "mouse5" "+sapper"
bind "mwheelup" "slot1"
bind "mwheeldown" "slot3"
bind "q" "undisguise"
bind "5" "checkmedigun"
bind "6" "friendlyscout"
bind "mouse4" "enemyscout"r/tf2scripthelp • u/Ecreeper • Oct 02 '21
I'm pretty new to scripting and I'm trying to make a bind that will destroy a sentry build a new one place it and repeat until the button is pressed again I'm using "destroy 2;build 2;+attack" but I don't know how to loop it
r/tf2scripthelp • u/[deleted] • Sep 11 '21
keep in mind: I am very new to messing with files and in general pretty stupid.
so, I'm trying to make class specific binds and such but whenever I stuff the medic.cfg file into my cfg files they just dont work... anybody know why?
r/tf2scripthelp • u/Nottkorn • Aug 12 '21
Here's the script in question:
//Medigun Switch Binds
//the bind to say you have just used your charge
bind "6" chargeused
//the bind to say that you have 50% charge
bind "7" chargeathalf
//the bind to signify you are ready with a 100% charge
bind "8" chargeready
//uber used
bind "Mouse 2" "+attack 2; chargeused"
bind "KP_END" "load_itempreset 0; say_team >>>SWITCHING TO STOCK UBER<<<; uberenabled"
bind "KP_DOWNARROW" "load_itempreset 1; say_team >>>SWITCHING TO QUICK-FIX<<<; qfixenabled"
bind "KP_PGDN" "load_itempreset 2; say_team >>>SWITCHING TO VAC<<<; vacenabled"
bind "KP_LEFTARROW" "load_itempreset 3; say_team >>>SWITCHING TO KRITZ<<<; kritzenabled"
alias ChargeReady ""
alias ChargeAtHalf ""
alias ChargeUsed ""
alias FixChargeReady "say_team >>>*QUICK-FIX UBER READY, 100% CHARGE*<<<"
alias FixChargeAtHalf "say_team >>>*QUICK-FIX CHARGE AT 50%*<<<"
alias FixChargeUsed "say_team >>>*DEPLOYING QUICK-FIX CHARGE NOW*<<<"
alias UberChargeReady "say_team >>>*STOCK UBER READY, 100% CHARGE*<<<"
alias UberChargeAtHalf "say_team >>>*STOCK UBER CHARGE AT 50%*<<<"
alias UberChargeUsed "say_team >>>*DEPLOYING STOCK UBER NOW*<<<"
alias KritzChargeReady "say_team >>>*KRITZ READY, 100% CHARGE*<<<"
alias KritzChargeAtHalf "say_team >>>*KRITZ CHARGE AT 50%*<<<"
alias KritzChargeUsed "say_team >>>*DEPLOYING KRITZ NOW*<<<"
alias VacChargeReady "say_team >>>*ALL VAC BUBBLES READY, 100% CHARGE*<<<"
alias VacChargeAtHalf "say_team >>>*ONE VAC BUBBLE READY*<<<"
alias VacChargeUsed "say_team >>>*DEPLOYING VAC NOW*<<<"
alias uberenabled "alias ChargeReady UberChargeReady; alias ChargeAtHalf UberChargeAtHalf; alias ChargeUsed UberChargeUsed"
alias kritzenabled "alias ChargeReady KritzChargeReady; alias ChargeAtHalf KritzChargeAtHalf; alias ChargeUsed KritzChargeUsed"
alias qfixenabled "alias ChargeReady FixChargeReady; alias ChargeAtHalf FixChargeAtHalf; alias ChargeUsed FixChargeUsed"
alias vacenabled "alias ChargeReady VacChargeReady; alias ChargeAtHalf VacChargeAtHalf; alias ChargeUsed VacChargeUsed"
It's my version of a simple pub medic callout. Since I'm not the most proficient with scripting in general, it's probably not concise as it could be. The intention is more or less to inform my team of uber status and automatically inform them when I make the call to switch mediguns. The part that works fine is the medigun switch announcement, the rest are technically broken. If someone could advise me on a way to fix/concise this script, it would be much appreciated!
r/tf2scripthelp • u/kfirar • Aug 09 '21
Hello there, i have been reading about tf2 scrpting and i want to create a disguise script for myself.
I want to make it so that if i press a specific key and a number it will disguise as the class of that number, but i don't know how to make an action happen only when you press a combination of keys.
Also i'm not talking about making a key do a series of actions (which i understand how to do), nor am i talking about making a key toggle what another key does (which i know up to the part where there is a +/- sign in front of the alias that is used, that is something that i don't know).
Any help would be appreciated!
Edit: if what i read was true, then the thing about an alias having +/- in its name isn't for cycling on and off, but instead its what i'm looking for, though i still would appreciate somebody explaining what the +/- in front of an alias does.
r/tf2scripthelp • u/[deleted] • Mar 08 '21
Would it be possible to replicate some of the features of Pazer's bot detector using scripts? I would just want to send a message in party chat with someone's name, and whether I've flagged them as sus or cheating. I wouldn't need a way of flagging them in game.
Or would this require more logic than possible in scripting? I feel like Pazer's bot dector would be this if it were possible so I'm not holding out much hope.
r/tf2scripthelp • u/Klopsse • Feb 17 '21
(I use mastercomfig low but I have all my cfgs including my class cfgs in /cfg/user)
I just installed an ambassador static script that makes it so when shooting my ambassador it doesn't extend. I like it but when I'm using it it overrides my sensitivity script for weapon slots.
This is what my spy.cfg looks like
Bind "1" "slot1"
Bind "2" "slot2"
Bind "3" "slot3"
bind "1" "slot1; sensitivity 2.4"
bind "2" "slot2; sensitivity 3.6"
bind "3" "slot3; sensitivity 3.6"
cl_autoreload 1
tf_use_min_viewmodels 0
viewmodel_fov 90
bind "shift" "disguise 8 -2"
bind 1 "slot1; xhair_amby"
r/tf2scripthelp • u/talktailshep • Feb 05 '21
i dont know if this question fits here but i couldnt find a better place