This commit is contained in:
speedvoltage 2025-03-29 21:40:44 +01:00 committed by GitHub
commit f57cc45f06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -216,7 +216,14 @@ void CPointAngleSensor::Think(void)
if (m_hTargetEntity != NULL)
{
Vector forward;
m_hTargetEntity->GetVectors(&forward, NULL, NULL);
if ( dynamic_cast< CBasePlayer * >( m_hTargetEntity.Get() ) != NULL )
{
dynamic_cast< CBasePlayer * >( m_hTargetEntity.Get() )->EyeVectors( &forward, NULL, NULL );
}
else
{
m_hTargetEntity->GetVectors( &forward, NULL, NULL );
}
m_TargetDir.Set(forward, this, this);
if (m_hLookAtEntity != NULL)