Upvote Upvoted 0 Downvote Downvoted
+ Voice/Chat Commands
posted in Customization
1
#1
0 Frags +

Hello. So, basically, I created a way to have more voice/chat commands base on binds, let's start.

a HUGE thanks to JarateKing, he helped me a lot to improve this code.

~~~~~~~~~~~~~~~

so, those are the commands:

alias "leuxd_say_a0" "say_team INCOMING"
alias "leuxd_say_a1" "say_team MEDIC"
alias "leuxd_say_a2" "say_team DOWN"
alias "leuxd_say_a3" "say_team UBER"
alias "leuxd_say_a4" "say_team PLEASE"
alias "leuxd_say_a5" "say_team HELP"
alias "leuxd_say_a6" "say_team SPY"
alias "leuxd_say_a7" "say_team ATTENTION"
alias "leuxd_say_a8" "say_team ENEMY"
alias "leuxd_say_a9" "say_team IN OUR BASE"

bind "KP_INS" "leuxd_say_a0" // 0
bind "KP_END" "leuxd_say_a1" // 1
bind "KP_DOWNARROW" "leuxd_say_a2" // 2
bind "KP_PGDN" "leuxd_say_a3" // 3
bind "KP_LEFTARROW" "leuxd_say_a4" // 4
bind "KP_5" "leuxd_say_a5" // 5
bind "KP_RIGHTARROW" "leuxd_say_a6" // 6
bind "KP_HOME" "leuxd_say_a7" // 7
bind "KP_UPARROW" "leuxd_say_a8" // 8
bind "KP_PGUP" "leuxd_say_a9" // 9

To install them, put the commands in your config.cfg

"Why would i use them?", you might ask. And the answer is easy: to facilitate the communication with teammates.

Want examples? Here are some:

1+2 = medic down
7+8+6+9 = attention, enemy spy in our base
7+8+9 = attention, enemy in our base
4+5+8+3+1+0 = please help enemy uber medic incoming
7+6 = attention spy
7+8+6 = attention enemy spy

now is up to you to create your own voice/chat commands.

