Okay, I'm amazed that mess actually works... I'll follow up with the obvious next question. What's the easiest way of finding the correct offset, knowing that there is one number somewhere in there (pvPrivateData) that's correct?
Is there something better than going from 0 to sizeof() and logging the output? > 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

