mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 23:05:30 +03:00
Fixed an issue with trigger_look LOS keyvalue
This commit is contained in:
parent
632bd3d0ba
commit
04687e03e9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user