Upvote Upvoted 0 Downvote Downvoted
tf2 scripting help
posted in Q/A Help
1
#1
0 Frags +

I need help with my medic script, I want to script shift+1/2/3/4/5 to say various stuff like

shift+1 medic down
shift+2 uber is ready charge

and so on and ty for the help in advance :)

unless you ignore me and dont bother to help
I WILL HUNT YOU DOWN

I need help with my medic script, I want to script shift+1/2/3/4/5 to say various stuff like

shift+1 medic down
shift+2 uber is ready charge

and so on and ty for the help in advance :)

unless you ignore me and dont bother to help
[b]I WILL HUNT YOU DOWN[/b]
2
#2
3 Frags +

https://code.google.com/p/tf2compconfiguration/
could help you

https://code.google.com/p/tf2compconfiguration/
could help you
3
#3
2 Frags +
alias +shiftmod "bind 1 say_team blahblah; bind 2 say_team blahblah2; bind 3 say_team blahblah3"
alias -shiftmod "bind 1 slot1; bind 2 slot2; bind 3 slot3"
bind shift +shiftmod
[code]alias +shiftmod "bind 1 say_team blahblah; bind 2 say_team blahblah2; bind 3 say_team blahblah3"
alias -shiftmod "bind 1 slot1; bind 2 slot2; bind 3 slot3"
bind shift +shiftmod[/code]
4
#4
5 Frags +
alias +shiftkey "alias butt1 "say_team hooli is dabes";alias butt2 "say_team hooli is dabes";alias butt3 "say_team hooli is dabes";alias butt4 "say_team hooli is dabes";alias butt5 "say_team hooli is dabes""
alias -shiftkey "alias butt1 slot1;alias butt2 slot2;alias butt3 slot3;alias butt4 slot4;alias butt5 slot5"
bind 1 butt1
bind 2 butt2
bind 3 butt3
bind 4 butt4
bind 5 butt5
bind shift +shiftkey

Didn't test but it would work.

[code]alias +shiftkey "alias butt1 "say_team hooli is dabes";alias butt2 "say_team hooli is dabes";alias butt3 "say_team hooli is dabes";alias butt4 "say_team hooli is dabes";alias butt5 "say_team hooli is dabes""
alias -shiftkey "alias butt1 slot1;alias butt2 slot2;alias butt3 slot3;alias butt4 slot4;alias butt5 slot5"
bind 1 butt1
bind 2 butt2
bind 3 butt3
bind 4 butt4
bind 5 butt5
bind shift +shiftkey[/code]

Didn't test but it would work.
5
#5
-1 Frags +

You can't have nested quotes in a command, I don't think.

You can't have nested quotes in a command, I don't think.
6
#6
1 Frags +

You can.

You can.
7
#7
-1 Frags +

TY alot <3

TY alot <3
8
#8
-4 Frags +

but what do i add if i want more slots ? 4 5 6?

but what do i add if i want more slots ? 4 5 6?
9
#9
2 Frags +

I'm sure you can figure it out. It isn't hard, I promise.

I'm sure you can figure it out. It isn't hard, I promise.
10
#10
-1 Frags +

If you say so :) I just dont understand aliases, what do they do ?

If you say so :) I just dont understand aliases, what do they do ?
11
#11
-1 Frags +

Was easy ty for the help :), on an additional note where do I learn to script ?

Was easy ty for the help :), on an additional note where do I learn to script ?
12
#12
4 Frags +

http://wiki.teamfortress.com/wiki/Scripting

http://wiki.teamfortress.com/wiki/Scripting
13
#13
-1 Frags +

ty

ty
14
#14
-1 Frags +

alias +shiftkey "alias butt1 "Go! Go! Go! Uber IS Ready!!";alias butt2 "Help Me!! Under Attack";alias butt3 "I'm dead";alias butt4 "Enemy Medic is down";alias butt5 "Push!!";alias butt6 "team_say Retreat!!""
alias -shiftkey "alias butt1 slot1;alias butt2 slot2;alias butt3 slot3;alias butt4 slot4;alias butt5 slot5;alias butt6"
bind 1 butt1
bind 2 butt2
bind 3 butt3
bind 4 butt4
bind 5 butt5
bind 6 butt6
Its not working, did i do something wrong ?

alias +shiftkey "alias butt1 "Go! Go! Go! Uber IS Ready!!";alias butt2 "Help Me!! Under Attack";alias butt3 "I'm dead";alias butt4 "Enemy Medic is down";alias butt5 "Push!!";alias butt6 "team_say Retreat!!""
alias -shiftkey "alias butt1 slot1;alias butt2 slot2;alias butt3 slot3;alias butt4 slot4;alias butt5 slot5;alias butt6"
bind 1 butt1
bind 2 butt2
bind 3 butt3
bind 4 butt4
bind 5 butt5
bind 6 butt6
Its not working, did i do something wrong ?
15
#15
2 Frags +

You have to put say_team before your text.

You have to put say_team before your text.
16
#16
1 Frags +

so in other words, like this:

alias +shiftkey "alias butt1 "say_team Go! Go! Go! Uber is Ready!!"; alias butt2 "say_team Help Me!! Under Attack"; alias butt3 "say_team I'm dead"; alias butt4 "say_team Enemy Medic is down"; alias butt5 "say_team Push!!"; alias butt6 "say_team Retreat!!""
alias -shiftkey "alias butt1 slot1; alias butt2 slot2; alias butt3 slot3; alias butt4 slot4; alias butt5 slot5; alias butt6 slot6"
bind 1 butt1
bind 2 butt2
bind 3 butt3
bind 4 butt4
bind 5 butt5
bind 6 butt6

