Skip to content

Commit

Permalink
Fix potential incorrect facing in scripted sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Jun 20, 2022
1 parent 66fb780 commit f4a8c29
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dlls/talkmonster.cpp
Expand Up @@ -867,8 +867,11 @@ void CTalkMonster::Touch(CBaseEntity* pOther)
float speed = fabs(pOther->pev->velocity.x) + fabs(pOther->pev->velocity.y);
if (speed > 50)
{
SetConditions(bits_COND_CLIENT_PUSH);
MakeIdealYaw(pOther->pev->origin);
if (m_pSchedule != NULL && (m_pSchedule->iInterruptMask & bits_COND_CLIENT_PUSH))
{
SetConditions(bits_COND_CLIENT_PUSH);
MakeIdealYaw(pOther->pev->origin);
}
}
}
}
Expand Down

0 comments on commit f4a8c29

Please sign in to comment.