Skip to content

Introduction

WhyIsEvery4thYearAlwaysBad edited this page Mar 24, 2021 · 10 revisions

This program is only for Source games. Also please note that captions will look different if you have a custom HUD or modified how captions are displayed.

What is a command menu?

In the Source Engine a voice command is a pre-defined call that makes the player say a voice line. They are organized in voice menus which are lists of voice commands.

Like this:

Zoomed-in older Team Fortress 2 voicemenu
A command menu is a voicemenu that is simulated using captions and scripting.

Like this:

List of text from captions.

Voice menus can be replicated with binds to run any command rather than just voice commands. These are called command menus. Command menus can also recursively run other command menus. Examples of this behavior are in Concise Menu scripts.[1][2]

Voice menu vs. Command menu

± - Negligible benefit.
∓ - Negligible downside.
? - Dependent on context.
✓ Benefit.
❌ Downside.

Criteria Voice menu Command menu
Quick to setup ? Dependent on complexity.
Localized Strings ± Users need your custom resource file to see your localized strings. ∓ Can be mimicked by cycling other voicemenus.
Assignable gestures ± Yes ∓ No
Command whitelist ❌ Only voicecommands. ✓ Any command.
Maximum VMs usable ❌ 9 ✓ Infinite
Maximum Voicecommands per menu ❌ 9 ✓ Infinite
Formattable? ❌ No ✓ Yes
Cooldown? ❌ Cooldown increases over spam. ∓ Only affected by chat cooldown.
Valid with sv_pure? ❌ No ✓ Yes
Adaptability ✓ Adaptable ? Dependent on complexity.
Recursive?