EDIT: Don't forget to put this too

bind +shift +shiftkey

I think you need to do
bind +rshift +shiftkey
if you want it to work with your right shift key too but I'm not sure.

so in other words, like this:

alias +shiftkey "alias butt1 "say_team Go! Go! Go! Uber is Ready!!"; alias butt2 "say_team Help Me!! Under Attack"; alias butt3 "say_team I'm dead"; alias butt4 "say_team Enemy Medic is down"; alias butt5 "say_team Push!!"; alias butt6 "say_team Retreat!!""
alias -shiftkey "alias butt1 slot1; alias butt2 slot2; alias butt3 slot3; alias butt4 slot4; alias butt5 slot5; alias butt6 slot6"
bind 1 butt1
bind 2 butt2
bind 3 butt3
bind 4 butt4
bind 5 butt5
bind 6 butt6

EDIT: Don't forget to put this too

bind +shift +shiftkey

I think you need to do
bind +rshift +shiftkey
if you want it to work with your right shift key too but I'm not sure.
17
#17
3 Frags +

ohh :/ so it was a dumb mistake

ohh :/ so it was a dumb mistake
18
#18
1 Frags +

why dont you just say that stuff?

why dont you just say that stuff?
19
#19
-1 Frags +

alias +shiftkey "alias butt1 "say_team PUSH!!!"; alias butt2 "say_team RETREAT!!!"; alias butt3 "say_team UBER is READY!!!""
alias -shiftkey "alias butt1 slot1; alias butt2 slot2; alias butt3 slot3"
bind 1 butt1
bind 2 butt2
bind 3 butt3

bind +shift +shiftkey

it worked earlier but now my weps are unbinded and its not working

alias +shiftkey "alias butt1 "say_team PUSH!!!"; alias butt2 "say_team RETREAT!!!"; alias butt3 "say_team UBER is READY!!!""
alias -shiftkey "alias butt1 slot1; alias butt2 slot2; alias butt3 slot3"
bind 1 butt1
bind 2 butt2
bind 3 butt3




bind +shift +shiftkey

it worked earlier but now my weps are unbinded and its not working
20
#20
0 Frags +

Messing around with this and I cannot seem to get it to work properly. What i'm trying to do is use capslock as the modifier key and have 1-3 be !add !remove and kill respectively. However when it switches back I cannot seem to get my old viewmodel settings back. This is what i've setup going off what you posted earlier.

alias primary "slot1; r_drawviewmodel 0"
alias secondary "slot2; r_drawviewmodel 0"
alias melee "slot3; r_drawviewmodel 1"
alias +shiftkey "alias butt1 "say_team !add";alias butt2 "say_team !remove";alias butt3 "kill""
alias -shiftkey "alias butt1 "primary";alias butt2 "secondary";alias butt3 "melee""
bind 1 butt1
bind 2 butt2
bind 3 butt3
bind capslock +shiftkey

It's probably some stupid mistake that i'm just not noticing but I honestly have almost no idea what i'm doing here.

EDIT: Fixed it I think I left a space out somewhere and that caused everything to get all messed up

alias primary "slot1; r_drawviewmodel 0"
alias secondary "slot2; r_drawviewmodel 0"
alias melee "slot3; r_drawviewmodel 1" 

alias +shiftkey "alias 1 "say_team !add";alias 2 "say_team !remove";alias 3 "kill""
alias -shiftkey "alias 1 "primary" ;alias 2 "secondary" ;alias 3 "melee""
bind 1 1
bind 2 2
bind 3 3
bind capslock +shiftkey
Messing around with this and I cannot seem to get it to work properly. What i'm trying to do is use capslock as the modifier key and have 1-3 be !add !remove and kill respectively. However when it switches back I cannot seem to get my old viewmodel settings back. This is what i've setup going off what you posted earlier.

[code]
alias primary "slot1; r_drawviewmodel 0"
alias secondary "slot2; r_drawviewmodel 0"
alias melee "slot3; r_drawviewmodel 1"
alias +shiftkey "alias butt1 "say_team !add";alias butt2 "say_team !remove";alias butt3 "kill""
alias -shiftkey "alias butt1 "primary";alias butt2 "secondary";alias butt3 "melee""
bind 1 butt1
bind 2 butt2
bind 3 butt3
bind capslock +shiftkey
[/code]
It's probably some stupid mistake that i'm just not noticing but I honestly have almost no idea what i'm doing here.

EDIT: Fixed it I think I left a space out somewhere and that caused everything to get all messed up

[code]alias primary "slot1; r_drawviewmodel 0"
alias secondary "slot2; r_drawviewmodel 0"
alias melee "slot3; r_drawviewmodel 1"

alias +shiftkey "alias 1 "say_team !add";alias 2 "say_team !remove";alias 3 "kill""
alias -shiftkey "alias 1 "primary" ;alias 2 "secondary" ;alias 3 "melee""
bind 1 1
bind 2 2
bind 3 3
bind capslock +shiftkey[/code]
21
#21
-2 Frags +

What is the command to increase the cursor size?

What is the command to increase the cursor size?
Please sign in through STEAM to post a comment.