From 412da9c086f0f90c0386b897390db2269f40bbd9 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 28 May 2023 12:16:24 +0200 Subject: [PATCH] moveto* votes: always show both player id and name in the vote panel since players are hardly identifiable without showing their names --- qcsrc/server/command/vote.qc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 02cb8e1ce..ecf5dc997 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -746,6 +746,29 @@ int VoteCommand_parse(entity caller, string vote_command, string vote_list, floa switch (first_command) // now go through and parse the proper commands to adjust as needed. { + case "movetoauto": + case "movetored": + case "movetoblue": + case "movetoyellow": + case "movetopink": + case "movetospec": + { + entity victim = GetIndexedEntity(argc, (startpos + 1)); + float accepted = VerifyClientEntity(victim, true, false); + if (accepted > 0) + { + vote_parsed_command = vote_command; + vote_parsed_display = sprintf("^1%s #%d ^7%s", first_command, etof(victim), victim.netname); + } + else + { + print_to(caller, strcat("vcall: ", GetClientErrorString(accepted, argv(startpos + 1)), ".\n")); + return 0; + } + + break; + } + case "kick": case "kickban": // catch all kick/kickban commands { -- 2.39.2