Skip to content

Commit

Permalink
Fix alien controllers facing in non-combat state
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Jul 19, 2022
1 parent 66fb780 commit 271d503
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dlls/controller.cpp
Expand Up @@ -665,8 +665,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 271d503

Please sign in to comment.