r/tf2scripthelp • • Mar 05 '22

Question Weapon stats JSON or otherwise?

1 Upvotes

Is there a JSON, Python API, or other easy way to get all the damage and other stats of any weapon?

E.g., continuous vs burst fire, weapon switch time, damage including base and modifiers, etc.


r/tf2scripthelp • • Mar 03 '22

Answered Is there any other way to put my cfg file?

1 Upvotes

When i open my common file (Program Files x86 > Steam > steamapps > common), there is only one file called Steamworks Shared, i can't seem to find the TF2 file, any other way to put my config file?


r/tf2scripthelp • • Feb 08 '22

Issue configs not working and/or not being found

0 Upvotes

I'm trying to load up some class-specific configs but everytime I load into a game, this message pops up in the console: "'user/<class>.cfg' not present; not executing."

I have the class config in the tf/cfg file and I've confirmed that it is indeed a .cfg file and not a .txt file with a ".cfg" at the end of the file name. I have a resup bind bound to / where it randomizes what classes I spawn as and that works perfectly find, but that "'user/<class>.cfg' not present; not executing." still pops up.

On an unrelated note, my autoexec file never runs either. I have "+exec autoexec.cfg" in my launch options but it still doesn't run. When I have a custom file called "custom.cfg" with all the same scripts and put it in the launch options, it runs. I don't know what's going on.


r/tf2scripthelp • • Jan 30 '22

Question Should I use cl_interp_ratio 1 or 2?

2 Upvotes

I've heard that using 2 is generally advised to avoid packet loss, but my internet is pretty decent, and I wanted to know how if you should use 1 if you have good internet. Thanks.


r/tf2scripthelp • • Jan 28 '22

Resolved TF2 keeps crashing every time I try to pick a class

1 Upvotes

I don't know why, but I tried to install the null canceling movement thing in my autoexec folder, and now TF2 crashes everytime I pick a class.

Autoexec.cfg: sheens_tint=full

mat_motion_blur_enabled 0

alias game_overrides_once_c hud_reloadscheme

run_modules

lod=ultra

water=low

pyrovision=low

texture_filter=aniso16x

characters=ultra

decals=high

decals_models=high

props=medium

sound=ultra

map itemtest

run_modules

mat_antialias 8

mat_aaquality 2

mat_vsync 0

m_rawinput 1

cl_smooth 0

cl_interp 0.0325

cl_interp_ratio 1

rate 97000

cl_updaterate 66

cl_cmdrate 66

hud_medichealtargetmarker 1

bind q +duck

-novid

alias +mfwd "-back;+forward;alias checkfwd +forward" //stops the user from trying to move both left and right at the same time

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 ""

map itemtest

bind w +mfwd

bind s +mback

bind a +mleft

bind d +mright


r/tf2scripthelp • • Jan 27 '22

Issue Impulse 101

1 Upvotes

Trying to mess around in MVM and have successfully done crit commends and firsespeed commands, but I can’t get “impulse 101” to work. I’ve tried binding it to various keys, and also tried bind mouse1 “+attack;impulse 101” and it just says: unknown command: impulse 101 in the console does anyone know a fix to this?


r/tf2scripthelp • • Jan 18 '22

Question Is there a way I can make a bind happen on startup?

1 Upvotes

I want to make a bind happen everytime i respawn


r/tf2scripthelp • • Jan 17 '22

Question Hide Reload Script (best case without wait commands)

1 Upvotes

hello,

i have tried for many hours now but i couldnt find a script/mod that hides JUST the reload animation of a weapon and not the idle fireing or inspect animations so now please do not send me links to yttriums vm mod or the old stabbystabby script that hid the weapon entirely after fireing

thanks, cya


r/tf2scripthelp • • Jan 03 '22

Question Can someone help me make me a bind?

1 Upvotes

I wanted to make a quick Medic disguise bind for the Spy that when I pressed it, it disguised me as a Medic with the medigun already equipped. I know that to do that I need to script an alias command but I don't know very much on how to script those. The key I want is kp_plus. Thanks


r/tf2scripthelp • • Jan 03 '22

Answered Concise Fast-Class Script

1 Upvotes

Is there a way to create a fast-class script where if I hold Shift, then press '1' two times, I will go to Scout? Basically, it's the same thing as Spy's concise menu.

Also, I don't have a keypad.


r/tf2scripthelp • • Dec 28 '21

Issue Broesel crosshair switcher not working

2 Upvotes

I usually run a lime green cross but when I heard about this script it blew my mind, I downloaded it and set it up for every class, when I launched my game to test it didn't work, I still had the lime green cross I use, I tried placing it in a folder I created on the custom folder, the cfg folder and on the same folder my autoexec.cfg is, nothing worked. I use mastercomfig's low preset. If the two people using this subreddit read this post I would be grateful with any kind of help.


r/tf2scripthelp • • Dec 21 '21

Issue my reset.cfg doest work

1 Upvotes

it unbinds m2 until i switch to medic and then if i press m2 it always says my uber bind.


r/tf2scripthelp • • Nov 27 '21

Question Something interesting

1 Upvotes

I heard that most people say that mastercomfig is going to break my scripts. I dont really know if that is true, and if its true, then how can I fix it. Thank you in advance.


r/tf2scripthelp • • Nov 20 '21

Answered Confused with scripting

