r/Tf2Scripts • • Aug 05 '20

Meta We need a sticky telling people to state if they've installed Mastercomfig and carrying notes related to that.

Thumbnail self.tf2scripthelp
9 Upvotes

r/Tf2Scripts • • Jul 12 '20

Wrong Section how do i get the ubercharge percentage on my hud to go away when i'm using the vaccinator

9 Upvotes

I know it has something to do with hudmediccharge.res but that's about as far as i've gotten.


r/Tf2Scripts • • Jun 25 '20

Answered Last Inventory and Quickswitch

9 Upvotes

If I use this quickswitch script, can I still use "q" to close the taunt menu, disguise menu or the PDAs.

alias weapon1 	    "slot1; r_drawviewmodel 0; alias quickswitch weapon3" 
alias weapon2 	    "slot2; r_drawviewmodel 1; alias quickswitch weapon1" 
alias weapon3 	    "slot3: r_drawviewmodel 1; alias quickswitch weapon1" 
alias quickswitch   "weapon1" 
bind 1 		    "weapon1" 
bind 2 		    "weapon2" 
bind 3 		    "weapon3" 
bind q 		    "quickswitch"

r/Tf2Scripts • • Jun 13 '20

Answered How can i prevent servers from checking if i have enabled HTML MOTD?

9 Upvotes

I have disabled HTML MOTD. Some random servers keep kicking me demanding to enable it (like this: https://i.imgur.com/lRptVK0.png).

Are there some binds or scripts preventing that?


r/Tf2Scripts • • May 19 '20

Discussion What are some useful but unpopular scripts you use?

9 Upvotes

r/Tf2Scripts • • Apr 01 '20

Resolved Help to get Facial Animations with Mastercomfig

9 Upvotes

Hi everyone, I need help to enable facial animations.

I use Mastercomfig, but I can't find a way to enable facial animations.

I put this in my user/autoexec.cfg

echo "enable_faceAnimation"

blink_duration 0.2
mat_mipmaptextures 0
mat_picmip 2
r_eyegloss 1
r_eyemove 1
r_eyes 1
r_eyeshift_x 0
r_eyeshift_y 0
r_eyeshift_z 0
r_eyesize 0
r_flex 1
r_lod 2
r_rootlod 1
r_teeth 1

"enable_faceAnimation" is shown in console, but facial animations still not work.

I followed this instructions. Is the order important ? What command is missing ?

Thank by advance

EDIT : My Mastercomfig was not up to date, and now there are modules
The solution was to set lod and characters modules higher
Thanks To Mr Mastercomfig on the discord. Have a good day ;-)


r/Tf2Scripts • • Mar 18 '20

Resolved Need help fixing old Engineer script

9 Upvotes

I decided to get back into TF2 after a long hiatus and an old script has stopped working.

/////////////////////////////////////////////////////
// SolarLight's Eureka Effect Fast Teleport Script //
/////////////////////////////////////////////////////
bind b +teleport
alias +teleport slot3
alias -teleport Teleport_To_Spawn
alias Teleport_To_Spawn "eureka_teleport"
alias Teleport_To_Exit "eureka_teleport 1"

bind shift +toggleTeleport
alias +toggleTeleport "alias -teleport Teleport_To_Exit"
alias -toggleTeleport "alias -teleport Teleport_To_Spawn"
/////////////////////////////////////////////////////////

I checked the console and the game doesn't recognise "+teleport" "-teleport" and "+toggleTeleport"

What can I do to make this work properly once more?


r/Tf2Scripts • • Feb 16 '20

Script Spy Radiates Smoke - Script

9 Upvotes

I wrote a script on three config files that makes the spy disguise and undisguise at a rapid rate. It's toggleable but you have to edit the config files to choose your bind key.

You won't be able to see the smoke yourself but it definitely works, you can ask anyone in a server, although they might just think they're seeing a client side bug. It works well with "The Observer" spies.

Here's the download link: https://www.mediafire.com/file/rtor0pdpae4n583/Smoke_Script.zip/file


r/Tf2Scripts • • Jun 28 '19

