Browse Source

Fix alien controllers facing in idle state (#282)

hlfixed
Roman Chistokhodov 2 years ago committed by GitHub
parent
commit
e51878c45b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      dlls/controller.cpp

7
dlls/controller.cpp

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

Loading…
Cancel
Save