Are you speaking of fm_is_ent_visible() from fakemeta_util?
Code:
stock bool:fm_is_ent_visible(index, entity, ignoremonsters = 0) {
new Float:start[3], Float:dest[3]
pev(index, pev_origin, start)
pev(index, pev_view_ofs, dest)
xs_vec_add(start, dest, start)
pev(entity, pev_origin, dest)
engfunc(EngFunc_TraceLine, start, dest, ignoremonsters, index, 0)
new Float:fraction
get_tr2(0, TR_flFraction, fraction)
if (fraction == 1.0 || get_tr2(0, TR_pHit) == entity)
return true
return false
}
__________________