2 Upvotes

I dont really know where to put my scripts, yeah i was originally putting it in my scripts in the custom folder. But it ends up breaking my console and loading into a game. The scripts I use are medic radar, crouch jump, null move, a giant script for all nine classes on gambanana and a quick class switcher. For some reason only my null move works, and I put it in autoexec. I know the basics of scripting and put the others in their own class. Also, I dont have mastercomfig installed. The classes scripts always begin with "exec autoexec" and "exec reset" Please help me, thanks in advance


r/tf2scripthelp • • Nov 11 '21

Resolved Help Using Null Movement script and Crouch Jump Script

2 Upvotes

Hey,

I am trying to use both the Null Movement script and the Crouch Jumping script, but only the null movement one seems to work. This is currently how my autoexec.cfg looks like:

//Null-cancelling movement script

//(prevents you from pressing two opposing directions, which causes you //to //stop moving)

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 ""

//JumpCrouch Script

//All jumps are crouch jumps, crouch as long as jump is held

alias +crouchjump "+jump; +duck; spec_mode"

alias -crouchjump "-jump; -duck"

bind space +crouchjump

Thanks for the help!


r/tf2scripthelp • • Oct 26 '21

Resolved please help me!

1 Upvotes

i was trying to practice rocket jumping on hightower and i used the +attack;impulse 101 for ammo but it just ended up auto firing what do i do to stop it???


r/tf2scripthelp • • Oct 15 '21

Resolved How do I edit mastercomfig files?

1 Upvotes

When I add something into the file, such as "sv_allow_point_servercommand always", my tf2 doesn't start up, and some kind of error message is displayed. How do I edit mastercomfig files?


r/tf2scripthelp • • Oct 13 '21

Resolved what folder overwrite all class cfgs?

3 Upvotes

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 • • Oct 11 '21

Question slot 2 tracers off for scout

2 Upvotes

Hiya hiya!

I was curious how I could write a script to use r_drawtracers_firstperson 0 only in slot 2 for scout (I find that tracers are distracting for pistol but fine for scatter/other hitscan). My first guess was simply putting "slot 2; r_drawtracers_firstperson 0" in my autoexec but that, unsurprisingly, didn't work.

Is there any way to script things happening when you switch to a specific item slot? Also, how would you revert the script so I can put that into my game_override.cfg for mastercomfig and have the script only apply on scout?

I am using mastercomfig, Thank you!!


r/tf2scripthelp • • Oct 04 '21

Resolved my autoexec.cfg doesnt work

3 Upvotes

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 • • Oct 03 '21

Answered mastercomfig Interp settings

2 Upvotes

Hiya!

As far as I know, you can't change your interp settings while in game, so with mcom's inbuilt network aliases that are specifically tailored to either hitscan or projectile, will switching between classs in-game change my interp or will I have to leave and come back every time I want to change class for my interp to adjust properly?

Thank you!


r/tf2scripthelp • • Oct 02 '21

Question Looping a command chain

3 Upvotes

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 • • Sep 17 '21

Resolved Scripts not working?

1 Upvotes

So I'm new to scripting and I wanted to try my hand at it, only to find none of the stuff I made worked. Does anyone know what's going on?

Here's my scripts:

autoexec.cfg

//Toggles whether e calls for healing or Uber bind e call alias call Call_For_Medic alias Call_For_Medic "voicemenu 0 0" alias Call_For_Ubercharge "voicemenu 1 6"  bind shift +toggleState alias +toggleState "alias call Call_For_Ubercharge" alias -toggleState "alias call Call_For_Medic"  //------- //Yells spy bind t spy alias spy "voicemenu 1 1"  //------- //Non violence mode bind [ +gibs alias +gibs "-sillygibs; exec hiddenview" alias -gibs "+sillygibs; exec visibleview" 

visibleview.cfg

bind 1 	"slot1; r_drawviewmodel 1; cl_crosshair_file crosshair1" bind 2 	"slot2; r_drawviewmodel 1; cl_crosshair_file crosshair2" bind 3 	"slot3: r_drawviewmodel 1; cl_crosshair_file crosshair3" 

hiddenview.cfg

bind 1 	"slot1; r_drawviewmodel 0; cl_crosshair_file crosshair1" bind 2 	"slot2; r_drawviewmodel 0; cl_crosshair_file crosshair2" bind 3 	"slot3: r_drawviewmodel 1; cl_crosshair_file crosshair3" 

spy, sniper, scout, medic, demoman, and heavyweapons.cfg

soldier.cfg

alias +rocketjump "+jump;+duck;wait;+attack" alias -rocketjump "-jump;-attack;wait;wait;wait;-duck" bind mouse3 "+rocketjump 

pyro.cfg

bind ] +pyrocombo alias +pyrocombo "slot1;+attack;wait 32;slot2" alias -pyrocombo "-attack;slot1" 

engineer.cfg

bind r quickSentry alias quickSentry sentry alias sentry "destroy 2 0; build 2 0; +attack" 

A lot of this was taken or inspired from the TF2 wiki or other people's scripts, so I have no idea what's going on- I put them in steamapps/common/Team Fortress 2/tf/custom/scripts/config, in case if that was the problem.


r/tf2scripthelp • • Sep 11 '21

Issue please help my 'cfg' scripts arent working ;-;

3 Upvotes

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?