Is there a way to access entities within the PVS of another entity or origin? A closer look at the HLSDK didn't actually reveal more than these engfuncs also seen in fakemeta:
Code:
EngFunc_FindClientInPVS, // edict) (edict_t *pEdict);
EngFunc_EntitiesInPVS, // edict) (edict_t *pplayer);
Is there any way to get a function like
Code:
bool:is_ent_in_pvs(ent,Float:origin[3]) or
bbol:is_ent_in_pvs(ent,id)
or alternatively similar to find_ent_by_class(), etc.?
Code:
ent = find_ent_in_pvs(ent,Float:origin[3]) or
ent = find_ent_in_pvs(ent,id)
I'm in need of this for a structure limiter for Natural Selection, which would basically make sure there's no more than X entities in the PVS of each newly spawned entity.
This would significantly improve the performance when eg. a custom entity has to think and thus runs a rather extensive check on all entities in line of sight, as most would be filtered out anyway.
Also this would give more control over sending messages just to certain players in PVS as opposed to using MSG_PVS.
__________________