Skip to content

Commit 88fa198

Browse files
shockpastEricS-Valve
authored andcommitted
Fix intel carrier glow disappearing when Spy cloaks
Fixes ValveSoftware/Source-1-Games#8047
1 parent 7a8f7ab commit 88fa198

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

src/game/shared/tf/entity_capture_flag.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff 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

26192598
void CCaptureFlag::ManageTrailEffects( void )

0 commit comments

Comments
 (0)