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 stream highlights 13534 Need help binding a key 2 Charlie files 22 book megathread 90 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 Muma silly ranked :3 !coaching 32 Framesh1ft What does it mean to Goop?? 1 NatP TF2 on a nice Monday afternoon | New Twitch Emotes! 18 JesusTakeTheWeel [TF2] Brake fluid? There's no way you're that strong | Song Request Active (!sr) 9 Lunmawolf TF2 femboy gaming ฅ^•⩊•^ฅ 8 piquu_ tf2pickup 7 reitoryokosha Tf2 Monday: Snowed in Edition |!lurk|!discord 6 Walter_Karloff some more holiday mercs (team fortress 2) 5 pojiratel_petard симулятор шапок 2 5 Mr_Sve Day 15 of Spy Grind Until i Master it 3 Motia_YT Как прошёл ваш понедельник? 3 strikeranima TF2. Abandone a Lógica, Abrace a Loucura e VENHA COMIGO! 3 unlikelypotato 24/7 Fake betting on matches- !Hatapalooza 3 TheHydeplace TF2 und andere games 2 Keksiz LT/EN Chill'as Ant geimuka YES/NO? 1 Hay_wee Tour 37 and still no aussie :( 1 mohamrs 1 Imitato4 Привыкаю и учусь играть =w= 1 itaranoff 1 HOST_ERROR520 ИГРАЕМ В ТФ2 С КРЫСОЙ И ПАКЕТОМ 1 AdDaveOfficial PARA-SOLDIER CASUAL GAMING! 1 mheavy_244466666 jugando un juego de terro de tf2 1 dima_wallhacks 2906 CroissantStrikeTV LIVE 24H AVEC LE CREW ! 2791 LRU_ROSE Добрый предновогодний прем 2132 BANDURKA ОТКУДА ТАКОЙ ОНЛАЙН? -> ЧИТАЙ ЗАКРЕП В ЧАТЕ | !bcgame !playerok !lisskins !myfood !tg 2020 hypetried back rank#1 faceit prem solo 3-4 games / !tg чуть грустный 1848 bt0tv APROVEITAMENTO OTIMO, LEVEL 20 EM 2025! // !hellcase !sorteio !skinplace !pix 1828 RachelR не стригусь и не бреюсь пока не верну 3к w\ @faydett_csgo @dadte 1802 renyan ⚠️ +W GUY RETURNS TO PREMIER ⚠️ 200k SUBS ON YT TODAY? ⚠️ !deskmat !csmoney !modfest 1365 FORZOREZOR ТУРНИР 2х2 на 20 000$ w/ @deko (delay 40 sec) // !win !тг 1248 wastzera LOBBY DE FINAL DE ANO COM O CHAT 1226 baz1221 премиальная лига w/ @gr1ksss | !тг !бб !funpay 1201 shnuk_pauks новогодний вайб имеется чуток? 1028 PSP1G CS2 PREMIER! !discord !skins 1013 tictacimus 843 rallencs2 664 VodkaTeams VODKA TEAM 2x2 NEW YEAR CUP / by @mousett @malik_cs 651 Eastahh BACK TO GRIND YAHOOOO 624 Topson Hello 14769 avice high skill dota 1.5k mmr top 100 eu ladder no jokes only tryhard !путьвкиберспорт !тимспиритжди !betboom 4267 qojqva BACK TO GRIND 16K MMR NEXT !YOUTUBE !IG 3058 CISdota2 Team Spirit Academy - Pipsqueak+4 | CIS Battle 4 | @ALRuMtv 3005 CISpapa Team Spirit Academy - Pipsqueak+4 | CIS Battle 4 | @cispapa | 20 2322 Daxak тест стрим только для фанатов.без хейта плз !тг !ютуб 1821 JustCooman с наступающим.. 1570 RadiKa1fa ДАРОВА 1002 follow4ce CIS BATTLE #4 | SPIRIT ACADEMY - PIPSQUEK | СТРИМ ДОБРА И ПОЗИТИВА (АНАЛИТИКА В !TG) 989 perdeda88 ДЕДУШКА БУСТОЗ НОВОГОДНИЙ БУСТ НА МИДЕ ДАРЮ ММР ЗРИТЕЛЯМ !1080 !tg !gta !донат 905 k13tv RENOVADO 10/10 TRYHARD EUROPA ⚔️ !SECRET !MASTER !FALLEN !LOJA 902 Dendi 775 maxon_v_casino_4104171 MAXON! теги для поиска: ЗУБАРЕВ ЛОРД БУСТЕР ЛУДОЖОП ЕГОРКРИД ЕГОРКРИД vitus vitus_tv медисон евелон zubarefff zubarev зубареффф хованский 767 snessh !bc !кешбек !розыгрыш ЛЮТЕЙШИЙ АБУЗ ИМБЫ ПАТЧА 7.40 ПОТ В КАЖДОЙ КАТКЕ 716 mistercop НОВЫЙ ПАТЧ 689 rxnexus Я победитель 590 WagamamaTV Chill tryharding? is there such a thing? we vibe 575 BzzIsPerfect АНАЛИЗИРУЕМ CIS Battle 525 syndereN IMMORTAL LEADERBOARD CLIMB | 497 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