Well you can use patterns....Or search in the Source Code/Address thread.
How to find ISINGAME,CG,REFDEF,CLIENTINFO,ENTITY and VIEWANGLES address ?
You don't have to be a bad-ass to be a superhero. You just have to be brave. - Hit-Girl -
Well you can use patterns....Or search in the Source Code/Address thread.
Some of the structs, Entity, ClientGame (CG) and others are initialized on CG_Init, locate this function, use your experience, which I hope you have, and you'll find the offsets. Tip to find CG_Init, it always loads some fonts and a shader (white), so you can do string searchs to find it. On IDA, you'll see things like this:
push 104CE0h ; This is the size of the struct in hexadecimal
push ebx ; 0
push offset dword_8FF100 ; This is the offset (what you want to find)
call _memset
(In this case, 0x8FF100 is the CG_t offset for IW5M )
or this:
mov ecx, esi
imul ecx, 0FC000h
push 0FC000h ; size_t
add ecx, offset unk_A08630 <- This is the Entity_t offset
push ebx ; int
push ecx ; void *
call _memset
Also, RefDef and IsInGame is inside CG_t so you won't find it like this
Last edited by MarkHC; 03-21-2013 at 07:25 PM.
CoD Minion from 09/19/2012 to 01/10/2013
mwxplayer (03-22-2013)
CoD Minion from 09/19/2012 to 01/10/2013
Kenshin13 (03-22-2013)