Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/game/server/tf/bot/tf_bot_vision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ bool CTFBotVision::IsIgnored( CBaseEntity *subject ) const
return true;
}

if ( enemy->m_Shared.IsStealthed() )
if ( !enemy->m_Shared.IsFullyVisible() )
{
if ( enemy->m_Shared.GetPercentInvisible() < 0.75f )
{
Expand Down Expand Up @@ -372,7 +372,7 @@ bool CTFBotVision::IsVisibleEntityNoticed( CBaseEntity *subject ) const
return false;
}

if ( player->m_Shared.IsStealthed() )
if ( !player->m_Shared.IsFullyVisible() )
{
if ( player->m_Shared.GetPercentInvisible() < 0.75f )
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/shared/tf/tf_player_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ class CTFPlayerShared : public CGameEventListener
float GetLastStealthExposedTime( void ) { return m_flLastStealthExposeTime; }
void SetNextStealthTime( float flTime ) { m_flStealthNextChangeTime = flTime; }
bool IsFullyInvisible( void ) { return ( GetPercentInvisible() == 1.f ); }

bool IsFullyVisible( void ) { return ( GetPercentInvisible() == 0.f ); }
bool IsEnteringOrExitingFullyInvisible( void );

bool CanRuneCharge() const;
Expand Down