r/tf2scripthelp • • Jun 18 '15

Answered Sound Cache Refresh Command?

17 Upvotes

Occasionally my custom sound files really mess up and become a high pitch screeching mess in TF2. Regardless if servers have sv_pure on or not my sound cache still plays the screeching noises. The temporary fix is to delete my sound cache and restart the game.

Is there a command that deletes/refreshes/recompiles my sound cache? I would like to bind it along with my "record demo; stop" bind.


r/tf2scripthelp • • Apr 14 '21

Meta TF2 Bot Detector - External App, Trusted

14 Upvotes

If you haven't already, please download this app. It's built by a Microsoft-trusted app developer, and simply reads TF2's console output and, if a bot is detected, calls a votekick on it if it's on your team, or alerts the enemy team to its presence.

https://github.com/PazerOP/tf2_bot_detector

The more people that download this app, the more lobbies we can shield from the bot plague.


r/tf2scripthelp • • Apr 12 '21

Meta Anti Name-Change Bot Mod

Thumbnail self.truetf2
12 Upvotes

r/tf2scripthelp • • May 31 '20

Answered Need help with class specific scripts

9 Upvotes

I've read every thread about it and I'm still getting the "user/<class>.cfg not present; not executing" error.

All my files have the correct .cfg extension and they're in "tf/custom/my_custom_stuff/cfg." Typing "exec autoexec" in console works fine, but switching classes or typing "exec <class>" in console gets me the error. They're both in the same directory, I don't know why TF2 can find autoexec but not any of the class specific files.

I'm new to scripting within TF2 and appreciate any feedback.


r/tf2scripthelp • • Jan 29 '13

Meta Introducing r/tf2scripthelp!

9 Upvotes

Greetings.

Welcome to /r/tf2scripthelp.

We are here to help you make your own scripts and debug ones that don't work.

But wait, we already have /r/tf2scripts!

You are correct.

But our goal here at /r/tf2scripthelp is different. We're not going to make your scripts for you. We will guide you along the way to making your script.

Basically, we've made a wiki with a page with syntax and examples for most common commands.

If you are new to scripting, we recommend our introduction to scripting, which includes basics for scripting, like finding where your config files are and setting up a basic autoexec and reset file.

Once you feel you are ready to get started, visit the command pages:

and finally,

  • Advanced CVars, for the real power behind Source. With these commands, you can change many variables that affect gameplay. Note that most of these commands are for servers with cheats enabled, so these are mainly useful for your own LAN server

Our Tutorials page has instructions on pre-scripting activities, like setting up syntax highlighting, and our Reference page has a list of key names for obscure keys and lists of arguments for commands with several possible values, like disguise.

The final two pages of our wiki are dedicated to scripts:

and finally,

  • Innovative Scripts, which is where you will find some... interesting... scripts, to say the least.

If you have a script idea or a script that doesn't work, bring it in and we'll see what we can do. Just be warned, you're gonna learn something.


r/tf2scripthelp • • Aug 03 '20

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

7 Upvotes

It seems a large volume of the recent posts relate to either people not realizing the impact Mastercomfig has on scripting or not knowing how to adjust it. Either way, having something right up top that asks them to at least state if they've installed it will probably save us all a lot of time and frustration.

Beyond that, it'd probably make sense to have a note in it about the need to place things in user/ and links to the Mastercomfig doc sections pertaining to that and modules.


r/tf2scripthelp • • Nov 22 '17

Resolved [class].cfg not present; not executing

7 Upvotes

Now i realize there are several search results that show up when you google this, but none of them seem to fix my problem. My problem is I've been trying to figure out where my scripts go, and as in the "tutorial" on this site, I've placed my scripts under Team Fortress 2\tf\custom\my_custom_stuff\cfg but every time i try to run them it still says "sniper.cfg not present; not executing" or something like that. I've also tried placing them directly under tf\custom\my_custom_stuff instead of adding another folder AND under tf\cfg but to no avail. Any help i could get would be great!


r/tf2scripthelp • • Feb 27 '21

Spy Quickdisguise

6 Upvotes

I'm trying to create a spy script that when I press a key, it rebinds my number keys so that they correspond to the correct disguise. (ie 1 = scout) but I'm struggling to find out how to set a bind command in an alias command. Can anyone help?


r/tf2scripthelp • • Oct 21 '20

Issue Need some help with TF2

6 Upvotes