Resolved How do you bind both a voice command and a text?

9 Upvotes

I want to make a bind which says something like ‘ *** ENEMY PUSHING! HELP DEFEND! ***” while saying HELP!. I can only bind one and I’m stupid so please can someone help?


r/Tf2Scripts • • Apr 15 '19

Script Engineer QuickBuild AND mask

9 Upvotes

Looking around, I could only find scripts to either quickbuild or mask your building, so I sat down about a year ago and combined them.

// --------------------------
// Quickbuild and mask script
// --------------------------
alias sentry "destroy 2; build 2";
alias dispenser "destroy 0; build 0";
alias entrance "destroy 1; build 1";
alias exit "destroy 3; build 3";

alias +bmask "+attack;voicecycle"
alias -bmask "-attack;bind mouse1 +attack"

// cycles between three voice commands
alias voicecycle "voice1"
alias voice1 "voicemenu 2 6;alias voicecycle voice2"
alias voice2 "voicemenu 2 2;alias voicecycle voice3"
alias voice3 "voicemenu 2 4;alias voicecycle voice1"

// bind your keys
bind <key> "sentry ; bind mouse1 +bmask" // for sentry
bind <key> "dispenser ; bind mouse1 +bmask" // for dispenser
bind <key> "entrance ; bind mouse1 +bmask" // for tele entrance
bind <key> "exit ; bind mouse1 +bmask" // for tele exit

r/Tf2Scripts • • Feb 05 '17

Script The CLIENT-SIDE MASTERSCRIPT (Class/Weapon-Specific Script Management, Sensitivities, Viewmodels, Crosshairs, AND MORE!)

9 Upvotes

ARE YOU TIRED OF THE SAME OLD CROSSHAIRS EVERY TIME?
DO YOU WANT TO HAVE DIFFERENT SENSITIVITIES ON DIFFERENT WEAPONS?
ARE YOUR SCRIPTS BEING STUPID AND CONFLICTING IN YOUR CUSTOM FOLDER?
WELL DO I HAVE A SCRIPT FOR YOU!
i don't know how to advertise stuff

Anyway, this is a script that manages as much of the client-side stuff I could think of, save for HUDs. It controls class-specific and weapon-specific scripts, weapon-specific sensitivities, viewmodel fov/visibility, and crosshair size/color/selection.
Click here to download. Copy the folder inside into your /tf/custom/ folder and MAKE SURE TO READ THROUGH THE FIRST TWO SECTIONS OF CSMASTER BEFORE PLAYING. You need to set your default sensitivity and create the reset script. (Details are within the script itself.)

If it turns out I've been an idiot and the script STILL doesn't work after a week of testing, then just shoot me an email to file a bug report.

I hope you have fun using this, and make sure to upvote and share if you enjoyed!

