r/Tf2Scripts • u/visconty • Feb 02 '19
Question mini mode for different slots?
i'm trying to get mini mode for my secondary and tertiary slot but not for my primary. any ideas?
r/Tf2Scripts • u/visconty • Feb 02 '19
i'm trying to get mini mode for my secondary and tertiary slot but not for my primary. any ideas?
r/Tf2Scripts • u/Two-thirdsBucky • Feb 01 '19
crosshairs -> https://imgur.com/a/om7xt79
r/Tf2Scripts • u/Kachajal • Jan 20 '19
Does anyone know of a script or a command to change the casual map settings? I want to have a couple preset choices.
I expect that if such commands exist, they'd be unlisted just like extendfreeze and mapvote commands, and I have no idea how to find those. Here's hoping one of you does.
Thanks in advance!
r/Tf2Scripts • u/decitronal • Dec 20 '18
I want these voice commands and team messages to be bound to keys instead of having to bring up the voice menu and the team chat
The 5 other messages take effect if shift is being held down. The numbers on the left are the alphanumerical keys they are bound to.
1 = medic
2 = thanks
3 = go go go
4 = incoming
5 = spy
While holding shift
1 = sentry ahead
2 = team - TEAM ALERT: Sniper ahead!
3 = team - TEAM ALERT: Demoman traps around!
4 = team - TEAM ALERT: Enemy has Uber!
5 = team - TEAM ALERT: INCOMING W+M1 PYROTeam alerts should say as displayed in this post
r/Tf2Scripts • u/Reunn • Dec 05 '18
Ok so this might be fairly contrived and not even possible, it's 2am as of writing so I may be missing something obvious.
So I basically want this result;
1 - 9 is disguise as enemy class.
SHIFT + 1 - 9 is disguise as friendly class
Mwheel up is swap to revolver
Mwheel down is swap to knife
MOUSE3 is hold out sapper and +attack whilst I hold the button and then -attack and switch to last weapon when I release.
These are all fine, I'm also wanting when I shift + Mwheelup it swaps to primary and lastdisguises (to change the disguise weapon I'm holding) and then swaps to previous weapon, same for Mwheeldown and M3.
I managed to get this working for normal key presses no problem but I'm assuming the mousewheel doesn't register keydown and keyup inputs and is a single input so the method I am doing this with is kinda broken.
This is what I have so far; It works if I have my primary/melee out and want to use a primary/melee or secondary weapon disguise but it loops swapping disguises and weapons when going from primary to melee or melee to primary as my previous weapon.
////// SPY //////
//////////////////////////////////
//////////////////////////////////
//Spy Disguise
//////////////////////////////////
alias "CurrentWep"
alias "+DSlot1" "slot1; lastdisguise"
alias "+DSlot2" "slot2; lastdisguise"
alias "+DSlot3" "slot3; lastdisguise"
alias "-DSlot1" "CurrentWep"
alias "-DSlot2" "CurrentWep"
alias "-DSlot3" "CurrentWep"
alias "DScout" "disguise 1 -1"
alias "DSoldier" "disguise 3 -1"
alias "DPyro" "disguise 7 -1"
alias "DDemoman" "disguise 4 -1"
alias "DHeavy" "disguise 6 -1"
alias "DEngineer" "disguise 9 -1"
alias "DMedic" "disguise 5 -1"
alias "DSniper" "disguise 2 -1"
alias "DSpy" "disguise 8 -1"
alias "TDScout" "disguise 1 -2"
alias "TDSoldier" "disguise 3 -2"
alias "TDPyro" "disguise 7 -2"
alias "TDDemoman" "disguise 4 -2"
alias "TDHeavy" "disguise 6 -2"
alias "TDEngineer" "disguise 9 -2"
alias "TDMedic" "disguise 5 -2"
alias "TDSniper" "disguise 2 -2"
alias "TDSpy" "disguise 8 -2"
alias "DDrop" "disguise 8 -2"
alias "+DTeam" "bind MWHEELUP +DSlot1; bind MOUSE3 +DSlot2; bind MWHEELDOWN +DSlot3; bind 1 TDScout; bind 2 TDSoldier; bind 3 TDPyro; bind 4 TDDemoman; bind 5 TDHeavy; bind 6 TDEngineer; bind 7 TDMedic; bind 8 TDSniper; bind 9 TDSpy"
alias "-DTeam" "bind MWHEELUP SpyPrimary; bind MOUSE3 +SpySapper; bind MWHEELDOWN SpyMelee; bind 1 DScout; bind 2 DSoldier; bind 3 DPyro; bind 4 DDemoman; bind 5 DHeavy; bind 6 DEngineer; bind 7 DMedic; bind 8 DSniper; bind 9 DSpy"
//////////////////////////////////
//Spy Weapon Swap
//////////////////////////////////
alias "SpyPrimary" "slot1; alias CurrentWep slot1"
alias "+SpySapper" "slot2; +attack"
alias "-SpySapper" "slot2; -attack"
alias "SpyMelee" "slot3; alias CurrentWep slot3"
alias "+primatck" "+attack"
alias "-primatck" "-attack"
alias "+secatack" "+attack2"
alias "-secatack" "-attack2"
bind "MOUSE1" "+primatck"
bind "MOUSE2" "+secatack"
bind "MOUSE3" "+SpySapper"
bind "MWHEELUP" "SpyPrimary"
bind "MWHEELDOWN" "SpyMelee"
bind "SHIFT" "+DTeam"
bind "1" "DScout"
bind "2" "DSoldier"
bind "3" "DPyro"
bind "4" "DDemoman"
bind "5" "DHeavy"
bind "6" "DEngineer"
bind "7" "DMedic"
bind "8" "DSniper"
bind "9" "DSpy" r/Tf2Scripts • u/[deleted] • Nov 08 '18
In my cfg>gfx.cgf it says I can put my preferred graphical settings, how do I put these specfic settings in there; Model detail - High, texture detail - high, shader detail - low, water detail - simple reflections, shadow detail - low, color correction disabled, anti-aliasing mode - none, filtering mode - bilinear, wait for vertical sync - disabled, motion blur - disabled, high dynamic range - none.
r/Tf2Scripts • u/RexTerm • Oct 27 '18
No idea if its associated with scripting or huds or just mods in general. I tried looking for it but came home empty ended.
(Its the cool numbers and colours at the bottom left when a youtuber presses tab)
r/Tf2Scripts • u/bv94111 • Oct 25 '18
this script makes you reload faster , dose not work with rocket launcher.
SCRIPT:
bind mouse1 "atk"
alias "atk" "+attack;wait 140;+inspect;-attack"
echo SATK has loaded!
bind e "atk2"
alias "atk2" "slot 2;+attack;wait 160;-attack
r/Tf2Scripts • u/[deleted] • Apr 10 '13
I would like a script that on a right click will switch from my current weapon pop uber and say in chat "Uber popped" Or If I press 4 will fake uber. Thank you in advanced.
r/Tf2Scripts • u/Kered13 • Mar 28 '13
(Even better Mouse version here)
Last year I created a charge turning script for Windows. I realized about a week ago that Steam Linux supported gamepads, so I set about to create a version of this script for Linux.
For those who don't already know: By using a gamepad (usually a 360 controller) it is possible to turn while charging far more than you normally can with either the mouse or with scripts based on +left and +right. Here is a video of what I'm talking about. With the script I wrote for Windows, this is possible.
Surprise surpise, the Linux version requires a bit more work than the Windows version. But if you're using Linux you should have the technical know-how to get this to work. There are two parts: A python script that maps keys to gamepad inputs, and the TF2 script.
First, you'll need to install the evdev python library.
pip install evdevNow download the python script unzip it some place convenient. Link
Next, you need the TF2 script, here. This is the same as the Windows version. You can put this in your demoman.cfg, or you can put it in it's own file (I call mine demoknight.cfg) and bind a button to exec it.
Finally, you need to create empty 360controller.cfg and 360controller-linux.cfg files in your cfg directory. For some incomprehensible reason, on Linux (but not on Windows) these files will be executed when you start using a joystick, and by default they contain undesirable settings.
The script uses simple python files to configure mappings from keyboard keys to virtual gamepad inputs. The format should be fairly self-explanatory. I've included two such configs in the zip: One that maps every button on the virtual gamepad (config_full.py), and one that only maps the two you need for charge turning (config.py).
First we need Steam to recognize the controller. Run the script like so:
sudo ./virtual_joystick.py -c config_fullNow start Big Picture mode in Steam. Go to Settings > Controller. It should show "Virtual controller". Click edit controls. config_full has the 11 buttons mapped to 1 through 0 and - on the number row, left stick to WASD, right stick to IJKL, and the dpad to the arrow keys. Fill in all the slots and Steam will fully recognize the virtual controller.
From now on you don't need config_full. Since the turn script only needs two keys, A and D, I use config.py, which only maps these keys. But feel free to use whichever you want, or to create your own config.
Simply run:
sudo ./virtual_joystick.py -c configTF2 will remember the controller, so you should never have to reconfigure it. The TF2 script is designed to enable the joystick while holding mouse2, so hold mouse2 while charging and then your A and D keys will turn you. You can adjust the turn sensitivity by changing joy_yawsensitivity in the TF2 script.
This is Linux, so no two people will have the exact same setup. The python script looks for your keyboard in /dev/input/event*, it should find the right device but if not you can manually specify it with the -d flag like this:
sudo ./virtual_joystick.py -c config -d /dev/input/event2The python script is fairly simple as well, so feel free to make any modifications necessary.
r/Tf2Scripts • u/Blackwubble • Mar 19 '13
So I've got a mouse with 3 buttons on it, but until now it's just been a handy holder for my ring finger.
I'm thinking it would switch to my Flare Gun, but not fire immediately (not that good with it yet) And when I release the button, switch back to my Degreaser. Also, Have 'Q' switch between my melee and degreaser.
Bonus points if you can tell me how to disable the scroll wheel-weapon switch function. It's a nasty habit, and one that I'm trying to kill.
For the spy: Same idea, third mouse switches to revolver, resets back to the knife when released, 'Q' brings up sapper, but holds it there until 'Q' is pressed again. And if you could, since I don't know how to do any of this, set 'R' to do what is in this post, that'd be awesome.
r/Tf2Scripts • u/Guymcme1337 • Feb 27 '13
Hey there guys, i'm in need of a script. I would like a key to bind "P" to making heavy switch to sandvich and make it drop. Thanks in advance!
r/Tf2Scripts • u/A_Drunked_Monkey • Jan 22 '13
Any good scripts for these laying around here?
r/Tf2Scripts • u/TimePath • Jan 21 '13
Since a few of you have asked me to do so, I am making all of my config files publicly available. If you've ever wondered what it's like to play using my configs, now is your chance - requires a 5 button mouse unless you re-bind things. Make sure to backup your entire /tf/cfg/ directory, this pack makes many changes. Note that my sensitivity is also included, which you may want to change in /tf/cfg/timepath/conf.cfg.
tl;dr: If it breaks something, it's your problem - don't use it if you don't know how to fix it
See also: clovervidia's config
List of features:
Each mouse button attacks with a different weapon
M1 = secondary
M2 = primary
M3 = zoom on some weapons
M4/M5 = melee
M5/M4 = +attack2
Settings can be changed per-weapon
Some weapons have different 'attack modes'
The detonator explodes on release, the manmelter is always extinguishing
The medigun stops healing when holding the attack button, and heals when it is not pressed
Some weapons have special hold functions
The spy revolvers, sniper secondaries, and a few others have zoom
Disguises (Holding ctrl changes team):
R = Pyro
T = Spy
Y = Sniper
U = Demoman
B = Engineer
Buildings (Holding ctrl demolishes):
R = Sentry
B = Dispenser
T = Teleporter entrance
Y = Teleporter exit
The numpad changes classes
The 0 key is random
The Delete key is explode - be careful when using..
Team chat = enter
The - key disables auto-reload (for the primary weapon only)
the + key re-enables it
And many more undocumented features
r/Tf2Scripts • u/-Jerry- • Dec 20 '12
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 • u/clovervidia • Nov 13 '12
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 • u/[deleted] • Sep 27 '12
I pretty much only want no viewmodels on the primaries of all my classes. How do I go about this? Also is it possible to make my quick-switch cycle through my weapons with my desired viewmodel choice? I currently have mouse up as my primary, mouse down as my secondary and mouse 3 as melee if that helps.
r/Tf2Scripts • u/Kushamo • Aug 26 '12
Backstory: Earlier today, I was playing with my new high five taunt (best item evar), and after a while of using it obsessively I died while I was typing. I thought about how before I was going into the enemy base and offering high fives (with little success, but enough to be noticeable). Bind: Would it be possible to bind it so when I begin to type, I use the action slot item? I tried:
alias "chatfive" "+use_action_slot_item;say"
bind enter chatfive
but it only used the item, and I couldn't type. I suspect that the say command is more intended for preset messages (though I forgot to see if giving it a message to say would work), but other than that I have no idea why it didn't work. I'd greatly appreciate a solution, thanks in advance!
(Edit: I typed bind enter chatfive twice; removed top one)
Edit II: I worked on it a little more, and came up with this:
alias "chatfive" "+use_action_slot_item; bind w "+fivechat"; bind enter say
alias "+fivechat" "-use_action_slot_item; bind enter "chatfive"; +forward
alias "-fivechat" "-forward; bind w +forward"
bind enter "chatfive"
It solves the preset message/alias problem (using the say command in aliases gives preset messages instead of opening the chat box like it does when used without an alias), by binding enter to say after, and then sets w to cancel it. You have to hit enter twice, which is a bit annoying, but it's nothing detrimental
(Hey, another edit! This may or may not be awkward for MvM, where the action slot item is probably gonna be the canteen, but unless -use_action_slot_item cancels the canteen I think it should be fine)
r/Tf2Scripts • u/DeltaEks • Mar 03 '12
r/Tf2Scripts • u/[deleted] • Feb 24 '12
Here I am again! This script, that I just made, is an useful script for spy that allows you to "scroll" trough enemy/ally disguises without changing weapon!
All you have to do is holding a key and then scrolling with the mousewheel. There are two different keys for team disguises and enemy disguises. Here's the aliases:
//Cycle Disguises
alias scout "disguise 1 -1; bind MWHEELUP soldier; bind MWHEELDOWN spy"
alias soldier "disguise 3 -1; bind MWHEELUP pyro; bind MWHEELDOWN scout"
alias pyro "disguise 7 -1; bind MWHEELUP demo; bind MWHEELDOWN soldier"
alias demo "disguise 4 -1; bind MWHEELUP heavy; bind MWHEELDOWN pyro"
alias heavy "disguise 6 -1; bind MWHEELUP engi; bind MWHEELDOWN demo"
alias engi "disguise 9 -1; bind MWHEELUP medic; bind MWHEELDOWN heavy"
alias medic "disguise 5 -1; bind MWHEELUP sniper; bind MWHEELDOWN engi"
alias sniper "disguise 2 -1; bind MWHEELUP spy; bind MWHEELDOWN medic"
alias spy "disguise 8 -1; bind MWHEELUP scout; bind MWHEELDOWN sniper"
alias Tscout "disguise 1 -2; bind MWHEELUP Tsoldier; bind MWHEELDOWN Tspy"
alias Tsoldier "disguise 3 -2; bind MWHEELUP Tpyro; bind MWHEELDOWN Tscout"
alias Tpyro "disguise 7 -2; bind MWHEELUP Tdemo; bind MWHEELDOWN Tsoldier"
alias Tdemo "disguise 4 -2; bind MWHEELUP Theavy; bind MWHEELDOWN Tpyro"
alias Theavy "disguise 6 -2; bind MWHEELUP Tengi; bind MWHEELDOWN Tdemo"
alias Tengi "disguise 9 -2; bind MWHEELUP Tmedic; bind MWHEELDOWN Theavy"
alias Tmedic "disguise 5 -2; bind MWHEELUP Tsniper; bind MWHEELDOWN Tengi"
alias Tsniper "disguise 2 -2; bind MWHEELUP Tspy; bind MWHEELDOWN Tmedic"
alias Tspy "disguise 8 -2; bind MWHEELUP Tscout; bind MWHEELDOWN Tsniper"
alias MWUP "invprev; -attack" // The -attack is because of another script of mine, if you don't use the Stab 'n' sap, you can remove it.
alias MWDN "invnext; -attack"
alias +cycledisguises "bind MWHEELUP scout; bind MWHEELDOWN spy"
alias -cycledisguises "bind MWHEELUP MWUP; bind MWHEELDOWN MWDN"
alias +cycleteamdisguises "bind MWHEELUP Tscout; bind MWHEELDOWN Tspy"
alias -cycleteamdisguises "bind MWHEELUP MWUP; bind MWHEELDOWN MWDN"And here's the binds:
bind alt +cycledisguises
bind capslock +cycleteamdisguisesHope you like it :P
r/Tf2Scripts • u/theGarbs • Jan 25 '25
I've been running a Null-cancelling movement script for about 10 years and didnt think about it until today when I was tidying up my autoexec. Does it even do anything for me?
r/Tf2Scripts • u/--emmie • Aug 06 '24
i haven't seen this anywhere, and i get annoyed when i have to rewrite this every time i reinstall my OS...
it's the normal scrolling script that avoids slot4/slot5 for spy/engie, but i added support for kb 1-3 to switch to slots 1-3, as well as a "previous weapon" button (default: q):
//Slot 1
alias num1_prev3 "slot1; bind MWHEELUP num3_prev1; bind MWHEELDOWN num2_prev1; bind q num3_prev1; bind 1; bind 2 num2_prev1; bind 3 num3_prev1"
alias num1_prev2 "slot1; bind MWHEELUP num3_prev1; bind MWHEELDOWN num2_prev1; bind q num2_prev1; bind 1; bind 2 num2_prev1; bind 3 num3_prev1"
//Slot 2
alias num2_prev1 "slot2; bind MWHEELUP num1_prev2; bind MWHEELDOWN num3_prev2; bind q num1_prev2; bind 1 num1_prev2; bind 2; bind 3 num3_prev2"
alias num2_prev3 "slot2; bind MWHEELUP num1_prev2; bind MWHEELDOWN num3_prev2; bind q num3_prev2; bind 1 num1_prev2; bind 2; bind 3 num3_prev2"
//Slot 3
alias num3_prev2 "slot3; bind MWHEELUP num2_prev3; bind MWHEELDOWN num1_prev3; bind q num2_prev3; bind 1 num1_prev3; bind 2 num2_prev3; bind 3"
alias num3_prev1 "slot3; bind MWHEELUP num2_prev3; bind MWHEELDOWN num1_prev3; bind q num1_prev3; bind 1 num1_prev3; bind 2 num2_prev3; bind 3"
num3_prev1r/Tf2Scripts • u/TrollerLama28 • Aug 23 '22
I wanted to bind the f13-f24 keys to individiual taunts but when I try that the game says:
"f13" isn't a valid key
This does work for the f1-f12 keys but most of those are already in use for me wich is why I wanted to use the extra function keys.
Does anyone know a fix or a workaround?
Using masterconfig in case that info is needed