Thank you!
Now I will use that stock:
PHP Code:
// fakemeta_util.inc code with some replaced natives
stock fm_is_ent_visible( index, entity, ignoremonsters = 0 ) {
new Float:start[3], Float:dest[3]
entity_get_vector( index, EV_VEC_origin, start )
entity_get_vector( index, EV_VEC_view_ofs, dest )
xs_vec_add( start, dest, start )
const GLOBAL_TRACERESULT_HANDLE = 0
entity_get_vector( entity, EV_VEC_origin, dest )
engfunc( EngFunc_TraceLine, start, dest, ignoremonsters, index, GLOBAL_TRACERESULT_HANDLE )
return get_tr2( GLOBAL_TRACERESULT_HANDLE, TR_pHit ) == entity
}
__________________