Scripting Voice Commands

Community News ÜBERFEST 2025 Invite preview 2 ÜBERFEST 2025 viewers' guide 0 RGL LAN 2025 viewers' guide 0 LAN Downunder 2025 viewers' guide 6 Pacific Showdown: The Ultimate East vs. South Clash 6 MGE.tf announces $5000 1v1 World Championship 1 Physgun Fireside Denver 2025 Invitational preview 0 Physgun Fireside Denver 2025 viewers' guide 17 Upcoming Events 18d › Summer Brawl 2026 - Live from Brisbane AUS 0 OZF S44 GF: bAUlls vs. Wog & Co. 0 ETF2L 6v6 Season 50 (Autumn 2025) Powered By Mannco.store: Awards Show 0 OZF S44 HL Open GF: IDK vs. 9RNT 0 TF2CC NC12 Showmatch: Team Khaltonus vs. Team DWW 0 RGL S19 AM GF: chewie vs. great players reunited 0 OZF S44 High GF - Rematch: Fredo v Digga vs. Flank of Doom 0 OZF S44 SF: TDFL vs. Ascension 0 Recent Discussion poLANd.tf 2026 19 Reporting Misconduct in the Community 1 book megathread 91 stream highlights 13534 Need help binding a key 2 Charlie files 22 1 more day until christmas 11 Summer Brawl 2026 - Live from Brisbane AUS 0 confess your tf2 sins 56 Team Comtress 2 220 christmas drinking 8 Demo Ark - Automated Demo Archiver 2 Frag Clips Thread 10094 merry griffmas 11 shadowplay clipdumps 193 Live Streams TF.TV TF2 CS:GO Dota2 Deathy The Holiday Challenge Continues. (i fixed TTS and alerts) 329 Bren OVERWATCH TIME 159 Muma silly ranked :3 !coaching 36 konr whelmed oncemore | !idd !kofi 5 Ggglygy gggPLAYZ™: they want my wave 4 Setlet [ 1 Framesh1ft What does it mean to Goop?? 1 Nu ms lnc attempts 1 vixentf2 pubs and temu revival mix @ 21 30 shegetz_ rocket jump, sticky jump, and surf to find my spark 20 Ilustrador_de_Sonhos 19 Mr_Sve Begger Bazooka Enjoyer here 18 roypuloh [CL] OLI SHETO 15 strikeranima TF2. Abandone a Lógica, Abrace a Loucura e VENHA COMIGO! 9 JereMJoestar 8 adveTF my throat hurts 6 bones_x32 test 5 TheHydeplace TF2, Reaktions und mehr 5 viiflame мыца ванять 4 Revenziii LET'S GO GAMBLING?!?! | Team Fortress 2 MvM & Casual | ROAD TO AFFILIATION & 5K HOURS ON TF2! | (2 DAYS TILL 2026!) 4 cookie_tf highlander with the boys at 21 4 unlikelypotato 24/7 Fake betting on matches- !Hatapalooza 4 BasiliskTheOberon [!DROPS][RUS/ENG] I am not afraid of the Ghosts! and protogens...and demoknights 4 boSe_tf merc 3 Season_Of_Slaps Regular Everyday Normal Bazzite Gamer | !advanced !starforge 3 tkffz Dégât dégât sur TF2 avec la team 2 MikkaCS 21 years young rising talent plays spy until he rage quits (skill issue) !7tv 2 0rder66dotexe TF2, maybe something after 2 inkmate0 БЕЗ МАШНЫ, ПРОВЕЛИ РАБОТУ НАД ОШИБКАМИ - ДЕНЬ 8 - ВЕРНУЛСЯ КАПИТАНОМ 3444 hypetried back rank#1 faceit prem solo 3-4 games / !tg чуть грустный 2398 BANDURKA ОТКУДА ТАКОЙ ОНЛАЙН? -> ЧИТАЙ ЗАКРЕП В ЧАТЕ | !bcgame !playerok !lisskins !myfood !tg 2085 MegaRush51 МЕГАПРОКАЧКА ИНВЕНТАРЕЙ ЗРИТЕЛЯМ до 20.000 РУБЛЕЙ! + ОТКРЫТИЕ КЕЙСОВ И ТЕСТ САЙТОВ 2043 FURI 2022 CroissantStrikeTV LA BOULANGE - RETOUR SUR L’ANNÉE, TOP20 HLTV, ETC. - LIVE 24H AVEC LE CREW ! 1959 renyan ⚠️ +W GUY RETURNS TO PREMIER ⚠️ 200k SUBS ON YT TODAY? ⚠️ !deskmat !csmoney !modfest 1479 fl0m premier | !fml 1326 zorlaKOKA [PT-ENG] TugaWanted222, nengue319, GameGear, LTYH1000, Mantorras, mfernandes, Dudries, SBThinker, GODMOTA, InfosecGuy, Guilherme Moura 1210 Anomaly 1170 viggomagiccc Faceit med elitenNNN !dm !esea !SKINS #reklame 1120 LINK1107 TEST В CS2 !drops !drop_events 993 FORZOREZOR 3000 elo червячок (25 сек delay) // !win !тг 854 supplyzk lobby pre virada 821 poka ✅ НОВЫЙ POKA ✅ МАШНАТОР 760 strakatv CS duo @nikomfps - 30s delay - !4vx !paginas !betwarrior !msi !corsair !noxie 757 VodkaTeams VODKA TEAM 2x2 NEW YEAR CUP / by @mousett @malik_cs 641 keliencs 4125 ELO TOP 17 RU | solo gameplay | PRIME FORM | !tg !sign !petuh 630 rizuqe im killing. high skill CS2 5000ELO скин за фолоу(... 629 Topson Hello 11893 CISdota2 Kalmychata - L1ga Team | CIS Battle 4 | @Neret17 6037 rostislav_999 ⛏︎DAY3⛏︎24Ч СТРИМ⛏︎С 0 ДО ТИТАНА⛏︎9 ДНЕЙ⛏︎КАЖДЫЙ ЛУЗ ПО 50К РАЗЫГРЫВАЮ⛏︎ЕСЛИ НЕ ПРОЙДУ M5G90⛏︎ 5917 avice high skill dota 1.5k mmr top 10000 eu ladder no jokes only tryhard !путьвкиберспорт !тимспиритжди !betboom 3856 Stray228 Обучаю искусству поднятия рейтинга, делаю соло + красиво !tg !крипта !wow 3671 qojqva BACK TO GRIND 16K MMR NEXT !YOUTUBE !IG 3359 TpaBoMaH Стрим из трехэтажной квартиры !румтур !думсдэй 2024 follow4ce CIS BATTLE #4 | KALMYCHATA - L1 | СТРИМ ДОБРА И ПОЗИТИВА (АНАЛИТИКА В !TG) 1740 JustCooman с наступающим.. 1620 holywakamole 2-3 Years Dagestan and forget ! 1271 limitlessqt 14к | 3 поз | Эгоисто мод | !tg | !Colizeum | СБОРКИ -> https://t.me/limitlessqt 1101 MamaHotelaDochTV ТОП 7196 на зеленой дорожке (утром до ~9:00) 1009 derevenskiyparenek !Розыгрыш - Качаем фейсит 1502 (13 день) Челлендж за 90 дн 2к ело 914 k13tv RENOVADO 10/10 TRYHARD EUROPA ⚔️ !SECRET !MASTER !FALLEN !LOJA 761 WagamamaTV Chill tryharding? is there such a thing? we vibe 739 seucreysonreborn 15k ATUAL CAMPEÃO BRASILEIRO - VAMU RI - 322 Q.I. 1300 TESTOTERONE !site !social !bmbr !flow !pix 669 Tema_Akc 556 EARTHQ__ 4 pos УЖАСЫ В СЕТИ !tg !betboom 536 Arancle 24-х часавой алко-стрим #спорт #зож !тг !донат 449 dubudota 15k Pos 5 EU rank, Winning stream :D !newvid !lft 390 Upvote Upvoted 5 Downvote Downvoted Scripting voice commands posted in Customization 1 #1 Cosbolt 0 Frags +

One thing that I've noticed when making cfgs that involve voice lines is that the "voicemenu" command is slightly screwed up. The TF2 wiki says that voicemenu 1 1 corresponds to the "Medic" voiceline. In-game, this is technically true; when you open the first voice menu 1 (z by default) then 1, your class will call for a medic. However, when scripting, voicemenu 1 1 corresponds to the "Spy!" voiceline. Essentially, for writing voice commands in your cfgs you have to simply subtract 1 from each number you would ordinarily put for the voice commands.

For example, the "Dispenser Here" command in-game is voice menu 2 (bound to x by default) and 5. But when scripting you need to type it as "voicemenu 1 4."

For convenience, I've organized all of the menu commands with their respective voice lines.

  • voicemenu 0 0 - Medic
  • voicemenu 0 1 - Thanks
  • voicemenu 0 2 - Go Go Go
  • voicemenu 0 3 - Move gear up
  • voicemenu 0 4 - Go Left
  • voicemenu 0 5 - Go Right
  • voicemenu 0 6 - Yes
  • voicemenu 0 7 - No
  • voicemenu 0 8 - Pass to me (who uses this???)
  • voicemenu 1 0 - Incomming
  • voicemenu 1 1 - Spy (Will designate class when crosshair is pointed at player)
  • voicemenu 1 2 - There's a Sentry Ahead
  • voicemenu 1 3 - Put a Teleporter Here
  • voicemenu 1 4 - Put a Dispenser Here! (most important command in the game)
  • voicemenu 1 5 - Put a Sentry here
  • voicemenu 1 6 - Activate Übercharge
  • voicemenu 1 7 - Übercharge Ready (Can only be used by medics or spies disguised as medics
  • voicemenu 1 8 - Pass to me
  • voicemenu 2 0 - Call for Help
  • voicemenu 2 1 - Battlecry
  • voicemenu 2 2 - Cheers
  • voicemenu 2 3 - Shit-talking
  • voicemenu 2 4 - Positive
  • voicemenu 2 5 - Negative
  • voicemenu 2 6 - Nice Shot
  • voicemenu 2 7 - Good job

If I missed anything feel free to correct me.

Edit: Formatting issues

One thing that I've noticed when making cfgs that involve voice lines is that the "voicemenu" command is slightly screwed up. [url=https://wiki.teamfortress.com/wiki/Voice_commands] The TF2 wiki [/url] says that voicemenu 1 1 corresponds to the "Medic" voiceline. In-game, this is technically true; when you open the first voice menu 1 (z by default) then 1, your class will call for a medic. [i]However,[/i] when scripting, voicemenu 1 1 corresponds to the "Spy!" voiceline. Essentially, for writing voice commands in your cfgs you have to simply subtract 1 from each number you would ordinarily put for the voice commands. For example, the "Dispenser Here" command in-game is voice menu 2 (bound to x by default) and 5. But when scripting you need to type it as "voicemenu 1 4." For convenience, I've organized all of the menu commands with their respective voice lines. [list] [*] voicemenu 0 0 - Medic [*] voicemenu 0 1 - Thanks [*] voicemenu 0 2 - Go Go Go [*] voicemenu 0 3 - Move gear up [*] voicemenu 0 4 - Go Left [*] voicemenu 0 5 - Go Right [*] voicemenu 0 6 - Yes [*] voicemenu 0 7 - No [*] voicemenu 0 8 - Pass to me (who uses this???) [*] voicemenu 1 0 - Incomming [*] voicemenu 1 1 - Spy (Will designate class when crosshair is pointed at player) [*] voicemenu 1 2 - There's a Sentry Ahead [*] voicemenu 1 3 - Put a Teleporter Here [*] voicemenu 1 4 - Put a Dispenser Here! (most important command in the game) [*] voicemenu 1 5 - Put a Sentry here [*] voicemenu 1 6 - Activate Übercharge [*] voicemenu 1 7 - Übercharge Ready (Can only be used by medics or spies disguised as medics [*] voicemenu 1 8 - Pass to me [*] voicemenu 2 0 - Call for Help [*] voicemenu 2 1 - Battlecry [*] voicemenu 2 2 - Cheers [*] voicemenu 2 3 - Shit-talking [*] voicemenu 2 4 - Positive [*] voicemenu 2 5 - Negative [*] voicemenu 2 6 - Nice Shot [*] voicemenu 2 7 - Good job [/list] If I missed anything feel free to correct me. Edit: Formatting issues posted about 8 years ago quote multi-quote link 2 #2 gibus 6 Frags +

ok so add that to the wiki? nvm its already there lol

"It is to be noted, that when trying to use voice commands in a script, that each of the menus has a different number that must be used. For example, voice menu 1 would be voice menu 0 when trying to script. More information can be found in the Wiki's Scripting page."

also its not "screwed up" who cares if it starts at 0 and not 1

[s]ok so add that to the wiki?[/s] nvm its already there lol "It is to be noted, that when trying to use voice commands in a script, that each of the menus has a different number that must be used. For example, voice menu 1 would be voice menu 0 when trying to script. More information can be found in the Wiki's Scripting page." also its not "screwed up" who cares if it starts at 0 and not 1 posted about 8 years ago edited about 8 years ago quote multi-quote link 3 #3 Brimstone 4 Frags +

Starting at 0 and not 1 is simply because that's how computers like to work, index 0 is a thing

Starting at 0 and not 1 is simply because that's how computers like to work, index 0 is a thing posted about 8 years ago quote multi-quote link 4 #4 Cosbolt 0 Frags + BrimstoneStarting at 0 and not 1 is simply because that's how computers like to work, index 0 is a thing

TIL, thanks

[quote=Brimstone]Starting at 0 and not 1 is simply because that's how computers like to work, index 0 is a thing[/quote] TIL, thanks posted about 8 years ago quote multi-quote link Please sign in through STEAM to post a comment.

Tag » How To Bind Voice Commands Tf2