r/Tf2Scripts • u/flametornado59 • May 28 '20
Satisfied Comp Script
What I want my script to do is that if I press control and a number at the same time, it says in team chat a specific class is down. Like if I press control and 3, it says in team chat Pyro Down. I want it to follow the class selection order, from scout to spy. This might be a tough script, so I thank anybody who does it
6
Upvotes
4
u/pdatumoj May 28 '20
Given how modifier key setups have to work in TF2 scripting, anyone building this would have to either assume your other uses for the involved keys are purely default or would have to be informed of what else you're doing with them already, so you may want to provide some more information.
Also, in most competitive play, you'd be expected to do this via a voice call - i.e. mumble, discord, teamspeak, ventrillo, etc.... so it probably has limited usefulness - especially since Valve's own attempt at competitive has no class limits, and thus class-down announcements would be of very limited use.
On a practical note, using the setup you describe, announcing medic, sniper, or spy down is going to be quite a stretch - literally. That won't exactly be a quick hand motion, which is what I'm assuming you'd want.
4
u/just_a_random_dood May 29 '20 edited May 29 '20
I believe that this will do what you're asking for, but you're not going to get much use out of it past demo, especially not for Med or Sniper, the two main ones
Honestly, get a mic, they're not expensive as long as you're not picky and you can do so much more like "this player is weak" and "this player is on this part of the map"
Killing people:
TL;DR, this was basically just a copy/paste job for me from a class switching script I use, but it's not good and won't be seen by most people anyways. Your only real hope of this being is seen is by spamming it and annoying everyone on your team.
3
u/Siouxsie2011 May 29 '20
If your keyboard has a numpad try this script out, it lets you use 1-9 to call if a class is low or dead, or to switch to that class (plus some binds for smiley faces):
If you want to adapt it to use on the number row I've commented at the parts to change