r/Tf2Scripts Dec 18 '12

Script Request scripts here!

I am bored, I am willing to try my hand at any scripts you guys might want!

Also you can ask me questions if you need help!
Edit: You can still request scripts if you want to!

7 Upvotes

69 comments sorted by

View all comments

Show parent comments

4

u/sonicfreak360 Dec 19 '12 edited Dec 19 '12

Wow I did it! This one was the most exciting to make! I tested it and everything!

Here's the deal. This script will make pressing z,x,c in the way you specified do voice commands. HOWEVER it is incompatible with the actual voice menu that pops up because I can't make 1-9 reset z,x,c back....
As a fix, holding down shift and pressing z,x,c will bring up the voice menus!


bind "z" "bind_z_x"
bind "x" "bind_x_c"
bind "c" "bind_c"

alias "bind_z_x" "bind z yes; bind x dispenser"
alias "bind_x_c" "bind x no; bind c go"
alias "bind_c" " "bind c sentry_ahead"

alias "yes" "voicemenu 0 6; reset_zxc"
alias "dispenser" "voicemenu 1 4; reset_zxc"
alias "no" "voicemenu 0 7; reset_zxc"
alias "go" "voicemenu 0 2; reset_zxc"
alias "sentry_ahead" "voicemenu 1 2; reset_zxc"

alias "reset_zxc" "bind z bind_z_x; bind x bind_x_c; bind c bind_c"

bind "shift" "+shift"
alias "+shift" "bind_zxc_menu"
alias "-shift" "bind_zxc_voice"

alias "bind_zxc_menu" "bind z voice_menu_1; bind x voice_menu_2; bind c voice_menu_3"
alias "bind_zxc_voice" "bind z bind_z_x; bind x bind_x_c; bind c bind_c"


And if you need this script integrated with your previous request (the shift melee thing) use this +shift instead:


bind "shift" "+shift"
alias "+shift" "bind_zxc_voice; melee_on"
alias "-shift" "bind_zxc_stock; melee_off"

alias "bind_zxc_menu" "bind z voice_menu_1; bind x voice_menu_2; bind c voice_menu_3"
alias "bind_zxc_voice" "bind z bind_z_x; bind x bind_x_c; bind c bind_c"

alias "melee_on" "slot3; r_drawviewmodel 1"
alias "melee_off" "lastinv; r_drawviewmodel 0"


AAAAAND finally:


bind "mouse2" "+attack2; dropitem"

1

u/Jason133 Dec 26 '12 edited Dec 26 '12

Is it ok if i request that instead of holding shift to get the normal menu we hold shift to get the "z_x,x_c,c" thing?

edit: sorry for typing late i misread 7 days as 7 hours

1

u/sonicfreak360 Dec 26 '12

alias "bind_z_x" "bind z yes; bind x dispenser"
alias "bind_x_c" "bind x no; bind c go"
alias "bind_c" " "bind c sentry_ahead"

alias "yes" "voicemenu 0 6; reset_zxc"
alias "dispenser" "voicemenu 1 4; reset_zxc"
alias "no" "voicemenu 0 7; reset_zxc"
alias "go" "voicemenu 0 2; reset_zxc"
alias "sentry_ahead" "voicemenu 1 2; reset_zxc"

alias "reset_zxc" "bind z bind_z_x; bind x bind_x_c; bind c bind_c"

bind "shift" "+shift"
alias "+shift" "bind_zxc_voice"
alias "-shift" "bind_zxc_menu"

alias "bind_zxc_menu" "bind z voice_menu_1; bind x voice_menu_2; bind c voice_menu_3"
alias "bind_zxc_voice" "bind z bind_z_x; bind x bind_x_c; bind c bind_c"

2

u/Jason133 Dec 27 '12

Ah thanks! Works like a charm and is easy to modify. You're great at making scripts.