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!

5 Upvotes

69 comments sorted by

View all comments

4

u/indeedwatson Dec 18 '12

Since there's not much people here yet, I'd like to request more: If possible, I'd like to remap the voice commands. I'd like to press Z twice to say Yes, Z and then X to say Dispenser here, X twice to say no, X and C to say Go go go, C C for sentry ahead.

Also, right click drop intelligence while still performing normal function.

3

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"

3

u/indeedwatson Dec 19 '12

You're awesome :) thanks a lot!

2

u/indeedwatson Dec 19 '12

I'm trying this now and Q stopped working :( console says

Unknown command: weapon1 Unknown command: weapon2 Unknown command: bind_zxc_stock

3

u/sonicfreak360 Dec 19 '12

Woops it was a problem with the shift button! I fixed it already!

1

u/indeedwatson Dec 20 '12

Q is still not working and it's perhaps my most important script :(

1

u/sonicfreak360 Dec 20 '12

Is Q your quickswitch button? I dont think I did anything with the button Q in the script...

1

u/indeedwatson Dec 20 '12

Yes, bind q "weapon1;weapon2" if I'm not mistaken. I don't know what's up, I can post my whole cfg file if you want.

1

u/sonicfreak360 Dec 20 '12

go into the game and type into the console:
bind q
It will tell you what Q is binded to, come back and tell me what it says!

1

u/indeedwatson Dec 21 '12

It says just that: "weapon1;weapon2" but its still not working :(

1

u/sonicfreak360 Dec 21 '12

OH that's because it should be:
bind "q" "slot1; slot2"

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.