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 11 '14

So is this correct? with any crosshair scripts deleated from my class.cfgs?

1

u/DeltaTroopa Dec 11 '14

that looks good, try it out and see if anythings not working

1

u/[deleted] Dec 11 '14

Yay! everything works, I even figured out how to add custom crosshairs for each class as well! But for some reason I cant scope in as sniper

1

u/[deleted] Dec 11 '14

zoom_sensitivity_ratio .6

bind R "Voicemenu 0 0"

alias quickshot "+attack2;wait 38;+attack;-attack2;wait 6;-attack"
bind E quickshot


r_drawviewmodel 1

sensitivity 5.5

// viewmodel/combination script binds
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "q" "lastinv"

bind "mouse1" "+attack"
bind "mouse2" "+attack2”

// 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 crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtyper" // tweak crosshair_scale values to your liking
alias dotxhairtyper "cl_crosshair_file crosshair2;cl_crosshair_scale 22;alias dotxhairtype dotxhairtypeb"

bind mouse1 +crosshairfire
alias +crosshairfire "+attack;dotxhairtype;spec_next"
alias -crosshairfire "-attack;dotxhairtypeb”
//=========================================================
 
// 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 11 '14

sniper cfg I cant click m2 to scope in but I can m2 for ubercharge as medic so idk

1

u/DeltaTroopa Dec 11 '14

That's really weird, you have mouse2 set to +attack2 so I don't see any reason why it wouldn't work

Oh wait your quickshot might be interfering with it? especially if you're on a server with wait disabled which would break that script, try commenting that out with // infront of that line and seeing if that helps at all.

1

u/[deleted] Dec 11 '14

Seems to be working now for no reason at all :D Lol thank you so much for halping me <333 Can I keep in contact with you somehow if I have more questions?

1

u/DeltaTroopa Dec 11 '14

you can message me if you want, or just post any more questions on this subreddit, server other helpful people around besides me :)

1

u/[deleted] Dec 11 '14

Man just you have no idea how you have answered my prayers so much <3 Im just dumbfounded as to how you literally solved all my problems, thanks buddy <3

1

u/[deleted] Dec 11 '14

Heres another question, is it possible to make a script that lets me toggle taunting after a kill?

→ More replies