mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-06 20:11:45 +03:00
Fixed an issue with trigger_look LOS keyvalue
This commit is contained in:
@@ -1279,7 +1279,7 @@ void CTriggerLook::Touch(CBaseEntity *pOther)
|
||||
VectorNormalize(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];
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user