From e6028c610c14b2e861b227ff0ae8db39467fd38c Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 28 Nov 2024 03:43:09 +0000 Subject: [PATCH] Explicitly mark bots with a tag in the server list to reduce activity spoofing --- qcsrc/menu/xonotic/playerlist.qc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcsrc/menu/xonotic/playerlist.qc b/qcsrc/menu/xonotic/playerlist.qc index f9f3edd67..10ab8f69c 100644 --- a/qcsrc/menu/xonotic/playerlist.qc +++ b/qcsrc/menu/xonotic/playerlist.qc @@ -88,7 +88,9 @@ void XonoticPlayerList_drawListBoxItem(entity me, int i, vector absSize, bool is string name = me.getPlayerList(me, i, PLAYERPARM_NAME); string score = me.getPlayerList(me, i, PLAYERPARM_SCORE); + string ping = me.getPlayerList(me, i, PLAYERPARM_PING); + bool is_bot = (ping == "0"); bool is_spectator = false; if(substring(score, strlen(score) - 10, 10) == ":spectator") { @@ -105,6 +107,9 @@ void XonoticPlayerList_drawListBoxItem(entity me, int i, vector absSize, bool is is_spectator = true; } + if(is_bot) + name = cons("^9(bot)^7", name); + if (is_spectator) { score = _("spectator"); -- 2.39.2