MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / OnClientCommand

Method OnClientCommand

core/MenuStyle_Valve.cpp:54–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54bool ValveMenuStyle::OnClientCommand(int client, const char *cmdname, const CCommand &cmd)
55{
56 if (strcmp(cmdname, "sm_vmenuselect") == 0)
57 {
58 int key_press = atoi(cmd.Arg(1));
59 g_ValveMenuStyle.ClientPressedKey(client, key_press);
60 return true;
61 }
62
63 return false;
64}
65
66void ValveMenuStyle::OnSourceModAllInitialized()
67{

Callers

nothing calls this directly

Calls 2

ClientPressedKeyMethod · 0.80
ArgMethod · 0.45

Tested by

no test coverage detected