Oi lads, im a veteran with over 2500 hours and I wanted to get back into playing after downloading and playing TF2 Classic (It's really fun just like TF2) and wanting an itch for the "real" TF2 after 3 solid years of CS.

The problem is that whenever I join a game I get massive ping spikes for no reason. My connection to the server will be about 30 ping, and then it will jump up to around 170.

It's not a wifi problem because I have ethernet, and this doesn't happen on any other game or app ect.

I've tried setting the game to windows 8 with properties and putting in a couple advanced settings based off this tutorial, however it didn't work.

Can I get some help here?


r/tf2scripthelp • • Oct 08 '20

Issue TF2 runs badly even though my computer can run most other games very well. How can I fix?

6 Upvotes

I have a decent computer that effortlessly runs most games. Rainbow six at 170 frames on average (mid-low settings), GTA5 online at 60 frames (mid-low settings) but when it comes to TF2, my computer only runs it at 60.

It runs well (200-300) on 4-5 player servers but if the server is full, only 60 fps.

I'm also using mastercomfig with low settings.

How can I fix this shitty performance?


r/tf2scripthelp • • Feb 20 '20

Resolved help with null movement script

6 Upvotes

my script doesnt seem to be working, null movement

its in tf>cfg>autoexec.cfg

bind w +mfwd

bind s +mback

bind a +mleft

bind d +mright

alias +mfwd "-back;+forward;alias checkfwd +forward"

alias +mback "-forward;+back;alias checkback +back"

alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"

alias +mright "-moveleft;+moveright;alias checkright +moveright"

alias -mfwd "-forward;checkback;alias checkfwd none"

alias -mback "-back;checkfwd;alias checkback none"

alias -mleft "-moveleft;checkright;alias checkleft none"

alias -mright "-moveright;checkleft;alias checkright none"

alias checkfwd none

alias checkback none

alias checkleft none

alias checkright none

alias none ""


r/tf2scripthelp • • Jun 06 '13

Answered How to move without holding a key?

6 Upvotes

Is there a way to bind a key to move (i.e. +moveright, +right, etc) without having to hold down the binded key? Like I just hit this key and it'll move me, and when I hit it again I stop moving. Thanks.


r/tf2scripthelp • • May 16 '13

Resource 9 files to make scripting easier

6 Upvotes

Download link


bindable_keys:

contains a list of all non-obvious key names with their respective scripting name.

classes

A list of aliases for each class, useful when making lots of per-class settings.

cvar_list

A list of every cvar, was updated May 10, 2013.

function_keys

A template for making function key binds.

key_modify

A template for making a state/modifying key script (eg. Shift + F2 does something different than F2)

numpad.png

An image that labels each key on the numpad with its respective scripting name

numpad.txt

A template for making numpad binds.

toggle

A template for making a toggle script.

voicemenu

A list of voicemenu aliases that correspond with their respective scripting name


r/tf2scripthelp • • Feb 14 '21

Resource Krate VM: A script for native higher level programming in Source

Thumbnail self.tf2scripts
5 Upvotes

r/tf2scripthelp • • Jan 15 '21

Question How do i bind the mwheelup and mwheeldown for weapon slot 1 and 2 ?

5 Upvotes

I need the command for the bind


r/tf2scripthelp • • Nov 03 '20

Resolved how to add delay to commands in .cfg

5 Upvotes

Yo, I'll be brief, so here's the deal. if you have the commands set up to have a primary weapon's viewmodel not rendered but your secondary and melee to be rendered, you can end up rendering the primary wepaon's viewmodel for a breif split tiny second when sweitching off of the primary, I would like to know how to add a delay to any .cfg script so that the viewmodels only start being drawn a little after I switch to the other wepaon, not isntantly, resultnig in the glitch. Here's imgur to show you, I thank you so much for your attention:

https://imgur.com/a/HDSXeID


r/tf2scripthelp • • Oct 16 '20

Resolved Modules not working in mastercomfig

5 Upvotes

So i use mastercomfig 9 but i tried to modify medium low to my liking To add ragdolls and facial expressions and lower the texture quality and water quality and other stuff but tge modules dont work it says on console Modules applied Modules not present not executing I fifnt have a user folder so i created one and put my modules there help


r/tf2scripthelp • • Sep 04 '20

Question Finite Loop

5 Upvotes

I know that I can make an infinite loop with an alias referencing itself but it there a way to have an alias be executed X times before it stops itself?


r/tf2scripthelp • • Jul 05 '20

Answered Where is a setinfo tutorial?

5 Upvotes

I've been searching for a tutorial on setinfo because I only just now learned what it does, but I can't find any more information on it; There was one tf.tv post that said something about imitating commands with it though. Same for showinfo.

P.S Why is this so common?


r/tf2scripthelp • • May 08 '20

Meta Update: We Have Rules Now!

Thumbnail self.tf2scripts
5 Upvotes

r/tf2scripthelp • • Apr 28 '19

Resolved Null movement script doesn't work?

5 Upvotes

Hello, so I just noticed that my Null Movement scrip isn't working.

Here's what one of my class CFGs look like: https://gyazo.com/48e9d7229131cdda4a188312e4afdf3e

All of my class CFGs are identical, with different class names ofc.

And here's my autoexec: https://gyazo.com/3a3beb4449ab0567c1e74d223667099e

And the same thing in my config

I also have a crosshairswitcher with a "binds" folder in it. I took it out, and suddenly the script worked. I switched class, and it stopped working. I went back to the class it worked on, and it still didn't work.

any suggestions for this this doesn't work?


r/tf2scripthelp • • Jan 20 '19

Question Commands or scripts for changing your casual map choices?

5 Upvotes

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/tf2scripthelp • • Jul 10 '16

Question Does anyone know which commands exactly are forced in MM?

5 Upvotes

So my goal is to make a high FPS config where non of the used commands are banned/forced in MM so that my games appearance doesn't change when I play MM versus when I play other modes.

But in order to do that I need to know which commands are allowed in MM, so that I only change those that won't be reset every time I enter MM. Or are literally ALL commands that are not changeable with the ingame settings automatically reverted to the default values?


r/tf2scripthelp • • Aug 14 '15

Question Undisguise script help

5 Upvotes

I need an undisguise script that i can bind to MOUSE4, but I don't want the script to change my disguise keys. 5 is bound to friendly disguise but the rest are default if that helps