From a8f20956c4f99f4414c9b7914e4ae72731d33918 Mon Sep 17 00:00:00 2001 From: pierow Date: Sun, 20 Aug 2023 17:43:56 -0400 Subject: [PATCH] add welder indicator to names status bar --- main/source/dlls/player.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/source/dlls/player.cpp b/main/source/dlls/player.cpp index 3435042d..d4570435 100644 --- a/main/source/dlls/player.cpp +++ b/main/source/dlls/player.cpp @@ -2079,10 +2079,16 @@ void CBasePlayer::UpdateStatusBar() if ( g_pGameRules->PlayerRelationship( this, pEntity ) == GR_TEAMMATE ) { int theLevel = 1; + bool hasWelder = 0; AvHPlayer* thePlayer = dynamic_cast(pEntity); if(thePlayer) { theLevel = thePlayer->GetExperienceLevel(); + //TODO:change out for icon in statusbar rendering code or localize. + hasWelder = thePlayer->GetHasItem("weapon_welder"); + if (hasWelder) { + strcat(sbuf1, " [Welder]"); + } } //newSBarState[ SBAR_ID_TARGETHEALTH ] = 100 * (pEntity->pev->health / pEntity->pev->max_health);