From: terencehill Date: Sun, 28 May 2023 10:16:24 +0000 (+0200) Subject: moveto* votes: always show both player id and name in the vote panel since players... X-Git-Tag: xonotic-v0.8.6~20^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=412da9c086f0f90c0386b897390db2269f40bbd9;p=xonotic%2Fxonotic-data.pk3dir.git moveto* votes: always show both player id and name in the vote panel since players are hardly identifiable without showing their names --- 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 {