Skip to content

Commit

Permalink
Fix alien controllers facing in idle state (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave authored Jul 19, 2022
1 parent 88e13e8 commit e51878c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dlls/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit e51878c

Please sign in to comment.