Changelog:
v1.1
-Fixed Demoman's melee
v1.2
-Fixed Engineer's melee
v1.3
-Fixed Main Scripts (I'm dumb and forgot to reference them anywhere)


r/Tf2Scripts • • Nov 09 '13

Script Commonly requested medic scripts

9 Upvotes

hey everyone! this is a re-work of my medic.cfg to which i tacked on some medic scripts that people often want and edited for readability n such. included is radar, auto-pop, reverse healing, an uber masking key, a loadout switcher that notifies your team when you switch loadouts / mediguns; edits your team uber message to reflect your current medigun; and toggles between 2 states for 4 keybinds - the keys use the logic of /u/Kairu927 's vaccinator no-wait toggle(with my own slight edit) for vaccinator mode and voicemenu commands (easily editable) for other modes. any questions, feel free to ask.

here's the script: http://pastebin.com/FZQB6Ckx


r/Tf2Scripts • • Jun 05 '13

Script I need something to do. Let me and some friends write scripts for you!

9 Upvotes

Hello there, /r/tf2scripts! I've decided doing another script-request thread would be fun.

Myself, /u/clovervidia, /u/wingsfan24, /u/HiFiBoombox, /u/TimePath, and /u/ZoidbergWill will be fulfilling requests to the best of our abilities.

Before you request, please check if it works as a script here. In addition, more complicated scripts are more fun! Simple button remappings are things that at least I would be totally down for doing, but I know at least a few of us prefer doing things we haven't seen before. Give us your craziest ideas!

In case you're curious, /u/TimePath did one of these a while ago.

Fire away!


r/Tf2Scripts • • Jun 04 '13

Meta [PSA] Formatting your Code (Reddit Enhancement Suite)

9 Upvotes

Hi /r/tf2scripts, this is just a short PSA about formatting your code within your posts. As you may have noticed, when you just paste raw code in, reddit formats it in an awkward way. Reddit only interprets text as code if there are 4 spaces at the beginning of every line. For example, when you paste code in without formatting it, it will come out like this:

alias +action "+jump;+right" alias -action "-jump;-right" bind tab "+action" bind enter "-action"

So, you could manually add 4 spaces to the beginning of every line (obviously a waste of time). However, when you use RES's "code" button, it will put 4 spaces in front of every line that you highlight, and it will format the previous code like this:

alias +action "+jump;+right" 
alias -action "-jump;-right"
bind tab "+action"
bind enter "-action"

Not only does RES provide this sweet feature that makes code more readable, but it adds to reddit IMMENSELY. You will wonder what you did without it! Please Upvote for Visibility.

RES download: http://redditenhancementsuite.com


r/Tf2Scripts • • Jan 18 '13

Script [Script] Demoman Shield Charge-Turn + Toggle

9 Upvotes

Another script. Fun.

What it does

Basically, while you hold down MOUSE2 (or whatever you bind to it) A and D (or whatever your strafe left/right keys are) will be remapped to turning left/right instead of strafing. Thus, while you hold MOUSE2 and hit A/D, you will actually turn while charging.

The Script

//Shield Turn Script
//Must hold down MOUSE2 during the charge.
cc_emit #Demo.Chargeturn.OFF //If you have my close captions project from GameBanana, this is compatible. Otherwise, the output will come from the console.
alias +charge "+attack2; bind a +left; bind d +right; -moveleft; -moveright" //Change a to your left key and d to your right key
alias -charge "-attack2; bind a +moveleft; bind d +moveright; -left; -right" //Same as above
alias chargetoggle "usecharge" 
alias usecharge "bind MOUSE2 +charge; echo CHARGE MODE ENABLED. ; play common/wpn_moveselect; alias chargetoggle useattack; cc_emit #Demo.Chargeturn.ON" //Change MOUSE2 to any other key to do both secondary attack *and* charge-turn toggling
alias useattack "bind MOUSE2 +attack2; echo CHARGE MODE DISABLED. ; play common/wpn_moveselect; alias chargetoggle usecharge; cc_emit #Demo.Chargeturn.OFF" //Same as above
bind MOUSE3 "chargetoggle"

How to Use it

Pretty simple. Once you install it, switch to Demoman, equip the shield and then prepare yourself.

Hold down MOUSE2, or whatever key you mapped to it, to start charging and use A/D, or whatever keys you mapped to is, to turn.

Let go to stop turning. You will need to attack manually at the end, unless you were going for a 360noscopeproshieldbash.


Any questions?


r/Tf2Scripts • • Sep 19 '12

Satisfied [Help] Can someone make a script for me?

9 Upvotes

I've thought of a particular script for Pyro and thought someone on here could help me make it a reality.

Basically the default is having the flamer out (Degreaser in my case) and whenever the 'Q' key is pressed it switches to secondary (Flare, shotty etc.) and switches back when it is released. The same principle is to be applied to the 'E' key with the melee.

Could this work? Could someone make it work? Input muchly appreciated. Also help on binding the script to Pyro only would help, since I'm very new to scripting. Thanks!


r/Tf2Scripts • • Sep 19 '26

Resolved Class configs “overlapping” with each other.

Post image
8 Upvotes

I’m trying to have a separate turning bind for Demoknight but it keeps carrying over to the other classes and I have no idea how to fix it.

I have a reset.cfg and these commands in both the reset and demoman config. I’m using mastercomfig so I know you have to put them in the override and you have to put “exec reset” in every class config but it’s still not working.

bind mouse5 “+left”
bind mouse4 “+right”

Edit: I’m stupid, I had to rebind the keys I wanted back to their original purpose.


r/Tf2Scripts • • Jan 20 '24

Answered Any clue why the awper hand and the direct hit are invisible to me?. I have masterconfig and modern casual preloader. I dont remember modifying anything about those 2. I maily modded scout and sniper(smg)

Thumbnail
gallery
8 Upvotes

r/Tf2Scripts • • Aug 06 '23

Script A wait-less, spam-less, Vaccinator quick-switch script for Medic

Thumbnail
self.tf2
8 Upvotes

r/Tf2Scripts • • Feb 27 '23

Question how do you make it so It show the legs

Thumbnail
gallery
8 Upvotes

r/Tf2Scripts • • Sep 17 '22

Question Is an instant Tide Turner direction change script possible?

8 Upvotes

I was looking for a way to stop my charge dead in its tracks without needing to swing my melee weapon, and figured I'd use a sensitivity/yawspeed modifier to jerk my aim fast enough to cancel it instantly without changing my physical position.

This led me to discover that turning RIDICULOUSLY rapidly completely overrides the deceleration mechanic that forces you to stop, instead letting you effectively charge backwards on a whim. This saves you charge duration, can catch people off guard, and lets you perform maneuvers that'd otherwise be impossible in cramped spaces.

Of course, this is something that'd be incredibly useful if it's possible to pull off consistently, but I don't know how to approach that without wait commands.

I understand that +left and +right commands are very fickle and somewhat tied to FPS, but correcting the difference isn't that big of a deal for me. The problem is that with a cl_yawspeed of around 5000-10000 (which is required to make this work), pressing the button that flips you around longer than a nanosecond will drastically effect the outcome, and that's simply not humanly possible to abstain from, unless there's a specific key that physically functions differently or interacts with the system differently, or some gaming-keyboard-bloatware setting that changes how inputs get read.

So, a few inquiries;

  1. Is there a way to make a +left or +right command only work for exactly one instance, rather than continously for as long as the button is held, without wait commands? Like, can you have the key immediately unbind itself on the very keypress that makes the command happen? My instinct tells me no.

  2. Is there any way a controller or emulated joystick could be used to make this happen reliably?

  3. Is there any keyboard button, mouse button, controller button, or button on any other peripheral that intrinsically only registers an input once, rather than continuously, and then immediately cancels?

  4. Is there some other method to approaching this?

  5. If the answer to all of the above is "no", would there be a way of achieving my initial goal of stopping my charge short without melee attacking?

Thank you for your time.


r/Tf2Scripts • • Aug 02 '22

Script Another program: Tic Tac Toe

8 Upvotes

Another program from me, a little simpler this time. This is a simple 2-player tic-tac-toe program. I was going to make a perfect AI for it but I went a little crazy during it so I'm taking a break. I wanted to release this version, since it is functional.

I also made a very basic syntax highlighting file for sublime text if anyone wants it: https://pastebin.com/erSCCRBx

I am quickly running out of ideas to make, so I'll probably take a break from source coding until I come up with something good, or someone suggests something.

Repo: https://github.com/MrShwhale/source-TicTacToe


r/Tf2Scripts • • Jul 07 '22

Question Is there any mod that can remove the robot head in-game because it gets in my face while I rocket jump lol?

Post image
8 Upvotes

r/Tf2Scripts • • Apr 12 '22

Script Kill and Explode in a single button

8 Upvotes

alias -die "kill"

bind b "+die; wait 35; explode"

A quick press on the B key will use the "kill" command, but when you hold it for a defined amount of time, the "explode" command will be used instead.

Note that this will add a slight delay to the kill bind, dictated by the time you take to get your finger off the suicide key (almost unnoticeable)

This will not work properly on servers that disable the "wait" command.

You have only so many buttons to assign binds to. Use them efficiently!