Fixed an issue with trigger_look LOS keyvalue

This commit is contained in:
Blixibon 2021-07-26 13:07:33 -05:00
parent 632bd3d0ba
commit 04687e03e9

View File

@ -1279,7 +1279,7 @@ void CTriggerLook::Touch(CBaseEntity *pOther)
VectorNormalize(vTargetDir); VectorNormalize(vTargetDir);
float fDotPr = DotProduct(vLookDir,vTargetDir); float fDotPr = DotProduct(vLookDir,vTargetDir);
if (fDotPr > m_flFieldOfView && (!m_bUseLOS || pOther->FVisible(pOther))) if (fDotPr > m_flFieldOfView && (!m_bUseLOS || pOther->FVisible(m_hLookTargets[i])))
{ {
hLookingAtEntity = m_hLookTargets[i]; hLookingAtEntity = m_hLookTargets[i];
break; break;