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/[deleted] Dec 14 '14

I think it effects it, but I don't know if i'm just imagining it

1

u/DeltaTroopa Dec 14 '14

once you've put it in type zoom_sensitivity_ratio without anything after it, and the game will tell you what its currently set to

1

u/[deleted] Dec 14 '14

it says im at .33 which is what its at atm so okie I guess it works, btw whats ur fav class? I love sniepr and spy

1

u/[deleted] Dec 14 '14

This is pretty important for me, is their a "command" like I can put in my autoexec that modifys which buttons i choose to access In-Game steam overlay? -nod3d9ex recently put that into my launch options, HUGE fps increas but messes up how I access steam overlay currently I have to press shift- I dont wnat that, halp

1

u/DeltaTroopa Dec 14 '14

Steam overlay isn't part of TF2 so you can't change it from your autoexec. However if you go into your setting in steam, go down to in-game, you can change the hotkey for it there. Mine is actually set to Ctrl+NumpadPlus

1

u/[deleted] Dec 14 '14

k fixed :D I have another problem clicking space while specatiting to go into firstperson doesent work now, halp?

1

u/DeltaTroopa Dec 14 '14

1

u/[deleted] Dec 14 '14
exec gfx.cfg

//[ Pyro Panic
cc_emit #Pyro.Panic
bind Y "+panic" // change MOUSE4 to key for toggle pyro panic

alias "+panic" "slot1; cl_yawspeed 3000; +right; +attack"
alias "-panic" "-attack; -right; cl_yawspeed 210"
//]

alias "+scoreboard" "+showscores; net_graph 3”
alias "-scoreboard" "-showscores; net_graph 0"
bind TAB "+scoreboard"

bind O "zoomer"
alias nozoom "fov_desired 90; r_drawviewmodel 1; alias zoomer      yeszoom"
alias yeszoom "fov_desired 25; r_drawviewmodel 0; alias zoomer     nozoom"
nozoom

bind w +mfwd bind s +mback bind a +mleft bind d +mright

alias +mfwd "-back;+forward;alias checkfwd +forward; dotxhaircolor"
alias +mback "-forward;+back;alias checkback +back; dotxhaircolor”
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft;     dotxhaircolor"
alias +mright "-moveleft;+moveright;alias checkright +moveright;   dotxhaircolor"
alias -mfwd "-forward;checkback;alias checkfwd none; dotxhaircolor"

alias -mback "-back;checkfwd;alias checkback none; dotxhaircolor" alias -mleft "-moveleft;checkright;alias checkleft none; dotxhaircolor" alias -mright "-moveright;checkleft;alias checkright none; dotxhaircolor" alias checkfwd none alias checkback none alias checkleft none alias checkright none alias none ""

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

// first you set up the colors and shapes/sizes you want the xhair to     toggle through (cl_crosshair_file = type cl_crosshair_scale = size). Keep in mind that the base size of the crosshair varies depending on the weapon: //

// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //

//xhair TYPE toggle--switches crosshair type when shooting; good for     preventing Amby xhair from expanding too large (uses my settings as an example). NOTE: Must be manually integrated with viewmodel scripts to work in conjunction.

//========================================================= alias dotxhairtype "dotxhairtypeb" alias dotxhairtypeb "cl_crosshair_file crosshair2;cl_crosshair_scale 40;alias dotxhairtype dotxhairtyper" // tweak crosshair_scale values to your liking alias dotxhairtyper "cl_crosshair_file crosshair5;cl_crosshair_scale 25;alias dotxhairtype dotxhairtypeb"

bind mouse1 +crosshairfire
alias +crosshairfire "+attack;dotxhairtype;spec_next"
alias -crosshairfire "-attack;dotxhairtype"

//=========================================================

// xhair COLOR toggle //========================================================= alias dotxhaircolor "dotxhaircolorb" alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorc" alias dotxhaircolorc "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolord" alias dotxhaircolord "cl_crosshair_blue 240; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorb" //=========================================================

1

u/[deleted] Dec 14 '14

My autoexec (couldent make it all code since the link wasent working to add 4 sapces to everything) how do I bind spec_next to my space?

1

u/[deleted] Dec 14 '14

After this prob is hopefully solved can you show me how I can add custom sensitivitys to each weapon?

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)

→ More replies