Raised This Month: $ Target: $400
 0% 

Accessing PVS?! Searching for something like is_ent_in_pvs(ent,Float:origin[3])


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
-mE-
New Member
Join Date: Oct 2006
Location: Germany, Cologne
Old 01-08-2007 , 14:37   Accessing PVS?! Searching for something like is_ent_in_pvs(ent,Float:origin[3])
Reply With Quote #1

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.
__________________

-mE- is offline
Send a message via ICQ to -mE-
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode