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)
(In this case, 0x8FF100 is the CG_t offset for IW5M )
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 08:25 PM.
CoDMinion from 09/19/2012 to 01/10/2013
The Following User Says Thank You to MarkHC For This Useful Post: