From 2edbbac759a41fb137e943fa650a2fb981cd05ae Mon Sep 17 00:00:00 2001 From: Nash Muhandes Date: Sat, 14 Mar 2020 20:17:04 +0800 Subject: [PATCH] Print weapon name tag when switching with "slot" command (#1048) --- src/g_game.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/g_game.cpp b/src/g_game.cpp index f8f2134ba..fa5405d3e 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -313,6 +313,13 @@ CCMD (slot) VMCall(func, param, 3, &ret, 1); } } + + // [Nash] Option to display the name of the weapon being switched to. + if (SendItemUse != players[consoleplayer].ReadyWeapon && (displaynametags & 2) && StatusBar && SmallFont && SendItemUse) + { + StatusBar->AttachMessage(Create(nullptr, SendItemUse->GetTag(), + 1.5f, 0.90f, 0, 0, (EColorRange)*nametagcolor, 2.f, 0.35f), MAKE_ID('W', 'E', 'P', 'N')); + } } }