r/tf2scripthelp • u/[deleted] • 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
1
u/DeltaTroopa Dec 11 '14
Please look at the side for info on how to format your scripts so they're readable.
1
Dec 11 '14
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"1
u/DeltaTroopa Dec 11 '14
These look fine to me, what exactly do you mean when you say they're not working?
1
Dec 11 '14
In my autoexec I have chrisfps which works plus the crouch, null m., and zoom scripts. Those sadly do not work for any of my classes even though chrisfps works, the other scripts only work if I type in console ingame "exec autoexec.cfg" but doing that meses up some of my crosshair scripts. I just want those scripts to work on all classes
2
u/genemilder Scripter Dec 11 '14
Jeez there are a lot of comments on this thread.
OP, the reason that the zoom script didn't initially work is because you used the wrong type of quotation mark: bind “’” "+zoomer" See how the quotes around +zoomer are vertical and the quotes around ' are angled in? The angled in quotes are actually a different character, and TF2 doesn't recognize them the same way. Just something to watch out for in the future.
1
u/DeltaTroopa Dec 12 '14
Wow, I didn't even notice that, nice catch. I think somewhere in here I got him to try a different key and that inadvertently led to the remove of those quotes so it worked XD
1
u/[deleted] Dec 11 '14
Is their also a command guys that lets me type in console "exec class.cfg" ( Class being spy.cfg etc.)