From dd59820d111d49aff6dee2c4aefced346fc8a442 Mon Sep 17 00:00:00 2001 From: TheNotoriousFrogposter Date: Thu, 17 Apr 2025 11:42:38 +0800 Subject: [PATCH] Fix the weapon being invisible after the stun period expires --- src/game/shared/tf/tf_player_shared.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/shared/tf/tf_player_shared.cpp b/src/game/shared/tf/tf_player_shared.cpp index a2c26261d71..1fc6a2bc495 100644 --- a/src/game/shared/tf/tf_player_shared.cpp +++ b/src/game/shared/tf/tf_player_shared.cpp @@ -7361,6 +7361,11 @@ void CTFPlayerShared::OnRemoveStunned( void ) #endif m_pOuter->TeamFortress_SetSpeed(); + + if ( m_pOuter->GetActiveWeapon() && !InCond( TF_COND_TAUNTING ) && !InCond( TF_COND_HALLOWEEN_KART ) ) + { + m_pOuter->GetActiveWeapon()->SetWeaponVisible( true ); + } } //-----------------------------------------------------------------------------