2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 01:47:45 +01:00

Fix alien controllers facing in idle state (#282)

This commit is contained in:
Roman Chistokhodov 2022-07-19 14:35:27 +03:00 committed by GitHub
parent 88e13e8ce1
commit e51878c45b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -669,8 +669,11 @@ void CController::RunTask( Task_t *pTask )
case TASK_WAIT:
case TASK_WAIT_FACE_ENEMY:
case TASK_WAIT_PVS:
MakeIdealYaw( m_vecEnemyLKP );
ChangeYaw( pev->yaw_speed );
if (m_hEnemy != 0)
{
MakeIdealYaw( m_vecEnemyLKP );
ChangeYaw( pev->yaw_speed );
}
if( m_fSequenceFinished )
{