I've already answered your question:
You could simply increase the scan range and decide depending on their size how to go on.
For example your initial scan range is 500. You now increase this value by e.g. 500 quants. Either in the entity event function or next to the c_scan instruction you check the entity's size, for instance according to its max_x value if the entity is symmetrical.
If the returned distance is 777 and 777 < 500+entity.max_x is true, the entity touches the scan cone.
Alternatively you could write your own function with (!) scan cone as I've posted earlier.