File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -573,13 +573,6 @@ bool CCaptureFlag::ShouldHideGlowEffect( void )
573573 // In non-CTF control the flag changes to the team that's carrying it
574574 bIsHiddenTeam = ( pLocalPlayer->GetTeamNumber () != TEAM_SPECTATOR && pLocalPlayer->GetTeamNumber () != GetTeamNumber () );
575575 }
576-
577- if ( pLocalPlayer->m_Shared .IsFullyInvisible () )
578- {
579- C_TFPlayer *pOwner = ToTFPlayer ( m_hPrevOwner );
580- if ( pOwner && pOwner != pLocalPlayer )
581- return true ;
582- }
583576 }
584577
585578 bool bHide = IsStolen () && bIsHiddenTeam;
@@ -2600,20 +2593,6 @@ void CCaptureFlag::Simulate( void )
26002593 BaseClass::Simulate ();
26012594
26022595 ManageTrailEffects ();
2603-
2604- C_TFPlayer *pLocalPlayer = C_TFPlayer::GetLocalTFPlayer ();
2605- if ( m_hPrevOwner && m_hPrevOwner->IsPlayer () && pLocalPlayer && pLocalPlayer->m_Shared .IsFullyInvisible () && !IsEffectActive ( EF_NODRAW ) )
2606- {
2607- C_TFPlayer *pTFOwner = ToTFPlayer ( m_hPrevOwner );
2608- if ( pTFOwner && pTFOwner != pLocalPlayer )
2609- {
2610- AddEffects ( EF_NODRAW );
2611- }
2612- }
2613- else if ( IsEffectActive ( EF_NODRAW ) && ( IsStolen () || IsDropped () ) )
2614- {
2615- RemoveEffects ( EF_NODRAW );
2616- }
26172596}
26182597
26192598void CCaptureFlag::ManageTrailEffects ( void )
You can’t perform that action at this time.
0 commit comments