typedef bool(WINAPIV * pIntersectSegment)(IntersectQuery& iQuery, IntersectInfo* qInfo);
pIntersectSegment oIntersectSegment;
bool __cdecl IsVisible( D3DXVECTOR3 Point )
{
oIntersectSegment = reinterpret_cast<pIntersectSegment>(0x691880); //address for CFAL
static IntersectQuery iQuery;
static IntersectInfo iInfo;
memset( &iQuery, 0, sizeof( iQuery ));
iQuery.Start = local.Local_Player->Object->Body;
iQuery.End = Point;
bool result = !oIntersectSegment( iQuery, &iInfo );
return result;
}
