Forums » Suggestions

Command that prints all commands

May 28, 2023 draugath link
Please add a command that prints out all player-usable commands in a scrollable window. Preferably it should be accompanied by an API command to return the same for use in plugins. I ask for a scrollable window, because it appears there may be too many commands to fit into the chat history.

There are existing a few methods of getting a list of commands, but they are all lacking in one way or another:

* `/print all` appears to print out a complete list of commands, but it is cluttered with keybinds that push other information out of the chat history.

* `GetRegisteredUserCommands()` is useful from a plugin standpoint, but it is an incomplete list, lacking most of the +/- commands and a number of other commands related to weapon selection, radars, and a few other things.

* Binding a key from the Options > Controls > Keyboard interface and then checking `/bind <key>` is tedious and doesn't work for a number of commands that have recently been added to the game, but not to the keybind interface.

New commands frequently don't get added into a reference, which may also be inconvenient for some players to look up.

My specific use case would be to dynamically update the list of commands for selection in the DroidButtons plugin.
Jun 01, 2023 IonicPaulTheSecond link
+1
Jun 01, 2023 Luxen link
As of Vendetta 1.8.647 this appears to be implemented.

Question for Incarnate/Ray - the ASCIIbetical-sorted-by-command table returned contains
{
[1] = "command",
[2] = <number>
}

what's the number for? I think i've only seen 0-3. Is that to do with how it was created or something?
Jun 01, 2023 draugath link
Looking at the commands and their associated numbers, this is my guess.

1: Internally defined
2: aliases
3: created with RegisterUserCommand()
Jun 06, 2023 raybondo link
Yes, that is basically correct.