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.

6 Upvotes

22 comments sorted by

View all comments

Show parent comment

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.

1

u/Xtremee Jul 08 '21

mmm okay, i did that but every other class is still crouching.

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?

1

u/bythepowerofscience Jul 08 '21

It's on the "add post" page. I guess some people don't read.

I'll hook something up.

2

u/just_a_random_dood Jul 08 '21

That might be new reddit only?

I see the sentence there in new reddit but not in old reddit whenever I try to submit a text post

But yeah, thanks bro