Skip to content
Permalink
Browse files

Print weapon name tag when switching with "slot" command (#1048)

  • Loading branch information
nashmuhandes committed Mar 14, 2020
1 parent 7a141f3 commit 2edbbac759a41fb137e943fa650a2fb981cd05ae
Showing with 7 additions and 0 deletions.
  1. +7 −0 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<DHUDMessageFadeOut>(nullptr, SendItemUse->GetTag(),
1.5f, 0.90f, 0, 0, (EColorRange)*nametagcolor, 2.f, 0.35f), MAKE_ID('W', 'E', 'P', 'N'));
}
}
}

0 comments on commit 2edbbac

Please sign in to comment.
You can’t perform that action at this time.