I am looking for the offset in memory that is called to set any dvar so that after ive unlocked dvars instead of looking for each memory address i just call the set dvar by doing something like this :
Code:
//found this on some site
static void (*hSendCommand)(int bla1,int bla2,char *bla3) = (void (__cdecl *)(int,int,char *))0x004F9AB0;
Code:
hSendCommand(1,1,"cg_thirdPerson 1");
As this method seems less trouble then finding each pointer for each address but im unsure if this would actually work