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 ETF2L 6v6 S51 W7: kek minoin samurai vs. The Sopranos 0 ETF2L 6v6 S51 W7: JOEY GUNZ vs. MANDEM 0 ETF2L 6v6 S51 W5: kek minoin samurai vs. DIRTY MAGGOTS 0 RGL HL S23 W1: DZCreatures vs. Locked In Syndrome 0 ETF2L 6v6 S51 W4: JOEY GUNZ vs. kek minoin samurai 0 ETF2L 6v6 S51 W6: MANDEM vs. The Sopranos 0 ETF2L 6v6 S51 W3: The Ender Pearls vs. JOEY GUNZ 0 ETF2L 6v6 S51 W3: kek minoin samurai vs. MANDEM 0 Recent Discussion poLANd.tf 2026 #highlander 3 poLANd.tf 2026 31 Reporting Misconduct in the Community 1 Game Won't Open :( 14 Worst TF2 Frag Videos? 355 wtf happened to ammomod mge 39 best pub quotes 1974 Frag Clips Thread 10116 Favorite part about your comp journey? 20 2025-2026 NBA Season 13 Flamethrower Rehabilitation 6 Team Comtress 2 221 RGL PUGs Public Alpha 345 ETF2L 6v6 S51 W7: kek minoin samurai vs. The Sopranos 0 ETF2L 6v6 S51 W7: JOEY GUNZ vs. MANDEM 0 Live Streams TF.TV TF2 CS:GO Dota2 stabbystabby back stabbath 81 Clark 15 Kegaman Little by little, remove myself from the middle 0 Yeremy Nioh 3 with my fav streamer 6 Zesty sunday night classic 3 Kinch Somebody stole my track record, and I want it back! 1 Avast The Super(Monkey)Ball 1 Seasonalander Seasonalander Winter 2026: Day 2 82 stabbystabby back stabbath 81 Dinky_Hotchkiss Rare sighting pt. 3 46 benya20tt [CHL]ONE MORE AUSSIE 19 VessixSpire [18+] Stupid Femboy plays TF2! 16 clarktf 15 holyonyx 15 ASmidgeofDidge Mann vs Machine BUT I'M THE MACHINE!? - A Team Fortress 2 Chaos MVM Community Livestream Part 2! MY FAN MADE THIS COOL MOD, SO LET'S PLAY IT 10 sxmuel DRINKING AND PLAYING CASUAL (WHO LETS THE DOGS OUT) 9 joaaa_111 jajaja jugando mix 6 ButteryScotsman Not so classified moments 5 Fiscal_2 Maus investimentos gaming 4 LumiStarveil [TF2Classic] °✧ Cozy Jellyfamily playing TF2C again! 4 anyashy стрим с вебкой ваааат? ENG|RUS !funpay !аниме 3 JustaBlackcube 3 Season_Of_Slaps Regular Everyday Normal Ubuntu Gamer | !advanced !starforge 3 HumFreY VIP Civilian Gameplay Team Fortress Classified 2 chubanutiy Ночной ТФ2 2 caritafreak HACE CALORR ayua ayuda |hachimin 2 DatRandomPanda Short Stream || !discord !fish 2 skywhywalker SKYWHYWALKER 2026 13967 ArrowCS 3413 MrDzinold GENOLT PREMKOVIĆ OFICJALNE TESTY SUPERSTRIKE [DELAY 25S] // !SUPERSTRIKE !STRONA 3094 Gaules RERUN: GRANDE FINAL IEM Kraków 2026 - !socio - Siga @Gaules nas redes sociais! 2484 shawdfxc To 10lvl #3 | !тг 1615 ESLCS RERUN: FURIA vs. Aurora - IEM Kraków 2026 - Quarterfinal 1547 fANDERCS 1528 Jentteno 1220 shrcs 1132 n1kkifn2003 ДЕНЬ 8 путь до 10 лвл (30 сек дилей) | !tg !конкурс !хаб 949 lollipop21k 3500 ELO КУПИЛ ДОМ В МИНСКЕ !tg !гайд 880 s_chilla Lyudskoe,premskoe, letspleerskoe 4000(potential)e1o !tg !tt 629 zorlaKOKA [PT-ENG] TugaWanted22, Mantorras, ltyh10000, nengue319, cenior, GameGear, bdengue, yewm123, mfernandes, Myster, Dudries, Carlosdvb 606 betboom_cs_ru5 ex-KRÜ Esports - 9z Team | CCT Season 3 SA Series #8 | by @georg_georgievich 604 danoc0 FPL + analise furia❗KEYDROP + R$ 130K no -> Sorteio do❗KEYDROP❗PirateSwap ❗Skinplace❗Curso ❗Faceit 573 jvzin7 [+18] - 538 Eastahh locked in part 3? // faceit grind 528 prcs COMPRO SKINS !skins | +12.000€ GIVEAWAY !csgoskins !forcedrop !pirateswap 451 sbolttt СНЯЛИ ВАК!!!!!! !vac ))))))) 418 Arteezy The Prison Warden (39/365) !multistream- Form 9.0/10 6817 Stray228 Буст на миде до номерных титянов, играем против Фанника и Денди !tg !wow 5889 ybicanoooobov НОЧНЫЕ ДВИЖЕНИЯ ВМЕСТЕ С ДЯДЕЙ ФЕДОРОМ 2916 JustCooman да ты че, базару нет 1791 w33haa Learn how to be a better player 1414 limitlessqt 14k | 3 поз | !pari | !tg | СБОРКИ -> https://t.me/limitlessqt 1385 masondota2 from: FAT BALD WASHED UP -> JACKED BALD PRO. DAY 1 1092 L4HMADJU Чилимся @ak1grizzly @malachev_ 1086 baxadoto day6 | ИДУ В ТОП 1 ЛАДДЕРА | MODE: MIRACLE || !tg !f 945 Smzinho Aquele, só aquele pra dormir - !SUPERBET - !LUNATAR - !LOLJA 887 seucreysonreborn 15k ATUAL CAMPEÃO BRASILEIRO - VAMU RI - 322 Q.I. 1300 TESTOTERONE !site !social !bmbr !flow !pix 854 Dendi 829 Korb3n Копенгаген 636 mrxsmurf ✅TOP 1 TINKER СВОЕЙ КОМНАТЫ✅!МЕТЕОР !TG !ДОНАТ !ЮТУБ✅ РОЗЫГРЫШ !TG !ДОНАТ !ЮТУБ 530 syndereN 474 rouszztrash 11000 carry / андерграунд стример / Phantom Lancer / Саня / анимешникам тут не рады 422 Sketcher Делайте вид что вы не боты в чате✅ 14k carry✅Новая Mouse✅ Better than Rtz✅ 14k carry pma gameplay✅ track 1$ ✅ С новым Годом✅ 394 ShiiShak 14K MMR Pos 4 Gameplay . !tg !winline 384 Uniquee Бессмысленно 11k ranked ✔ carry/mid !tg 364 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