Quote:
Originally Posted by eyal282
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.
|
meh, my raytraces so bad, like i can see the player, but trace cant