You should say that it requires SMLib. Also, when comparing distances without needing to know the exact distance, you can avoid a square root, which is a "somewhat heavy" math operation. To do so you'll need to pow2 on the other side of the comparison. Using SMLib you can't optimize that.
See
https://sm.alliedmods.net/api/index....d=show&id=547& (third arg and SMLib source code for more info).
__________________