From 2a6ec623d6a3ea9cdb980633f971d73f65f3bf11 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 25 Oct 2019 21:44:38 +0200 Subject: [PATCH] Add a quickmenu command to select a player to spectate --- qcsrc/client/hud/panel/quickmenu.qc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcsrc/client/hud/panel/quickmenu.qc b/qcsrc/client/hud/panel/quickmenu.qc index 6fc078921..005a25d5c 100644 --- a/qcsrc/client/hud/panel/quickmenu.qc +++ b/qcsrc/client/hud/panel/quickmenu.qc @@ -858,6 +858,11 @@ void QuickMenu_Default(string target_submenu) QUICKMENU_ENTRY(CTX(_("QMCMD^Shuffle teams")), "vcall shuffleteams") QUICKMENU_SMENU(CTX(_("QMCMD^Call a vote")), "Call a vote") + if(spectatee_status != 0) + { + QUICKMENU_SMENU_PL(CTX(_("QMCMD^Spectate a player")), "Spectate a player", "spectate \"%s^7\"", 0, 1) + } + if(target_submenu != "" && !target_submenu_found) { LOG_INFOF("Couldn't find submenu \"%s\"", target_submenu); -- 2.39.2