[EMAIL PROTECTED] wrote:
Hi,
I'm new to the HL SDK and I'm writing a quick metamod
hack...
How can I abstract data from the pvPrivateData edict
which isn't in pev? For example, if I want to access some offset/location x in
pvPrivateData, how can I do that? The best I could come up with is
CBaseEntity *pPlayer = UTIL_PlayerByIndex(Index);
int *mptr = (int *)(&(pPlayer->edict()->pvPrivateData)+OFFSET);
Sorry if it seems I have no clue what I'm doing, because I
don't. =)
-----David "BAILOPAN" Anderson
Yep, that will work and is about the best method to use to access MOD
specific private data. Realize that this data can/will change with each
release of a MOD, so don't be surprised if stuff moves around (the
offset changes) with each release of a MOD. :)
--
Jeffrey "botman" Broome
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders