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.

7 Upvotes

22 comments sorted by

View all comments

Show parent comment

1

u/Xtremee Jul 07 '21

okay, i copy pasted the script you gave me into the soldier.cfg and launched the game just to see if the soldier class was crouching after pressing M2. It did not, so not sure what is happening.

1

u/DeltaTroopa Jul 07 '21

where is you soldier.cfg?

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

→ 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