Scripting Voice Commands

Community News poLANd.tf 2026 Group B preview 0 poLANd.tf 2026 viewers' guide 2 poLANd.tf 2026 Group A preview 0 Ü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 Upcoming Events RGL Miniseason 2026 W5A: The Tub vs. GlobalClan 0 Essential Intelligence: Fancy and co on poLANd.tf 3 RGL HL S23 W5: Dumb Kids vs. Witness Gaming 0 RGL Miniseason 2026 W4B: TRAPNEST vs. The Tub 0 RGL Miniseason 2026 W4A: Witness Gaming XIAO vs. GlobalClan 0 OZF S45 W1 Main: Salt Free Gaming vs. Jujutsu Kaisen 0 OZF S45 W1: Ascension vs. Willy's Theory 0 RGL HL S23 W5: Penguin Logistics vs. Dumb Kids 0 Recent Discussion poLANd.tf 2026 #highlander 7 poLANd.tf 2026 43 Reporting Misconduct in the Community 1 Insane TF2 Thumbnails. 6 MGE.tf 1v1 and 2v2 League - NA EU ASIA 1 Frag Clips Thread 10141 shadowplay clipdumps 199 who is the donk of tf2 19 Cambonieboo has passed away 9 Eu goat 11 welcome to Overtime podcast 31 looking for old school ricco frag clip 5 Team Comtress 2 228 RGL Miniseason 2026 W5A: The Tub vs. GlobalClan 0 TF2 Log Searcher 36 Live Streams TF.TV TF2 CS:GO Dota2 nubbi 20 HiGPS Monday Manned Machines TF2 Session. Nofun has been nerfed! 6 Deathy Only playing ethical heroes (real) | Pocket, Celeste, Lash !academy 1590 dissy peli 4 a Woolen Sleevelet kinda of an osu! guy 1 nubbi_ 20 Benji_main 4 STREAMS IN A ROW (TODAY MVM ENTIRE TOUR WITH THE HOMIES! <3) 12 モビット couple pickupzzz 11 MommaNatsumi Team Furr Two then art 8 HiGPS Monday Manned Machines TF2 Session. Nofun has been nerfed! 6 DerKuchiii Tf2 dies das 6 Daliggowski1 [LIVE] wszystkie drogi prowadzą do TF2 6 Ahbeebo Just tf2 stuff 5 Sossok_ Scrim D2 Playoffs | !discord 5 anyashy Respect chicken10 |RUS !funpay !аниме 5 korehan [Vtuber] I don't have a headache this time | !discord 5 sashka_29pro Веселимся в кс2,team fortrees 2 и Garry’s mod 5 0yeatia [TF2] More Demo Praccy 4 swaggyruhn scrim 19 20 4 Fizik_Abi i dont really know but we're fragging 3 wielkitlok 19 scrim + 20:30 playoffs 3 quxy7 spy 2 TomsM8 2 mapashem TF2 re loco tomando mate 2 ItsFurFox GET FREE WIFI ANYWHERE YOU GO | 2 shadowkekw TEAM DEKO [1:0] TEAM SKYWHYWALKER | SHADOWKEKW R 35048 megatestvideo CS2 С Мориарти 30595 skywhywalker 13964 deko TEAM DEKO [1:0] TEAM SKYWHYWALKER | ROFL STREAMERS BATTLE SHADOWKEKW 9591 tarik CS2 wooooo - Twitter @tarik 4358 MegaRush51 3043 pashaBiceps teraz albo nigdy 3k ELO solo dream 2260 Lobanjicaa $10,000 FOR TOP3 BONUS CALLS FROM CHAT | CLAIM $60,000+ IN REWARDS ON MY !SITE | !rainbet !luxdrop !rain !dmarket 1997 ESLCS LIVE: Ursa vs BIG Academy - ESL Challenger League - Season 51 - EU 1958 FORZOREZOR ИГРАЕМ ТУРНИР ШЕДОУКЕКА w/ @deko @by_owl @rostikfacekid @skillz0r1337 // !win !тг 1830 fl0m 1V1 CS AIR HOCKEY TOURNAMENT Presented by iBUYPOWER & SanDisk !IBP !SANDISK 1616 PAGO3 1450 wastzera LIVE ON, HJ TEM TREINO LAMPIOES 1221 desm0ntt 1195 IzakOOO IGL EMERITOS BANDITOS - FACEITY Z EKIPĄ 1168 FlareyCS 1075 Fenya Новая Обнова ✅ !tg !mycsgo !розыгрыш 1055 RNakano 938 akyuliych ТРЕНИРУЕМСЯ С КОМАНДОЙ В КОНТРЕ ЕМАЕ/ ROAD TO 1LVL FAECIT 837 megadotastream Dota 2/// 7101 Stray228 Бесплатно обучаю стоять мид на любом рейтигге, играем против Денди и Фанника, заходи и учись братишка !tg !wow !крипта !Majestic 5601 qojqva 4437 rostislav_999 4405 avice 18к ммр !путьвкиберспорт !тимспиритжди !betboom !tg 3329 Daxak играю турнир в команде с дахаком !бусти !фонбет !тг !разбор !ютуб 3036 ybicanoooobov НОЧНЫЕ ДВИЖЕНИЯ ВМЕСТЕ С ДЯДЕЙ ФЕДОРОМ 1776 judah_xx 8000mmr | 20 аркан розыгрыш в !tg !ggsel !winline !тиктоки 1669 Dominator_Kisokk 1323 betboom_dota_ru4 paiN Gaming - AVULUS | CCT Season 2 Series #8 | by @neret17 1302 QAVIVI 1214 gigagercz ЖОСКАЯ ДОТА 1163 llopmenbar ДОТА 2 ЭТО КРУТО 1062 northwarrior666 играем в дотку 846 molodooyq ПРОФЕССИОНАЛЬНОЕ ПОДНЯТИЕ РЕЙТИНГА 8-12К | Розыгрыш в !tg 662 mary_day увлекательный матчмейкинг ^_^ 12600 ахахха) тыща) 2026) long stream 633 Quinndota Dire Straits 596 k13tv MAIN EUROPA TRYHARD ⚔️ !CURSO !SECRET !MASTER !FALLEN 574 PGL_Dota2 HIGHLIGHTS RERUN: PGL Wallachia Season 7 534 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