featurelist.orgfeaturelist.org
 
U
D
6 points - posted 2970 days ago by Saul - status: Active - 1 comments watch embed this
Tags: entity network networking setindexprop getindexprop
Hey Mattie,
I'm wondering if it would be possible for you to include the ability to retrieve entity handles from entity indexes. This function would be practically the same as es.getplayerhandle, but instead accept an entity index as the parameter instead of a userid.

Entity handles are how the Source Engine transmits entities as props (es.setindexprop, es.getindexprop, es.setplayerprop, es.getplayerprop). For example:

CBasePlayer.mhViewmodels
CBaseCombatWeapon.m
hOwner
CBaseEntity.m_hOwnerEntity

With this code in place I could make my viewmodel / worldmodel library a lot more extensible-- and I'm sure this would benefit things like weaponlib and playerlib.

Thanks in advance,

Mattie posted on 2009-05-18 17:27:45
I'll likely be adding this, but for now it will be through es.createentitylist().

-Mattie