Quote:
Originally Posted by Natsheh
I found a simpler way to do it using SV_ValidClientMulticast.
PHP Code:
// Is Origin in player's potentially view set?
bool:IsOriginInPlayerPVS(const id, Float:fMessageOrigin[3])
{
static leafnum;
leafnum = OrpheuCall( SV_PointLeafnum, fMessageOrigin );
return bool: OrpheuCall( SV_ValidClientMulticast, id, leafnum, MSG_PVS );
}
all i need are the signatures  ReHLDS latest version REHLDS_v311-776
|
Dumb question, you've tried it, I haven't tested it so I can't confirm.
PHP Code:
bool:IsOriginInPlayerPVS(const id, Float:fMessageOrigin[3])
{
static leafnum;
leafnum = SV_PointLeafnum(fMessageOrigin)
return bool: SV_ValidClientMulticast( id, leafnum, MSG_PVS );
}
__________________