Skip to content

Commit

Permalink
Merge pull request #155 from FreeSlave/fix_controller_facing
Browse files Browse the repository at this point in the history
Fix alien controllers facing in non-combat state
  • Loading branch information
SamVanheer authored Jul 22, 2022
2 parents 42f45bd + 271d503 commit 16c7669
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 @@ -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 16c7669

Please sign in to comment.