View Single Post
eyal282
Veteran Member
Join Date: Aug 2011
Old 08-09-2018 , 08:28   Re: How i can trace EVERYTHING around player?
Reply With Quote #4

Quote:
Originally Posted by ayyyyyyylmao View Post
nonono, im making visible-check for my plugin, like if i can see any player, i receive they steamid, if i can see noone, i will receive -1
Instead of GetClientEyeAngles use the origin of the target entity.

Instead of RayType_Infinite use RayType_EndPosition ( infinite uses angles and endposition uses another entity's origin ).

Feel free to use filters for invisible things like glasses, and filter both target and client entities.

After filtering:

if(TR_DidHit())
// Player cannot see target player.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline