mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 19:12:51 +00:00
Merge ea02b64cf6
into ceb6d4d783
This commit is contained in:
commit
f57cc45f06
1 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue