mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Ported some minor fixes from the Alien Swarm SDK
This commit is contained in:
@@ -835,7 +835,11 @@ void CAI_BaseActor::UpdateLatchedValues( )
|
||||
// set head latch
|
||||
m_fLatchedPositions |= HUMANOID_LATCHED_HEAD;
|
||||
|
||||
#ifdef MAPBASE // From Alien Swarm SDK
|
||||
if ( CanSkipAnimation() || !GetAttachment( "eyes", m_latchedEyeOrigin, &m_latchedHeadDirection ))
|
||||
#else
|
||||
if (!HasCondition( COND_IN_PVS ) || !GetAttachment( "eyes", m_latchedEyeOrigin, &m_latchedHeadDirection ))
|
||||
#endif
|
||||
{
|
||||
m_latchedEyeOrigin = BaseClass::EyePosition( );
|
||||
AngleVectors( GetLocalAngles(), &m_latchedHeadDirection );
|
||||
@@ -1626,7 +1630,11 @@ void CAI_BaseActor::MaintainLookTargets( float flInterval )
|
||||
}
|
||||
|
||||
// don't bother with any of the rest if the player can't see you
|
||||
#ifdef MAPBASE // From Alien Swarm SDK
|
||||
if ( CanSkipAnimation() )
|
||||
#else
|
||||
if (!HasCondition( COND_IN_PVS ))
|
||||
#endif
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user