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

if you play engie at all would definitely look into a quickbuild script, as for others scripts this wiki page has some you can look through see if you think they'd be useful.

1

u/[deleted] Dec 11 '14
alias +jumpscope "+attack;+jump;+duck"
alias -jumpscope "-attack;-jump;-duck"
alias "jumptoggle" "on"
alias "on" "bind mouse1 +jumpscope; alias jumptoggle off"
alias "off" "bind mouse1 +attack; alias jumptoggle on"
bind I "jumptoggle"

1

u/[deleted] Dec 11 '14

This script (crouch jump after shooting) works but I cant make headshots because I jump to quickly after fireing, found this out when trying the script with the machina, would give the sparkles like u never were scoped in. So do I need to add wait commands which I think I do to allow me to have the script but still make headhots?

1

u/[deleted] Dec 11 '14

nvm just found out there was a update a few months ago that no longer lets snipers jump after shooting scoped in :[

1

u/DeltaTroopa Dec 11 '14

there was actually a patch that disabled jumping immediately after firing a scoped shot so I don't think this script would work anymore

also binding within aliases is generally a bad idea

1

u/[deleted] Dec 11 '14

Can you give me a simple script that hides my viewmodel when equiping my primary weapon?

1

u/DeltaTroopa Dec 11 '14
bind 1 "slot1; r_drawviewmodel 0"
bind 2 "slot2; r_drawviewmodel 1"
bind 3 "slot3; r_drawviewmodel 1"

however if you use quickswitch or mousewheel in combination with the number keys to switch weapons it becomes quite a bit more complicated.

1

u/[deleted] Dec 12 '14

Ty, everything worked <3

1

u/[deleted] Dec 12 '14

Can you give me a script that binds m1 to the line battle cry? Im planning to just use this line for sniper

1

u/[deleted] Dec 12 '14

with m1 still working as +attack

1

u/DeltaTroopa Dec 12 '14

Looks like /u/clovervidia has you covered in the new post you made.

Just an FYI I get a notification when you reply to one of my posts, but not if you reply to your own, just for future reference.

1

u/[deleted] Dec 12 '14

Ok, thanks <3 iv never used reddit in my life but got desperate and decided I had no one else to ask for all my scripting problems but thankfully all were solved (literally iv never even visited the reddit website until yesterday)

0

u/[deleted] Dec 12 '14

[deleted] — view deleted comment

→ More replies

1

u/[deleted] Dec 12 '14

Got any reccommendactions for a good sniper crosshair to use? Which one do u use? iv been trying to find a good one for a while

→ More replies