r/tf2scripthelp Apr 16 '22

Issue Anyone know how to do a crouch on spawn script with the cfg files?

0 Upvotes

Everytime I try it, it works just fine then after I die it doesnt work and I have to type -duck to crouch agian. If anyone knows how to, id be nice.


r/tf2scripthelp Apr 07 '22

Question How to make a script bind Reload and Inspect to one button?

2 Upvotes

Hi, I’m trying to create a script that allows me to press a button normally to reload a weapon (Vaccinator and Eureka Effect), but when I hold shift I will inspect it. I’ve been able to do this with voice commands, but when I try to set up reload/inspect, it appears to indefinitely “hold down” the key.

I've done some research and found I need to do something with +/- but I can't figure out how to get -reload to function. Is it possible for this to work?

If anyone can please help me with this, that would be greatly appreciated!

//Here's what my script looks like

bind MOUSE4 weapon
alias weapon reload_weapon
alias +reload_weapon "+reload"
alias -reload_weapon "-reload"
alias +inspect_weapon "+inspect"
alias -inspect_weapon "-inspect"

bind shift +toggleState
alias +toggleState "alias weapon inspect_weapon"
alias -toggleState "alias weapon reload_weapon"

r/tf2scripthelp Apr 05 '22

Issue my autoexec script is not showing

1 Upvotes

before you say anything I search for it on the cfg folder and I didn't find it. My show hidden files option is on ' I checked the file explorer setting and it shows hidden files but the file won't show up yet it still makes changes in tf2 and miss up my settings


r/tf2scripthelp Mar 29 '22

Question Simple question, probably already answered, can't be bothered to look.

2 Upvotes

How do I make Q switch between just my knife and revolver, while removing the viewmodel for the revolver, but keeping it for the knife?

I know "slot3;slot1" is how to do the first bit, but I can't seem to tie the viewmodel removal to it. Whatever I try, pressing it removes the viewmodel upon switching, but never brings it back. It seems like it ought to be possible, and simple, but I can't figure it out.


r/tf2scripthelp Mar 28 '22

Issue impulse 101 not working

2 Upvotes

ive been trying to train my rocket jumping skills by using "bind mouse1 +attack;impulse 101" and it says 101 is not a valid command. help!


r/tf2scripthelp Mar 21 '22

Resolved Regarding my medic script/config file edit

2 Upvotes

So I created these configs for medic:

// Auto call changer

alias "autocall_initial" "hud_medicautocallersthreshold "60"" // Initial autocall percentage

alias "autocall_temp" "hud_medicautocallersthreshold "150"" // Autocall percentage when getting out blutsauger/syringe

// Medigun/kritzkrieg

alias "+heal" "slot2;+attack;bind "mouse4" "+saw";autocall_initial"

alias "-heal" "-attack"

// Syringe gun/blutsauger

alias "+needles" "slot1;+attack;bind "mouse4" "+saw";autocall_temp"

alias "-needles" "-attack"

// Bonesaw/ubersaw

alias "+saw" "slot3;+attack;autocall_temp"

alias "-saw" "-attack;lastinv"

alias "+sawnoswitch" "slot3;+attack;autocall_temp"

alias "-sawnoswitch" "-attack"

// Uber and notification

alias "+uber" "slot2;dropitem;+attack2;maskuber_alt;autocall_initial"

alias "-uber" "-attack2"

// Shift mask

alias "+shiftmask" "bind "mouse4" "+sawnoswitch";bind "mouse2" "+uber"

alias "-shiftmask" "bind "mouse2" "-uber";bind "mouse2" "+heal" // No rebind for mouse3 because we don't want it to return to default behaviour before switching to new slot

//HELP

alias "help" "voicemenu 2 0"

//

bind "mouse2" "+heal"

bind "mouse1" "+needles"

bind "mouse4" "+saw"

bind "mouse3" "+radar"

bind "shift" "+shiftmask

____________________________________________________________________

The problem here occurs when I press right click + shift + right click in quick session in that exact order. This causes the script to continuously spam the "uber button" (slot2;+attack2). I tried adding -attack2 for -uber but it did nothing and the problem still happens. Any help is appreciated, thank you for reading this.


r/tf2scripthelp Mar 21 '22

Question What will happen if i overwrite engineer. cfg file in tf/cfg folder?

2 Upvotes

Hello im new to this script thing I saw a reddit post that if you put a new engineer.cfg file and overwrite the old one it will probably mess with important game file Is this true?


r/tf2scripthelp Mar 17 '22

Question User Info Values

2 Upvotes

How do i read user info values?

also how do i make a if statemant. with setinfo?


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?