Hi guys,
iam trying to do atm a little External Hack for Black Ops.
I got the SRC from a Mw2 Hack and tryed to set it up for Black Ops.
Now i got some problems with my Offsets,
How should i find out these offsets:
Code:
ReadProcessMemory(mw2_process,(PVOID)(CG_T),&localclientnum,4,NULL);
ReadProcessMemory(mw2_process,(PVOID)(REFDEF+0x10),&fov,8,NULL);
ReadProcessMemory(mw2_process,(PVOID)(REFDEF+0x18),&mypos,12,NULL);
ReadProcessMemory(mw2_process,(PVOID)(REFDEF+0xE7144C),&viewangles,12,NULL);
Code:
ReadProcessMemory(mw2_process,(PVOID)(ENTITY+i*0x204+0xE0),&(player[i].typ),4,NULL);
ReadProcessMemory(mw2_process,(PVOID)(ENTITY+i*0x204+0x2),&(player[i].valid),4,NULL);
ReadProcessMemory(mw2_process,(PVOID)(ENTITY+i*0x204+0x1DC),&(player[i].alive),4,NULL);
ReadProcessMemory(mw2_process,(PVOID)(ENTITY+i*0x204+0xDC),&(player[i].clientnum),4,NULL);
ReadProcessMemory(mw2_process,(PVOID)(ENTITY+i*0x204+0x6C),&(player[i].flags),4,NULL);
ReadProcessMemory(mw2_process,(PVOID)(CLIENTINFO+i*0x52C+0x3C),&(player[i].team),4,NULL);
ReadProcessMemory(mw2_process,(PVOID)(ENTITY+i*0x204+0x18),&(player[i].pos),12,NULL);
ReadProcessMemory(mw2_process,(PVOID)(CLIENTINFO+i*0x52C+0xC),&(player[i].name),16,NULL);
ReadProcessMemory(mw2_process,(PVOID)(CLIENTINFO+i*0x52C+0x2C),&(player[i].perk),4,NULL);
I got the Entity offset + Clientinfo Offset and so on...
Code:
(Happy sharing)
================================================
STRUCTURES:
CG: 0x35067B80
CG_s: 0x350D9500
Ent: 0x35153EFC (0x328)
ClientInfo: 0x350C6DA8 (0x5D0)
RefDef: 0x350AAC80
RefDef (Angles): 0x350AAB2C
Sentrys: 0xC9E9A8
Choppers: 0xC9FA68
Dogs: 0xC9EFE8
RCXDs: 0xC9EE28
ViewMatrix: 0xE713CC
Media: 0xD560F8
MouseInfo: 0x37781F8
PlayerSnap: 0xE6EBBC
================================================
FUNCTIONS:
D3D Device: 0x46CDE08
DrawEngineText: 0x6F9610
DrawStretchPic: 0x6F90E0
Draw2D_Debug_Line: 0x555790
Draw3D_Debug_Line: 0x5D4C50
IsESPVisible: 0x4FB380
IsBoneVisible: 0x7AF890
GetWeaponInfo: 0x57E9C0
RenderScene: 0x6EDDC0
CL_WritePacket: 0x584790
CG_ClientFrame: 0x57D9F0
CG_Obituary: 0x7D87F0
CG_DrawNameTags: 0x627140
CG_Trace: 0x588910
CG_DrawBulletsImpacts:0x805DE0
CG_FireWeapon: 0x5D9980
CG_FireWeaponRecoil: 0x6BAB90
GetTagPos: 0x433120
GetTagByID: 0x672A70
Set_Weapon_CL_Trace: 0x40B300
RegisterTag: 0x434220
RegisterFont: 0x6F7570
RegisterShader: 0x6DC470
================================================
VARIABLES:
ViewAngles: 0xE7144C
SetZoom: 0xE6EC00
================================================
READ ONLY:
Primary Ammo1: 0xE6F028
Primary Ammo2: 0xE6EFB0
Secondary Ammo1: 0xE6F020
Secondary Ammo2: 0xE6EFA8
Lethal Ammo: 0xE6F030
Tactical Ammo: 0xE6F038
Equipment Ammo: 0xE6F040
Is Ingame: 0xDDE24C
Server IP: 0xE6EABC
Ping: 0xE6EC20
================================================
But how to find out these?
Cheers,
cnby