From: terencehill Date: Fri, 25 Oct 2019 19:44:38 +0000 (+0200) Subject: Add a quickmenu command to select a player to spectate X-Git-Tag: xonotic-v0.8.5~1105^2~16^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2a6ec623d6a3ea9cdb980633f971d73f65f3bf11;p=xonotic%2Fxonotic-data.pk3dir.git Add a quickmenu command to select a player to spectate --- 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);