r/tf2scripthelp • • Dec 11 '14

Resolved crouch and zoom scripts will not work, halp

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

alias "+zoomer" "fov_desired 75; r_drawviewmodel 0" alias "-zoomer" "fov_desired 90; viewmodel_fov 110; r_drawviewmodel 1" bind “’” "+zoomer"

alias +crouchjump "+jump; +duck" alias -crouchjump "-duck; -jump" bind "space" "+crouchjump"

this is my autoexec (the important parts) what I want is the null movement, crouch, and zoom scripts to work, I also have the crouch and null movement scripts put into each of my class.cfgs (ex. pyro.cfg etc.) but the scripts dont work unless I type in console "exec autoexec.cfg" this is very annoying to do and typing this in messes up a bit of my other scripts for my classes. Please halp me guys, my goal is to get the crouch, zoom, and null movement to work automattically for all classes without messesing up my other scripts in them

0 Upvotes

126 comments sorted by

View all comments

Show parent comment

1

u/DeltaTroopa Dec 14 '14

Have you tried looking through the wiki? it really does sorta explain how to do everything, as well as what is and isn't possible ( the weapon sensitivity thing doesn't really work that easily)

1

u/[deleted] Dec 15 '14

If youre thinking each "weapon" in tf2 then no, I mean like equip 1, 2, 3 or is that what u meant

0

u/[deleted] Dec 15 '14

[deleted] — view deleted comment

1

u/[deleted] Dec 15 '14

I hope this works <3

1

u/[deleted] Dec 15 '14
alias +crouchjump "+jump; +duck"
alias -crouchjump "-duck; -jump"
bind "space" "spec_mode; +crouchjump"

1

u/DeltaTroopa Dec 15 '14

You don't add it to the bind, you add it to the alias

1

u/[deleted] Dec 15 '14
alias spec_mode; +crouchjump "+jump; +duck"
alias spec_mode; -crouchjump "-duck; -jump"
bind "space" "+crouchjump"

1

u/[deleted] Dec 15 '14

Yeah, I probably did something wrong xD Or maby this is correct?

1

u/DeltaTroopa Dec 15 '14

Yeah that's wrong, you just created two aliases for spec_mode instead of adding spec_mode to the aliases you already have

1

u/[deleted] Dec 15 '14

How do I add spec_mode to my alisases I already have without creating 2 new ones?

1

u/DeltaTroopa Dec 15 '14

you add spec_mode to what the aliases you have are doing, its just another command

1

u/[deleted] Dec 15 '14
alias +crouchjump "+jump; spec_mode +duck"
alias -crouchjump "-duck; spec_mode -jump"
bind "space" "+crouchjump"
→ More replies