r/Tf2Scripts • • Jul 07 '21

Request M2 for crouch for soldier only script

Hi guys,

I need a little help with scripting. I want to use M2 for crouch only for solider class but normal functions for other classes.

I would appreciate it so much if someone can help me out with this please.

5 Upvotes

22 comments sorted by

View all comments

Show parent comment

1

u/Xtremee Jul 07 '21

TeamFortress2/tf/cfg

1

u/DeltaTroopa Jul 07 '21

You need to put scripts in a subfolder of the custom folder, not directly in the tf directory as listed here

1

u/Xtremee Jul 07 '21

okay, tf/custom/ABCfolder/cfg?

1

u/DeltaTroopa Jul 07 '21

yeah

1

u/Xtremee Jul 07 '21

Okay. Just tried that and it is still not working :(

1

u/DeltaTroopa Jul 08 '21

What happens when you try to use it? does anything show in console?

1

u/Xtremee Jul 08 '21

other than the masterconfig. Nothing shows up.

1

u/Stack_Man Jul 08 '21

soldier.cfg should go in Team Fortress 2\tf\cfg

If you have mastercomfig, put it in Team Fortress 2\tf\cfg\user

Make sure file extensions are enabled and that the file is soldier.cfg and not soldier.cfg.txt or something.

1

u/Xtremee Jul 08 '21

I do have masterconfig. Should i delete the cfg which is in tf/cfg?

File extensions are indeed enabled.

2

u/Stack_Man Jul 08 '21

Just have soldier.cfg and reset.cfg in the user folder and it should work fine

1

u/Xtremee Jul 08 '21

omg THAT WORKED. Thank you. But my every other class is crouching too. I have the reset.cfg but it has nothing in it.

1

u/Stack_Man Jul 08 '21

In reset.cfg, add

bind mouse2 +rightmouse
alias +rightmouse "+attack2; spec_prev"
alias -rightmouse "-attack2"

then, make a cfg for every class (all use their name except demo.cfg and heavyweapons.cfg) and add exec reset.cfg on the very first line of all of them, including soldier.cfg.

→ More replies

1

u/just_a_random_dood Jul 08 '21

ayo /u/bythepowerofscience, can we get automod to put a message saying "tell people if you're using mastercomfig" in every thread that gets made?

→ More replies

1

u/juicecan_ Jul 08 '21

does that actually work? mine are in tf/cfg and i thought that was the only way