oh, and, if you want to make your voice commands public (for your team and the enemy team, just use this code instead:

alias "leuxd_say_b0" "say INCOMING"
alias "leuxd_say_b1" "say MEDIC"
alias "leuxd_say_b2" "say DOWN"
alias "leuxd_say_b3" "say UBER"
alias "leuxd_say_b4" "say PLEASE"
alias "leuxd_say_b5" "say HELP"
alias "leuxd_say_b6" "say SPY"
alias "leuxd_say_b7" "say ATTENTION"
alias "leuxd_say_b8" "say ENEMY"
alias "leuxd_say_b9" "say IN OUR BASE"

bind "KP_INS" "leuxd_say_a0" // 0
bind "KP_END" "leuxd_say_a1" // 1
bind "KP_DOWNARROW" "leuxd_say_a2" // 2
bind "KP_PGDN" "leuxd_say_a3" // 3
bind "KP_LEFTARROW" "leuxd_say_a4" // 4
bind "KP_5" "leuxd_say_a5" // 5
bind "KP_RIGHTARROW" "leuxd_say_a6" // 6
bind "KP_HOME" "leuxd_say_a7" // 7
bind "KP_UPARROW" "leuxd_say_a8" // 8
bind "KP_PGUP" "leuxd_say_a9" // 9

maybe i'll create more, maybe not, i don't know, i just hope you all enjoyed the ideia, if you have any question, it's simple, just ask, bye

Hello. So, basically, I created a way to have more voice/chat commands base on binds, let's start.

[b]a HUGE thanks to [url=http://www.teamfortress.tv/user/JarateKing]JarateKing[/url], he helped me a lot to improve this code.[/b]

~~~~~~~~~~~~~~~

so, those are the commands:
[code]alias "leuxd_say_a0" "say_team INCOMING"
alias "leuxd_say_a1" "say_team MEDIC"
alias "leuxd_say_a2" "say_team DOWN"
alias "leuxd_say_a3" "say_team UBER"
alias "leuxd_say_a4" "say_team PLEASE"
alias "leuxd_say_a5" "say_team HELP"
alias "leuxd_say_a6" "say_team SPY"
alias "leuxd_say_a7" "say_team ATTENTION"
alias "leuxd_say_a8" "say_team ENEMY"
alias "leuxd_say_a9" "say_team IN OUR BASE"

bind "KP_INS" "leuxd_say_a0" // 0
bind "KP_END" "leuxd_say_a1" // 1
bind "KP_DOWNARROW" "leuxd_say_a2" // 2
bind "KP_PGDN" "leuxd_say_a3" // 3
bind "KP_LEFTARROW" "leuxd_say_a4" // 4
bind "KP_5" "leuxd_say_a5" // 5
bind "KP_RIGHTARROW" "leuxd_say_a6" // 6
bind "KP_HOME" "leuxd_say_a7" // 7
bind "KP_UPARROW" "leuxd_say_a8" // 8
bind "KP_PGUP" "leuxd_say_a9" // 9[/code]

[b][u]To install them, put the commands in your config.cfg[/u][/b]

[u][i]"Why would i use them?"[/i][/u], you might ask. And the answer is easy: [u]to facilitate the communication with teammates.[/u]

Want examples? Here are some:

[code]
1+2 = medic down
7+8+6+9 = attention, enemy spy in our base
7+8+9 = attention, enemy in our base
4+5+8+3+1+0 = please help enemy uber medic incoming
7+6 = attention spy
7+8+6 = attention enemy spy
[/code]

now is up to you to create your own voice/chat commands.

oh, and, if you want to make your voice commands public (for your team and the enemy team, just use this code instead:
[code]alias "leuxd_say_b0" "say INCOMING"
alias "leuxd_say_b1" "say MEDIC"
alias "leuxd_say_b2" "say DOWN"
alias "leuxd_say_b3" "say UBER"
alias "leuxd_say_b4" "say PLEASE"
alias "leuxd_say_b5" "say HELP"
alias "leuxd_say_b6" "say SPY"
alias "leuxd_say_b7" "say ATTENTION"
alias "leuxd_say_b8" "say ENEMY"
alias "leuxd_say_b9" "say IN OUR BASE"

bind "KP_INS" "leuxd_say_a0" // 0
bind "KP_END" "leuxd_say_a1" // 1
bind "KP_DOWNARROW" "leuxd_say_a2" // 2
bind "KP_PGDN" "leuxd_say_a3" // 3
bind "KP_LEFTARROW" "leuxd_say_a4" // 4
bind "KP_5" "leuxd_say_a5" // 5
bind "KP_RIGHTARROW" "leuxd_say_a6" // 6
bind "KP_HOME" "leuxd_say_a7" // 7
bind "KP_UPARROW" "leuxd_say_a8" // 8
bind "KP_PGUP" "leuxd_say_a9" // 9[/code]



maybe i'll create more, maybe not, i don't know, i just hope you all enjoyed the ideia, if you have any question, it's simple, just ask, bye
2
#2
6 Frags +

Wtf ???? Virus program stole all my hats!!!! Someone pls call an admin

Wtf ???? Virus program stole all my hats!!!! Someone pls call an admin
3
#3
24 Frags +
LeuxD4+5+8+3+1+0 = please help enemy uber medic incoming

the uber will fade by the time I press all of these in the exact order

[quote=LeuxD]4+5+8+3+1+0 = please help enemy uber medic incoming[/quote]
the uber will fade by the time I press all of these in the exact order
4
#4
31 Frags +

https://d1aeri3ty3izns.cloudfront.net/media/14/145712/1200/preview_1.jpg

[img]https://d1aeri3ty3izns.cloudfront.net/media/14/145712/1200/preview_1.jpg[/img]
5
#5
-2 Frags +
VisLeuxD4+5+8+3+1+0 = please help enemy uber medic incomingthe uber will fade by the time I press all of these in the exact order

if so, 8+3+1+0 (enemy uber medic incoming) or just 3+1+0 (uber medic incoming)

[quote=Vis][quote=LeuxD]4+5+8+3+1+0 = please help enemy uber medic incoming[/quote]
the uber will fade by the time I press all of these in the exact order[/quote]

if so, 8+3+1+0 (enemy uber medic incoming) or just 3+1+0 (uber medic incoming)
6
#6
-5 Frags +
deguhttps://d1aeri3ty3izns.cloudfront.net/media/14/145712/1200/preview_1.jpg

why? just why? xD

[quote=degu][img]https://d1aeri3ty3izns.cloudfront.net/media/14/145712/1200/preview_1.jpg[/img][/quote]

why? just why? xD
7
#7
-2 Frags +
SylentWtf ???? Virus program stole all my hats!!!! Someone pls call an admin

uh-huh, of course.

[quote=Sylent]Wtf ???? Virus program stole all my hats!!!! Someone pls call an admin[/quote]

uh-huh, of course.
8
#8
13 Frags +

HELP THIS GAME REBOUND ALL OF MY KEYS THEN TYPED UNBINDALL IN CONSOLE THEN REBOUND ALL THE KEYS TO SAY THE N WORD HELP

HELP THIS GAME REBOUND ALL OF MY KEYS THEN TYPED UNBINDALL IN CONSOLE THEN REBOUND ALL THE KEYS TO SAY THE N WORD HELP
9
#9
16 Frags +

this is actually fucking genius

this is actually fucking genius
10
#10
0 Frags +
driftathis is actually fucking genius

Thank you so much! If you are using it, PLEASE UPDATE, i made a huge mistake, please replace the old code with this new one. I'm sorry and thank you anyway!

[quote=drifta]this is actually fucking genius[/quote]

Thank you so much! If you are using it, PLEASE UPDATE, i made a huge mistake, please replace the old code with this new one. I'm sorry and thank you anyway!
11
#11
2 Frags +
LeuxD
bind "NUMPAD0" "say_team INCOMING"
bind "NUMPAD1" "say_team MEDIC"
bind "NUMPAD2" "say_team DOWN"
bind "NUMPAD3" "say_team UBER"
bind "NUMPAD4" "say_team PLEASE"
bind "NUMPAD5" "say_team HELP"
bind "NUMPAD6" "say_team SPY"
bind "NUMPAD7" "say_team ATTENTION"
bind "NUMPAD8" "say_team ENEMY"
bind "NUMPAD9" "say_team IN OUR BASE"

The binds should be:

bind "KP_INS" "say_team INCOMING" // 0
bind "KP_END" "say_team MEDIC" // 1
bind "KP_DOWNARROW" "say_team DOWN" // 2
bind "KP_PGDN" "say_team UBER" // 3
bind "KP_LEFTARROW" "say_team PLEASE" // 4
bind "KP_5" "say_team HELP" // 5
bind "KP_RIGHTARROW" "say_team SPY" // 6
bind "KP_HOME" "say_team ATTENTION" // 7
bind "KP_UPARROW" "say_team ENEMY" // 8
bind "KP_PGUP" "say_team IN OUR BASE" // 9

As per https://wiki.teamfortress.com/wiki/Scripting#List_of_key_names

Alternatively you can make it easier for the user to rebind it by doing something like this:

alias leuxd_say_0 "say_team INCOMING"
alias leuxd_say_1 "say_team MEDIC"
//...

bind "KP_INS" "leuxd_say_0"
bind "KP_DOWNARROW" "leuxd_say_1"
//..
[quote=LeuxD][code]bind "NUMPAD0" "say_team INCOMING"
bind "NUMPAD1" "say_team MEDIC"
bind "NUMPAD2" "say_team DOWN"
bind "NUMPAD3" "say_team UBER"
bind "NUMPAD4" "say_team PLEASE"
bind "NUMPAD5" "say_team HELP"
bind "NUMPAD6" "say_team SPY"
bind "NUMPAD7" "say_team ATTENTION"
bind "NUMPAD8" "say_team ENEMY"
bind "NUMPAD9" "say_team IN OUR BASE"[/code][/quote]
The binds should be:
[code]bind "KP_INS" "say_team INCOMING" // 0
bind "KP_END" "say_team MEDIC" // 1
bind "KP_DOWNARROW" "say_team DOWN" // 2
bind "KP_PGDN" "say_team UBER" // 3
bind "KP_LEFTARROW" "say_team PLEASE" // 4
bind "KP_5" "say_team HELP" // 5
bind "KP_RIGHTARROW" "say_team SPY" // 6
bind "KP_HOME" "say_team ATTENTION" // 7
bind "KP_UPARROW" "say_team ENEMY" // 8
bind "KP_PGUP" "say_team IN OUR BASE" // 9[/code]
As per https://wiki.teamfortress.com/wiki/Scripting#List_of_key_names

Alternatively you can make it easier for the user to rebind it by doing something like this:
[code]alias leuxd_say_0 "say_team INCOMING"
alias leuxd_say_1 "say_team MEDIC"
//...

bind "KP_INS" "leuxd_say_0"
bind "KP_DOWNARROW" "leuxd_say_1"
//..[/code]
12
#12
3 Frags +

using numpad keys to communicate quickly is counterintuitive

using numpad keys to communicate quickly is counterintuitive
13
#13
8 Frags +

ill just press my voice chat key and use my voice (i have vocal chords) to let my team know any information they need to know

ill just press my voice chat key and use my voice (i have vocal chords) to let my team know any information they need to know
14
#14
6 Frags +

GO GO GO

GO GO GO
15
#15
-1 Frags +
JarateKingLeuxD
bind "NUMPAD0" "say_team INCOMING"
bind "NUMPAD1" "say_team MEDIC"
bind "NUMPAD2" "say_team DOWN"
bind "NUMPAD3" "say_team UBER"
bind "NUMPAD4" "say_team PLEASE"
bind "NUMPAD5" "say_team HELP"
bind "NUMPAD6" "say_team SPY"
bind "NUMPAD7" "say_team ATTENTION"
bind "NUMPAD8" "say_team ENEMY"
bind "NUMPAD9" "say_team IN OUR BASE"
The binds should be:
bind "KP_INS" "say_team INCOMING" // 0
bind "KP_END" "say_team MEDIC" // 1
bind "KP_DOWNARROW" "say_team DOWN" // 2
bind "KP_PGDN" "say_team UBER" // 3
bind "KP_LEFTARROW" "say_team PLEASE" // 4
bind "KP_5" "say_team HELP" // 5
bind "KP_RIGHTARROW" "say_team SPY" // 6
bind "KP_HOME" "say_team ATTENTION" // 7
bind "KP_UPARROW" "say_team ENEMY" // 8
bind "KP_PGUP" "say_team IN OUR BASE" // 9
As per https://wiki.teamfortress.com/wiki/Scripting#List_of_key_names

Alternatively you can make it easier for the user to rebind it by doing something like this:
alias leuxd_say_0 "say_team INCOMING"
alias leuxd_say_1 "say_team MEDIC"
//...

bind "KP_INS" "leuxd_say_0"
bind "KP_DOWNARROW" "leuxd_say_1"
//..

hey, thank yo'u so much! i'll update this later, i'm busy now, but thank you anyways. let me just ask you a thing, do you liked the idea?

[quote=JarateKing][quote=LeuxD][code]bind "NUMPAD0" "say_team INCOMING"
bind "NUMPAD1" "say_team MEDIC"
bind "NUMPAD2" "say_team DOWN"
bind "NUMPAD3" "say_team UBER"
bind "NUMPAD4" "say_team PLEASE"
bind "NUMPAD5" "say_team HELP"
bind "NUMPAD6" "say_team SPY"
bind "NUMPAD7" "say_team ATTENTION"
bind "NUMPAD8" "say_team ENEMY"
bind "NUMPAD9" "say_team IN OUR BASE"[/code][/quote]
The binds should be:
[code]bind "KP_INS" "say_team INCOMING" // 0
bind "KP_END" "say_team MEDIC" // 1
bind "KP_DOWNARROW" "say_team DOWN" // 2
bind "KP_PGDN" "say_team UBER" // 3
bind "KP_LEFTARROW" "say_team PLEASE" // 4
bind "KP_5" "say_team HELP" // 5
bind "KP_RIGHTARROW" "say_team SPY" // 6
bind "KP_HOME" "say_team ATTENTION" // 7
bind "KP_UPARROW" "say_team ENEMY" // 8
bind "KP_PGUP" "say_team IN OUR BASE" // 9[/code]
As per https://wiki.teamfortress.com/wiki/Scripting#List_of_key_names

Alternatively you can make it easier for the user to rebind it by doing something like this:
[code]alias leuxd_say_0 "say_team INCOMING"
alias leuxd_say_1 "say_team MEDIC"
//...

bind "KP_INS" "leuxd_say_0"
bind "KP_DOWNARROW" "leuxd_say_1"
//..[/code][/quote]

hey, thank yo'u so much! i'll update this later, i'm busy now, but thank you anyways. let me just ask you a thing, do you liked the idea?
16
#16
5 Frags +

Are we gonna tell him or what?

Are we gonna tell him or what?
17
#17
-1 Frags +
JarateKingLeuxD
bind "NUMPAD0" "say_team INCOMING"
bind "NUMPAD1" "say_team MEDIC"
bind "NUMPAD2" "say_team DOWN"
bind "NUMPAD3" "say_team UBER"
bind "NUMPAD4" "say_team PLEASE"
bind "NUMPAD5" "say_team HELP"
bind "NUMPAD6" "say_team SPY"
bind "NUMPAD7" "say_team ATTENTION"
bind "NUMPAD8" "say_team ENEMY"
bind "NUMPAD9" "say_team IN OUR BASE"
The binds should be:
bind "KP_INS" "say_team INCOMING" // 0
bind "KP_END" "say_team MEDIC" // 1
bind "KP_DOWNARROW" "say_team DOWN" // 2
bind "KP_PGDN" "say_team UBER" // 3
bind "KP_LEFTARROW" "say_team PLEASE" // 4
bind "KP_5" "say_team HELP" // 5
bind "KP_RIGHTARROW" "say_team SPY" // 6
bind "KP_HOME" "say_team ATTENTION" // 7
bind "KP_UPARROW" "say_team ENEMY" // 8
bind "KP_PGUP" "say_team IN OUR BASE" // 9
As per https://wiki.teamfortress.com/wiki/Scripting#List_of_key_names

Alternatively you can make it easier for the user to rebind it by doing something like this:
alias leuxd_say_0 "say_team INCOMING"
alias leuxd_say_1 "say_team MEDIC"
//...

bind "KP_INS" "leuxd_say_0"
bind "KP_DOWNARROW" "leuxd_say_1"
//..

But, here, the alias are useless, i don't think the why should i use them

[quote=JarateKing][quote=LeuxD][code]bind "NUMPAD0" "say_team INCOMING"
bind "NUMPAD1" "say_team MEDIC"
bind "NUMPAD2" "say_team DOWN"
bind "NUMPAD3" "say_team UBER"
bind "NUMPAD4" "say_team PLEASE"
bind "NUMPAD5" "say_team HELP"
bind "NUMPAD6" "say_team SPY"
bind "NUMPAD7" "say_team ATTENTION"
bind "NUMPAD8" "say_team ENEMY"
bind "NUMPAD9" "say_team IN OUR BASE"[/code][/quote]
The binds should be:
[code]bind "KP_INS" "say_team INCOMING" // 0
bind "KP_END" "say_team MEDIC" // 1
bind "KP_DOWNARROW" "say_team DOWN" // 2
bind "KP_PGDN" "say_team UBER" // 3
bind "KP_LEFTARROW" "say_team PLEASE" // 4
bind "KP_5" "say_team HELP" // 5
bind "KP_RIGHTARROW" "say_team SPY" // 6
bind "KP_HOME" "say_team ATTENTION" // 7
bind "KP_UPARROW" "say_team ENEMY" // 8
bind "KP_PGUP" "say_team IN OUR BASE" // 9[/code]
As per https://wiki.teamfortress.com/wiki/Scripting#List_of_key_names

Alternatively you can make it easier for the user to rebind it by doing something like this:
[code]alias leuxd_say_0 "say_team INCOMING"
alias leuxd_say_1 "say_team MEDIC"
//...

bind "KP_INS" "leuxd_say_0"
bind "KP_DOWNARROW" "leuxd_say_1"
//..[/code][/quote]

But, here, the alias are useless, i don't think the why should i use them
18
#18
6 Frags +

I don't think the why he should use this either
answer this, karate King, is it a black and blue or white and gold dress?

I don't think the why he should use this either
answer this, karate King, is it a black and blue or white and gold dress?
19
#19
1 Frags +
LeuxDhey, thank yo'u so much! i'll update this later, i'm busy now, but thank you anyways. let me just ask you a thing, do you liked the idea?

A lot of people would probably use voice chat, but it's always good for new scripts to be made. I do remember hearing about a mute (maybe deaf? can't remember) player who would use a script like this, since they needed it for callouts.

LeuxDBut, here, the alias are useless, i don't think the why should i use them

If you want to add to the script to do more, it's easier. For example, if you wanted to change the script so that it prints everything out on one line (but requires multiple keypresses before it prints anything):

// commands to re-alias
alias leuxd_say_0 "leuxd_say_0a"
alias leuxd_say_1 "leuxd_say_1a"
//...

// first keypress, switch to different modes
alias leuxd_say_0a "alias leuxd_say_0 leuxd_say_00; alias leuxd_say_1 leuxd_say_10"
alias leuxd_say_1a "alias leuxd_say_0 leuxd_say_01; alias leuxd_say_1 leuxd_say_11"
//...

// second keypress, say different things
alias leuxd_say_00 "leuxd_reset; say_team UBERED SCOUT"
alias leuxd_say_01 "leuxd_reset; say_team UBERED SOLDIER"
//...
alias leuxd_say_10 "leuxd_reset; say_team INJURED SCOUT"
alias leuxd_say_11 "leuxd_reset; say_team INJURED SOLDIER"
//...

// additional logic
alias leuxd_reset "alias leuxd_say_0 leuxd_say_0a; alias leuxd_say_1 leuxd_say_1a"

// the binds remain the same as before
bind "KP_INS" "leuxd_say_0"
bind "KP_DOWNARROW" "leuxd_say_1"
//...

That's one of the main reasons that using aliases, even when you don't need to, is a "best practice." It just makes things easier when you want to change it later.

wtzI don't think the why he should use this either
answer this, karate King, is it a black and blue or white and gold dress?
Show Content
[quote=LeuxD]hey, thank yo'u so much! i'll update this later, i'm busy now, but thank you anyways. let me just ask you a thing, do you liked the idea?[/quote]A lot of people would probably use voice chat, but it's always good for new scripts to be made. I do remember hearing about a mute (maybe deaf? can't remember) player who would use a script like this, since they needed it for callouts.

[quote=LeuxD]But, here, the alias are useless, i don't think the why should i use them[/quote]
If you want to add to the script to do more, it's easier. For example, if you wanted to change the script so that it prints everything out on one line (but requires multiple keypresses before it prints anything):
[code]// commands to re-alias
alias leuxd_say_0 "leuxd_say_0a"
alias leuxd_say_1 "leuxd_say_1a"
//...

// first keypress, switch to different modes
alias leuxd_say_0a "alias leuxd_say_0 leuxd_say_00; alias leuxd_say_1 leuxd_say_10"
alias leuxd_say_1a "alias leuxd_say_0 leuxd_say_01; alias leuxd_say_1 leuxd_say_11"
//...

// second keypress, say different things
alias leuxd_say_00 "leuxd_reset; say_team UBERED SCOUT"
alias leuxd_say_01 "leuxd_reset; say_team UBERED SOLDIER"
//...
alias leuxd_say_10 "leuxd_reset; say_team INJURED SCOUT"
alias leuxd_say_11 "leuxd_reset; say_team INJURED SOLDIER"
//...

// additional logic
alias leuxd_reset "alias leuxd_say_0 leuxd_say_0a; alias leuxd_say_1 leuxd_say_1a"

// the binds remain the same as before
bind "KP_INS" "leuxd_say_0"
bind "KP_DOWNARROW" "leuxd_say_1"
//...[/code]That's one of the main reasons that using aliases, even when you don't need to, is a "best practice." It just makes things easier when you want to change it later.

[quote=wtz]I don't think the why he should use this either
answer this, karate King, is it a black and blue or white and gold dress?[/quote]
[spoiler]black andd blu:[img]https://i.ytimg.com/vi/RC29owrs6t4/hqdefault.jpg[/img][/spoiler]
20
#20
1 Frags +
JarateKingLeuxDhey, thank yo'u so much! i'll update this later, i'm busy now, but thank you anyways. let me just ask you a thing, do you liked the idea?A lot of people would probably use voice chat, but it's always good for new scripts to be made. I do remember hearing about a mute (maybe deaf? can't remember) player who would use a script like this, since they needed it for callouts.
LeuxDBut, here, the alias are useless, i don't think the why should i use themIf you want to add to the script to do more, it's easier. For example, if you wanted to change the script so that it prints everything out on one line (but requires multiple keypresses before it prints anything):
// commands to re-alias
alias leuxd_say_0 "leuxd_say_0a"
alias leuxd_say_1 "leuxd_say_1a"
//...

// first keypress, switch to different modes
alias leuxd_say_0a "alias leuxd_say_0 leuxd_say_00; alias leuxd_say_1 leuxd_say_10"
alias leuxd_say_1a "alias leuxd_say_0 leuxd_say_01; alias leuxd_say_1 leuxd_say_11"
//...

// second keypress, say different things
alias leuxd_say_00 "leuxd_reset; say_team UBERED SCOUT"
alias leuxd_say_01 "leuxd_reset; say_team UBERED SOLDIER"
//...
alias leuxd_say_10 "leuxd_reset; say_team INJURED SCOUT"
alias leuxd_say_11 "leuxd_reset; say_team INJURED SOLDIER"
//...

// additional logic
alias leuxd_reset "alias leuxd_say_0 leuxd_say_0a; alias leuxd_say_1 leuxd_say_1a"

// the binds remain the same as before
bind "KP_INS" "leuxd_say_0"
bind "KP_DOWNARROW" "leuxd_say_1"
//...
That's one of the main reasons that using aliases, even when you don't need to, is a "best practice." It just makes things easier when you want to change it later.
wtzI don't think the why he should use this either
answer this, karate King, is it a black and blue or white and gold dress?
Show Content

thank you so much, again, but, i'm really new to tf2's coding, so i didn't understand a big part of the coding, i'm sorry.
if you want so, we can talk to each other in a private chat, that would be way more easier.
(also, i'm sorry about my english, it isn't my first language)

[quote=JarateKing][quote=LeuxD]hey, thank yo'u so much! i'll update this later, i'm busy now, but thank you anyways. let me just ask you a thing, do you liked the idea?[/quote]A lot of people would probably use voice chat, but it's always good for new scripts to be made. I do remember hearing about a mute (maybe deaf? can't remember) player who would use a script like this, since they needed it for callouts.

[quote=LeuxD]But, here, the alias are useless, i don't think the why should i use them[/quote]
If you want to add to the script to do more, it's easier. For example, if you wanted to change the script so that it prints everything out on one line (but requires multiple keypresses before it prints anything):
[code]// commands to re-alias
alias leuxd_say_0 "leuxd_say_0a"
alias leuxd_say_1 "leuxd_say_1a"
//...

// first keypress, switch to different modes
alias leuxd_say_0a "alias leuxd_say_0 leuxd_say_00; alias leuxd_say_1 leuxd_say_10"
alias leuxd_say_1a "alias leuxd_say_0 leuxd_say_01; alias leuxd_say_1 leuxd_say_11"
//...

// second keypress, say different things
alias leuxd_say_00 "leuxd_reset; say_team UBERED SCOUT"
alias leuxd_say_01 "leuxd_reset; say_team UBERED SOLDIER"
//...
alias leuxd_say_10 "leuxd_reset; say_team INJURED SCOUT"
alias leuxd_say_11 "leuxd_reset; say_team INJURED SOLDIER"
//...

// additional logic
alias leuxd_reset "alias leuxd_say_0 leuxd_say_0a; alias leuxd_say_1 leuxd_say_1a"

// the binds remain the same as before
bind "KP_INS" "leuxd_say_0"
bind "KP_DOWNARROW" "leuxd_say_1"
//...[/code]That's one of the main reasons that using aliases, even when you don't need to, is a "best practice." It just makes things easier when you want to change it later.

[quote=wtz]I don't think the why he should use this either
answer this, karate King, is it a black and blue or white and gold dress?[/quote]
[spoiler]black andd blu:[img]https://i.ytimg.com/vi/RC29owrs6t4/hqdefault.jpg[/img][/spoiler][/quote]

thank you so much, again, but, i'm really new to tf2's coding, so i didn't understand a big part of the coding, i'm sorry.
if you want so, we can talk to each other in a private chat, that would be way more easier.
(also, i'm sorry about my english, it isn't my first language)
21
#21
3 Frags +

if u dont have numpad you're are fucked lol

if u dont have numpad you're are fucked lol
Please sign in through STEAM to post a comment.